From 5aa040afac3257d1eabbe97b3619ffa68ac1cfda Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 3 Jan 2019 12:12:37 +0000 Subject: [PATCH] Generated from 6760c301aaefafcc2b28b64213e68f30315a39a4 Updated readme.go to fix automation validation --- .../compute/mgmt/compute/computeapi/models.go | 2 +- .../2017-03-09/compute/mgmt/compute/models.go | 2 +- .../keyvault/keyvault/keyvaultapi/models.go | 2 +- .../2017-03-09/keyvault/keyvault/models.go | 2 +- .../mgmt/keyvault/keyvaultapi/models.go | 2 +- .../keyvault/mgmt/keyvault/models.go | 2 +- .../2017-03-09/network/mgmt/network/models.go | 2 +- .../network/mgmt/network/networkapi/models.go | 2 +- .../mgmt/features/featuresapi/models.go | 2 +- .../resources/mgmt/features/models.go | 2 +- .../resources/mgmt/links/linksapi/models.go | 2 +- .../2017-03-09/resources/mgmt/links/models.go | 2 +- .../resources/mgmt/locks/locksapi/models.go | 2 +- .../2017-03-09/resources/mgmt/locks/models.go | 2 +- .../resources/mgmt/policy/models.go | 2 +- .../resources/mgmt/resources/models.go | 2 +- .../mgmt/resources/resourcesapi/models.go | 2 +- .../resources/mgmt/subscriptions/models.go | 2 +- .../subscriptions/subscriptionsapi/models.go | 2 +- .../2017-03-09/storage/mgmt/storage/models.go | 2 +- .../storage/mgmt/storage/storageapi/models.go | 2 +- .../authorization/authorizationapi/models.go | 2 +- .../mgmt/authorization/models.go | 2 +- .../compute/mgmt/compute/computeapi/models.go | 2 +- .../2018-03-01/compute/mgmt/compute/models.go | 2 +- .../2018-03-01/dns/mgmt/dns/dnsapi/models.go | 2 +- profiles/2018-03-01/dns/mgmt/dns/models.go | 2 +- .../keyvault/keyvault/keyvaultapi/models.go | 2 +- .../2018-03-01/keyvault/keyvault/models.go | 2 +- .../mgmt/keyvault/keyvaultapi/models.go | 2 +- .../keyvault/mgmt/keyvault/models.go | 2 +- .../2018-03-01/network/mgmt/network/models.go | 2 +- .../network/mgmt/network/networkapi/models.go | 2 +- .../resources/mgmt/links/linksapi/models.go | 2 +- .../2018-03-01/resources/mgmt/links/models.go | 2 +- .../resources/mgmt/locks/locksapi/models.go | 2 +- .../2018-03-01/resources/mgmt/locks/models.go | 2 +- .../resources/mgmt/policy/models.go | 2 +- .../resources/mgmt/policy/policyapi/models.go | 2 +- .../resources/mgmt/resources/models.go | 2 +- .../mgmt/resources/resourcesapi/models.go | 2 +- .../resources/mgmt/subscriptions/models.go | 2 +- .../subscriptions/subscriptionsapi/models.go | 2 +- .../2018-03-01/storage/mgmt/storage/models.go | 2 +- .../storage/mgmt/storage/storageapi/models.go | 2 +- profiles/2018-03-01/web/mgmt/web/models.go | 2 +- .../2018-03-01/web/mgmt/web/webapi/models.go | 2 +- .../adhybridhealthserviceapi/models.go | 2 +- .../mgmt/adhybridhealthservice/models.go | 2 +- .../advisor/mgmt/advisor/advisorapi/models.go | 2 +- .../latest/advisor/mgmt/advisor/models.go | 2 +- .../alertsmanagementapi/models.go | 2 +- .../mgmt/alertsmanagement/models.go | 2 +- .../analysisservicesapi/models.go | 2 +- .../mgmt/analysisservices/models.go | 2 +- .../apimanagement/apimanagementapi/models.go | 2 +- .../mgmt/apimanagement/models.go | 2 +- .../latest/appinsights/insights/models.go | 2 +- .../mgmt/insights/insightsapi/models.go | 2 +- .../appinsights/mgmt/insights/models.go | 2 +- .../authorization/authorizationapi/models.go | 2 +- .../mgmt/authorization/models.go | 2 +- .../mgmt/automation/automationapi/models.go | 2 +- .../automation/mgmt/automation/models.go | 2 +- .../latest/azsadmin/mgmt/fabric/models.go | 2 +- .../mgmt/infrastructureinsights/models.go | 2 +- .../mgmt/azurestack/azurestackapi/models.go | 2 +- .../azurestack/mgmt/azurestack/models.go | 2 +- .../latest/batch/batch/batchapi/models.go | 2 +- profiles/latest/batch/batch/models.go | 2 +- .../batch/mgmt/batch/batchapi/models.go | 2 +- profiles/latest/batch/mgmt/batch/models.go | 2 +- .../batchai/mgmt/batchai/batchaiapi/models.go | 2 +- .../latest/batchai/mgmt/batchai/models.go | 2 +- profiles/latest/cdn/mgmt/cdn/cdnapi/models.go | 2 +- profiles/latest/cdn/mgmt/cdn/models.go | 2 +- .../autosuggest/autosuggestapi/models.go | 2 +- .../cognitiveservices/autosuggest/models.go | 2 +- .../computervisionapi/models.go | 2 +- .../computervision/models.go | 2 +- .../contentmoderatorapi/models.go | 2 +- .../contentmoderator/models.go | 2 +- .../customimagesearchapi/models.go | 2 +- .../customimagesearch/models.go | 2 +- .../customsearch/customsearchapi/models.go | 2 +- .../cognitiveservices/customsearch/models.go | 2 +- .../customvision/prediction/models.go | 2 +- .../prediction/predictionapi/models.go | 2 +- .../customvision/training/models.go | 2 +- .../training/trainingapi/models.go | 2 +- .../entitysearch/entitysearchapi/models.go | 2 +- .../cognitiveservices/entitysearch/models.go | 2 +- .../cognitiveservices/face/faceapi/models.go | 2 +- .../latest/cognitiveservices/face/models.go | 2 +- .../imagesearch/imagesearchapi/models.go | 2 +- .../cognitiveservices/imagesearch/models.go | 2 +- .../localsearch/localsearchapi/models.go | 2 +- .../cognitiveservices/localsearch/models.go | 2 +- .../luis/authoring/authoringapi/models.go | 2 +- .../luis/authoring/models.go | 2 +- .../luis/programmatic/models.go | 2 +- .../cognitiveservices/luis/runtime/models.go | 2 +- .../luis/runtime/runtimeapi/models.go | 2 +- .../cognitiveservicesapi/models.go | 2 +- .../mgmt/cognitiveservices/models.go | 2 +- .../cognitiveservices/newssearch/models.go | 2 +- .../newssearch/newssearchapi/models.go | 2 +- .../cognitiveservices/qnamaker/models.go | 2 +- .../qnamaker/qnamakerapi/models.go | 2 +- .../cognitiveservices/spellcheck/models.go | 2 +- .../spellcheck/spellcheckapi/models.go | 2 +- .../cognitiveservices/textanalytics/models.go | 2 +- .../textanalytics/textanalyticsapi/models.go | 2 +- .../cognitiveservices/videosearch/models.go | 2 +- .../videosearch/videosearchapi/models.go | 2 +- .../cognitiveservices/websearch/models.go | 2 +- .../websearch/websearchapi/models.go | 2 +- .../compute/mgmt/compute/computeapi/models.go | 2 +- .../latest/compute/mgmt/compute/models.go | 2 +- profiles/latest/compute/mgmt/skus/models.go | 2 +- .../compute/mgmt/skus/skusapi/models.go | 2 +- .../mgmt/consumption/consumptionapi/models.go | 2 +- .../consumption/mgmt/consumption/models.go | 2 +- .../containerinstanceapi/models.go | 2 +- .../mgmt/containerinstance/models.go | 2 +- .../containerregistryapi/models.go | 2 +- .../mgmt/containerregistry/models.go | 2 +- .../containerserviceapi/models.go | 2 +- .../mgmt/containerservice/models.go | 2 +- .../mgmt/documentdb/documentdbapi/models.go | 2 +- .../cosmos-db/mgmt/documentdb/models.go | 2 +- .../costmanagementapi/models.go | 2 +- .../mgmt/costmanagement/models.go | 2 +- .../customerinsightsapi/models.go | 2 +- .../mgmt/customerinsights/models.go | 2 +- .../databox/mgmt/databox/databoxapi/models.go | 2 +- .../latest/databox/mgmt/databox/models.go | 2 +- .../mgmt/databricks/databricksapi/models.go | 2 +- .../databricks/mgmt/databricks/models.go | 2 +- .../mgmt/datacatalog/datacatalogapi/models.go | 2 +- .../datacatalog/mgmt/datacatalog/models.go | 2 +- .../mgmt/datafactory/datafactoryapi/models.go | 2 +- .../datafactory/mgmt/datafactory/models.go | 2 +- .../datalake/analytics/job/jobapi/models.go | 2 +- .../latest/datalake/analytics/job/models.go | 2 +- .../mgmt/account/accountapi/models.go | 2 +- .../datalake/analytics/mgmt/account/models.go | 2 +- .../store/filesystem/filesystemapi/models.go | 2 +- .../datalake/store/filesystem/models.go | 2 +- .../store/mgmt/account/accountapi/models.go | 2 +- .../datalake/store/mgmt/account/models.go | 2 +- .../datamigration/datamigrationapi/models.go | 2 +- .../mgmt/datamigration/models.go | 2 +- .../devtestlabs/mgmt/dtl/dtlapi/models.go | 2 +- .../latest/devtestlabs/mgmt/dtl/models.go | 2 +- profiles/latest/dns/mgmt/dns/dnsapi/models.go | 2 +- profiles/latest/dns/mgmt/dns/models.go | 2 +- .../domainservices/mgmt/aad/aadapi/models.go | 2 +- .../latest/domainservices/mgmt/aad/models.go | 2 +- .../mgmt/edgegateway/edgegatewayapi/models.go | 34 + .../edgegateway/mgmt/edgegateway/models.go | 752 +++ .../eventgrid/eventgridapi/models.go | 2 +- profiles/latest/eventgrid/eventgrid/models.go | 2 +- .../mgmt/eventgrid/eventgridapi/models.go | 4 +- .../latest/eventgrid/mgmt/eventgrid/models.go | 38 +- .../mgmt/eventhub/eventhubapi/models.go | 2 +- .../latest/eventhub/mgmt/eventhub/models.go | 2 +- .../graphrbac/graphrbacapi/models.go | 2 +- profiles/latest/graphrbac/graphrbac/models.go | 2 +- .../mgmt/iotcentral/iotcentralapi/models.go | 2 +- .../iotcentral/mgmt/iotcentral/models.go | 2 +- .../iothub/mgmt/devices/devicesapi/models.go | 2 +- profiles/latest/iothub/mgmt/devices/models.go | 2 +- .../keyvault/keyvault/keyvaultapi/models.go | 2 +- profiles/latest/keyvault/keyvault/models.go | 2 +- .../mgmt/keyvault/keyvaultapi/models.go | 2 +- .../latest/keyvault/mgmt/keyvault/models.go | 2 +- .../mgmt/labservices/labservicesapi/models.go | 2 +- .../labservices/mgmt/labservices/models.go | 2 +- .../logic/mgmt/logic/logicapi/models.go | 2 +- profiles/latest/logic/mgmt/logic/models.go | 2 +- .../mgmt/webservices/models.go | 2 +- .../mgmt/webservices/webservicesapi/models.go | 2 +- .../machinelearning/mgmt/workspaces/models.go | 2 +- .../mgmt/workspaces/workspacesapi/models.go | 2 +- .../mgmt/managementpartner/models.go | 2 +- .../latest/maps/mgmt/maps/mapsapi/models.go | 2 +- profiles/latest/maps/mgmt/maps/models.go | 2 +- .../marketplaceorderingapi/models.go | 2 +- .../mgmt/marketplaceordering/models.go | 2 +- .../mgmt/media/mediaapi/models.go | 2 +- .../latest/mediaservices/mgmt/media/models.go | 2 +- .../migrate/mgmt/migrate/migrateapi/models.go | 2 +- .../latest/migrate/mgmt/migrate/models.go | 2 +- .../mgmt/mobileengagement/models.go | 2 +- .../latest/monitor/mgmt/insights/models.go | 2 +- profiles/latest/msi/mgmt/msi/models.go | 2 +- profiles/latest/msi/mgmt/msi/msiapi/models.go | 2 +- profiles/latest/mysql/mgmt/mysql/models.go | 2 +- .../mysql/mgmt/mysql/mysqlapi/models.go | 2 +- .../latest/network/mgmt/network/models.go | 2 +- .../network/mgmt/network/networkapi/models.go | 2 +- .../mgmt/notificationhubs/models.go | 2 +- .../notificationhubsapi/models.go | 2 +- .../mgmt/operationalinsights/models.go | 2 +- .../operationalinsightsapi/models.go | 2 +- .../operationalinsights/models.go | 2 +- .../operationalinsightsapi/models.go | 2 +- .../mgmt/policyinsights/models.go | 2 +- .../policyinsightsapi/models.go | 2 +- .../postgresql/mgmt/postgresql/models.go | 2 +- .../mgmt/postgresql/postgresqlapi/models.go | 2 +- .../mgmt/powerbidedicated/models.go | 2 +- .../powerbidedicatedapi/models.go | 2 +- .../mgmt/powerbiembedded/models.go | 2 +- .../powerbiembeddedapi/models.go | 2 +- .../mgmt/iothub/iothubapi/models.go | 2 +- .../mgmt/iothub/models.go | 2 +- .../mgmt/backup/backupapi/models.go | 2 +- .../recoveryservices/mgmt/backup/models.go | 2 +- .../mgmt/recoveryservices/models.go | 2 +- .../recoveryservicesapi/models.go | 2 +- .../mgmt/siterecovery/models.go | 2 +- .../siterecovery/siterecoveryapi/models.go | 2 +- profiles/latest/redis/mgmt/redis/models.go | 2 +- .../redis/mgmt/redis/redisapi/models.go | 2 +- profiles/latest/relay/mgmt/relay/models.go | 2 +- .../relay/mgmt/relay/relayapi/models.go | 2 +- .../reservations/mgmt/reservations/models.go | 2 +- .../reservations/reservationsapi/models.go | 2 +- .../mgmt/resourcehealth/models.go | 2 +- .../resourcehealthapi/models.go | 2 +- .../mgmt/features/featuresapi/models.go | 2 +- .../latest/resources/mgmt/features/models.go | 2 +- .../resources/mgmt/links/linksapi/models.go | 2 +- .../latest/resources/mgmt/links/models.go | 2 +- .../resources/mgmt/locks/locksapi/models.go | 2 +- .../latest/resources/mgmt/locks/models.go | 2 +- .../managedapplicationsapi/models.go | 2 +- .../mgmt/managedapplications/models.go | 2 +- .../latest/resources/mgmt/policy/models.go | 2 +- .../resources/mgmt/policy/policyapi/models.go | 2 +- .../latest/resources/mgmt/resources/models.go | 2 +- .../mgmt/resources/resourcesapi/models.go | 2 +- .../resources/mgmt/subscriptions/models.go | 2 +- .../subscriptions/subscriptionsapi/models.go | 2 +- .../latest/scheduler/mgmt/scheduler/models.go | 2 +- .../mgmt/scheduler/schedulerapi/models.go | 2 +- profiles/latest/search/mgmt/search/models.go | 2 +- .../search/mgmt/search/searchapi/models.go | 2 +- .../servicebus/mgmt/servicebus/models.go | 2 +- .../mgmt/servicebus/servicebusapi/models.go | 2 +- .../mgmt/servicefabric/models.go | 2 +- .../servicefabric/servicefabric/models.go | 2 +- .../servicefabric/servicefabricapi/models.go | 2 +- .../latest/signalr/mgmt/signalr/models.go | 2 +- .../signalr/mgmt/signalr/signalrapi/models.go | 2 +- profiles/latest/sql/mgmt/sql/models.go | 2 +- profiles/latest/sql/mgmt/sql/sqlapi/models.go | 2 +- .../datalake/storagedatalake/models.go | 2 +- .../storagedatalakeapi/models.go | 2 +- .../datalake/storagedatalake/models.go | 2 +- .../storagedatalakeapi/models.go | 2 +- .../latest/storage/mgmt/storage/models.go | 2 +- .../storage/mgmt/storage/storageapi/models.go | 2 +- .../mgmt/storageimportexport/models.go | 2 +- .../storageimportexportapi/models.go | 2 +- .../storagesync/mgmt/storagesync/models.go | 2 +- .../mgmt/storagesync/storagesyncapi/models.go | 2 +- .../mgmt/storsimple/models.go | 2 +- .../mgmt/storsimple/storsimpleapi/models.go | 2 +- .../mgmt/storsimple/models.go | 2 +- .../mgmt/storsimple/storsimpleapi/models.go | 2 +- .../mgmt/streamanalytics/models.go | 2 +- .../streamanalyticsapi/models.go | 2 +- .../mgmt/timeseriesinsights/models.go | 2 +- .../timeseriesinsightsapi/models.go | 2 +- .../mgmt/trafficmanager/models.go | 2 +- .../trafficmanagerapi/models.go | 2 +- profiles/latest/web/mgmt/web/models.go | 2 +- profiles/latest/web/mgmt/web/webapi/models.go | 2 +- .../adhybridhealthserviceapi/models.go | 2 +- .../mgmt/adhybridhealthservice/models.go | 2 +- .../advisor/mgmt/advisor/advisorapi/models.go | 2 +- .../preview/advisor/mgmt/advisor/models.go | 2 +- .../alertsmanagementapi/models.go | 2 +- .../mgmt/alertsmanagement/models.go | 2 +- .../analysisservicesapi/models.go | 2 +- .../mgmt/analysisservices/models.go | 2 +- .../apimanagement/apimanagementapi/models.go | 2 +- .../mgmt/apimanagement/models.go | 2 +- .../preview/appinsights/insights/models.go | 2 +- .../mgmt/insights/insightsapi/models.go | 2 +- .../appinsights/mgmt/insights/models.go | 2 +- .../authorization/authorizationapi/models.go | 2 +- .../mgmt/authorization/models.go | 2 +- .../mgmt/automation/automationapi/models.go | 2 +- .../automation/mgmt/automation/models.go | 2 +- .../preview/azsadmin/mgmt/fabric/models.go | 2 +- .../mgmt/infrastructureinsights/models.go | 2 +- .../mgmt/azurestack/azurestackapi/models.go | 2 +- .../azurestack/mgmt/azurestack/models.go | 2 +- .../preview/batch/batch/batchapi/models.go | 2 +- profiles/preview/batch/batch/models.go | 2 +- .../batch/mgmt/batch/batchapi/models.go | 2 +- profiles/preview/batch/mgmt/batch/models.go | 2 +- .../batchai/mgmt/batchai/batchaiapi/models.go | 2 +- .../preview/batchai/mgmt/batchai/models.go | 2 +- .../preview/cdn/mgmt/cdn/cdnapi/models.go | 2 +- profiles/preview/cdn/mgmt/cdn/models.go | 2 +- .../autosuggest/autosuggestapi/models.go | 2 +- .../cognitiveservices/autosuggest/models.go | 2 +- .../computervisionapi/models.go | 2 +- .../computervision/models.go | 2 +- .../contentmoderatorapi/models.go | 2 +- .../contentmoderator/models.go | 2 +- .../customimagesearchapi/models.go | 2 +- .../customimagesearch/models.go | 2 +- .../customsearch/customsearchapi/models.go | 2 +- .../cognitiveservices/customsearch/models.go | 2 +- .../customvision/prediction/models.go | 2 +- .../prediction/predictionapi/models.go | 2 +- .../customvision/training/models.go | 2 +- .../training/trainingapi/models.go | 2 +- .../entitysearch/entitysearchapi/models.go | 2 +- .../cognitiveservices/entitysearch/models.go | 2 +- .../cognitiveservices/face/faceapi/models.go | 2 +- .../preview/cognitiveservices/face/models.go | 2 +- .../imagesearch/imagesearchapi/models.go | 2 +- .../cognitiveservices/imagesearch/models.go | 2 +- .../localsearch/localsearchapi/models.go | 2 +- .../cognitiveservices/localsearch/models.go | 2 +- .../luis/authoring/authoringapi/models.go | 2 +- .../luis/authoring/models.go | 2 +- .../luis/programmatic/models.go | 2 +- .../cognitiveservices/luis/runtime/models.go | 2 +- .../luis/runtime/runtimeapi/models.go | 2 +- .../cognitiveservicesapi/models.go | 2 +- .../mgmt/cognitiveservices/models.go | 2 +- .../cognitiveservices/newssearch/models.go | 2 +- .../newssearch/newssearchapi/models.go | 2 +- .../cognitiveservices/qnamaker/models.go | 2 +- .../qnamaker/qnamakerapi/models.go | 2 +- .../cognitiveservices/spellcheck/models.go | 2 +- .../spellcheck/spellcheckapi/models.go | 2 +- .../cognitiveservices/textanalytics/models.go | 2 +- .../textanalytics/textanalyticsapi/models.go | 2 +- .../cognitiveservices/videosearch/models.go | 2 +- .../videosearch/videosearchapi/models.go | 2 +- .../cognitiveservices/websearch/models.go | 2 +- .../websearch/websearchapi/models.go | 2 +- .../compute/mgmt/compute/computeapi/models.go | 2 +- .../preview/compute/mgmt/compute/models.go | 2 +- profiles/preview/compute/mgmt/skus/models.go | 2 +- .../compute/mgmt/skus/skusapi/models.go | 2 +- .../mgmt/consumption/consumptionapi/models.go | 2 +- .../consumption/mgmt/consumption/models.go | 2 +- .../containerinstanceapi/models.go | 2 +- .../mgmt/containerinstance/models.go | 2 +- .../containerregistryapi/models.go | 2 +- .../mgmt/containerregistry/models.go | 2 +- .../containerserviceapi/models.go | 2 +- .../mgmt/containerservice/models.go | 2 +- .../mgmt/documentdb/documentdbapi/models.go | 2 +- .../cosmos-db/mgmt/documentdb/models.go | 2 +- .../costmanagementapi/models.go | 2 +- .../mgmt/costmanagement/models.go | 2 +- .../customerinsightsapi/models.go | 2 +- .../mgmt/customerinsights/models.go | 2 +- .../databox/mgmt/databox/databoxapi/models.go | 2 +- .../preview/databox/mgmt/databox/models.go | 2 +- .../mgmt/databricks/databricksapi/models.go | 2 +- .../databricks/mgmt/databricks/models.go | 2 +- .../mgmt/datacatalog/datacatalogapi/models.go | 2 +- .../datacatalog/mgmt/datacatalog/models.go | 2 +- .../mgmt/datafactory/datafactoryapi/models.go | 2 +- .../datafactory/mgmt/datafactory/models.go | 2 +- .../analytics/catalog/catalogapi/models.go | 2 +- .../datalake/analytics/catalog/models.go | 2 +- .../datalake/analytics/job/jobapi/models.go | 2 +- .../preview/datalake/analytics/job/models.go | 2 +- .../mgmt/account/accountapi/models.go | 2 +- .../datalake/analytics/mgmt/account/models.go | 2 +- .../store/filesystem/filesystemapi/models.go | 2 +- .../datalake/store/filesystem/models.go | 2 +- .../store/mgmt/account/accountapi/models.go | 2 +- .../datalake/store/mgmt/account/models.go | 2 +- .../datamigration/datamigrationapi/models.go | 2 +- .../mgmt/datamigration/models.go | 2 +- .../devtestlabs/mgmt/dtl/dtlapi/models.go | 2 +- .../preview/devtestlabs/mgmt/dtl/models.go | 2 +- .../preview/dns/mgmt/dns/dnsapi/models.go | 2 +- profiles/preview/dns/mgmt/dns/models.go | 2 +- .../domainservices/mgmt/aad/aadapi/models.go | 2 +- .../preview/domainservices/mgmt/aad/models.go | 2 +- .../mgmt/edgegateway/edgegatewayapi/models.go | 34 + .../edgegateway/mgmt/edgegateway/models.go | 752 +++ .../eventgrid/eventgridapi/models.go | 2 +- .../preview/eventgrid/eventgrid/models.go | 2 +- .../mgmt/eventgrid/eventgridapi/models.go | 2 +- .../eventgrid/mgmt/eventgrid/models.go | 2 +- .../mgmt/eventhub/eventhubapi/models.go | 2 +- .../preview/eventhub/mgmt/eventhub/models.go | 2 +- .../graphrbac/graphrbacapi/models.go | 2 +- .../preview/graphrbac/graphrbac/models.go | 2 +- .../mgmt/iotcentral/iotcentralapi/models.go | 2 +- .../iotcentral/mgmt/iotcentral/models.go | 2 +- .../iothub/mgmt/devices/devicesapi/models.go | 2 +- .../preview/iothub/mgmt/devices/models.go | 2 +- .../keyvault/keyvault/keyvaultapi/models.go | 2 +- profiles/preview/keyvault/keyvault/models.go | 2 +- .../mgmt/keyvault/keyvaultapi/models.go | 2 +- .../preview/keyvault/mgmt/keyvault/models.go | 2 +- .../mgmt/labservices/labservicesapi/models.go | 2 +- .../labservices/mgmt/labservices/models.go | 2 +- .../logic/mgmt/logic/logicapi/models.go | 2 +- profiles/preview/logic/mgmt/logic/models.go | 2 +- .../machinelearning/mgmt/compute/models.go | 2 +- .../mgmt/webservices/models.go | 2 +- .../mgmt/webservices/webservicesapi/models.go | 2 +- .../machinelearning/mgmt/workspaces/models.go | 2 +- .../mgmt/workspaces/workspacesapi/models.go | 2 +- .../mgmt/managementpartner/models.go | 2 +- .../preview/maps/mgmt/maps/mapsapi/models.go | 2 +- profiles/preview/maps/mgmt/maps/models.go | 2 +- .../marketplaceorderingapi/models.go | 2 +- .../mgmt/marketplaceordering/models.go | 2 +- .../mgmt/media/mediaapi/models.go | 2 +- .../mediaservices/mgmt/media/models.go | 2 +- .../migrate/mgmt/migrate/migrateapi/models.go | 2 +- .../preview/migrate/mgmt/migrate/models.go | 2 +- .../mgmt/mobileengagement/models.go | 2 +- .../preview/monitor/mgmt/insights/models.go | 2 +- profiles/preview/msi/mgmt/msi/models.go | 2 +- .../preview/msi/mgmt/msi/msiapi/models.go | 2 +- profiles/preview/mysql/mgmt/mysql/models.go | 2 +- .../mysql/mgmt/mysql/mysqlapi/models.go | 2 +- .../preview/network/mgmt/network/models.go | 2 +- .../network/mgmt/network/networkapi/models.go | 2 +- .../mgmt/notificationhubs/models.go | 2 +- .../notificationhubsapi/models.go | 2 +- .../mgmt/operationalinsights/models.go | 2 +- .../operationalinsightsapi/models.go | 2 +- .../operationalinsights/models.go | 2 +- .../operationalinsightsapi/models.go | 2 +- .../mgmt/policyinsights/models.go | 2 +- .../policyinsightsapi/models.go | 2 +- .../postgresql/mgmt/postgresql/models.go | 2 +- .../mgmt/postgresql/postgresqlapi/models.go | 2 +- .../mgmt/powerbidedicated/models.go | 2 +- .../powerbidedicatedapi/models.go | 2 +- .../mgmt/powerbiembedded/models.go | 2 +- .../powerbiembeddedapi/models.go | 2 +- .../addons/mgmt/addons/addonsapi/models.go | 2 +- .../preview/addons/mgmt/addons/models.go | 2 +- .../advisor/mgmt/advisor/advisorapi/models.go | 2 +- .../preview/advisor/mgmt/advisor/models.go | 2 +- .../mgmt/alertsmanagement/models.go | 2 +- .../apimanagement/apimanagementapi/models.go | 2 +- .../ctrl/apimanagement/models.go | 2 +- .../apimanagement/apimanagementapi/models.go | 2 +- .../mgmt/apimanagement/models.go | 2 +- .../insights/insightsapi/models.go | 2 +- .../preview/appinsights/insights/models.go | 2 +- .../authorization/authorizationapi/models.go | 2 +- .../mgmt/authorization/models.go | 2 +- .../mgmt/automation/automationapi/models.go | 2 +- .../automation/mgmt/automation/models.go | 2 +- .../batchai/mgmt/batchai/batchaiapi/models.go | 2 +- .../preview/batchai/mgmt/batchai/models.go | 2 +- .../billing/mgmt/billing/billingapi/models.go | 2 +- .../preview/billing/mgmt/billing/models.go | 2 +- .../mgmt/blueprint/blueprintapi/models.go | 2 +- .../blueprint/mgmt/blueprint/models.go | 2 +- .../mgmt/botservice/botserviceapi/models.go | 2 +- .../botservice/mgmt/botservice/models.go | 2 +- .../cognitiveservicesapi/models.go | 2 +- .../mgmt/cognitiveservices/models.go | 2 +- .../cognitiveservices/visualsearch/models.go | 2 +- .../visualsearch/visualsearchapi/models.go | 2 +- .../mgmt/commerce/commerceapi/models.go | 2 +- .../preview/commerce/mgmt/commerce/models.go | 2 +- .../compute/mgmt/compute/computeapi/models.go | 2 +- .../preview/compute/mgmt/compute/models.go | 2 +- .../mgmt/consumption/consumptionapi/models.go | 2 +- .../consumption/mgmt/consumption/models.go | 2 +- .../containerinstanceapi/models.go | 2 +- .../mgmt/containerinstance/models.go | 2 +- .../containerregistryapi/models.go | 2 +- .../mgmt/containerregistry/models.go | 2 +- .../containerserviceapi/models.go | 2 +- .../mgmt/containerservice/models.go | 2 +- .../costmanagementapi/models.go | 2 +- .../mgmt/costmanagement/models.go | 2 +- .../mgmt/datafactory/datafactoryapi/models.go | 2 +- .../datafactory/mgmt/datafactory/models.go | 2 +- .../analytics/catalog/catalogapi/models.go | 2 +- .../datalake/analytics/catalog/models.go | 2 +- .../datalake/analytics/job/jobapi/models.go | 2 +- .../preview/datalake/analytics/job/models.go | 2 +- .../mgmt/account/accountapi/models.go | 2 +- .../datalake/analytics/mgmt/account/models.go | 2 +- .../store/filesystem/filesystemapi/models.go | 2 +- .../datalake/store/filesystem/models.go | 2 +- .../store/mgmt/account/accountapi/models.go | 2 +- .../datalake/store/mgmt/account/models.go | 2 +- .../datamigration/datamigrationapi/models.go | 2 +- .../mgmt/datamigration/models.go | 2 +- .../deploymentmanagerapi/models.go | 2 +- .../mgmt/deploymentmanager/models.go | 2 +- .../mgmt/devspaces/devspacesapi/models.go | 2 +- .../devspaces/mgmt/devspaces/models.go | 2 +- .../devtestlabs/mgmt/dtl/dtlapi/models.go | 2 +- .../preview/devtestlabs/mgmt/dtl/models.go | 2 +- .../preview/dns/mgmt/dns/dnsapi/models.go | 2 +- .../preview/preview/dns/mgmt/dns/models.go | 2 +- .../engagementfabricapi/models.go | 2 +- .../mgmt/engagementfabric/models.go | 2 +- .../mgmt/eventgrid/eventgridapi/models.go | 2 +- .../eventgrid/mgmt/eventgrid/models.go | 2 +- .../mgmt/eventhub/eventhubapi/models.go | 2 +- .../preview/eventhub/mgmt/eventhub/models.go | 2 +- .../mgmt/frontdoor/frontdoorapi/models.go | 2 +- .../frontdoor/mgmt/frontdoor/models.go | 2 +- .../mgmt/hanaonazure/hanaonazureapi/models.go | 2 +- .../hanaonazure/mgmt/hanaonazure/models.go | 2 +- .../hdinsight/hdinsightapi/models.go | 2 +- .../preview/hdinsight/hdinsight/models.go | 2 +- .../mgmt/hdinsight/hdinsightapi/models.go | 2 +- .../hdinsight/mgmt/hdinsight/models.go | 2 +- .../mgmt/iotspaces/iotspacesapi/models.go | 2 +- .../iotspaces/mgmt/iotspaces/models.go | 2 +- .../kusto/mgmt/kusto/kustoapi/models.go | 2 +- .../preview/kusto/mgmt/kusto/models.go | 2 +- .../logic/mgmt/logic/logicapi/models.go | 2 +- .../preview/logic/mgmt/logic/models.go | 2 +- .../commitmentplansapi/models.go | 2 +- .../mgmt/commitmentplans/models.go | 2 +- .../mgmt/compute/computeapi/models.go | 2 +- .../machinelearning/mgmt/compute/models.go | 2 +- .../experimentationapi/models.go | 2 +- .../mgmt/experimentation/models.go | 2 +- .../machinelearning/mgmt/services/models.go | 2 +- .../mgmt/services/servicesapi/models.go | 2 +- .../mgmt/webservices/models.go | 2 +- .../mgmt/webservices/webservicesapi/models.go | 2 +- .../managementpartnerapi/models.go | 2 +- .../mgmt/managementpartner/models.go | 2 +- .../mariadb/mgmt/mariadb/mariadbapi/models.go | 2 +- .../preview/mariadb/mgmt/mariadb/models.go | 2 +- .../mgmt/media/mediaapi/models.go | 2 +- .../mediaservices/mgmt/media/models.go | 2 +- .../mgmt/insights/insightsapi/models.go | 2 +- .../preview/monitor/mgmt/insights/models.go | 2 +- .../preview/preview/monitor/monitor/models.go | 2 +- .../monitor/monitor/monitorapi/models.go | 2 +- .../preview/preview/msi/mgmt/msi/models.go | 2 +- .../preview/msi/mgmt/msi/msiapi/models.go | 2 +- .../preview/network/mgmt/network/models.go | 2 +- .../network/mgmt/network/networkapi/models.go | 2 +- .../mgmt/operationalinsights/models.go | 2 +- .../operationalinsightsapi/models.go | 2 +- .../mgmt/servicemap/models.go | 2 +- .../mgmt/servicemap/servicemapapi/models.go | 2 +- .../mgmt/operationsmanagement/models.go | 2 +- .../operationsmanagementapi/models.go | 2 +- .../mgmt/policyinsights/models.go | 2 +- .../policyinsightsapi/models.go | 2 +- .../mgmt/iothub/iothubapi/models.go | 2 +- .../mgmt/iothub/models.go | 2 +- .../reservations/mgmt/reservations/models.go | 2 +- .../reservations/reservationsapi/models.go | 2 +- .../managedapplicationsapi/models.go | 2 +- .../mgmt/managedapplications/models.go | 2 +- .../managementgroupsapi/models.go | 2 +- .../resources/mgmt/managementgroups/models.go | 2 +- .../preview/resources/mgmt/policy/models.go | 2 +- .../resources/mgmt/policy/policyapi/models.go | 2 +- .../scheduler/mgmt/scheduler/models.go | 2 +- .../mgmt/scheduler/schedulerapi/models.go | 2 +- .../preview/security/mgmt/security/models.go | 2 +- .../mgmt/security/securityapi/models.go | 2 +- .../mgmt/servicefabric/models.go | 2 +- .../mgmt/servicefabricmesh/models.go | 2 +- .../servicefabricmeshapi/models.go | 2 +- .../preview/signalr/mgmt/signalr/models.go | 2 +- .../signalr/mgmt/signalr/signalrapi/models.go | 2 +- .../preview/preview/sql/mgmt/sql/models.go | 2 +- .../preview/sql/mgmt/sql/sqlapi/models.go | 2 +- .../mgmt/sqlvirtualmachine/models.go | 2 +- .../sqlvirtualmachineapi/models.go | 2 +- .../datalake/storagedatalake/models.go | 2 +- .../storagedatalakeapi/models.go | 2 +- .../preview/storage/mgmt/storage/models.go | 2 +- .../storage/mgmt/storage/storageapi/models.go | 2 +- .../storagesync/mgmt/storagesync/models.go | 2 +- .../mgmt/storagesync/storagesyncapi/models.go | 2 +- .../subscription/mgmt/subscription/models.go | 2 +- .../subscription/subscriptionapi/models.go | 2 +- .../mgmt/timeseriesinsights/models.go | 2 +- .../timeseriesinsightsapi/models.go | 2 +- .../mgmt/trafficmanager/models.go | 2 +- .../trafficmanagerapi/models.go | 2 +- .../visualstudio/mgmt/visualstudio/models.go | 2 +- .../visualstudio/visualstudioapi/models.go | 2 +- .../preview/preview/web/mgmt/web/models.go | 2 +- .../preview/web/mgmt/web/webapi/models.go | 2 +- .../mgmt/workloadmonitor/models.go | 2 +- .../workloadmonitorapi/models.go | 2 +- .../mgmt/iothub/iothubapi/models.go | 2 +- .../mgmt/iothub/models.go | 2 +- .../mgmt/backup/backupapi/models.go | 2 +- .../recoveryservices/mgmt/backup/models.go | 2 +- .../mgmt/recoveryservices/models.go | 2 +- .../recoveryservicesapi/models.go | 2 +- .../mgmt/siterecovery/models.go | 2 +- .../siterecovery/siterecoveryapi/models.go | 2 +- profiles/preview/redis/mgmt/redis/models.go | 2 +- .../redis/mgmt/redis/redisapi/models.go | 2 +- profiles/preview/relay/mgmt/relay/models.go | 2 +- .../relay/mgmt/relay/relayapi/models.go | 2 +- .../reservations/mgmt/reservations/models.go | 2 +- .../reservations/reservationsapi/models.go | 2 +- .../mgmt/resourcehealth/models.go | 2 +- .../resourcehealthapi/models.go | 2 +- .../mgmt/features/featuresapi/models.go | 2 +- .../preview/resources/mgmt/features/models.go | 2 +- .../resources/mgmt/links/linksapi/models.go | 2 +- .../preview/resources/mgmt/links/models.go | 2 +- .../resources/mgmt/locks/locksapi/models.go | 2 +- .../preview/resources/mgmt/locks/models.go | 2 +- .../managedapplicationsapi/models.go | 2 +- .../mgmt/managedapplications/models.go | 2 +- .../preview/resources/mgmt/policy/models.go | 2 +- .../resources/mgmt/policy/policyapi/models.go | 2 +- .../resources/mgmt/resources/models.go | 2 +- .../mgmt/resources/resourcesapi/models.go | 2 +- .../resources/mgmt/subscriptions/models.go | 2 +- .../subscriptions/subscriptionsapi/models.go | 2 +- .../scheduler/mgmt/scheduler/models.go | 2 +- .../mgmt/scheduler/schedulerapi/models.go | 2 +- profiles/preview/search/mgmt/search/models.go | 2 +- .../search/mgmt/search/searchapi/models.go | 2 +- .../servicebus/mgmt/servicebus/models.go | 2 +- .../mgmt/servicebus/servicebusapi/models.go | 2 +- .../mgmt/servicefabric/models.go | 2 +- .../servicefabric/servicefabric/models.go | 2 +- .../servicefabric/servicefabricapi/models.go | 2 +- .../preview/signalr/mgmt/signalr/models.go | 2 +- .../signalr/mgmt/signalr/signalrapi/models.go | 2 +- profiles/preview/sql/mgmt/sql/models.go | 2 +- .../preview/sql/mgmt/sql/sqlapi/models.go | 2 +- .../datalake/storagedatalake/models.go | 2 +- .../storagedatalakeapi/models.go | 2 +- .../datalake/storagedatalake/models.go | 2 +- .../storagedatalakeapi/models.go | 2 +- .../preview/storage/mgmt/storage/models.go | 2 +- .../storage/mgmt/storage/storageapi/models.go | 2 +- .../mgmt/storageimportexport/models.go | 2 +- .../storageimportexportapi/models.go | 2 +- .../storagesync/mgmt/storagesync/models.go | 2 +- .../mgmt/storagesync/storagesyncapi/models.go | 2 +- .../mgmt/storsimple/models.go | 2 +- .../mgmt/storsimple/storsimpleapi/models.go | 2 +- .../mgmt/storsimple/models.go | 2 +- .../mgmt/storsimple/storsimpleapi/models.go | 2 +- .../mgmt/streamanalytics/models.go | 2 +- .../streamanalyticsapi/models.go | 2 +- .../mgmt/timeseriesinsights/models.go | 2 +- .../timeseriesinsightsapi/models.go | 2 +- .../mgmt/trafficmanager/models.go | 2 +- .../trafficmanagerapi/models.go | 2 +- profiles/preview/web/mgmt/web/models.go | 2 +- .../preview/web/mgmt/web/webapi/models.go | 2 +- .../mgmt/2018-07-01/edgegateway/alerts.go | 235 + .../edgegateway/bandwidthschedules.go | 407 ++ .../mgmt/2018-07-01/edgegateway/client.go | 51 + .../mgmt/2018-07-01/edgegateway/devices.go | 1316 ++++ .../edgegateway/edgegatewayapi/interfaces.go | 137 + .../mgmt/2018-07-01/edgegateway/models.go | 5276 +++++++++++++++++ .../mgmt/2018-07-01/edgegateway/operations.go | 147 + .../edgegateway/operationsstatus.go | 120 + .../mgmt/2018-07-01/edgegateway/orders.go | 412 ++ .../mgmt/2018-07-01/edgegateway/roles.go | 395 ++ .../mgmt/2018-07-01/edgegateway/shares.go | 485 ++ .../edgegateway/storageaccountcredentials.go | 406 ++ .../mgmt/2018-07-01/edgegateway/triggers.go | 395 ++ .../mgmt/2018-07-01/edgegateway/users.go | 405 ++ .../mgmt/2018-07-01/edgegateway/version.go | 30 + 689 files changed, 12489 insertions(+), 678 deletions(-) create mode 100644 profiles/latest/edgegateway/mgmt/edgegateway/edgegatewayapi/models.go create mode 100644 profiles/latest/edgegateway/mgmt/edgegateway/models.go create mode 100644 profiles/preview/edgegateway/mgmt/edgegateway/edgegatewayapi/models.go create mode 100644 profiles/preview/edgegateway/mgmt/edgegateway/models.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/alerts.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/bandwidthschedules.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/client.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/devices.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/edgegatewayapi/interfaces.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/models.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/operations.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/operationsstatus.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/orders.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/roles.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/shares.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/storageaccountcredentials.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/triggers.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/users.go create mode 100644 services/edgegateway/mgmt/2018-07-01/edgegateway/version.go diff --git a/profiles/2017-03-09/compute/mgmt/compute/computeapi/models.go b/profiles/2017-03-09/compute/mgmt/compute/computeapi/models.go index 07ee885ee51b..2d15ffd1c270 100644 --- a/profiles/2017-03-09/compute/mgmt/compute/computeapi/models.go +++ b/profiles/2017-03-09/compute/mgmt/compute/computeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/compute/mgmt/compute/models.go b/profiles/2017-03-09/compute/mgmt/compute/models.go index df548ef8651a..6100bd0f7c1b 100644 --- a/profiles/2017-03-09/compute/mgmt/compute/models.go +++ b/profiles/2017-03-09/compute/mgmt/compute/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/keyvault/keyvault/keyvaultapi/models.go b/profiles/2017-03-09/keyvault/keyvault/keyvaultapi/models.go index 68a7e5165339..8eb7279d9471 100644 --- a/profiles/2017-03-09/keyvault/keyvault/keyvaultapi/models.go +++ b/profiles/2017-03-09/keyvault/keyvault/keyvaultapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/keyvault/keyvault/models.go b/profiles/2017-03-09/keyvault/keyvault/models.go index 54aef6e5e210..1831ae1581f5 100644 --- a/profiles/2017-03-09/keyvault/keyvault/models.go +++ b/profiles/2017-03-09/keyvault/keyvault/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/keyvault/mgmt/keyvault/keyvaultapi/models.go b/profiles/2017-03-09/keyvault/mgmt/keyvault/keyvaultapi/models.go index b6b21df31bd4..c34497fcec1b 100644 --- a/profiles/2017-03-09/keyvault/mgmt/keyvault/keyvaultapi/models.go +++ b/profiles/2017-03-09/keyvault/mgmt/keyvault/keyvaultapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/keyvault/mgmt/keyvault/models.go b/profiles/2017-03-09/keyvault/mgmt/keyvault/models.go index 842914137f81..7c140d2cb6bf 100644 --- a/profiles/2017-03-09/keyvault/mgmt/keyvault/models.go +++ b/profiles/2017-03-09/keyvault/mgmt/keyvault/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/network/mgmt/network/models.go b/profiles/2017-03-09/network/mgmt/network/models.go index f7a718fefbdf..2cf9fe3ccd05 100644 --- a/profiles/2017-03-09/network/mgmt/network/models.go +++ b/profiles/2017-03-09/network/mgmt/network/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/network/mgmt/network/networkapi/models.go b/profiles/2017-03-09/network/mgmt/network/networkapi/models.go index a4aab052e70f..c3f0cfef3de1 100644 --- a/profiles/2017-03-09/network/mgmt/network/networkapi/models.go +++ b/profiles/2017-03-09/network/mgmt/network/networkapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/resources/mgmt/features/featuresapi/models.go b/profiles/2017-03-09/resources/mgmt/features/featuresapi/models.go index 6437e561a623..2e397b85d5a8 100644 --- a/profiles/2017-03-09/resources/mgmt/features/featuresapi/models.go +++ b/profiles/2017-03-09/resources/mgmt/features/featuresapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/resources/mgmt/features/models.go b/profiles/2017-03-09/resources/mgmt/features/models.go index 04f70e03c939..003dcd49e98e 100644 --- a/profiles/2017-03-09/resources/mgmt/features/models.go +++ b/profiles/2017-03-09/resources/mgmt/features/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/resources/mgmt/links/linksapi/models.go b/profiles/2017-03-09/resources/mgmt/links/linksapi/models.go index 0a921ac9d266..b0dbc943edc6 100644 --- a/profiles/2017-03-09/resources/mgmt/links/linksapi/models.go +++ b/profiles/2017-03-09/resources/mgmt/links/linksapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/resources/mgmt/links/models.go b/profiles/2017-03-09/resources/mgmt/links/models.go index 9649d6b9e4f8..6b3c2bdb7abe 100644 --- a/profiles/2017-03-09/resources/mgmt/links/models.go +++ b/profiles/2017-03-09/resources/mgmt/links/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/resources/mgmt/locks/locksapi/models.go b/profiles/2017-03-09/resources/mgmt/locks/locksapi/models.go index 4b8548b9f487..1ec8c0a6f3d2 100644 --- a/profiles/2017-03-09/resources/mgmt/locks/locksapi/models.go +++ b/profiles/2017-03-09/resources/mgmt/locks/locksapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/resources/mgmt/locks/models.go b/profiles/2017-03-09/resources/mgmt/locks/models.go index 438977bcdea9..6b38c8bf8fa4 100644 --- a/profiles/2017-03-09/resources/mgmt/locks/models.go +++ b/profiles/2017-03-09/resources/mgmt/locks/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/resources/mgmt/policy/models.go b/profiles/2017-03-09/resources/mgmt/policy/models.go index 2ae37cd993ed..2cca9b2f1cdd 100644 --- a/profiles/2017-03-09/resources/mgmt/policy/models.go +++ b/profiles/2017-03-09/resources/mgmt/policy/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/resources/mgmt/resources/models.go b/profiles/2017-03-09/resources/mgmt/resources/models.go index cbe939d82b38..c791818c4e2b 100644 --- a/profiles/2017-03-09/resources/mgmt/resources/models.go +++ b/profiles/2017-03-09/resources/mgmt/resources/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/resources/mgmt/resources/resourcesapi/models.go b/profiles/2017-03-09/resources/mgmt/resources/resourcesapi/models.go index a3370d78dbed..0429d6e102d7 100644 --- a/profiles/2017-03-09/resources/mgmt/resources/resourcesapi/models.go +++ b/profiles/2017-03-09/resources/mgmt/resources/resourcesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/resources/mgmt/subscriptions/models.go b/profiles/2017-03-09/resources/mgmt/subscriptions/models.go index 78dc271b17e3..cb1aa0b6f920 100644 --- a/profiles/2017-03-09/resources/mgmt/subscriptions/models.go +++ b/profiles/2017-03-09/resources/mgmt/subscriptions/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/resources/mgmt/subscriptions/subscriptionsapi/models.go b/profiles/2017-03-09/resources/mgmt/subscriptions/subscriptionsapi/models.go index 68a56e8ddf96..5d49a61a940e 100644 --- a/profiles/2017-03-09/resources/mgmt/subscriptions/subscriptionsapi/models.go +++ b/profiles/2017-03-09/resources/mgmt/subscriptions/subscriptionsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/storage/mgmt/storage/models.go b/profiles/2017-03-09/storage/mgmt/storage/models.go index 334532511859..1af1d6eb0304 100644 --- a/profiles/2017-03-09/storage/mgmt/storage/models.go +++ b/profiles/2017-03-09/storage/mgmt/storage/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2017-03-09/storage/mgmt/storage/storageapi/models.go b/profiles/2017-03-09/storage/mgmt/storage/storageapi/models.go index 2ff9fba8f872..10bc022e37b5 100644 --- a/profiles/2017-03-09/storage/mgmt/storage/storageapi/models.go +++ b/profiles/2017-03-09/storage/mgmt/storage/storageapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/authorization/mgmt/authorization/authorizationapi/models.go b/profiles/2018-03-01/authorization/mgmt/authorization/authorizationapi/models.go index dc9bf8a8c632..1d3a9dcb0495 100644 --- a/profiles/2018-03-01/authorization/mgmt/authorization/authorizationapi/models.go +++ b/profiles/2018-03-01/authorization/mgmt/authorization/authorizationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/authorization/mgmt/authorization/models.go b/profiles/2018-03-01/authorization/mgmt/authorization/models.go index b25221283d40..f2d8876feb0a 100644 --- a/profiles/2018-03-01/authorization/mgmt/authorization/models.go +++ b/profiles/2018-03-01/authorization/mgmt/authorization/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/compute/mgmt/compute/computeapi/models.go b/profiles/2018-03-01/compute/mgmt/compute/computeapi/models.go index 59218ea13c7b..7ba6567c83e2 100644 --- a/profiles/2018-03-01/compute/mgmt/compute/computeapi/models.go +++ b/profiles/2018-03-01/compute/mgmt/compute/computeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/compute/mgmt/compute/models.go b/profiles/2018-03-01/compute/mgmt/compute/models.go index 12ab5cf006a2..aaa74bdc5ec8 100644 --- a/profiles/2018-03-01/compute/mgmt/compute/models.go +++ b/profiles/2018-03-01/compute/mgmt/compute/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/dns/mgmt/dns/dnsapi/models.go b/profiles/2018-03-01/dns/mgmt/dns/dnsapi/models.go index 1743bcadde0b..ae04cf57d981 100644 --- a/profiles/2018-03-01/dns/mgmt/dns/dnsapi/models.go +++ b/profiles/2018-03-01/dns/mgmt/dns/dnsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/dns/mgmt/dns/models.go b/profiles/2018-03-01/dns/mgmt/dns/models.go index 320a82ff34d5..2b8f1db99547 100644 --- a/profiles/2018-03-01/dns/mgmt/dns/models.go +++ b/profiles/2018-03-01/dns/mgmt/dns/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/keyvault/keyvault/keyvaultapi/models.go b/profiles/2018-03-01/keyvault/keyvault/keyvaultapi/models.go index 68a7e5165339..8eb7279d9471 100644 --- a/profiles/2018-03-01/keyvault/keyvault/keyvaultapi/models.go +++ b/profiles/2018-03-01/keyvault/keyvault/keyvaultapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/keyvault/keyvault/models.go b/profiles/2018-03-01/keyvault/keyvault/models.go index 308232999eb6..4c8d1ee9871b 100644 --- a/profiles/2018-03-01/keyvault/keyvault/models.go +++ b/profiles/2018-03-01/keyvault/keyvault/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/keyvault/mgmt/keyvault/keyvaultapi/models.go b/profiles/2018-03-01/keyvault/mgmt/keyvault/keyvaultapi/models.go index b6b21df31bd4..c34497fcec1b 100644 --- a/profiles/2018-03-01/keyvault/mgmt/keyvault/keyvaultapi/models.go +++ b/profiles/2018-03-01/keyvault/mgmt/keyvault/keyvaultapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/keyvault/mgmt/keyvault/models.go b/profiles/2018-03-01/keyvault/mgmt/keyvault/models.go index d4b5a1181b3a..d1b56baf72e7 100644 --- a/profiles/2018-03-01/keyvault/mgmt/keyvault/models.go +++ b/profiles/2018-03-01/keyvault/mgmt/keyvault/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/network/mgmt/network/models.go b/profiles/2018-03-01/network/mgmt/network/models.go index e0489e83d4d5..58f61affd67a 100644 --- a/profiles/2018-03-01/network/mgmt/network/models.go +++ b/profiles/2018-03-01/network/mgmt/network/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/network/mgmt/network/networkapi/models.go b/profiles/2018-03-01/network/mgmt/network/networkapi/models.go index ef916c3d11fa..53b52aa78812 100644 --- a/profiles/2018-03-01/network/mgmt/network/networkapi/models.go +++ b/profiles/2018-03-01/network/mgmt/network/networkapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/resources/mgmt/links/linksapi/models.go b/profiles/2018-03-01/resources/mgmt/links/linksapi/models.go index 0a921ac9d266..b0dbc943edc6 100644 --- a/profiles/2018-03-01/resources/mgmt/links/linksapi/models.go +++ b/profiles/2018-03-01/resources/mgmt/links/linksapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/resources/mgmt/links/models.go b/profiles/2018-03-01/resources/mgmt/links/models.go index 4c4211782849..c2e29b6b5bcb 100644 --- a/profiles/2018-03-01/resources/mgmt/links/models.go +++ b/profiles/2018-03-01/resources/mgmt/links/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/resources/mgmt/locks/locksapi/models.go b/profiles/2018-03-01/resources/mgmt/locks/locksapi/models.go index a533105f3454..de8c2e5d8d74 100644 --- a/profiles/2018-03-01/resources/mgmt/locks/locksapi/models.go +++ b/profiles/2018-03-01/resources/mgmt/locks/locksapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/resources/mgmt/locks/models.go b/profiles/2018-03-01/resources/mgmt/locks/models.go index 0a8ab2911f99..c46e1441c11b 100644 --- a/profiles/2018-03-01/resources/mgmt/locks/models.go +++ b/profiles/2018-03-01/resources/mgmt/locks/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/resources/mgmt/policy/models.go b/profiles/2018-03-01/resources/mgmt/policy/models.go index 30af2efe6597..1135000b9f51 100644 --- a/profiles/2018-03-01/resources/mgmt/policy/models.go +++ b/profiles/2018-03-01/resources/mgmt/policy/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/resources/mgmt/policy/policyapi/models.go b/profiles/2018-03-01/resources/mgmt/policy/policyapi/models.go index a8a398beb98d..b11f221e60a5 100644 --- a/profiles/2018-03-01/resources/mgmt/policy/policyapi/models.go +++ b/profiles/2018-03-01/resources/mgmt/policy/policyapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/resources/mgmt/resources/models.go b/profiles/2018-03-01/resources/mgmt/resources/models.go index 714b2057b625..ec792b7371b4 100644 --- a/profiles/2018-03-01/resources/mgmt/resources/models.go +++ b/profiles/2018-03-01/resources/mgmt/resources/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/resources/mgmt/resources/resourcesapi/models.go b/profiles/2018-03-01/resources/mgmt/resources/resourcesapi/models.go index ded053037ec9..a7751111f006 100644 --- a/profiles/2018-03-01/resources/mgmt/resources/resourcesapi/models.go +++ b/profiles/2018-03-01/resources/mgmt/resources/resourcesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/resources/mgmt/subscriptions/models.go b/profiles/2018-03-01/resources/mgmt/subscriptions/models.go index 1048d33122a9..3fc0a30b7ef5 100644 --- a/profiles/2018-03-01/resources/mgmt/subscriptions/models.go +++ b/profiles/2018-03-01/resources/mgmt/subscriptions/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/resources/mgmt/subscriptions/subscriptionsapi/models.go b/profiles/2018-03-01/resources/mgmt/subscriptions/subscriptionsapi/models.go index 68a56e8ddf96..5d49a61a940e 100644 --- a/profiles/2018-03-01/resources/mgmt/subscriptions/subscriptionsapi/models.go +++ b/profiles/2018-03-01/resources/mgmt/subscriptions/subscriptionsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/storage/mgmt/storage/models.go b/profiles/2018-03-01/storage/mgmt/storage/models.go index 47bfc098c560..83cc89864c98 100644 --- a/profiles/2018-03-01/storage/mgmt/storage/models.go +++ b/profiles/2018-03-01/storage/mgmt/storage/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/storage/mgmt/storage/storageapi/models.go b/profiles/2018-03-01/storage/mgmt/storage/storageapi/models.go index 2ff9fba8f872..10bc022e37b5 100644 --- a/profiles/2018-03-01/storage/mgmt/storage/storageapi/models.go +++ b/profiles/2018-03-01/storage/mgmt/storage/storageapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/web/mgmt/web/models.go b/profiles/2018-03-01/web/mgmt/web/models.go index e4e1ebab6db2..628843b1ea3e 100644 --- a/profiles/2018-03-01/web/mgmt/web/models.go +++ b/profiles/2018-03-01/web/mgmt/web/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2018-03-01/web/mgmt/web/webapi/models.go b/profiles/2018-03-01/web/mgmt/web/webapi/models.go index 2d5330fc6282..18e527ffb27b 100644 --- a/profiles/2018-03-01/web/mgmt/web/webapi/models.go +++ b/profiles/2018-03-01/web/mgmt/web/webapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/adhybridhealthservice/mgmt/adhybridhealthservice/adhybridhealthserviceapi/models.go b/profiles/latest/adhybridhealthservice/mgmt/adhybridhealthservice/adhybridhealthserviceapi/models.go index 07e3ac854cf6..d0430824e120 100644 --- a/profiles/latest/adhybridhealthservice/mgmt/adhybridhealthservice/adhybridhealthserviceapi/models.go +++ b/profiles/latest/adhybridhealthservice/mgmt/adhybridhealthservice/adhybridhealthserviceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/adhybridhealthservice/mgmt/adhybridhealthservice/models.go b/profiles/latest/adhybridhealthservice/mgmt/adhybridhealthservice/models.go index 7b14d12c8ca4..c10afc9f6c6c 100644 --- a/profiles/latest/adhybridhealthservice/mgmt/adhybridhealthservice/models.go +++ b/profiles/latest/adhybridhealthservice/mgmt/adhybridhealthservice/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/advisor/mgmt/advisor/advisorapi/models.go b/profiles/latest/advisor/mgmt/advisor/advisorapi/models.go index dd5ce30ff467..7981a26eaeba 100644 --- a/profiles/latest/advisor/mgmt/advisor/advisorapi/models.go +++ b/profiles/latest/advisor/mgmt/advisor/advisorapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/advisor/mgmt/advisor/models.go b/profiles/latest/advisor/mgmt/advisor/models.go index c89920014876..7b6d7c530d5d 100644 --- a/profiles/latest/advisor/mgmt/advisor/models.go +++ b/profiles/latest/advisor/mgmt/advisor/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/alertsmanagement/mgmt/alertsmanagement/alertsmanagementapi/models.go b/profiles/latest/alertsmanagement/mgmt/alertsmanagement/alertsmanagementapi/models.go index 9a3dd1f19bb6..b81b0d37c69b 100644 --- a/profiles/latest/alertsmanagement/mgmt/alertsmanagement/alertsmanagementapi/models.go +++ b/profiles/latest/alertsmanagement/mgmt/alertsmanagement/alertsmanagementapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/alertsmanagement/mgmt/alertsmanagement/models.go b/profiles/latest/alertsmanagement/mgmt/alertsmanagement/models.go index 9de2d7949881..7f23a2b9d71d 100644 --- a/profiles/latest/alertsmanagement/mgmt/alertsmanagement/models.go +++ b/profiles/latest/alertsmanagement/mgmt/alertsmanagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/analysisservices/mgmt/analysisservices/analysisservicesapi/models.go b/profiles/latest/analysisservices/mgmt/analysisservices/analysisservicesapi/models.go index 722df0596fd2..f0e384bd4cdb 100644 --- a/profiles/latest/analysisservices/mgmt/analysisservices/analysisservicesapi/models.go +++ b/profiles/latest/analysisservices/mgmt/analysisservices/analysisservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/analysisservices/mgmt/analysisservices/models.go b/profiles/latest/analysisservices/mgmt/analysisservices/models.go index 6e92c1164431..e740b1301b82 100644 --- a/profiles/latest/analysisservices/mgmt/analysisservices/models.go +++ b/profiles/latest/analysisservices/mgmt/analysisservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/apimanagement/mgmt/apimanagement/apimanagementapi/models.go b/profiles/latest/apimanagement/mgmt/apimanagement/apimanagementapi/models.go index c4668dba6535..c2b5e88624ae 100644 --- a/profiles/latest/apimanagement/mgmt/apimanagement/apimanagementapi/models.go +++ b/profiles/latest/apimanagement/mgmt/apimanagement/apimanagementapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/apimanagement/mgmt/apimanagement/models.go b/profiles/latest/apimanagement/mgmt/apimanagement/models.go index d4acf48419e2..679f0bb4a8e1 100644 --- a/profiles/latest/apimanagement/mgmt/apimanagement/models.go +++ b/profiles/latest/apimanagement/mgmt/apimanagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/appinsights/insights/models.go b/profiles/latest/appinsights/insights/models.go index 31419b5a01d5..af0714dbc2bb 100644 --- a/profiles/latest/appinsights/insights/models.go +++ b/profiles/latest/appinsights/insights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/appinsights/mgmt/insights/insightsapi/models.go b/profiles/latest/appinsights/mgmt/insights/insightsapi/models.go index 9034c0b8c9cd..b5609afe38de 100644 --- a/profiles/latest/appinsights/mgmt/insights/insightsapi/models.go +++ b/profiles/latest/appinsights/mgmt/insights/insightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/appinsights/mgmt/insights/models.go b/profiles/latest/appinsights/mgmt/insights/models.go index 76570255772c..f6c5ca747cd8 100644 --- a/profiles/latest/appinsights/mgmt/insights/models.go +++ b/profiles/latest/appinsights/mgmt/insights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/authorization/mgmt/authorization/authorizationapi/models.go b/profiles/latest/authorization/mgmt/authorization/authorizationapi/models.go index dc9bf8a8c632..1d3a9dcb0495 100644 --- a/profiles/latest/authorization/mgmt/authorization/authorizationapi/models.go +++ b/profiles/latest/authorization/mgmt/authorization/authorizationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/authorization/mgmt/authorization/models.go b/profiles/latest/authorization/mgmt/authorization/models.go index 324c16c0f834..f965088d0b2f 100644 --- a/profiles/latest/authorization/mgmt/authorization/models.go +++ b/profiles/latest/authorization/mgmt/authorization/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/automation/mgmt/automation/automationapi/models.go b/profiles/latest/automation/mgmt/automation/automationapi/models.go index 1907748fccfb..4ecdab7a9cce 100644 --- a/profiles/latest/automation/mgmt/automation/automationapi/models.go +++ b/profiles/latest/automation/mgmt/automation/automationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/automation/mgmt/automation/models.go b/profiles/latest/automation/mgmt/automation/models.go index 5e7ccb2b2e21..70b8bb749ee3 100644 --- a/profiles/latest/automation/mgmt/automation/models.go +++ b/profiles/latest/automation/mgmt/automation/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/azsadmin/mgmt/fabric/models.go b/profiles/latest/azsadmin/mgmt/fabric/models.go index 56af74e23e76..4239e19f678e 100644 --- a/profiles/latest/azsadmin/mgmt/fabric/models.go +++ b/profiles/latest/azsadmin/mgmt/fabric/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/azsadmin/mgmt/infrastructureinsights/models.go b/profiles/latest/azsadmin/mgmt/infrastructureinsights/models.go index c27041515a5c..c6c736e3dec5 100644 --- a/profiles/latest/azsadmin/mgmt/infrastructureinsights/models.go +++ b/profiles/latest/azsadmin/mgmt/infrastructureinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/azurestack/mgmt/azurestack/azurestackapi/models.go b/profiles/latest/azurestack/mgmt/azurestack/azurestackapi/models.go index 72bde20c4b9c..b741f8bbb411 100644 --- a/profiles/latest/azurestack/mgmt/azurestack/azurestackapi/models.go +++ b/profiles/latest/azurestack/mgmt/azurestack/azurestackapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/azurestack/mgmt/azurestack/models.go b/profiles/latest/azurestack/mgmt/azurestack/models.go index 3f172d9f8004..24f2f7d6dbdf 100644 --- a/profiles/latest/azurestack/mgmt/azurestack/models.go +++ b/profiles/latest/azurestack/mgmt/azurestack/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/batch/batch/batchapi/models.go b/profiles/latest/batch/batch/batchapi/models.go index 8e3672b5ecee..ac07f0a334b4 100644 --- a/profiles/latest/batch/batch/batchapi/models.go +++ b/profiles/latest/batch/batch/batchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/batch/batch/models.go b/profiles/latest/batch/batch/models.go index 6cb54b5bcdfa..71af2a66e80d 100644 --- a/profiles/latest/batch/batch/models.go +++ b/profiles/latest/batch/batch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/batch/mgmt/batch/batchapi/models.go b/profiles/latest/batch/mgmt/batch/batchapi/models.go index f102f30178b3..5b0c2048632d 100644 --- a/profiles/latest/batch/mgmt/batch/batchapi/models.go +++ b/profiles/latest/batch/mgmt/batch/batchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/batch/mgmt/batch/models.go b/profiles/latest/batch/mgmt/batch/models.go index 51891cadf70a..b785f3a83ee2 100644 --- a/profiles/latest/batch/mgmt/batch/models.go +++ b/profiles/latest/batch/mgmt/batch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/batchai/mgmt/batchai/batchaiapi/models.go b/profiles/latest/batchai/mgmt/batchai/batchaiapi/models.go index 74f73b822e77..2444beec7a48 100644 --- a/profiles/latest/batchai/mgmt/batchai/batchaiapi/models.go +++ b/profiles/latest/batchai/mgmt/batchai/batchaiapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/batchai/mgmt/batchai/models.go b/profiles/latest/batchai/mgmt/batchai/models.go index 76c602adc53e..1fab65c97ad9 100644 --- a/profiles/latest/batchai/mgmt/batchai/models.go +++ b/profiles/latest/batchai/mgmt/batchai/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cdn/mgmt/cdn/cdnapi/models.go b/profiles/latest/cdn/mgmt/cdn/cdnapi/models.go index 775f910044eb..0fc9c4a5d9c6 100644 --- a/profiles/latest/cdn/mgmt/cdn/cdnapi/models.go +++ b/profiles/latest/cdn/mgmt/cdn/cdnapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cdn/mgmt/cdn/models.go b/profiles/latest/cdn/mgmt/cdn/models.go index 7be595bb2231..a5813bbcd413 100644 --- a/profiles/latest/cdn/mgmt/cdn/models.go +++ b/profiles/latest/cdn/mgmt/cdn/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/autosuggest/autosuggestapi/models.go b/profiles/latest/cognitiveservices/autosuggest/autosuggestapi/models.go index 1a5a34c58d32..eede70a18dc6 100644 --- a/profiles/latest/cognitiveservices/autosuggest/autosuggestapi/models.go +++ b/profiles/latest/cognitiveservices/autosuggest/autosuggestapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/autosuggest/models.go b/profiles/latest/cognitiveservices/autosuggest/models.go index 43385b4105de..b34b1f352c61 100644 --- a/profiles/latest/cognitiveservices/autosuggest/models.go +++ b/profiles/latest/cognitiveservices/autosuggest/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/computervision/computervisionapi/models.go b/profiles/latest/cognitiveservices/computervision/computervisionapi/models.go index 5b85910d11d5..f6a25fe21a6e 100644 --- a/profiles/latest/cognitiveservices/computervision/computervisionapi/models.go +++ b/profiles/latest/cognitiveservices/computervision/computervisionapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/computervision/models.go b/profiles/latest/cognitiveservices/computervision/models.go index 71f4d96bcd65..940e893bb603 100644 --- a/profiles/latest/cognitiveservices/computervision/models.go +++ b/profiles/latest/cognitiveservices/computervision/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/contentmoderator/contentmoderatorapi/models.go b/profiles/latest/cognitiveservices/contentmoderator/contentmoderatorapi/models.go index fcfba6ab00ee..e1c9ff1ff0e7 100644 --- a/profiles/latest/cognitiveservices/contentmoderator/contentmoderatorapi/models.go +++ b/profiles/latest/cognitiveservices/contentmoderator/contentmoderatorapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/contentmoderator/models.go b/profiles/latest/cognitiveservices/contentmoderator/models.go index 3789448839b8..64a370b71a96 100644 --- a/profiles/latest/cognitiveservices/contentmoderator/models.go +++ b/profiles/latest/cognitiveservices/contentmoderator/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/customimagesearch/customimagesearchapi/models.go b/profiles/latest/cognitiveservices/customimagesearch/customimagesearchapi/models.go index c572a288647e..e63ba5931467 100644 --- a/profiles/latest/cognitiveservices/customimagesearch/customimagesearchapi/models.go +++ b/profiles/latest/cognitiveservices/customimagesearch/customimagesearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/customimagesearch/models.go b/profiles/latest/cognitiveservices/customimagesearch/models.go index f29ecd32f766..cb476ba22467 100644 --- a/profiles/latest/cognitiveservices/customimagesearch/models.go +++ b/profiles/latest/cognitiveservices/customimagesearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/customsearch/customsearchapi/models.go b/profiles/latest/cognitiveservices/customsearch/customsearchapi/models.go index bc6d7a9ce8aa..3d40c669a132 100644 --- a/profiles/latest/cognitiveservices/customsearch/customsearchapi/models.go +++ b/profiles/latest/cognitiveservices/customsearch/customsearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/customsearch/models.go b/profiles/latest/cognitiveservices/customsearch/models.go index 8e1f078e3133..532783df69a1 100644 --- a/profiles/latest/cognitiveservices/customsearch/models.go +++ b/profiles/latest/cognitiveservices/customsearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/customvision/prediction/models.go b/profiles/latest/cognitiveservices/customvision/prediction/models.go index 2244ad9d2d8f..683de6b85833 100644 --- a/profiles/latest/cognitiveservices/customvision/prediction/models.go +++ b/profiles/latest/cognitiveservices/customvision/prediction/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/customvision/prediction/predictionapi/models.go b/profiles/latest/cognitiveservices/customvision/prediction/predictionapi/models.go index 0af29a2c6e7a..26c8eb145ea8 100644 --- a/profiles/latest/cognitiveservices/customvision/prediction/predictionapi/models.go +++ b/profiles/latest/cognitiveservices/customvision/prediction/predictionapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/customvision/training/models.go b/profiles/latest/cognitiveservices/customvision/training/models.go index d7b76795a1ad..f979d3ffd844 100644 --- a/profiles/latest/cognitiveservices/customvision/training/models.go +++ b/profiles/latest/cognitiveservices/customvision/training/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/customvision/training/trainingapi/models.go b/profiles/latest/cognitiveservices/customvision/training/trainingapi/models.go index f3a05926a689..5a918ba9c2f5 100644 --- a/profiles/latest/cognitiveservices/customvision/training/trainingapi/models.go +++ b/profiles/latest/cognitiveservices/customvision/training/trainingapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/entitysearch/entitysearchapi/models.go b/profiles/latest/cognitiveservices/entitysearch/entitysearchapi/models.go index 2ca45db3b057..2d2dfa809af8 100644 --- a/profiles/latest/cognitiveservices/entitysearch/entitysearchapi/models.go +++ b/profiles/latest/cognitiveservices/entitysearch/entitysearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/entitysearch/models.go b/profiles/latest/cognitiveservices/entitysearch/models.go index d16b410e9639..89669296f7ba 100644 --- a/profiles/latest/cognitiveservices/entitysearch/models.go +++ b/profiles/latest/cognitiveservices/entitysearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/face/faceapi/models.go b/profiles/latest/cognitiveservices/face/faceapi/models.go index 6ee1c8c6ccbe..2be0e3d023f1 100644 --- a/profiles/latest/cognitiveservices/face/faceapi/models.go +++ b/profiles/latest/cognitiveservices/face/faceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/face/models.go b/profiles/latest/cognitiveservices/face/models.go index 2514dbfc5dcc..a342afcc93e5 100644 --- a/profiles/latest/cognitiveservices/face/models.go +++ b/profiles/latest/cognitiveservices/face/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/imagesearch/imagesearchapi/models.go b/profiles/latest/cognitiveservices/imagesearch/imagesearchapi/models.go index f16f7a6dd412..256da2ec0e2c 100644 --- a/profiles/latest/cognitiveservices/imagesearch/imagesearchapi/models.go +++ b/profiles/latest/cognitiveservices/imagesearch/imagesearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/imagesearch/models.go b/profiles/latest/cognitiveservices/imagesearch/models.go index 52dd7416efe9..80306f13fb0b 100644 --- a/profiles/latest/cognitiveservices/imagesearch/models.go +++ b/profiles/latest/cognitiveservices/imagesearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/localsearch/localsearchapi/models.go b/profiles/latest/cognitiveservices/localsearch/localsearchapi/models.go index 522eff77b689..8acfb085e1cc 100644 --- a/profiles/latest/cognitiveservices/localsearch/localsearchapi/models.go +++ b/profiles/latest/cognitiveservices/localsearch/localsearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/localsearch/models.go b/profiles/latest/cognitiveservices/localsearch/models.go index c6d09962310b..6c302c948768 100644 --- a/profiles/latest/cognitiveservices/localsearch/models.go +++ b/profiles/latest/cognitiveservices/localsearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/luis/authoring/authoringapi/models.go b/profiles/latest/cognitiveservices/luis/authoring/authoringapi/models.go index b87dd58e85e6..15ac78bb317b 100644 --- a/profiles/latest/cognitiveservices/luis/authoring/authoringapi/models.go +++ b/profiles/latest/cognitiveservices/luis/authoring/authoringapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/luis/authoring/models.go b/profiles/latest/cognitiveservices/luis/authoring/models.go index 2b6021313191..a3e82a3999a4 100644 --- a/profiles/latest/cognitiveservices/luis/authoring/models.go +++ b/profiles/latest/cognitiveservices/luis/authoring/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/luis/programmatic/models.go b/profiles/latest/cognitiveservices/luis/programmatic/models.go index fb0f02f7b060..7cb4f4e642ef 100644 --- a/profiles/latest/cognitiveservices/luis/programmatic/models.go +++ b/profiles/latest/cognitiveservices/luis/programmatic/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/luis/runtime/models.go b/profiles/latest/cognitiveservices/luis/runtime/models.go index 4da5132e2b69..874c6edc8fb4 100644 --- a/profiles/latest/cognitiveservices/luis/runtime/models.go +++ b/profiles/latest/cognitiveservices/luis/runtime/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/luis/runtime/runtimeapi/models.go b/profiles/latest/cognitiveservices/luis/runtime/runtimeapi/models.go index 52acf2dd4a6c..bd78fd1355eb 100644 --- a/profiles/latest/cognitiveservices/luis/runtime/runtimeapi/models.go +++ b/profiles/latest/cognitiveservices/luis/runtime/runtimeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go b/profiles/latest/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go index f636960f5aab..99274caf975c 100644 --- a/profiles/latest/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go +++ b/profiles/latest/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/mgmt/cognitiveservices/models.go b/profiles/latest/cognitiveservices/mgmt/cognitiveservices/models.go index 8c155a496456..4dce131ac4e0 100644 --- a/profiles/latest/cognitiveservices/mgmt/cognitiveservices/models.go +++ b/profiles/latest/cognitiveservices/mgmt/cognitiveservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/newssearch/models.go b/profiles/latest/cognitiveservices/newssearch/models.go index e6ae31abf5ea..98d24451f878 100644 --- a/profiles/latest/cognitiveservices/newssearch/models.go +++ b/profiles/latest/cognitiveservices/newssearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/newssearch/newssearchapi/models.go b/profiles/latest/cognitiveservices/newssearch/newssearchapi/models.go index 6c7f076e1a85..e8154974d69d 100644 --- a/profiles/latest/cognitiveservices/newssearch/newssearchapi/models.go +++ b/profiles/latest/cognitiveservices/newssearch/newssearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/qnamaker/models.go b/profiles/latest/cognitiveservices/qnamaker/models.go index 32f67067607b..3caa14e6acb1 100644 --- a/profiles/latest/cognitiveservices/qnamaker/models.go +++ b/profiles/latest/cognitiveservices/qnamaker/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/qnamaker/qnamakerapi/models.go b/profiles/latest/cognitiveservices/qnamaker/qnamakerapi/models.go index 75439a062aae..b1ca327587c4 100644 --- a/profiles/latest/cognitiveservices/qnamaker/qnamakerapi/models.go +++ b/profiles/latest/cognitiveservices/qnamaker/qnamakerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/spellcheck/models.go b/profiles/latest/cognitiveservices/spellcheck/models.go index af1360563667..d73ba80d8c49 100644 --- a/profiles/latest/cognitiveservices/spellcheck/models.go +++ b/profiles/latest/cognitiveservices/spellcheck/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/spellcheck/spellcheckapi/models.go b/profiles/latest/cognitiveservices/spellcheck/spellcheckapi/models.go index a1e4b1c4d241..0d1d1a7edeba 100644 --- a/profiles/latest/cognitiveservices/spellcheck/spellcheckapi/models.go +++ b/profiles/latest/cognitiveservices/spellcheck/spellcheckapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/textanalytics/models.go b/profiles/latest/cognitiveservices/textanalytics/models.go index 0322b7facfed..1035a0769644 100644 --- a/profiles/latest/cognitiveservices/textanalytics/models.go +++ b/profiles/latest/cognitiveservices/textanalytics/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/textanalytics/textanalyticsapi/models.go b/profiles/latest/cognitiveservices/textanalytics/textanalyticsapi/models.go index 0d15745f54eb..0c4f37d3ad3d 100644 --- a/profiles/latest/cognitiveservices/textanalytics/textanalyticsapi/models.go +++ b/profiles/latest/cognitiveservices/textanalytics/textanalyticsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/videosearch/models.go b/profiles/latest/cognitiveservices/videosearch/models.go index 64cabbbb5d8a..a2f0de6d9b6b 100644 --- a/profiles/latest/cognitiveservices/videosearch/models.go +++ b/profiles/latest/cognitiveservices/videosearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/videosearch/videosearchapi/models.go b/profiles/latest/cognitiveservices/videosearch/videosearchapi/models.go index a290f04b5e76..de5a5e36f3a2 100644 --- a/profiles/latest/cognitiveservices/videosearch/videosearchapi/models.go +++ b/profiles/latest/cognitiveservices/videosearch/videosearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/websearch/models.go b/profiles/latest/cognitiveservices/websearch/models.go index a391c9754a4e..02115f4faefa 100644 --- a/profiles/latest/cognitiveservices/websearch/models.go +++ b/profiles/latest/cognitiveservices/websearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cognitiveservices/websearch/websearchapi/models.go b/profiles/latest/cognitiveservices/websearch/websearchapi/models.go index f6b6c4b8b1e3..fc093cff5ac2 100644 --- a/profiles/latest/cognitiveservices/websearch/websearchapi/models.go +++ b/profiles/latest/cognitiveservices/websearch/websearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/compute/mgmt/compute/computeapi/models.go b/profiles/latest/compute/mgmt/compute/computeapi/models.go index fb6f06de8af3..7545d6220969 100644 --- a/profiles/latest/compute/mgmt/compute/computeapi/models.go +++ b/profiles/latest/compute/mgmt/compute/computeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/compute/mgmt/compute/models.go b/profiles/latest/compute/mgmt/compute/models.go index cfa0ea19d9ff..7a5b0c169a15 100644 --- a/profiles/latest/compute/mgmt/compute/models.go +++ b/profiles/latest/compute/mgmt/compute/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/compute/mgmt/skus/models.go b/profiles/latest/compute/mgmt/skus/models.go index cbfae708992d..b72ec64f92d8 100644 --- a/profiles/latest/compute/mgmt/skus/models.go +++ b/profiles/latest/compute/mgmt/skus/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/compute/mgmt/skus/skusapi/models.go b/profiles/latest/compute/mgmt/skus/skusapi/models.go index b51abe8db832..104f1260f9df 100644 --- a/profiles/latest/compute/mgmt/skus/skusapi/models.go +++ b/profiles/latest/compute/mgmt/skus/skusapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/consumption/mgmt/consumption/consumptionapi/models.go b/profiles/latest/consumption/mgmt/consumption/consumptionapi/models.go index 4b0974d5046f..be45073f1991 100644 --- a/profiles/latest/consumption/mgmt/consumption/consumptionapi/models.go +++ b/profiles/latest/consumption/mgmt/consumption/consumptionapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/consumption/mgmt/consumption/models.go b/profiles/latest/consumption/mgmt/consumption/models.go index a96681ed99ba..2f36d3868e82 100644 --- a/profiles/latest/consumption/mgmt/consumption/models.go +++ b/profiles/latest/consumption/mgmt/consumption/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/containerinstance/mgmt/containerinstance/containerinstanceapi/models.go b/profiles/latest/containerinstance/mgmt/containerinstance/containerinstanceapi/models.go index 34e154d7ab09..ae61abe5104f 100644 --- a/profiles/latest/containerinstance/mgmt/containerinstance/containerinstanceapi/models.go +++ b/profiles/latest/containerinstance/mgmt/containerinstance/containerinstanceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/containerinstance/mgmt/containerinstance/models.go b/profiles/latest/containerinstance/mgmt/containerinstance/models.go index cba60b3dc4d9..89da7e503cfc 100644 --- a/profiles/latest/containerinstance/mgmt/containerinstance/models.go +++ b/profiles/latest/containerinstance/mgmt/containerinstance/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/containerregistry/mgmt/containerregistry/containerregistryapi/models.go b/profiles/latest/containerregistry/mgmt/containerregistry/containerregistryapi/models.go index 74c5f8b4eeec..15caf33e5150 100644 --- a/profiles/latest/containerregistry/mgmt/containerregistry/containerregistryapi/models.go +++ b/profiles/latest/containerregistry/mgmt/containerregistry/containerregistryapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/containerregistry/mgmt/containerregistry/models.go b/profiles/latest/containerregistry/mgmt/containerregistry/models.go index ca45013edab4..a116b5554aef 100644 --- a/profiles/latest/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/latest/containerregistry/mgmt/containerregistry/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/containerservice/mgmt/containerservice/containerserviceapi/models.go b/profiles/latest/containerservice/mgmt/containerservice/containerserviceapi/models.go index 124e38b96ee6..717c4c8e380f 100644 --- a/profiles/latest/containerservice/mgmt/containerservice/containerserviceapi/models.go +++ b/profiles/latest/containerservice/mgmt/containerservice/containerserviceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/containerservice/mgmt/containerservice/models.go b/profiles/latest/containerservice/mgmt/containerservice/models.go index 6aa04833dad0..d4ecf57b17e9 100644 --- a/profiles/latest/containerservice/mgmt/containerservice/models.go +++ b/profiles/latest/containerservice/mgmt/containerservice/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cosmos-db/mgmt/documentdb/documentdbapi/models.go b/profiles/latest/cosmos-db/mgmt/documentdb/documentdbapi/models.go index 3dd4ddb27056..6cd3813c1a28 100644 --- a/profiles/latest/cosmos-db/mgmt/documentdb/documentdbapi/models.go +++ b/profiles/latest/cosmos-db/mgmt/documentdb/documentdbapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/cosmos-db/mgmt/documentdb/models.go b/profiles/latest/cosmos-db/mgmt/documentdb/models.go index 86f889b31036..22b771cc3c28 100644 --- a/profiles/latest/cosmos-db/mgmt/documentdb/models.go +++ b/profiles/latest/cosmos-db/mgmt/documentdb/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/costmanagement/mgmt/costmanagement/costmanagementapi/models.go b/profiles/latest/costmanagement/mgmt/costmanagement/costmanagementapi/models.go index 5155d68c4e3a..d592058fec26 100644 --- a/profiles/latest/costmanagement/mgmt/costmanagement/costmanagementapi/models.go +++ b/profiles/latest/costmanagement/mgmt/costmanagement/costmanagementapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/costmanagement/mgmt/costmanagement/models.go b/profiles/latest/costmanagement/mgmt/costmanagement/models.go index b3e9c7c111a2..c69d1bba5ca9 100644 --- a/profiles/latest/costmanagement/mgmt/costmanagement/models.go +++ b/profiles/latest/costmanagement/mgmt/costmanagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/customerinsights/mgmt/customerinsights/customerinsightsapi/models.go b/profiles/latest/customerinsights/mgmt/customerinsights/customerinsightsapi/models.go index ffd98e2a5180..cc1e4dd9ef64 100644 --- a/profiles/latest/customerinsights/mgmt/customerinsights/customerinsightsapi/models.go +++ b/profiles/latest/customerinsights/mgmt/customerinsights/customerinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/customerinsights/mgmt/customerinsights/models.go b/profiles/latest/customerinsights/mgmt/customerinsights/models.go index b364c82a4711..f26d2607ed4b 100644 --- a/profiles/latest/customerinsights/mgmt/customerinsights/models.go +++ b/profiles/latest/customerinsights/mgmt/customerinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/databox/mgmt/databox/databoxapi/models.go b/profiles/latest/databox/mgmt/databox/databoxapi/models.go index a40d5c1802bc..4cbd950b6a9b 100644 --- a/profiles/latest/databox/mgmt/databox/databoxapi/models.go +++ b/profiles/latest/databox/mgmt/databox/databoxapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/databox/mgmt/databox/models.go b/profiles/latest/databox/mgmt/databox/models.go index 1429b64d90d1..aaee28b88012 100644 --- a/profiles/latest/databox/mgmt/databox/models.go +++ b/profiles/latest/databox/mgmt/databox/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/databricks/mgmt/databricks/databricksapi/models.go b/profiles/latest/databricks/mgmt/databricks/databricksapi/models.go index 8143dbe87f40..bdd3cda732dc 100644 --- a/profiles/latest/databricks/mgmt/databricks/databricksapi/models.go +++ b/profiles/latest/databricks/mgmt/databricks/databricksapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/databricks/mgmt/databricks/models.go b/profiles/latest/databricks/mgmt/databricks/models.go index 3c26a58e0886..a69719677bed 100644 --- a/profiles/latest/databricks/mgmt/databricks/models.go +++ b/profiles/latest/databricks/mgmt/databricks/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datacatalog/mgmt/datacatalog/datacatalogapi/models.go b/profiles/latest/datacatalog/mgmt/datacatalog/datacatalogapi/models.go index 3ae676c9b995..d6848bb57e4b 100644 --- a/profiles/latest/datacatalog/mgmt/datacatalog/datacatalogapi/models.go +++ b/profiles/latest/datacatalog/mgmt/datacatalog/datacatalogapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datacatalog/mgmt/datacatalog/models.go b/profiles/latest/datacatalog/mgmt/datacatalog/models.go index 26dcd962cacf..92cd19d8a763 100644 --- a/profiles/latest/datacatalog/mgmt/datacatalog/models.go +++ b/profiles/latest/datacatalog/mgmt/datacatalog/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datafactory/mgmt/datafactory/datafactoryapi/models.go b/profiles/latest/datafactory/mgmt/datafactory/datafactoryapi/models.go index d121c9474391..5acbe29407ea 100644 --- a/profiles/latest/datafactory/mgmt/datafactory/datafactoryapi/models.go +++ b/profiles/latest/datafactory/mgmt/datafactory/datafactoryapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datafactory/mgmt/datafactory/models.go b/profiles/latest/datafactory/mgmt/datafactory/models.go index 31c7e89476af..a2a45371330c 100644 --- a/profiles/latest/datafactory/mgmt/datafactory/models.go +++ b/profiles/latest/datafactory/mgmt/datafactory/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datalake/analytics/job/jobapi/models.go b/profiles/latest/datalake/analytics/job/jobapi/models.go index 3707d89190f0..3d3092f45cfa 100644 --- a/profiles/latest/datalake/analytics/job/jobapi/models.go +++ b/profiles/latest/datalake/analytics/job/jobapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datalake/analytics/job/models.go b/profiles/latest/datalake/analytics/job/models.go index 26e07143031f..bab45184315f 100644 --- a/profiles/latest/datalake/analytics/job/models.go +++ b/profiles/latest/datalake/analytics/job/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datalake/analytics/mgmt/account/accountapi/models.go b/profiles/latest/datalake/analytics/mgmt/account/accountapi/models.go index 75115d28ab3a..83e9df4139d0 100644 --- a/profiles/latest/datalake/analytics/mgmt/account/accountapi/models.go +++ b/profiles/latest/datalake/analytics/mgmt/account/accountapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datalake/analytics/mgmt/account/models.go b/profiles/latest/datalake/analytics/mgmt/account/models.go index e0a8fcf7ceb6..98f8eada9475 100644 --- a/profiles/latest/datalake/analytics/mgmt/account/models.go +++ b/profiles/latest/datalake/analytics/mgmt/account/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datalake/store/filesystem/filesystemapi/models.go b/profiles/latest/datalake/store/filesystem/filesystemapi/models.go index 272b5571aad0..6093cf28a13a 100644 --- a/profiles/latest/datalake/store/filesystem/filesystemapi/models.go +++ b/profiles/latest/datalake/store/filesystem/filesystemapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datalake/store/filesystem/models.go b/profiles/latest/datalake/store/filesystem/models.go index aa137da80117..4712b09bb40d 100644 --- a/profiles/latest/datalake/store/filesystem/models.go +++ b/profiles/latest/datalake/store/filesystem/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datalake/store/mgmt/account/accountapi/models.go b/profiles/latest/datalake/store/mgmt/account/accountapi/models.go index 19656f68b7c3..78fccb7d3760 100644 --- a/profiles/latest/datalake/store/mgmt/account/accountapi/models.go +++ b/profiles/latest/datalake/store/mgmt/account/accountapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datalake/store/mgmt/account/models.go b/profiles/latest/datalake/store/mgmt/account/models.go index 08ab33a8420a..ec5f4a76cdc4 100644 --- a/profiles/latest/datalake/store/mgmt/account/models.go +++ b/profiles/latest/datalake/store/mgmt/account/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datamigration/mgmt/datamigration/datamigrationapi/models.go b/profiles/latest/datamigration/mgmt/datamigration/datamigrationapi/models.go index ea967733585c..dad255426d7c 100644 --- a/profiles/latest/datamigration/mgmt/datamigration/datamigrationapi/models.go +++ b/profiles/latest/datamigration/mgmt/datamigration/datamigrationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/datamigration/mgmt/datamigration/models.go b/profiles/latest/datamigration/mgmt/datamigration/models.go index ba6a59c238d6..d36b80f854bb 100644 --- a/profiles/latest/datamigration/mgmt/datamigration/models.go +++ b/profiles/latest/datamigration/mgmt/datamigration/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/devtestlabs/mgmt/dtl/dtlapi/models.go b/profiles/latest/devtestlabs/mgmt/dtl/dtlapi/models.go index 80cd697799b6..917f8fa36965 100644 --- a/profiles/latest/devtestlabs/mgmt/dtl/dtlapi/models.go +++ b/profiles/latest/devtestlabs/mgmt/dtl/dtlapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/devtestlabs/mgmt/dtl/models.go b/profiles/latest/devtestlabs/mgmt/dtl/models.go index 6f9251e48cec..43ed11186d72 100644 --- a/profiles/latest/devtestlabs/mgmt/dtl/models.go +++ b/profiles/latest/devtestlabs/mgmt/dtl/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/dns/mgmt/dns/dnsapi/models.go b/profiles/latest/dns/mgmt/dns/dnsapi/models.go index 29d2078f9827..53198d06f71f 100644 --- a/profiles/latest/dns/mgmt/dns/dnsapi/models.go +++ b/profiles/latest/dns/mgmt/dns/dnsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/dns/mgmt/dns/models.go b/profiles/latest/dns/mgmt/dns/models.go index 6dff3aae7abc..7fe501bbbdc7 100644 --- a/profiles/latest/dns/mgmt/dns/models.go +++ b/profiles/latest/dns/mgmt/dns/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/domainservices/mgmt/aad/aadapi/models.go b/profiles/latest/domainservices/mgmt/aad/aadapi/models.go index abb04a812be6..9f299cf3ee98 100644 --- a/profiles/latest/domainservices/mgmt/aad/aadapi/models.go +++ b/profiles/latest/domainservices/mgmt/aad/aadapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/domainservices/mgmt/aad/models.go b/profiles/latest/domainservices/mgmt/aad/models.go index 8ca3325ed153..d204eceb8de3 100644 --- a/profiles/latest/domainservices/mgmt/aad/models.go +++ b/profiles/latest/domainservices/mgmt/aad/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/edgegateway/mgmt/edgegateway/edgegatewayapi/models.go b/profiles/latest/edgegateway/mgmt/edgegateway/edgegatewayapi/models.go new file mode 100644 index 000000000000..7e63ff367434 --- /dev/null +++ b/profiles/latest/edgegateway/mgmt/edgegateway/edgegatewayapi/models.go @@ -0,0 +1,34 @@ +// +build go1.9 + +// Copyright 2019 Microsoft Corporation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This code was auto-generated by: +// github.com/Azure/azure-sdk-for-go/tools/profileBuilder + +package edgegatewayapi + +import original "github.com/Azure/azure-sdk-for-go/services/edgegateway/mgmt/2018-07-01/edgegateway/edgegatewayapi" + +type AlertsClientAPI = original.AlertsClientAPI +type BandwidthSchedulesClientAPI = original.BandwidthSchedulesClientAPI +type DevicesClientAPI = original.DevicesClientAPI +type OperationsClientAPI = original.OperationsClientAPI +type OperationsStatusClientAPI = original.OperationsStatusClientAPI +type OrdersClientAPI = original.OrdersClientAPI +type RolesClientAPI = original.RolesClientAPI +type SharesClientAPI = original.SharesClientAPI +type StorageAccountCredentialsClientAPI = original.StorageAccountCredentialsClientAPI +type TriggersClientAPI = original.TriggersClientAPI +type UsersClientAPI = original.UsersClientAPI diff --git a/profiles/latest/edgegateway/mgmt/edgegateway/models.go b/profiles/latest/edgegateway/mgmt/edgegateway/models.go new file mode 100644 index 000000000000..ddfe2f7321f4 --- /dev/null +++ b/profiles/latest/edgegateway/mgmt/edgegateway/models.go @@ -0,0 +1,752 @@ +// +build go1.9 + +// Copyright 2019 Microsoft Corporation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This code was auto-generated by: +// github.com/Azure/azure-sdk-for-go/tools/profileBuilder + +package edgegateway + +import ( + "context" + + original "github.com/Azure/azure-sdk-for-go/services/edgegateway/mgmt/2018-07-01/edgegateway" +) + +const ( + DefaultBaseURI = original.DefaultBaseURI +) + +type AccountType = original.AccountType + +const ( + BlobStorage AccountType = original.BlobStorage + GeneralPurposeStorage AccountType = original.GeneralPurposeStorage +) + +type AlertSeverity = original.AlertSeverity + +const ( + Critical AlertSeverity = original.Critical + Informational AlertSeverity = original.Informational + Warning AlertSeverity = original.Warning +) + +type AuthenticationType = original.AuthenticationType + +const ( + AzureActiveDirectory AuthenticationType = original.AzureActiveDirectory + Invalid AuthenticationType = original.Invalid +) + +type AzureContainerDataFormat = original.AzureContainerDataFormat + +const ( + AzureFile AzureContainerDataFormat = original.AzureFile + BlockBlob AzureContainerDataFormat = original.BlockBlob + PageBlob AzureContainerDataFormat = original.PageBlob +) + +type ClientPermissionType = original.ClientPermissionType + +const ( + NoAccess ClientPermissionType = original.NoAccess + ReadOnly ClientPermissionType = original.ReadOnly + ReadWrite ClientPermissionType = original.ReadWrite +) + +type DataBoxEdgeDeviceStatus = original.DataBoxEdgeDeviceStatus + +const ( + Disconnected DataBoxEdgeDeviceStatus = original.Disconnected + NeedsAttention DataBoxEdgeDeviceStatus = original.NeedsAttention + Offline DataBoxEdgeDeviceStatus = original.Offline + Online DataBoxEdgeDeviceStatus = original.Online + PartiallyDisconnected DataBoxEdgeDeviceStatus = original.PartiallyDisconnected + ReadyToSetup DataBoxEdgeDeviceStatus = original.ReadyToSetup +) + +type DataPolicy = original.DataPolicy + +const ( + Cloud DataPolicy = original.Cloud + Local DataPolicy = original.Local +) + +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 +) + +type DeviceType = original.DeviceType + +const ( + DeviceTypeDataBoxEdgeDevice DeviceType = original.DeviceTypeDataBoxEdgeDevice +) + +type DownloadPhase = original.DownloadPhase + +const ( + Downloading DownloadPhase = original.Downloading + Initializing DownloadPhase = original.Initializing + Unknown DownloadPhase = original.Unknown + Verifying DownloadPhase = original.Verifying +) + +type EncryptionAlgorithm = original.EncryptionAlgorithm + +const ( + AES256 EncryptionAlgorithm = original.AES256 + None EncryptionAlgorithm = original.None + RSAESPKCS1V15 EncryptionAlgorithm = original.RSAESPKCS1V15 +) + +type InstallRebootBehavior = original.InstallRebootBehavior + +const ( + NeverReboots InstallRebootBehavior = original.NeverReboots + RequestReboot InstallRebootBehavior = original.RequestReboot + RequiresReboot InstallRebootBehavior = original.RequiresReboot +) + +type JobStatus = original.JobStatus + +const ( + JobStatusCanceled JobStatus = original.JobStatusCanceled + JobStatusFailed JobStatus = original.JobStatusFailed + JobStatusInvalid JobStatus = original.JobStatusInvalid + JobStatusPaused JobStatus = original.JobStatusPaused + JobStatusRunning JobStatus = original.JobStatusRunning + JobStatusScheduled JobStatus = original.JobStatusScheduled + JobStatusSucceeded JobStatus = original.JobStatusSucceeded +) + +type JobType = original.JobType + +const ( + JobTypeDownloadUpdates JobType = original.JobTypeDownloadUpdates + JobTypeInstallUpdates JobType = original.JobTypeInstallUpdates + JobTypeInvalid JobType = original.JobTypeInvalid + JobTypeRefreshShare JobType = original.JobTypeRefreshShare + JobTypeScanForUpdates JobType = original.JobTypeScanForUpdates +) + +type Kind = original.Kind + +const ( + KindIOT Kind = original.KindIOT + KindRole Kind = original.KindRole +) + +type KindBasicTrigger = original.KindBasicTrigger + +const ( + KindFileEvent KindBasicTrigger = original.KindFileEvent + KindPeriodicTimerEvent KindBasicTrigger = original.KindPeriodicTimerEvent + KindTrigger KindBasicTrigger = original.KindTrigger +) + +type MetricAggregationType = original.MetricAggregationType + +const ( + MetricAggregationTypeAverage MetricAggregationType = original.MetricAggregationTypeAverage + MetricAggregationTypeCount MetricAggregationType = original.MetricAggregationTypeCount + MetricAggregationTypeMaximum MetricAggregationType = original.MetricAggregationTypeMaximum + MetricAggregationTypeMinimum MetricAggregationType = original.MetricAggregationTypeMinimum + MetricAggregationTypeNone MetricAggregationType = original.MetricAggregationTypeNone + MetricAggregationTypeNotSpecified MetricAggregationType = original.MetricAggregationTypeNotSpecified + MetricAggregationTypeTotal MetricAggregationType = original.MetricAggregationTypeTotal +) + +type MetricCategory = original.MetricCategory + +const ( + Capacity MetricCategory = original.Capacity + Transaction MetricCategory = original.Transaction +) + +type MetricUnit = original.MetricUnit + +const ( + Bytes MetricUnit = original.Bytes + BytesPerSecond MetricUnit = original.BytesPerSecond + Count MetricUnit = original.Count + CountPerSecond MetricUnit = original.CountPerSecond + Milliseconds MetricUnit = original.Milliseconds + NotSpecified MetricUnit = original.NotSpecified + Percent MetricUnit = original.Percent + Seconds MetricUnit = original.Seconds +) + +type MonitoringStatus = original.MonitoringStatus + +const ( + Disabled MonitoringStatus = original.Disabled + Enabled MonitoringStatus = original.Enabled +) + +type NetworkAdapterDHCPStatus = original.NetworkAdapterDHCPStatus + +const ( + NetworkAdapterDHCPStatusDisabled NetworkAdapterDHCPStatus = original.NetworkAdapterDHCPStatusDisabled + NetworkAdapterDHCPStatusEnabled NetworkAdapterDHCPStatus = original.NetworkAdapterDHCPStatusEnabled +) + +type NetworkAdapterRDMAStatus = original.NetworkAdapterRDMAStatus + +const ( + Capable NetworkAdapterRDMAStatus = original.Capable + Incapable NetworkAdapterRDMAStatus = original.Incapable +) + +type NetworkAdapterStatus = original.NetworkAdapterStatus + +const ( + Active NetworkAdapterStatus = original.Active + Inactive NetworkAdapterStatus = original.Inactive +) + +type NetworkGroup = original.NetworkGroup + +const ( + NetworkGroupNone NetworkGroup = original.NetworkGroupNone + NetworkGroupNonRDMA NetworkGroup = original.NetworkGroupNonRDMA + NetworkGroupRDMA NetworkGroup = original.NetworkGroupRDMA +) + +type PlatformType = original.PlatformType + +const ( + Linux PlatformType = original.Linux + Windows PlatformType = original.Windows +) + +type RoleStatus = original.RoleStatus + +const ( + RoleStatusDisabled RoleStatus = original.RoleStatusDisabled + RoleStatusEnabled RoleStatus = original.RoleStatusEnabled +) + +type RoleTypes = original.RoleTypes + +const ( + ASA RoleTypes = original.ASA + Cognitive RoleTypes = original.Cognitive + Functions RoleTypes = original.Functions + IOT RoleTypes = original.IOT +) + +type SSLStatus = original.SSLStatus + +const ( + SSLStatusDisabled SSLStatus = original.SSLStatusDisabled + SSLStatusEnabled SSLStatus = original.SSLStatusEnabled +) + +type ShareAccessProtocol = original.ShareAccessProtocol + +const ( + NFS ShareAccessProtocol = original.NFS + SMB ShareAccessProtocol = original.SMB +) + +type ShareAccessType = original.ShareAccessType + +const ( + Change ShareAccessType = original.Change + Custom ShareAccessType = original.Custom + Read ShareAccessType = original.Read +) + +type ShareStatus = original.ShareStatus + +const ( + ShareStatusOffline ShareStatus = original.ShareStatusOffline + ShareStatusOnline ShareStatus = original.ShareStatusOnline +) + +type SkuName = original.SkuName + +const ( + Edge SkuName = original.Edge + Gateway SkuName = original.Gateway +) + +type SkuTier = original.SkuTier + +const ( + Standard SkuTier = original.Standard +) + +type StatusTypes = original.StatusTypes + +const ( + Arriving StatusTypes = original.Arriving + AwaitingFulfilment StatusTypes = original.AwaitingFulfilment + AwaitingPreparation StatusTypes = original.AwaitingPreparation + AwaitingReturnShipment StatusTypes = original.AwaitingReturnShipment + AwaitingShipment StatusTypes = original.AwaitingShipment + CollectedAtMicrosoft StatusTypes = original.CollectedAtMicrosoft + Declined StatusTypes = original.Declined + Delivered StatusTypes = original.Delivered + LostDevice StatusTypes = original.LostDevice + ReplacementRequested StatusTypes = original.ReplacementRequested + ReturnInitiated StatusTypes = original.ReturnInitiated + Shipped StatusTypes = original.Shipped + ShippedBack StatusTypes = original.ShippedBack + Untracked StatusTypes = original.Untracked +) + +type TimeGrain = original.TimeGrain + +const ( + PT12H TimeGrain = original.PT12H + PT15M TimeGrain = original.PT15M + PT1D TimeGrain = original.PT1D + PT1H TimeGrain = original.PT1H + PT1M TimeGrain = original.PT1M + PT30M TimeGrain = original.PT30M + PT5M TimeGrain = original.PT5M + PT6H TimeGrain = original.PT6H +) + +type UpdateOperation = original.UpdateOperation + +const ( + UpdateOperationDownload UpdateOperation = original.UpdateOperationDownload + UpdateOperationInstall UpdateOperation = original.UpdateOperationInstall + UpdateOperationNone UpdateOperation = original.UpdateOperationNone + UpdateOperationScan UpdateOperation = original.UpdateOperationScan +) + +type UpdateOperationStage = original.UpdateOperationStage + +const ( + UpdateOperationStageDownloadComplete UpdateOperationStage = original.UpdateOperationStageDownloadComplete + UpdateOperationStageDownloadFailed UpdateOperationStage = original.UpdateOperationStageDownloadFailed + UpdateOperationStageDownloadStarted UpdateOperationStage = original.UpdateOperationStageDownloadStarted + UpdateOperationStageFailure UpdateOperationStage = original.UpdateOperationStageFailure + UpdateOperationStageInitial UpdateOperationStage = original.UpdateOperationStageInitial + UpdateOperationStageInstallComplete UpdateOperationStage = original.UpdateOperationStageInstallComplete + UpdateOperationStageInstallFailed UpdateOperationStage = original.UpdateOperationStageInstallFailed + UpdateOperationStageInstallStarted UpdateOperationStage = original.UpdateOperationStageInstallStarted + UpdateOperationStageRebootInitiated UpdateOperationStage = original.UpdateOperationStageRebootInitiated + UpdateOperationStageRescanComplete UpdateOperationStage = original.UpdateOperationStageRescanComplete + UpdateOperationStageRescanFailed UpdateOperationStage = original.UpdateOperationStageRescanFailed + UpdateOperationStageRescanStarted UpdateOperationStage = original.UpdateOperationStageRescanStarted + UpdateOperationStageScanComplete UpdateOperationStage = original.UpdateOperationStageScanComplete + UpdateOperationStageScanFailed UpdateOperationStage = original.UpdateOperationStageScanFailed + UpdateOperationStageScanStarted UpdateOperationStage = original.UpdateOperationStageScanStarted + UpdateOperationStageSuccess UpdateOperationStage = original.UpdateOperationStageSuccess + UpdateOperationStageUnknown UpdateOperationStage = original.UpdateOperationStageUnknown +) + +type ARMBaseModel = original.ARMBaseModel +type Address = original.Address +type Alert = original.Alert +type AlertErrorDetails = original.AlertErrorDetails +type AlertList = original.AlertList +type AlertListIterator = original.AlertListIterator +type AlertListPage = original.AlertListPage +type AlertProperties = original.AlertProperties +type AlertsClient = original.AlertsClient +type AsymmetricEncryptedSecret = original.AsymmetricEncryptedSecret +type Authentication = original.Authentication +type AzureContainerInfo = original.AzureContainerInfo +type BandwidthSchedule = original.BandwidthSchedule +type BandwidthScheduleProperties = original.BandwidthScheduleProperties +type BandwidthSchedulesClient = original.BandwidthSchedulesClient +type BandwidthSchedulesCreateOrUpdateFuture = original.BandwidthSchedulesCreateOrUpdateFuture +type BandwidthSchedulesDeleteFuture = original.BandwidthSchedulesDeleteFuture +type BandwidthSchedulesList = original.BandwidthSchedulesList +type BandwidthSchedulesListIterator = original.BandwidthSchedulesListIterator +type BandwidthSchedulesListPage = original.BandwidthSchedulesListPage +type BaseClient = original.BaseClient +type BasicRole = original.BasicRole +type BasicTrigger = original.BasicTrigger +type ClientAccessRight = original.ClientAccessRight +type CloudError = original.CloudError +type CloudErrorBody = original.CloudErrorBody +type ContactDetails = original.ContactDetails +type DataBoxEdgeDevice = original.DataBoxEdgeDevice +type DataBoxEdgeDeviceExtendedInfo = original.DataBoxEdgeDeviceExtendedInfo +type DataBoxEdgeDeviceExtendedInfoProperties = original.DataBoxEdgeDeviceExtendedInfoProperties +type DataBoxEdgeDeviceList = original.DataBoxEdgeDeviceList +type DataBoxEdgeDeviceListIterator = original.DataBoxEdgeDeviceListIterator +type DataBoxEdgeDeviceListPage = original.DataBoxEdgeDeviceListPage +type DataBoxEdgeDevicePatch = original.DataBoxEdgeDevicePatch +type DataBoxEdgeDeviceProperties = original.DataBoxEdgeDeviceProperties +type DevicesClient = original.DevicesClient +type DevicesCreateOrUpdateFuture = original.DevicesCreateOrUpdateFuture +type DevicesCreateOrUpdateSecuritySettingsFuture = original.DevicesCreateOrUpdateSecuritySettingsFuture +type DevicesDeleteFuture = original.DevicesDeleteFuture +type DevicesDownloadUpdatesFuture = original.DevicesDownloadUpdatesFuture +type DevicesInstallUpdatesFuture = original.DevicesInstallUpdatesFuture +type DevicesScanForUpdatesFuture = original.DevicesScanForUpdatesFuture +type FileEventTrigger = original.FileEventTrigger +type FileSourceInfo = original.FileSourceInfo +type FileTriggerProperties = original.FileTriggerProperties +type IoTDeviceInfo = original.IoTDeviceInfo +type IoTRole = original.IoTRole +type IoTRoleProperties = original.IoTRoleProperties +type Ipv4Config = original.Ipv4Config +type Ipv6Config = original.Ipv6Config +type Job = original.Job +type JobErrorDetails = original.JobErrorDetails +type JobErrorItem = original.JobErrorItem +type JobProperties = original.JobProperties +type MetricDimensionV1 = original.MetricDimensionV1 +type MetricSpecificationV1 = original.MetricSpecificationV1 +type MountPointMap = original.MountPointMap +type NetworkAdapter = original.NetworkAdapter +type NetworkAdapterPosition = original.NetworkAdapterPosition +type NetworkSettings = original.NetworkSettings +type NetworkSettingsProperties = original.NetworkSettingsProperties +type Operation = original.Operation +type OperationDisplay = original.OperationDisplay +type OperationProperties = original.OperationProperties +type OperationsClient = original.OperationsClient +type OperationsList = original.OperationsList +type OperationsListIterator = original.OperationsListIterator +type OperationsListPage = original.OperationsListPage +type OperationsStatusClient = original.OperationsStatusClient +type Order = original.Order +type OrderList = original.OrderList +type OrderListIterator = original.OrderListIterator +type OrderListPage = original.OrderListPage +type OrderProperties = original.OrderProperties +type OrderStatus = original.OrderStatus +type OrdersClient = original.OrdersClient +type OrdersCreateOrUpdateFuture = original.OrdersCreateOrUpdateFuture +type OrdersDeleteFuture = original.OrdersDeleteFuture +type PeriodicTimerEventTrigger = original.PeriodicTimerEventTrigger +type PeriodicTimerProperties = original.PeriodicTimerProperties +type PeriodicTimerSourceInfo = original.PeriodicTimerSourceInfo +type RawCertificateData = original.RawCertificateData +type RefreshDetails = original.RefreshDetails +type Role = original.Role +type RoleList = original.RoleList +type RoleListIterator = original.RoleListIterator +type RoleListPage = original.RoleListPage +type RoleModel = original.RoleModel +type RoleSinkInfo = original.RoleSinkInfo +type RolesClient = original.RolesClient +type RolesCreateOrUpdateFuture = original.RolesCreateOrUpdateFuture +type RolesDeleteFuture = original.RolesDeleteFuture +type SecuritySettings = original.SecuritySettings +type SecuritySettingsProperties = original.SecuritySettingsProperties +type ServiceSpecification = original.ServiceSpecification +type Share = original.Share +type ShareAccessRight = original.ShareAccessRight +type ShareList = original.ShareList +type ShareListIterator = original.ShareListIterator +type ShareListPage = original.ShareListPage +type ShareProperties = original.ShareProperties +type SharesClient = original.SharesClient +type SharesCreateOrUpdateFuture = original.SharesCreateOrUpdateFuture +type SharesDeleteFuture = original.SharesDeleteFuture +type SharesRefreshFuture = original.SharesRefreshFuture +type Sku = original.Sku +type StorageAccountCredential = original.StorageAccountCredential +type StorageAccountCredentialList = original.StorageAccountCredentialList +type StorageAccountCredentialListIterator = original.StorageAccountCredentialListIterator +type StorageAccountCredentialListPage = original.StorageAccountCredentialListPage +type StorageAccountCredentialProperties = original.StorageAccountCredentialProperties +type StorageAccountCredentialsClient = original.StorageAccountCredentialsClient +type StorageAccountCredentialsCreateOrUpdateFuture = original.StorageAccountCredentialsCreateOrUpdateFuture +type StorageAccountCredentialsDeleteFuture = original.StorageAccountCredentialsDeleteFuture +type SymmetricKey = original.SymmetricKey +type TrackingInfo = original.TrackingInfo +type Trigger = original.Trigger +type TriggerList = original.TriggerList +type TriggerListIterator = original.TriggerListIterator +type TriggerListPage = original.TriggerListPage +type TriggerModel = original.TriggerModel +type TriggersClient = original.TriggersClient +type TriggersCreateOrUpdateFuture = original.TriggersCreateOrUpdateFuture +type TriggersDeleteFuture = original.TriggersDeleteFuture +type UpdateDownloadProgress = original.UpdateDownloadProgress +type UpdateInstallProgress = original.UpdateInstallProgress +type UpdateSummary = original.UpdateSummary +type UpdateSummaryProperties = original.UpdateSummaryProperties +type UploadCertificateRequest = original.UploadCertificateRequest +type UploadCertificateResponse = original.UploadCertificateResponse +type User = original.User +type UserAccessRight = original.UserAccessRight +type UserList = original.UserList +type UserListIterator = original.UserListIterator +type UserListPage = original.UserListPage +type UserProperties = original.UserProperties +type UsersClient = original.UsersClient +type UsersCreateOrUpdateFuture = original.UsersCreateOrUpdateFuture +type UsersDeleteFuture = original.UsersDeleteFuture + +func New(subscriptionID string) BaseClient { + return original.New(subscriptionID) +} +func NewAlertListIterator(page AlertListPage) AlertListIterator { + return original.NewAlertListIterator(page) +} +func NewAlertListPage(getNextPage func(context.Context, AlertList) (AlertList, error)) AlertListPage { + return original.NewAlertListPage(getNextPage) +} +func NewAlertsClient(subscriptionID string) AlertsClient { + return original.NewAlertsClient(subscriptionID) +} +func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsClient { + return original.NewAlertsClientWithBaseURI(baseURI, subscriptionID) +} +func NewBandwidthSchedulesClient(subscriptionID string) BandwidthSchedulesClient { + return original.NewBandwidthSchedulesClient(subscriptionID) +} +func NewBandwidthSchedulesClientWithBaseURI(baseURI string, subscriptionID string) BandwidthSchedulesClient { + return original.NewBandwidthSchedulesClientWithBaseURI(baseURI, subscriptionID) +} +func NewBandwidthSchedulesListIterator(page BandwidthSchedulesListPage) BandwidthSchedulesListIterator { + return original.NewBandwidthSchedulesListIterator(page) +} +func NewBandwidthSchedulesListPage(getNextPage func(context.Context, BandwidthSchedulesList) (BandwidthSchedulesList, error)) BandwidthSchedulesListPage { + return original.NewBandwidthSchedulesListPage(getNextPage) +} +func NewDataBoxEdgeDeviceListIterator(page DataBoxEdgeDeviceListPage) DataBoxEdgeDeviceListIterator { + return original.NewDataBoxEdgeDeviceListIterator(page) +} +func NewDataBoxEdgeDeviceListPage(getNextPage func(context.Context, DataBoxEdgeDeviceList) (DataBoxEdgeDeviceList, error)) DataBoxEdgeDeviceListPage { + return original.NewDataBoxEdgeDeviceListPage(getNextPage) +} +func NewDevicesClient(subscriptionID string) DevicesClient { + return original.NewDevicesClient(subscriptionID) +} +func NewDevicesClientWithBaseURI(baseURI string, subscriptionID string) DevicesClient { + return original.NewDevicesClientWithBaseURI(baseURI, subscriptionID) +} +func NewOperationsClient(subscriptionID string) OperationsClient { + return original.NewOperationsClient(subscriptionID) +} +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID) +} +func NewOperationsListIterator(page OperationsListPage) OperationsListIterator { + return original.NewOperationsListIterator(page) +} +func NewOperationsListPage(getNextPage func(context.Context, OperationsList) (OperationsList, error)) OperationsListPage { + return original.NewOperationsListPage(getNextPage) +} +func NewOperationsStatusClient(subscriptionID string) OperationsStatusClient { + return original.NewOperationsStatusClient(subscriptionID) +} +func NewOperationsStatusClientWithBaseURI(baseURI string, subscriptionID string) OperationsStatusClient { + return original.NewOperationsStatusClientWithBaseURI(baseURI, subscriptionID) +} +func NewOrderListIterator(page OrderListPage) OrderListIterator { + return original.NewOrderListIterator(page) +} +func NewOrderListPage(getNextPage func(context.Context, OrderList) (OrderList, error)) OrderListPage { + return original.NewOrderListPage(getNextPage) +} +func NewOrdersClient(subscriptionID string) OrdersClient { + return original.NewOrdersClient(subscriptionID) +} +func NewOrdersClientWithBaseURI(baseURI string, subscriptionID string) OrdersClient { + return original.NewOrdersClientWithBaseURI(baseURI, subscriptionID) +} +func NewRoleListIterator(page RoleListPage) RoleListIterator { + return original.NewRoleListIterator(page) +} +func NewRoleListPage(getNextPage func(context.Context, RoleList) (RoleList, error)) RoleListPage { + return original.NewRoleListPage(getNextPage) +} +func NewRolesClient(subscriptionID string) RolesClient { + return original.NewRolesClient(subscriptionID) +} +func NewRolesClientWithBaseURI(baseURI string, subscriptionID string) RolesClient { + return original.NewRolesClientWithBaseURI(baseURI, subscriptionID) +} +func NewShareListIterator(page ShareListPage) ShareListIterator { + return original.NewShareListIterator(page) +} +func NewShareListPage(getNextPage func(context.Context, ShareList) (ShareList, error)) ShareListPage { + return original.NewShareListPage(getNextPage) +} +func NewSharesClient(subscriptionID string) SharesClient { + return original.NewSharesClient(subscriptionID) +} +func NewSharesClientWithBaseURI(baseURI string, subscriptionID string) SharesClient { + return original.NewSharesClientWithBaseURI(baseURI, subscriptionID) +} +func NewStorageAccountCredentialListIterator(page StorageAccountCredentialListPage) StorageAccountCredentialListIterator { + return original.NewStorageAccountCredentialListIterator(page) +} +func NewStorageAccountCredentialListPage(getNextPage func(context.Context, StorageAccountCredentialList) (StorageAccountCredentialList, error)) StorageAccountCredentialListPage { + return original.NewStorageAccountCredentialListPage(getNextPage) +} +func NewStorageAccountCredentialsClient(subscriptionID string) StorageAccountCredentialsClient { + return original.NewStorageAccountCredentialsClient(subscriptionID) +} +func NewStorageAccountCredentialsClientWithBaseURI(baseURI string, subscriptionID string) StorageAccountCredentialsClient { + return original.NewStorageAccountCredentialsClientWithBaseURI(baseURI, subscriptionID) +} +func NewTriggerListIterator(page TriggerListPage) TriggerListIterator { + return original.NewTriggerListIterator(page) +} +func NewTriggerListPage(getNextPage func(context.Context, TriggerList) (TriggerList, error)) TriggerListPage { + return original.NewTriggerListPage(getNextPage) +} +func NewTriggersClient(subscriptionID string) TriggersClient { + return original.NewTriggersClient(subscriptionID) +} +func NewTriggersClientWithBaseURI(baseURI string, subscriptionID string) TriggersClient { + return original.NewTriggersClientWithBaseURI(baseURI, subscriptionID) +} +func NewUserListIterator(page UserListPage) UserListIterator { + return original.NewUserListIterator(page) +} +func NewUserListPage(getNextPage func(context.Context, UserList) (UserList, error)) UserListPage { + return original.NewUserListPage(getNextPage) +} +func NewUsersClient(subscriptionID string) UsersClient { + return original.NewUsersClient(subscriptionID) +} +func NewUsersClientWithBaseURI(baseURI string, subscriptionID string) UsersClient { + return original.NewUsersClientWithBaseURI(baseURI, subscriptionID) +} +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return original.NewWithBaseURI(baseURI, subscriptionID) +} +func PossibleAccountTypeValues() []AccountType { + return original.PossibleAccountTypeValues() +} +func PossibleAlertSeverityValues() []AlertSeverity { + return original.PossibleAlertSeverityValues() +} +func PossibleAuthenticationTypeValues() []AuthenticationType { + return original.PossibleAuthenticationTypeValues() +} +func PossibleAzureContainerDataFormatValues() []AzureContainerDataFormat { + return original.PossibleAzureContainerDataFormatValues() +} +func PossibleClientPermissionTypeValues() []ClientPermissionType { + return original.PossibleClientPermissionTypeValues() +} +func PossibleDataBoxEdgeDeviceStatusValues() []DataBoxEdgeDeviceStatus { + return original.PossibleDataBoxEdgeDeviceStatusValues() +} +func PossibleDataPolicyValues() []DataPolicy { + return original.PossibleDataPolicyValues() +} +func PossibleDayOfWeekValues() []DayOfWeek { + return original.PossibleDayOfWeekValues() +} +func PossibleDeviceTypeValues() []DeviceType { + return original.PossibleDeviceTypeValues() +} +func PossibleDownloadPhaseValues() []DownloadPhase { + return original.PossibleDownloadPhaseValues() +} +func PossibleEncryptionAlgorithmValues() []EncryptionAlgorithm { + return original.PossibleEncryptionAlgorithmValues() +} +func PossibleInstallRebootBehaviorValues() []InstallRebootBehavior { + return original.PossibleInstallRebootBehaviorValues() +} +func PossibleJobStatusValues() []JobStatus { + return original.PossibleJobStatusValues() +} +func PossibleJobTypeValues() []JobType { + return original.PossibleJobTypeValues() +} +func PossibleKindBasicTriggerValues() []KindBasicTrigger { + return original.PossibleKindBasicTriggerValues() +} +func PossibleKindValues() []Kind { + return original.PossibleKindValues() +} +func PossibleMetricAggregationTypeValues() []MetricAggregationType { + return original.PossibleMetricAggregationTypeValues() +} +func PossibleMetricCategoryValues() []MetricCategory { + return original.PossibleMetricCategoryValues() +} +func PossibleMetricUnitValues() []MetricUnit { + return original.PossibleMetricUnitValues() +} +func PossibleMonitoringStatusValues() []MonitoringStatus { + return original.PossibleMonitoringStatusValues() +} +func PossibleNetworkAdapterDHCPStatusValues() []NetworkAdapterDHCPStatus { + return original.PossibleNetworkAdapterDHCPStatusValues() +} +func PossibleNetworkAdapterRDMAStatusValues() []NetworkAdapterRDMAStatus { + return original.PossibleNetworkAdapterRDMAStatusValues() +} +func PossibleNetworkAdapterStatusValues() []NetworkAdapterStatus { + return original.PossibleNetworkAdapterStatusValues() +} +func PossibleNetworkGroupValues() []NetworkGroup { + return original.PossibleNetworkGroupValues() +} +func PossiblePlatformTypeValues() []PlatformType { + return original.PossiblePlatformTypeValues() +} +func PossibleRoleStatusValues() []RoleStatus { + return original.PossibleRoleStatusValues() +} +func PossibleRoleTypesValues() []RoleTypes { + return original.PossibleRoleTypesValues() +} +func PossibleSSLStatusValues() []SSLStatus { + return original.PossibleSSLStatusValues() +} +func PossibleShareAccessProtocolValues() []ShareAccessProtocol { + return original.PossibleShareAccessProtocolValues() +} +func PossibleShareAccessTypeValues() []ShareAccessType { + return original.PossibleShareAccessTypeValues() +} +func PossibleShareStatusValues() []ShareStatus { + return original.PossibleShareStatusValues() +} +func PossibleSkuNameValues() []SkuName { + return original.PossibleSkuNameValues() +} +func PossibleSkuTierValues() []SkuTier { + return original.PossibleSkuTierValues() +} +func PossibleStatusTypesValues() []StatusTypes { + return original.PossibleStatusTypesValues() +} +func PossibleTimeGrainValues() []TimeGrain { + return original.PossibleTimeGrainValues() +} +func PossibleUpdateOperationStageValues() []UpdateOperationStage { + return original.PossibleUpdateOperationStageValues() +} +func PossibleUpdateOperationValues() []UpdateOperation { + return original.PossibleUpdateOperationValues() +} +func UserAgent() string { + return original.UserAgent() + " profiles/latest" +} +func Version() string { + return original.Version() +} diff --git a/profiles/latest/eventgrid/eventgrid/eventgridapi/models.go b/profiles/latest/eventgrid/eventgrid/eventgridapi/models.go index f9cf9f07810b..643ca9529c1f 100644 --- a/profiles/latest/eventgrid/eventgrid/eventgridapi/models.go +++ b/profiles/latest/eventgrid/eventgrid/eventgridapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/eventgrid/eventgrid/models.go b/profiles/latest/eventgrid/eventgrid/models.go index 15fb12b9df00..36c363e210cb 100644 --- a/profiles/latest/eventgrid/eventgrid/models.go +++ b/profiles/latest/eventgrid/eventgrid/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/eventgrid/mgmt/eventgrid/eventgridapi/models.go b/profiles/latest/eventgrid/mgmt/eventgrid/eventgridapi/models.go index 2f27b17da2a8..1a29e6db7725 100644 --- a/profiles/latest/eventgrid/mgmt/eventgrid/eventgridapi/models.go +++ b/profiles/latest/eventgrid/mgmt/eventgrid/eventgridapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package eventgridapi -import original "github.com/Azure/azure-sdk-for-go/services/eventgrid/mgmt/2018-01-01/eventgrid/eventgridapi" +import original "github.com/Azure/azure-sdk-for-go/services/eventgrid/mgmt/2019-01-01/eventgrid/eventgridapi" type EventSubscriptionsClientAPI = original.EventSubscriptionsClientAPI type OperationsClientAPI = original.OperationsClientAPI diff --git a/profiles/latest/eventgrid/mgmt/eventgrid/models.go b/profiles/latest/eventgrid/mgmt/eventgrid/models.go index 54cdbaafe6aa..79be16bc8604 100644 --- a/profiles/latest/eventgrid/mgmt/eventgrid/models.go +++ b/profiles/latest/eventgrid/mgmt/eventgrid/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package eventgrid -import original "github.com/Azure/azure-sdk-for-go/services/eventgrid/mgmt/2018-01-01/eventgrid" +import original "github.com/Azure/azure-sdk-for-go/services/eventgrid/mgmt/2019-01-01/eventgrid" const ( DefaultBaseURI = original.DefaultBaseURI @@ -30,18 +30,28 @@ type EndpointType = original.EndpointType const ( EndpointTypeEventHub EndpointType = original.EndpointTypeEventHub EndpointTypeEventSubscriptionDestination EndpointType = original.EndpointTypeEventSubscriptionDestination + EndpointTypeHybridConnection EndpointType = original.EndpointTypeHybridConnection + EndpointTypeStorageQueue EndpointType = original.EndpointTypeStorageQueue EndpointTypeWebHook EndpointType = original.EndpointTypeWebHook ) +type EndpointTypeBasicDeadLetterDestination = original.EndpointTypeBasicDeadLetterDestination + +const ( + EndpointTypeDeadLetterDestination EndpointTypeBasicDeadLetterDestination = original.EndpointTypeDeadLetterDestination + EndpointTypeStorageBlob EndpointTypeBasicDeadLetterDestination = original.EndpointTypeStorageBlob +) + type EventSubscriptionProvisioningState = original.EventSubscriptionProvisioningState const ( - Canceled EventSubscriptionProvisioningState = original.Canceled - Creating EventSubscriptionProvisioningState = original.Creating - Deleting EventSubscriptionProvisioningState = original.Deleting - Failed EventSubscriptionProvisioningState = original.Failed - Succeeded EventSubscriptionProvisioningState = original.Succeeded - Updating EventSubscriptionProvisioningState = original.Updating + AwaitingManualAction EventSubscriptionProvisioningState = original.AwaitingManualAction + Canceled EventSubscriptionProvisioningState = original.Canceled + Creating EventSubscriptionProvisioningState = original.Creating + Deleting EventSubscriptionProvisioningState = original.Deleting + Failed EventSubscriptionProvisioningState = original.Failed + Succeeded EventSubscriptionProvisioningState = original.Succeeded + Updating EventSubscriptionProvisioningState = original.Updating ) type ResourceRegionType = original.ResourceRegionType @@ -74,7 +84,9 @@ const ( ) type BaseClient = original.BaseClient +type BasicDeadLetterDestination = original.BasicDeadLetterDestination type BasicEventSubscriptionDestination = original.BasicEventSubscriptionDestination +type DeadLetterDestination = original.DeadLetterDestination type EventHubEventSubscriptionDestination = original.EventHubEventSubscriptionDestination type EventHubEventSubscriptionDestinationProperties = original.EventHubEventSubscriptionDestinationProperties type EventSubscription = original.EventSubscription @@ -91,11 +103,18 @@ type EventSubscriptionsUpdateFuture = original.EventSubscriptionsUpdateFuture type EventType = original.EventType type EventTypeProperties = original.EventTypeProperties type EventTypesListResult = original.EventTypesListResult +type HybridConnectionEventSubscriptionDestination = original.HybridConnectionEventSubscriptionDestination +type HybridConnectionEventSubscriptionDestinationProperties = original.HybridConnectionEventSubscriptionDestinationProperties type Operation = original.Operation type OperationInfo = original.OperationInfo type OperationsClient = original.OperationsClient type OperationsListResult = original.OperationsListResult type Resource = original.Resource +type RetryPolicy = original.RetryPolicy +type StorageBlobDeadLetterDestination = original.StorageBlobDeadLetterDestination +type StorageBlobDeadLetterDestinationProperties = original.StorageBlobDeadLetterDestinationProperties +type StorageQueueEventSubscriptionDestination = original.StorageQueueEventSubscriptionDestination +type StorageQueueEventSubscriptionDestinationProperties = original.StorageQueueEventSubscriptionDestinationProperties type Topic = original.Topic type TopicProperties = original.TopicProperties type TopicRegenerateKeyRequest = original.TopicRegenerateKeyRequest @@ -144,6 +163,9 @@ func NewTopicsClientWithBaseURI(baseURI string, subscriptionID string) TopicsCli func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return original.NewWithBaseURI(baseURI, subscriptionID) } +func PossibleEndpointTypeBasicDeadLetterDestinationValues() []EndpointTypeBasicDeadLetterDestination { + return original.PossibleEndpointTypeBasicDeadLetterDestinationValues() +} func PossibleEndpointTypeValues() []EndpointType { return original.PossibleEndpointTypeValues() } diff --git a/profiles/latest/eventhub/mgmt/eventhub/eventhubapi/models.go b/profiles/latest/eventhub/mgmt/eventhub/eventhubapi/models.go index d412bc9049ef..77d581207451 100644 --- a/profiles/latest/eventhub/mgmt/eventhub/eventhubapi/models.go +++ b/profiles/latest/eventhub/mgmt/eventhub/eventhubapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/eventhub/mgmt/eventhub/models.go b/profiles/latest/eventhub/mgmt/eventhub/models.go index 272edfaa3520..c8076765645b 100644 --- a/profiles/latest/eventhub/mgmt/eventhub/models.go +++ b/profiles/latest/eventhub/mgmt/eventhub/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/graphrbac/graphrbac/graphrbacapi/models.go b/profiles/latest/graphrbac/graphrbac/graphrbacapi/models.go index a896f7135b82..85c39f45bf00 100644 --- a/profiles/latest/graphrbac/graphrbac/graphrbacapi/models.go +++ b/profiles/latest/graphrbac/graphrbac/graphrbacapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/graphrbac/graphrbac/models.go b/profiles/latest/graphrbac/graphrbac/models.go index f1e8750cb9df..e2b3cbfb9cea 100644 --- a/profiles/latest/graphrbac/graphrbac/models.go +++ b/profiles/latest/graphrbac/graphrbac/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/iotcentral/mgmt/iotcentral/iotcentralapi/models.go b/profiles/latest/iotcentral/mgmt/iotcentral/iotcentralapi/models.go index bd36650a0f5e..32bce487f617 100644 --- a/profiles/latest/iotcentral/mgmt/iotcentral/iotcentralapi/models.go +++ b/profiles/latest/iotcentral/mgmt/iotcentral/iotcentralapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/iotcentral/mgmt/iotcentral/models.go b/profiles/latest/iotcentral/mgmt/iotcentral/models.go index 90cb8db47b29..ccc401836fbe 100644 --- a/profiles/latest/iotcentral/mgmt/iotcentral/models.go +++ b/profiles/latest/iotcentral/mgmt/iotcentral/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/iothub/mgmt/devices/devicesapi/models.go b/profiles/latest/iothub/mgmt/devices/devicesapi/models.go index 74e7fb24c39d..70394d93652f 100644 --- a/profiles/latest/iothub/mgmt/devices/devicesapi/models.go +++ b/profiles/latest/iothub/mgmt/devices/devicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/iothub/mgmt/devices/models.go b/profiles/latest/iothub/mgmt/devices/models.go index 60165bce658c..a932b1ef6cfd 100644 --- a/profiles/latest/iothub/mgmt/devices/models.go +++ b/profiles/latest/iothub/mgmt/devices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/keyvault/keyvault/keyvaultapi/models.go b/profiles/latest/keyvault/keyvault/keyvaultapi/models.go index 68a7e5165339..8eb7279d9471 100644 --- a/profiles/latest/keyvault/keyvault/keyvaultapi/models.go +++ b/profiles/latest/keyvault/keyvault/keyvaultapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/keyvault/keyvault/models.go b/profiles/latest/keyvault/keyvault/models.go index e3f4496a6808..85f49ba19c65 100644 --- a/profiles/latest/keyvault/keyvault/models.go +++ b/profiles/latest/keyvault/keyvault/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/keyvault/mgmt/keyvault/keyvaultapi/models.go b/profiles/latest/keyvault/mgmt/keyvault/keyvaultapi/models.go index 2d6f3cb2fcdd..c81845d4c8a4 100644 --- a/profiles/latest/keyvault/mgmt/keyvault/keyvaultapi/models.go +++ b/profiles/latest/keyvault/mgmt/keyvault/keyvaultapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/keyvault/mgmt/keyvault/models.go b/profiles/latest/keyvault/mgmt/keyvault/models.go index 2b884a27af6e..69794df03fff 100644 --- a/profiles/latest/keyvault/mgmt/keyvault/models.go +++ b/profiles/latest/keyvault/mgmt/keyvault/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/labservices/mgmt/labservices/labservicesapi/models.go b/profiles/latest/labservices/mgmt/labservices/labservicesapi/models.go index 50e4be861c4b..2350732632cf 100644 --- a/profiles/latest/labservices/mgmt/labservices/labservicesapi/models.go +++ b/profiles/latest/labservices/mgmt/labservices/labservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/labservices/mgmt/labservices/models.go b/profiles/latest/labservices/mgmt/labservices/models.go index 0cf8a5aeaef8..f5ce6271be3a 100644 --- a/profiles/latest/labservices/mgmt/labservices/models.go +++ b/profiles/latest/labservices/mgmt/labservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/logic/mgmt/logic/logicapi/models.go b/profiles/latest/logic/mgmt/logic/logicapi/models.go index 6d654a338d2a..fd8780499286 100644 --- a/profiles/latest/logic/mgmt/logic/logicapi/models.go +++ b/profiles/latest/logic/mgmt/logic/logicapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/logic/mgmt/logic/models.go b/profiles/latest/logic/mgmt/logic/models.go index a3f693dbe96a..7acb3beca961 100644 --- a/profiles/latest/logic/mgmt/logic/models.go +++ b/profiles/latest/logic/mgmt/logic/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/machinelearning/mgmt/webservices/models.go b/profiles/latest/machinelearning/mgmt/webservices/models.go index 81d0550bd3ed..bbaa06c8547a 100644 --- a/profiles/latest/machinelearning/mgmt/webservices/models.go +++ b/profiles/latest/machinelearning/mgmt/webservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/machinelearning/mgmt/webservices/webservicesapi/models.go b/profiles/latest/machinelearning/mgmt/webservices/webservicesapi/models.go index 87b6b21d82ae..402b252e1fee 100644 --- a/profiles/latest/machinelearning/mgmt/webservices/webservicesapi/models.go +++ b/profiles/latest/machinelearning/mgmt/webservices/webservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/machinelearning/mgmt/workspaces/models.go b/profiles/latest/machinelearning/mgmt/workspaces/models.go index 98b97aff333c..9c326affd385 100644 --- a/profiles/latest/machinelearning/mgmt/workspaces/models.go +++ b/profiles/latest/machinelearning/mgmt/workspaces/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/machinelearning/mgmt/workspaces/workspacesapi/models.go b/profiles/latest/machinelearning/mgmt/workspaces/workspacesapi/models.go index 29dd2a743658..fc9027d0588b 100644 --- a/profiles/latest/machinelearning/mgmt/workspaces/workspacesapi/models.go +++ b/profiles/latest/machinelearning/mgmt/workspaces/workspacesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/managementpartner/mgmt/managementpartner/models.go b/profiles/latest/managementpartner/mgmt/managementpartner/models.go index 42ff9ee55a7a..c26de224a969 100644 --- a/profiles/latest/managementpartner/mgmt/managementpartner/models.go +++ b/profiles/latest/managementpartner/mgmt/managementpartner/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/maps/mgmt/maps/mapsapi/models.go b/profiles/latest/maps/mgmt/maps/mapsapi/models.go index 6b8776093887..771e3bb12ef0 100644 --- a/profiles/latest/maps/mgmt/maps/mapsapi/models.go +++ b/profiles/latest/maps/mgmt/maps/mapsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/maps/mgmt/maps/models.go b/profiles/latest/maps/mgmt/maps/models.go index 8e9a9291f57a..81dff0faeb12 100644 --- a/profiles/latest/maps/mgmt/maps/models.go +++ b/profiles/latest/maps/mgmt/maps/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/marketplaceordering/mgmt/marketplaceordering/marketplaceorderingapi/models.go b/profiles/latest/marketplaceordering/mgmt/marketplaceordering/marketplaceorderingapi/models.go index 0ca1989b73a6..b1a923973a63 100644 --- a/profiles/latest/marketplaceordering/mgmt/marketplaceordering/marketplaceorderingapi/models.go +++ b/profiles/latest/marketplaceordering/mgmt/marketplaceordering/marketplaceorderingapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/marketplaceordering/mgmt/marketplaceordering/models.go b/profiles/latest/marketplaceordering/mgmt/marketplaceordering/models.go index dc06144d0776..c36ef0dfd3e6 100644 --- a/profiles/latest/marketplaceordering/mgmt/marketplaceordering/models.go +++ b/profiles/latest/marketplaceordering/mgmt/marketplaceordering/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/mediaservices/mgmt/media/mediaapi/models.go b/profiles/latest/mediaservices/mgmt/media/mediaapi/models.go index 891e3ed39011..7b7e1b77c8df 100644 --- a/profiles/latest/mediaservices/mgmt/media/mediaapi/models.go +++ b/profiles/latest/mediaservices/mgmt/media/mediaapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/mediaservices/mgmt/media/models.go b/profiles/latest/mediaservices/mgmt/media/models.go index 814c5fa52c3b..ac0f0b174b6e 100644 --- a/profiles/latest/mediaservices/mgmt/media/models.go +++ b/profiles/latest/mediaservices/mgmt/media/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/migrate/mgmt/migrate/migrateapi/models.go b/profiles/latest/migrate/mgmt/migrate/migrateapi/models.go index 5c39b4eeebda..a0fc1641708d 100644 --- a/profiles/latest/migrate/mgmt/migrate/migrateapi/models.go +++ b/profiles/latest/migrate/mgmt/migrate/migrateapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/migrate/mgmt/migrate/models.go b/profiles/latest/migrate/mgmt/migrate/models.go index c6ba15da4488..bc59f2f01263 100644 --- a/profiles/latest/migrate/mgmt/migrate/models.go +++ b/profiles/latest/migrate/mgmt/migrate/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/mobileengagement/mgmt/mobileengagement/models.go b/profiles/latest/mobileengagement/mgmt/mobileengagement/models.go index 5db6060bedf8..aa0e123aae85 100644 --- a/profiles/latest/mobileengagement/mgmt/mobileengagement/models.go +++ b/profiles/latest/mobileengagement/mgmt/mobileengagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/monitor/mgmt/insights/models.go b/profiles/latest/monitor/mgmt/insights/models.go index f768ff4e0d04..b8efe4a8812a 100644 --- a/profiles/latest/monitor/mgmt/insights/models.go +++ b/profiles/latest/monitor/mgmt/insights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/msi/mgmt/msi/models.go b/profiles/latest/msi/mgmt/msi/models.go index 788d8dfeefb9..35cc33a057e7 100644 --- a/profiles/latest/msi/mgmt/msi/models.go +++ b/profiles/latest/msi/mgmt/msi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/msi/mgmt/msi/msiapi/models.go b/profiles/latest/msi/mgmt/msi/msiapi/models.go index 63d0afdc2e2f..fc3e1ecfaea9 100644 --- a/profiles/latest/msi/mgmt/msi/msiapi/models.go +++ b/profiles/latest/msi/mgmt/msi/msiapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/mysql/mgmt/mysql/models.go b/profiles/latest/mysql/mgmt/mysql/models.go index 5955b46287a9..7329108ae49f 100644 --- a/profiles/latest/mysql/mgmt/mysql/models.go +++ b/profiles/latest/mysql/mgmt/mysql/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/mysql/mgmt/mysql/mysqlapi/models.go b/profiles/latest/mysql/mgmt/mysql/mysqlapi/models.go index 91124104e5d8..4765fcda409b 100644 --- a/profiles/latest/mysql/mgmt/mysql/mysqlapi/models.go +++ b/profiles/latest/mysql/mgmt/mysql/mysqlapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/network/mgmt/network/models.go b/profiles/latest/network/mgmt/network/models.go index ad24ff5db78e..83c1175115c5 100644 --- a/profiles/latest/network/mgmt/network/models.go +++ b/profiles/latest/network/mgmt/network/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/network/mgmt/network/networkapi/models.go b/profiles/latest/network/mgmt/network/networkapi/models.go index 9078b8835c64..c2d59c1e09d0 100644 --- a/profiles/latest/network/mgmt/network/networkapi/models.go +++ b/profiles/latest/network/mgmt/network/networkapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/notificationhubs/mgmt/notificationhubs/models.go b/profiles/latest/notificationhubs/mgmt/notificationhubs/models.go index 9ce6a13d04b0..27df750b1595 100644 --- a/profiles/latest/notificationhubs/mgmt/notificationhubs/models.go +++ b/profiles/latest/notificationhubs/mgmt/notificationhubs/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/notificationhubs/mgmt/notificationhubs/notificationhubsapi/models.go b/profiles/latest/notificationhubs/mgmt/notificationhubs/notificationhubsapi/models.go index f253c8907551..e113b52496dc 100644 --- a/profiles/latest/notificationhubs/mgmt/notificationhubs/notificationhubsapi/models.go +++ b/profiles/latest/notificationhubs/mgmt/notificationhubs/notificationhubsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/operationalinsights/mgmt/operationalinsights/models.go b/profiles/latest/operationalinsights/mgmt/operationalinsights/models.go index c74c442a5aa2..d0a4679c911f 100644 --- a/profiles/latest/operationalinsights/mgmt/operationalinsights/models.go +++ b/profiles/latest/operationalinsights/mgmt/operationalinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/operationalinsights/mgmt/operationalinsights/operationalinsightsapi/models.go b/profiles/latest/operationalinsights/mgmt/operationalinsights/operationalinsightsapi/models.go index d9cee28c6c9d..4c2d628cdeea 100644 --- a/profiles/latest/operationalinsights/mgmt/operationalinsights/operationalinsightsapi/models.go +++ b/profiles/latest/operationalinsights/mgmt/operationalinsights/operationalinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/operationalinsights/operationalinsights/models.go b/profiles/latest/operationalinsights/operationalinsights/models.go index 478366802e80..5fd2b176f1de 100644 --- a/profiles/latest/operationalinsights/operationalinsights/models.go +++ b/profiles/latest/operationalinsights/operationalinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/operationalinsights/operationalinsights/operationalinsightsapi/models.go b/profiles/latest/operationalinsights/operationalinsights/operationalinsightsapi/models.go index c2f3aef8939d..e360aaf3e623 100644 --- a/profiles/latest/operationalinsights/operationalinsights/operationalinsightsapi/models.go +++ b/profiles/latest/operationalinsights/operationalinsights/operationalinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/policyinsights/mgmt/policyinsights/models.go b/profiles/latest/policyinsights/mgmt/policyinsights/models.go index 5ca93cbc6476..86baa6dc324f 100644 --- a/profiles/latest/policyinsights/mgmt/policyinsights/models.go +++ b/profiles/latest/policyinsights/mgmt/policyinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go b/profiles/latest/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go index a9ea2288a7e2..68f64baaefe8 100644 --- a/profiles/latest/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go +++ b/profiles/latest/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/postgresql/mgmt/postgresql/models.go b/profiles/latest/postgresql/mgmt/postgresql/models.go index 35b1a16f0509..27f082c8cb33 100644 --- a/profiles/latest/postgresql/mgmt/postgresql/models.go +++ b/profiles/latest/postgresql/mgmt/postgresql/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/postgresql/mgmt/postgresql/postgresqlapi/models.go b/profiles/latest/postgresql/mgmt/postgresql/postgresqlapi/models.go index c93e61cb34f4..599f4a3c6eda 100644 --- a/profiles/latest/postgresql/mgmt/postgresql/postgresqlapi/models.go +++ b/profiles/latest/postgresql/mgmt/postgresql/postgresqlapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/powerbidedicated/mgmt/powerbidedicated/models.go b/profiles/latest/powerbidedicated/mgmt/powerbidedicated/models.go index e2323590d46d..2e5a294e9497 100644 --- a/profiles/latest/powerbidedicated/mgmt/powerbidedicated/models.go +++ b/profiles/latest/powerbidedicated/mgmt/powerbidedicated/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/powerbidedicated/mgmt/powerbidedicated/powerbidedicatedapi/models.go b/profiles/latest/powerbidedicated/mgmt/powerbidedicated/powerbidedicatedapi/models.go index 6cb3eee2e796..83f3b540190b 100644 --- a/profiles/latest/powerbidedicated/mgmt/powerbidedicated/powerbidedicatedapi/models.go +++ b/profiles/latest/powerbidedicated/mgmt/powerbidedicated/powerbidedicatedapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/powerbiembedded/mgmt/powerbiembedded/models.go b/profiles/latest/powerbiembedded/mgmt/powerbiembedded/models.go index 2c619858d7dd..07f4ca8f7bc8 100644 --- a/profiles/latest/powerbiembedded/mgmt/powerbiembedded/models.go +++ b/profiles/latest/powerbiembedded/mgmt/powerbiembedded/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/powerbiembedded/mgmt/powerbiembedded/powerbiembeddedapi/models.go b/profiles/latest/powerbiembedded/mgmt/powerbiembedded/powerbiembeddedapi/models.go index 71a6191a5d07..20f15e177740 100644 --- a/profiles/latest/powerbiembedded/mgmt/powerbiembedded/powerbiembeddedapi/models.go +++ b/profiles/latest/powerbiembedded/mgmt/powerbiembedded/powerbiembeddedapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/provisioningservices/mgmt/iothub/iothubapi/models.go b/profiles/latest/provisioningservices/mgmt/iothub/iothubapi/models.go index f585efef25b7..cd904535f7b9 100644 --- a/profiles/latest/provisioningservices/mgmt/iothub/iothubapi/models.go +++ b/profiles/latest/provisioningservices/mgmt/iothub/iothubapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/provisioningservices/mgmt/iothub/models.go b/profiles/latest/provisioningservices/mgmt/iothub/models.go index 0960af86521a..69e6afef28d1 100644 --- a/profiles/latest/provisioningservices/mgmt/iothub/models.go +++ b/profiles/latest/provisioningservices/mgmt/iothub/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/recoveryservices/mgmt/backup/backupapi/models.go b/profiles/latest/recoveryservices/mgmt/backup/backupapi/models.go index 174ab37aefa7..f7aabeef3371 100644 --- a/profiles/latest/recoveryservices/mgmt/backup/backupapi/models.go +++ b/profiles/latest/recoveryservices/mgmt/backup/backupapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/recoveryservices/mgmt/backup/models.go b/profiles/latest/recoveryservices/mgmt/backup/models.go index 781aaf307911..59425869468b 100644 --- a/profiles/latest/recoveryservices/mgmt/backup/models.go +++ b/profiles/latest/recoveryservices/mgmt/backup/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/recoveryservices/mgmt/recoveryservices/models.go b/profiles/latest/recoveryservices/mgmt/recoveryservices/models.go index 490a9abc8a5c..f1c1cb6d47c0 100644 --- a/profiles/latest/recoveryservices/mgmt/recoveryservices/models.go +++ b/profiles/latest/recoveryservices/mgmt/recoveryservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/recoveryservices/mgmt/recoveryservices/recoveryservicesapi/models.go b/profiles/latest/recoveryservices/mgmt/recoveryservices/recoveryservicesapi/models.go index b02ab93d03ba..29ea8e2c7fd2 100644 --- a/profiles/latest/recoveryservices/mgmt/recoveryservices/recoveryservicesapi/models.go +++ b/profiles/latest/recoveryservices/mgmt/recoveryservices/recoveryservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/recoveryservices/mgmt/siterecovery/models.go b/profiles/latest/recoveryservices/mgmt/siterecovery/models.go index e148e52fd7e2..44935a27634d 100644 --- a/profiles/latest/recoveryservices/mgmt/siterecovery/models.go +++ b/profiles/latest/recoveryservices/mgmt/siterecovery/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/recoveryservices/mgmt/siterecovery/siterecoveryapi/models.go b/profiles/latest/recoveryservices/mgmt/siterecovery/siterecoveryapi/models.go index 0e8769c5ed50..874745df4c8e 100644 --- a/profiles/latest/recoveryservices/mgmt/siterecovery/siterecoveryapi/models.go +++ b/profiles/latest/recoveryservices/mgmt/siterecovery/siterecoveryapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/redis/mgmt/redis/models.go b/profiles/latest/redis/mgmt/redis/models.go index 624ac4afbca0..e890926684fd 100644 --- a/profiles/latest/redis/mgmt/redis/models.go +++ b/profiles/latest/redis/mgmt/redis/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/redis/mgmt/redis/redisapi/models.go b/profiles/latest/redis/mgmt/redis/redisapi/models.go index e44ed952bd44..710d10d813f3 100644 --- a/profiles/latest/redis/mgmt/redis/redisapi/models.go +++ b/profiles/latest/redis/mgmt/redis/redisapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/relay/mgmt/relay/models.go b/profiles/latest/relay/mgmt/relay/models.go index c100467a9379..25501b15456f 100644 --- a/profiles/latest/relay/mgmt/relay/models.go +++ b/profiles/latest/relay/mgmt/relay/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/relay/mgmt/relay/relayapi/models.go b/profiles/latest/relay/mgmt/relay/relayapi/models.go index e3a67ccce4a8..d9ef14aee24c 100644 --- a/profiles/latest/relay/mgmt/relay/relayapi/models.go +++ b/profiles/latest/relay/mgmt/relay/relayapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/reservations/mgmt/reservations/models.go b/profiles/latest/reservations/mgmt/reservations/models.go index 4a12a6bd8e9f..76712f50b923 100644 --- a/profiles/latest/reservations/mgmt/reservations/models.go +++ b/profiles/latest/reservations/mgmt/reservations/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/reservations/mgmt/reservations/reservationsapi/models.go b/profiles/latest/reservations/mgmt/reservations/reservationsapi/models.go index fea56b9a2764..3a78705055fd 100644 --- a/profiles/latest/reservations/mgmt/reservations/reservationsapi/models.go +++ b/profiles/latest/reservations/mgmt/reservations/reservationsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resourcehealth/mgmt/resourcehealth/models.go b/profiles/latest/resourcehealth/mgmt/resourcehealth/models.go index 9a0a3cb18753..86cb0ae6c878 100644 --- a/profiles/latest/resourcehealth/mgmt/resourcehealth/models.go +++ b/profiles/latest/resourcehealth/mgmt/resourcehealth/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resourcehealth/mgmt/resourcehealth/resourcehealthapi/models.go b/profiles/latest/resourcehealth/mgmt/resourcehealth/resourcehealthapi/models.go index 9c32cb60d357..86f8804138fd 100644 --- a/profiles/latest/resourcehealth/mgmt/resourcehealth/resourcehealthapi/models.go +++ b/profiles/latest/resourcehealth/mgmt/resourcehealth/resourcehealthapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/features/featuresapi/models.go b/profiles/latest/resources/mgmt/features/featuresapi/models.go index 6437e561a623..2e397b85d5a8 100644 --- a/profiles/latest/resources/mgmt/features/featuresapi/models.go +++ b/profiles/latest/resources/mgmt/features/featuresapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/features/models.go b/profiles/latest/resources/mgmt/features/models.go index 27000774dd80..c93527a34eb8 100644 --- a/profiles/latest/resources/mgmt/features/models.go +++ b/profiles/latest/resources/mgmt/features/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/links/linksapi/models.go b/profiles/latest/resources/mgmt/links/linksapi/models.go index 0a921ac9d266..b0dbc943edc6 100644 --- a/profiles/latest/resources/mgmt/links/linksapi/models.go +++ b/profiles/latest/resources/mgmt/links/linksapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/links/models.go b/profiles/latest/resources/mgmt/links/models.go index 79e4723dd33b..6ace6dfb3b3b 100644 --- a/profiles/latest/resources/mgmt/links/models.go +++ b/profiles/latest/resources/mgmt/links/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/locks/locksapi/models.go b/profiles/latest/resources/mgmt/locks/locksapi/models.go index a533105f3454..de8c2e5d8d74 100644 --- a/profiles/latest/resources/mgmt/locks/locksapi/models.go +++ b/profiles/latest/resources/mgmt/locks/locksapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/locks/models.go b/profiles/latest/resources/mgmt/locks/models.go index 5ba02b49c190..0989b2277b06 100644 --- a/profiles/latest/resources/mgmt/locks/models.go +++ b/profiles/latest/resources/mgmt/locks/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/managedapplications/managedapplicationsapi/models.go b/profiles/latest/resources/mgmt/managedapplications/managedapplicationsapi/models.go index a715d0b11a89..5d61ba2e7d61 100644 --- a/profiles/latest/resources/mgmt/managedapplications/managedapplicationsapi/models.go +++ b/profiles/latest/resources/mgmt/managedapplications/managedapplicationsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/managedapplications/models.go b/profiles/latest/resources/mgmt/managedapplications/models.go index 52bbd4c53fad..90d8a0f756dd 100644 --- a/profiles/latest/resources/mgmt/managedapplications/models.go +++ b/profiles/latest/resources/mgmt/managedapplications/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/policy/models.go b/profiles/latest/resources/mgmt/policy/models.go index e238fcf14767..503daeb1d803 100644 --- a/profiles/latest/resources/mgmt/policy/models.go +++ b/profiles/latest/resources/mgmt/policy/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/policy/policyapi/models.go b/profiles/latest/resources/mgmt/policy/policyapi/models.go index 9ce4bbea8e8d..ce8ae2e9d56c 100644 --- a/profiles/latest/resources/mgmt/policy/policyapi/models.go +++ b/profiles/latest/resources/mgmt/policy/policyapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/resources/models.go b/profiles/latest/resources/mgmt/resources/models.go index 90d57546e8c3..babec5ca64fb 100644 --- a/profiles/latest/resources/mgmt/resources/models.go +++ b/profiles/latest/resources/mgmt/resources/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/resources/resourcesapi/models.go b/profiles/latest/resources/mgmt/resources/resourcesapi/models.go index f862d5b7ac53..b00557304a23 100644 --- a/profiles/latest/resources/mgmt/resources/resourcesapi/models.go +++ b/profiles/latest/resources/mgmt/resources/resourcesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/subscriptions/models.go b/profiles/latest/resources/mgmt/subscriptions/models.go index 57ce9bcf745a..1c11d961eef8 100644 --- a/profiles/latest/resources/mgmt/subscriptions/models.go +++ b/profiles/latest/resources/mgmt/subscriptions/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/resources/mgmt/subscriptions/subscriptionsapi/models.go b/profiles/latest/resources/mgmt/subscriptions/subscriptionsapi/models.go index 68a56e8ddf96..5d49a61a940e 100644 --- a/profiles/latest/resources/mgmt/subscriptions/subscriptionsapi/models.go +++ b/profiles/latest/resources/mgmt/subscriptions/subscriptionsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/scheduler/mgmt/scheduler/models.go b/profiles/latest/scheduler/mgmt/scheduler/models.go index 88255e590959..4a04c0f60678 100644 --- a/profiles/latest/scheduler/mgmt/scheduler/models.go +++ b/profiles/latest/scheduler/mgmt/scheduler/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/scheduler/mgmt/scheduler/schedulerapi/models.go b/profiles/latest/scheduler/mgmt/scheduler/schedulerapi/models.go index 9ee9fd729af1..300cbdc45916 100644 --- a/profiles/latest/scheduler/mgmt/scheduler/schedulerapi/models.go +++ b/profiles/latest/scheduler/mgmt/scheduler/schedulerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/search/mgmt/search/models.go b/profiles/latest/search/mgmt/search/models.go index 9dd8a8e31d90..e5e64444bf4d 100644 --- a/profiles/latest/search/mgmt/search/models.go +++ b/profiles/latest/search/mgmt/search/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/search/mgmt/search/searchapi/models.go b/profiles/latest/search/mgmt/search/searchapi/models.go index a93ec1cdff2c..3fb302f49e7c 100644 --- a/profiles/latest/search/mgmt/search/searchapi/models.go +++ b/profiles/latest/search/mgmt/search/searchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/servicebus/mgmt/servicebus/models.go b/profiles/latest/servicebus/mgmt/servicebus/models.go index 13cb24bfb3f6..19367678f639 100644 --- a/profiles/latest/servicebus/mgmt/servicebus/models.go +++ b/profiles/latest/servicebus/mgmt/servicebus/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/servicebus/mgmt/servicebus/servicebusapi/models.go b/profiles/latest/servicebus/mgmt/servicebus/servicebusapi/models.go index 474d74a7867e..9f01cb32e070 100644 --- a/profiles/latest/servicebus/mgmt/servicebus/servicebusapi/models.go +++ b/profiles/latest/servicebus/mgmt/servicebus/servicebusapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/servicefabric/mgmt/servicefabric/models.go b/profiles/latest/servicefabric/mgmt/servicefabric/models.go index 786bf1ca6cf2..b73025288339 100644 --- a/profiles/latest/servicefabric/mgmt/servicefabric/models.go +++ b/profiles/latest/servicefabric/mgmt/servicefabric/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/servicefabric/servicefabric/models.go b/profiles/latest/servicefabric/servicefabric/models.go index dcb7e7c38869..c2cb98b2ac8d 100644 --- a/profiles/latest/servicefabric/servicefabric/models.go +++ b/profiles/latest/servicefabric/servicefabric/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/servicefabric/servicefabric/servicefabricapi/models.go b/profiles/latest/servicefabric/servicefabric/servicefabricapi/models.go index 45b018335f79..daa6486249d0 100644 --- a/profiles/latest/servicefabric/servicefabric/servicefabricapi/models.go +++ b/profiles/latest/servicefabric/servicefabric/servicefabricapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/signalr/mgmt/signalr/models.go b/profiles/latest/signalr/mgmt/signalr/models.go index cde7ef738891..038d7d833aba 100644 --- a/profiles/latest/signalr/mgmt/signalr/models.go +++ b/profiles/latest/signalr/mgmt/signalr/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/signalr/mgmt/signalr/signalrapi/models.go b/profiles/latest/signalr/mgmt/signalr/signalrapi/models.go index 58d67980565d..97ab40cf226d 100644 --- a/profiles/latest/signalr/mgmt/signalr/signalrapi/models.go +++ b/profiles/latest/signalr/mgmt/signalr/signalrapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/sql/mgmt/sql/models.go b/profiles/latest/sql/mgmt/sql/models.go index a431f3571681..9867fda53f46 100644 --- a/profiles/latest/sql/mgmt/sql/models.go +++ b/profiles/latest/sql/mgmt/sql/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/sql/mgmt/sql/sqlapi/models.go b/profiles/latest/sql/mgmt/sql/sqlapi/models.go index 53f569f6e815..8a1a24d93635 100644 --- a/profiles/latest/sql/mgmt/sql/sqlapi/models.go +++ b/profiles/latest/sql/mgmt/sql/sqlapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/stable/storage/datalake/storagedatalake/models.go b/profiles/latest/stable/storage/datalake/storagedatalake/models.go index 04c4e666ab00..7097d530914d 100644 --- a/profiles/latest/stable/storage/datalake/storagedatalake/models.go +++ b/profiles/latest/stable/storage/datalake/storagedatalake/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/stable/storage/datalake/storagedatalake/storagedatalakeapi/models.go b/profiles/latest/stable/storage/datalake/storagedatalake/storagedatalakeapi/models.go index c96ca8b1f0df..31f30034a382 100644 --- a/profiles/latest/stable/storage/datalake/storagedatalake/storagedatalakeapi/models.go +++ b/profiles/latest/stable/storage/datalake/storagedatalake/storagedatalakeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/storage/datalake/storagedatalake/models.go b/profiles/latest/storage/datalake/storagedatalake/models.go index 82f307545e11..f53f7ffec23d 100644 --- a/profiles/latest/storage/datalake/storagedatalake/models.go +++ b/profiles/latest/storage/datalake/storagedatalake/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/storage/datalake/storagedatalake/storagedatalakeapi/models.go b/profiles/latest/storage/datalake/storagedatalake/storagedatalakeapi/models.go index 91e30cd79c6e..f3a5332f1380 100644 --- a/profiles/latest/storage/datalake/storagedatalake/storagedatalakeapi/models.go +++ b/profiles/latest/storage/datalake/storagedatalake/storagedatalakeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/storage/mgmt/storage/models.go b/profiles/latest/storage/mgmt/storage/models.go index 15bcd686049a..905161ca8571 100644 --- a/profiles/latest/storage/mgmt/storage/models.go +++ b/profiles/latest/storage/mgmt/storage/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/storage/mgmt/storage/storageapi/models.go b/profiles/latest/storage/mgmt/storage/storageapi/models.go index 50dc4b7671d9..4feb8f4827c7 100644 --- a/profiles/latest/storage/mgmt/storage/storageapi/models.go +++ b/profiles/latest/storage/mgmt/storage/storageapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/storageimportexport/mgmt/storageimportexport/models.go b/profiles/latest/storageimportexport/mgmt/storageimportexport/models.go index 07cef3c0c7ad..b8d48d00dd05 100644 --- a/profiles/latest/storageimportexport/mgmt/storageimportexport/models.go +++ b/profiles/latest/storageimportexport/mgmt/storageimportexport/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/storageimportexport/mgmt/storageimportexport/storageimportexportapi/models.go b/profiles/latest/storageimportexport/mgmt/storageimportexport/storageimportexportapi/models.go index f16c33a6295d..e6d7e671ebfa 100644 --- a/profiles/latest/storageimportexport/mgmt/storageimportexport/storageimportexportapi/models.go +++ b/profiles/latest/storageimportexport/mgmt/storageimportexport/storageimportexportapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/storagesync/mgmt/storagesync/models.go b/profiles/latest/storagesync/mgmt/storagesync/models.go index a992ac23146a..594c84a57077 100644 --- a/profiles/latest/storagesync/mgmt/storagesync/models.go +++ b/profiles/latest/storagesync/mgmt/storagesync/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/storagesync/mgmt/storagesync/storagesyncapi/models.go b/profiles/latest/storagesync/mgmt/storagesync/storagesyncapi/models.go index f7ec69e6b1e0..e88b51931e14 100644 --- a/profiles/latest/storagesync/mgmt/storagesync/storagesyncapi/models.go +++ b/profiles/latest/storagesync/mgmt/storagesync/storagesyncapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/storsimple1200series/mgmt/storsimple/models.go b/profiles/latest/storsimple1200series/mgmt/storsimple/models.go index 0e13fd297d47..68157a05e6db 100644 --- a/profiles/latest/storsimple1200series/mgmt/storsimple/models.go +++ b/profiles/latest/storsimple1200series/mgmt/storsimple/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/storsimple1200series/mgmt/storsimple/storsimpleapi/models.go b/profiles/latest/storsimple1200series/mgmt/storsimple/storsimpleapi/models.go index 11b413014a41..a0acc58522f6 100644 --- a/profiles/latest/storsimple1200series/mgmt/storsimple/storsimpleapi/models.go +++ b/profiles/latest/storsimple1200series/mgmt/storsimple/storsimpleapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/storsimple8000series/mgmt/storsimple/models.go b/profiles/latest/storsimple8000series/mgmt/storsimple/models.go index 24cb2d99065c..facf91ceac3a 100644 --- a/profiles/latest/storsimple8000series/mgmt/storsimple/models.go +++ b/profiles/latest/storsimple8000series/mgmt/storsimple/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/storsimple8000series/mgmt/storsimple/storsimpleapi/models.go b/profiles/latest/storsimple8000series/mgmt/storsimple/storsimpleapi/models.go index 91fb5f0f9163..e8e639ce7193 100644 --- a/profiles/latest/storsimple8000series/mgmt/storsimple/storsimpleapi/models.go +++ b/profiles/latest/storsimple8000series/mgmt/storsimple/storsimpleapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/streamanalytics/mgmt/streamanalytics/models.go b/profiles/latest/streamanalytics/mgmt/streamanalytics/models.go index d1cec79e0aa6..b54ec101ab7f 100644 --- a/profiles/latest/streamanalytics/mgmt/streamanalytics/models.go +++ b/profiles/latest/streamanalytics/mgmt/streamanalytics/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/streamanalytics/mgmt/streamanalytics/streamanalyticsapi/models.go b/profiles/latest/streamanalytics/mgmt/streamanalytics/streamanalyticsapi/models.go index fa7b8c8bbeed..cff90bedb96d 100644 --- a/profiles/latest/streamanalytics/mgmt/streamanalytics/streamanalyticsapi/models.go +++ b/profiles/latest/streamanalytics/mgmt/streamanalytics/streamanalyticsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/timeseriesinsights/mgmt/timeseriesinsights/models.go b/profiles/latest/timeseriesinsights/mgmt/timeseriesinsights/models.go index 4844defe3280..c987aee85a4a 100644 --- a/profiles/latest/timeseriesinsights/mgmt/timeseriesinsights/models.go +++ b/profiles/latest/timeseriesinsights/mgmt/timeseriesinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/timeseriesinsights/mgmt/timeseriesinsights/timeseriesinsightsapi/models.go b/profiles/latest/timeseriesinsights/mgmt/timeseriesinsights/timeseriesinsightsapi/models.go index a534aa4ae22d..7b053c050cf1 100644 --- a/profiles/latest/timeseriesinsights/mgmt/timeseriesinsights/timeseriesinsightsapi/models.go +++ b/profiles/latest/timeseriesinsights/mgmt/timeseriesinsights/timeseriesinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/trafficmanager/mgmt/trafficmanager/models.go b/profiles/latest/trafficmanager/mgmt/trafficmanager/models.go index 1b7c3f8b88b9..950307dc8ad7 100644 --- a/profiles/latest/trafficmanager/mgmt/trafficmanager/models.go +++ b/profiles/latest/trafficmanager/mgmt/trafficmanager/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/trafficmanager/mgmt/trafficmanager/trafficmanagerapi/models.go b/profiles/latest/trafficmanager/mgmt/trafficmanager/trafficmanagerapi/models.go index 51c67c8deab8..0f951177a8d1 100644 --- a/profiles/latest/trafficmanager/mgmt/trafficmanager/trafficmanagerapi/models.go +++ b/profiles/latest/trafficmanager/mgmt/trafficmanager/trafficmanagerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/web/mgmt/web/models.go b/profiles/latest/web/mgmt/web/models.go index 7e1c89840da9..8887df73b59e 100644 --- a/profiles/latest/web/mgmt/web/models.go +++ b/profiles/latest/web/mgmt/web/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/latest/web/mgmt/web/webapi/models.go b/profiles/latest/web/mgmt/web/webapi/models.go index e441fbdafd89..a38a27b2cc73 100644 --- a/profiles/latest/web/mgmt/web/webapi/models.go +++ b/profiles/latest/web/mgmt/web/webapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/adhybridhealthservice/mgmt/adhybridhealthservice/adhybridhealthserviceapi/models.go b/profiles/preview/adhybridhealthservice/mgmt/adhybridhealthservice/adhybridhealthserviceapi/models.go index 07e3ac854cf6..d0430824e120 100644 --- a/profiles/preview/adhybridhealthservice/mgmt/adhybridhealthservice/adhybridhealthserviceapi/models.go +++ b/profiles/preview/adhybridhealthservice/mgmt/adhybridhealthservice/adhybridhealthserviceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/adhybridhealthservice/mgmt/adhybridhealthservice/models.go b/profiles/preview/adhybridhealthservice/mgmt/adhybridhealthservice/models.go index 61ebb3d32e85..a0348ed00fac 100644 --- a/profiles/preview/adhybridhealthservice/mgmt/adhybridhealthservice/models.go +++ b/profiles/preview/adhybridhealthservice/mgmt/adhybridhealthservice/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/advisor/mgmt/advisor/advisorapi/models.go b/profiles/preview/advisor/mgmt/advisor/advisorapi/models.go index dd5ce30ff467..7981a26eaeba 100644 --- a/profiles/preview/advisor/mgmt/advisor/advisorapi/models.go +++ b/profiles/preview/advisor/mgmt/advisor/advisorapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/advisor/mgmt/advisor/models.go b/profiles/preview/advisor/mgmt/advisor/models.go index a30e1b39d2f4..72606b4a1fd8 100644 --- a/profiles/preview/advisor/mgmt/advisor/models.go +++ b/profiles/preview/advisor/mgmt/advisor/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/alertsmanagement/mgmt/alertsmanagement/alertsmanagementapi/models.go b/profiles/preview/alertsmanagement/mgmt/alertsmanagement/alertsmanagementapi/models.go index 9a3dd1f19bb6..b81b0d37c69b 100644 --- a/profiles/preview/alertsmanagement/mgmt/alertsmanagement/alertsmanagementapi/models.go +++ b/profiles/preview/alertsmanagement/mgmt/alertsmanagement/alertsmanagementapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/alertsmanagement/mgmt/alertsmanagement/models.go b/profiles/preview/alertsmanagement/mgmt/alertsmanagement/models.go index 69f9635d4da8..2ca7f0eba322 100644 --- a/profiles/preview/alertsmanagement/mgmt/alertsmanagement/models.go +++ b/profiles/preview/alertsmanagement/mgmt/alertsmanagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/analysisservices/mgmt/analysisservices/analysisservicesapi/models.go b/profiles/preview/analysisservices/mgmt/analysisservices/analysisservicesapi/models.go index 722df0596fd2..f0e384bd4cdb 100644 --- a/profiles/preview/analysisservices/mgmt/analysisservices/analysisservicesapi/models.go +++ b/profiles/preview/analysisservices/mgmt/analysisservices/analysisservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/analysisservices/mgmt/analysisservices/models.go b/profiles/preview/analysisservices/mgmt/analysisservices/models.go index ca1693607ec4..23299fabe447 100644 --- a/profiles/preview/analysisservices/mgmt/analysisservices/models.go +++ b/profiles/preview/analysisservices/mgmt/analysisservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/apimanagement/mgmt/apimanagement/apimanagementapi/models.go b/profiles/preview/apimanagement/mgmt/apimanagement/apimanagementapi/models.go index c4668dba6535..c2b5e88624ae 100644 --- a/profiles/preview/apimanagement/mgmt/apimanagement/apimanagementapi/models.go +++ b/profiles/preview/apimanagement/mgmt/apimanagement/apimanagementapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/apimanagement/mgmt/apimanagement/models.go b/profiles/preview/apimanagement/mgmt/apimanagement/models.go index edb89d47ea66..eb158b3e14d7 100644 --- a/profiles/preview/apimanagement/mgmt/apimanagement/models.go +++ b/profiles/preview/apimanagement/mgmt/apimanagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/appinsights/insights/models.go b/profiles/preview/appinsights/insights/models.go index 18c4b0d19477..cc63022b1de0 100644 --- a/profiles/preview/appinsights/insights/models.go +++ b/profiles/preview/appinsights/insights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/appinsights/mgmt/insights/insightsapi/models.go b/profiles/preview/appinsights/mgmt/insights/insightsapi/models.go index 9034c0b8c9cd..b5609afe38de 100644 --- a/profiles/preview/appinsights/mgmt/insights/insightsapi/models.go +++ b/profiles/preview/appinsights/mgmt/insights/insightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/appinsights/mgmt/insights/models.go b/profiles/preview/appinsights/mgmt/insights/models.go index 46fd2628cc03..609896b561ec 100644 --- a/profiles/preview/appinsights/mgmt/insights/models.go +++ b/profiles/preview/appinsights/mgmt/insights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/authorization/mgmt/authorization/authorizationapi/models.go b/profiles/preview/authorization/mgmt/authorization/authorizationapi/models.go index dc9bf8a8c632..1d3a9dcb0495 100644 --- a/profiles/preview/authorization/mgmt/authorization/authorizationapi/models.go +++ b/profiles/preview/authorization/mgmt/authorization/authorizationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/authorization/mgmt/authorization/models.go b/profiles/preview/authorization/mgmt/authorization/models.go index ed2e3ff5ef75..91c70efa4297 100644 --- a/profiles/preview/authorization/mgmt/authorization/models.go +++ b/profiles/preview/authorization/mgmt/authorization/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/automation/mgmt/automation/automationapi/models.go b/profiles/preview/automation/mgmt/automation/automationapi/models.go index 1907748fccfb..4ecdab7a9cce 100644 --- a/profiles/preview/automation/mgmt/automation/automationapi/models.go +++ b/profiles/preview/automation/mgmt/automation/automationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/automation/mgmt/automation/models.go b/profiles/preview/automation/mgmt/automation/models.go index 294c21ad3191..695ad63fef95 100644 --- a/profiles/preview/automation/mgmt/automation/models.go +++ b/profiles/preview/automation/mgmt/automation/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/azsadmin/mgmt/fabric/models.go b/profiles/preview/azsadmin/mgmt/fabric/models.go index 8322f3201a4e..c59fbaef7418 100644 --- a/profiles/preview/azsadmin/mgmt/fabric/models.go +++ b/profiles/preview/azsadmin/mgmt/fabric/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/azsadmin/mgmt/infrastructureinsights/models.go b/profiles/preview/azsadmin/mgmt/infrastructureinsights/models.go index be84a781aa08..b42c63f62db4 100644 --- a/profiles/preview/azsadmin/mgmt/infrastructureinsights/models.go +++ b/profiles/preview/azsadmin/mgmt/infrastructureinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/azurestack/mgmt/azurestack/azurestackapi/models.go b/profiles/preview/azurestack/mgmt/azurestack/azurestackapi/models.go index 72bde20c4b9c..b741f8bbb411 100644 --- a/profiles/preview/azurestack/mgmt/azurestack/azurestackapi/models.go +++ b/profiles/preview/azurestack/mgmt/azurestack/azurestackapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/azurestack/mgmt/azurestack/models.go b/profiles/preview/azurestack/mgmt/azurestack/models.go index 72cf1abaac85..c7c59493bcf9 100644 --- a/profiles/preview/azurestack/mgmt/azurestack/models.go +++ b/profiles/preview/azurestack/mgmt/azurestack/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/batch/batch/batchapi/models.go b/profiles/preview/batch/batch/batchapi/models.go index 8e3672b5ecee..ac07f0a334b4 100644 --- a/profiles/preview/batch/batch/batchapi/models.go +++ b/profiles/preview/batch/batch/batchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/batch/batch/models.go b/profiles/preview/batch/batch/models.go index e458c2a07015..ec32e7f038a0 100644 --- a/profiles/preview/batch/batch/models.go +++ b/profiles/preview/batch/batch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/batch/mgmt/batch/batchapi/models.go b/profiles/preview/batch/mgmt/batch/batchapi/models.go index f102f30178b3..5b0c2048632d 100644 --- a/profiles/preview/batch/mgmt/batch/batchapi/models.go +++ b/profiles/preview/batch/mgmt/batch/batchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/batch/mgmt/batch/models.go b/profiles/preview/batch/mgmt/batch/models.go index 6c1c44e0fc0a..502b4c433e9e 100644 --- a/profiles/preview/batch/mgmt/batch/models.go +++ b/profiles/preview/batch/mgmt/batch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/batchai/mgmt/batchai/batchaiapi/models.go b/profiles/preview/batchai/mgmt/batchai/batchaiapi/models.go index 74f73b822e77..2444beec7a48 100644 --- a/profiles/preview/batchai/mgmt/batchai/batchaiapi/models.go +++ b/profiles/preview/batchai/mgmt/batchai/batchaiapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/batchai/mgmt/batchai/models.go b/profiles/preview/batchai/mgmt/batchai/models.go index ebb90e297388..41b871e06931 100644 --- a/profiles/preview/batchai/mgmt/batchai/models.go +++ b/profiles/preview/batchai/mgmt/batchai/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cdn/mgmt/cdn/cdnapi/models.go b/profiles/preview/cdn/mgmt/cdn/cdnapi/models.go index 775f910044eb..0fc9c4a5d9c6 100644 --- a/profiles/preview/cdn/mgmt/cdn/cdnapi/models.go +++ b/profiles/preview/cdn/mgmt/cdn/cdnapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cdn/mgmt/cdn/models.go b/profiles/preview/cdn/mgmt/cdn/models.go index 82f62ce7ea04..9cad75823547 100644 --- a/profiles/preview/cdn/mgmt/cdn/models.go +++ b/profiles/preview/cdn/mgmt/cdn/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/autosuggest/autosuggestapi/models.go b/profiles/preview/cognitiveservices/autosuggest/autosuggestapi/models.go index 1a5a34c58d32..eede70a18dc6 100644 --- a/profiles/preview/cognitiveservices/autosuggest/autosuggestapi/models.go +++ b/profiles/preview/cognitiveservices/autosuggest/autosuggestapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/autosuggest/models.go b/profiles/preview/cognitiveservices/autosuggest/models.go index 50a7c789b23f..1c86625c2af8 100644 --- a/profiles/preview/cognitiveservices/autosuggest/models.go +++ b/profiles/preview/cognitiveservices/autosuggest/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/computervision/computervisionapi/models.go b/profiles/preview/cognitiveservices/computervision/computervisionapi/models.go index 5b85910d11d5..f6a25fe21a6e 100644 --- a/profiles/preview/cognitiveservices/computervision/computervisionapi/models.go +++ b/profiles/preview/cognitiveservices/computervision/computervisionapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/computervision/models.go b/profiles/preview/cognitiveservices/computervision/models.go index eceefbf58c89..379a77ac73d7 100644 --- a/profiles/preview/cognitiveservices/computervision/models.go +++ b/profiles/preview/cognitiveservices/computervision/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/contentmoderator/contentmoderatorapi/models.go b/profiles/preview/cognitiveservices/contentmoderator/contentmoderatorapi/models.go index fcfba6ab00ee..e1c9ff1ff0e7 100644 --- a/profiles/preview/cognitiveservices/contentmoderator/contentmoderatorapi/models.go +++ b/profiles/preview/cognitiveservices/contentmoderator/contentmoderatorapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/contentmoderator/models.go b/profiles/preview/cognitiveservices/contentmoderator/models.go index dfb6fe68a24f..6837e347c4a3 100644 --- a/profiles/preview/cognitiveservices/contentmoderator/models.go +++ b/profiles/preview/cognitiveservices/contentmoderator/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/customimagesearch/customimagesearchapi/models.go b/profiles/preview/cognitiveservices/customimagesearch/customimagesearchapi/models.go index c572a288647e..e63ba5931467 100644 --- a/profiles/preview/cognitiveservices/customimagesearch/customimagesearchapi/models.go +++ b/profiles/preview/cognitiveservices/customimagesearch/customimagesearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/customimagesearch/models.go b/profiles/preview/cognitiveservices/customimagesearch/models.go index 4269d22fb6ab..219372e3f473 100644 --- a/profiles/preview/cognitiveservices/customimagesearch/models.go +++ b/profiles/preview/cognitiveservices/customimagesearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/customsearch/customsearchapi/models.go b/profiles/preview/cognitiveservices/customsearch/customsearchapi/models.go index bc6d7a9ce8aa..3d40c669a132 100644 --- a/profiles/preview/cognitiveservices/customsearch/customsearchapi/models.go +++ b/profiles/preview/cognitiveservices/customsearch/customsearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/customsearch/models.go b/profiles/preview/cognitiveservices/customsearch/models.go index ba0a887e03ef..c329b89a611b 100644 --- a/profiles/preview/cognitiveservices/customsearch/models.go +++ b/profiles/preview/cognitiveservices/customsearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/customvision/prediction/models.go b/profiles/preview/cognitiveservices/customvision/prediction/models.go index cddaa400d0e0..f4a167743fd2 100644 --- a/profiles/preview/cognitiveservices/customvision/prediction/models.go +++ b/profiles/preview/cognitiveservices/customvision/prediction/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/customvision/prediction/predictionapi/models.go b/profiles/preview/cognitiveservices/customvision/prediction/predictionapi/models.go index 0af29a2c6e7a..26c8eb145ea8 100644 --- a/profiles/preview/cognitiveservices/customvision/prediction/predictionapi/models.go +++ b/profiles/preview/cognitiveservices/customvision/prediction/predictionapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/customvision/training/models.go b/profiles/preview/cognitiveservices/customvision/training/models.go index f17afe58e812..90f33e294176 100644 --- a/profiles/preview/cognitiveservices/customvision/training/models.go +++ b/profiles/preview/cognitiveservices/customvision/training/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/customvision/training/trainingapi/models.go b/profiles/preview/cognitiveservices/customvision/training/trainingapi/models.go index f3a05926a689..5a918ba9c2f5 100644 --- a/profiles/preview/cognitiveservices/customvision/training/trainingapi/models.go +++ b/profiles/preview/cognitiveservices/customvision/training/trainingapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/entitysearch/entitysearchapi/models.go b/profiles/preview/cognitiveservices/entitysearch/entitysearchapi/models.go index 2ca45db3b057..2d2dfa809af8 100644 --- a/profiles/preview/cognitiveservices/entitysearch/entitysearchapi/models.go +++ b/profiles/preview/cognitiveservices/entitysearch/entitysearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/entitysearch/models.go b/profiles/preview/cognitiveservices/entitysearch/models.go index b6583120fa23..01becbedaf0f 100644 --- a/profiles/preview/cognitiveservices/entitysearch/models.go +++ b/profiles/preview/cognitiveservices/entitysearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/face/faceapi/models.go b/profiles/preview/cognitiveservices/face/faceapi/models.go index 6ee1c8c6ccbe..2be0e3d023f1 100644 --- a/profiles/preview/cognitiveservices/face/faceapi/models.go +++ b/profiles/preview/cognitiveservices/face/faceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/face/models.go b/profiles/preview/cognitiveservices/face/models.go index d8d40554d517..30e0cb11b1e7 100644 --- a/profiles/preview/cognitiveservices/face/models.go +++ b/profiles/preview/cognitiveservices/face/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/imagesearch/imagesearchapi/models.go b/profiles/preview/cognitiveservices/imagesearch/imagesearchapi/models.go index f16f7a6dd412..256da2ec0e2c 100644 --- a/profiles/preview/cognitiveservices/imagesearch/imagesearchapi/models.go +++ b/profiles/preview/cognitiveservices/imagesearch/imagesearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/imagesearch/models.go b/profiles/preview/cognitiveservices/imagesearch/models.go index 01a85f5f20cc..4e1eeb49a9da 100644 --- a/profiles/preview/cognitiveservices/imagesearch/models.go +++ b/profiles/preview/cognitiveservices/imagesearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/localsearch/localsearchapi/models.go b/profiles/preview/cognitiveservices/localsearch/localsearchapi/models.go index 522eff77b689..8acfb085e1cc 100644 --- a/profiles/preview/cognitiveservices/localsearch/localsearchapi/models.go +++ b/profiles/preview/cognitiveservices/localsearch/localsearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/localsearch/models.go b/profiles/preview/cognitiveservices/localsearch/models.go index 239ba69fc64f..59e464119d3e 100644 --- a/profiles/preview/cognitiveservices/localsearch/models.go +++ b/profiles/preview/cognitiveservices/localsearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/luis/authoring/authoringapi/models.go b/profiles/preview/cognitiveservices/luis/authoring/authoringapi/models.go index b87dd58e85e6..15ac78bb317b 100644 --- a/profiles/preview/cognitiveservices/luis/authoring/authoringapi/models.go +++ b/profiles/preview/cognitiveservices/luis/authoring/authoringapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/luis/authoring/models.go b/profiles/preview/cognitiveservices/luis/authoring/models.go index 0175f7f7146d..2e7556f92a89 100644 --- a/profiles/preview/cognitiveservices/luis/authoring/models.go +++ b/profiles/preview/cognitiveservices/luis/authoring/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/luis/programmatic/models.go b/profiles/preview/cognitiveservices/luis/programmatic/models.go index 5836992642fd..bb1528ceddbc 100644 --- a/profiles/preview/cognitiveservices/luis/programmatic/models.go +++ b/profiles/preview/cognitiveservices/luis/programmatic/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/luis/runtime/models.go b/profiles/preview/cognitiveservices/luis/runtime/models.go index 812228fd04e2..12591d37c0d6 100644 --- a/profiles/preview/cognitiveservices/luis/runtime/models.go +++ b/profiles/preview/cognitiveservices/luis/runtime/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/luis/runtime/runtimeapi/models.go b/profiles/preview/cognitiveservices/luis/runtime/runtimeapi/models.go index 52acf2dd4a6c..bd78fd1355eb 100644 --- a/profiles/preview/cognitiveservices/luis/runtime/runtimeapi/models.go +++ b/profiles/preview/cognitiveservices/luis/runtime/runtimeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go b/profiles/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go index f636960f5aab..99274caf975c 100644 --- a/profiles/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go +++ b/profiles/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/mgmt/cognitiveservices/models.go b/profiles/preview/cognitiveservices/mgmt/cognitiveservices/models.go index 45003c038f34..b00164142aeb 100644 --- a/profiles/preview/cognitiveservices/mgmt/cognitiveservices/models.go +++ b/profiles/preview/cognitiveservices/mgmt/cognitiveservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/newssearch/models.go b/profiles/preview/cognitiveservices/newssearch/models.go index d9f08b3626c3..a5235973e568 100644 --- a/profiles/preview/cognitiveservices/newssearch/models.go +++ b/profiles/preview/cognitiveservices/newssearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/newssearch/newssearchapi/models.go b/profiles/preview/cognitiveservices/newssearch/newssearchapi/models.go index 6c7f076e1a85..e8154974d69d 100644 --- a/profiles/preview/cognitiveservices/newssearch/newssearchapi/models.go +++ b/profiles/preview/cognitiveservices/newssearch/newssearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/qnamaker/models.go b/profiles/preview/cognitiveservices/qnamaker/models.go index fe8a0b0ffcb8..9c4661ef434a 100644 --- a/profiles/preview/cognitiveservices/qnamaker/models.go +++ b/profiles/preview/cognitiveservices/qnamaker/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/qnamaker/qnamakerapi/models.go b/profiles/preview/cognitiveservices/qnamaker/qnamakerapi/models.go index 75439a062aae..b1ca327587c4 100644 --- a/profiles/preview/cognitiveservices/qnamaker/qnamakerapi/models.go +++ b/profiles/preview/cognitiveservices/qnamaker/qnamakerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/spellcheck/models.go b/profiles/preview/cognitiveservices/spellcheck/models.go index 9580a1811c61..02fcb3544ddd 100644 --- a/profiles/preview/cognitiveservices/spellcheck/models.go +++ b/profiles/preview/cognitiveservices/spellcheck/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/spellcheck/spellcheckapi/models.go b/profiles/preview/cognitiveservices/spellcheck/spellcheckapi/models.go index a1e4b1c4d241..0d1d1a7edeba 100644 --- a/profiles/preview/cognitiveservices/spellcheck/spellcheckapi/models.go +++ b/profiles/preview/cognitiveservices/spellcheck/spellcheckapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/textanalytics/models.go b/profiles/preview/cognitiveservices/textanalytics/models.go index 5911c8c2c32c..9b866f911f96 100644 --- a/profiles/preview/cognitiveservices/textanalytics/models.go +++ b/profiles/preview/cognitiveservices/textanalytics/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/textanalytics/textanalyticsapi/models.go b/profiles/preview/cognitiveservices/textanalytics/textanalyticsapi/models.go index 0d15745f54eb..0c4f37d3ad3d 100644 --- a/profiles/preview/cognitiveservices/textanalytics/textanalyticsapi/models.go +++ b/profiles/preview/cognitiveservices/textanalytics/textanalyticsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/videosearch/models.go b/profiles/preview/cognitiveservices/videosearch/models.go index 69938dae9c21..d3d434584426 100644 --- a/profiles/preview/cognitiveservices/videosearch/models.go +++ b/profiles/preview/cognitiveservices/videosearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/videosearch/videosearchapi/models.go b/profiles/preview/cognitiveservices/videosearch/videosearchapi/models.go index a290f04b5e76..de5a5e36f3a2 100644 --- a/profiles/preview/cognitiveservices/videosearch/videosearchapi/models.go +++ b/profiles/preview/cognitiveservices/videosearch/videosearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/websearch/models.go b/profiles/preview/cognitiveservices/websearch/models.go index e293ddb625a1..5872b0bf5179 100644 --- a/profiles/preview/cognitiveservices/websearch/models.go +++ b/profiles/preview/cognitiveservices/websearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cognitiveservices/websearch/websearchapi/models.go b/profiles/preview/cognitiveservices/websearch/websearchapi/models.go index f6b6c4b8b1e3..fc093cff5ac2 100644 --- a/profiles/preview/cognitiveservices/websearch/websearchapi/models.go +++ b/profiles/preview/cognitiveservices/websearch/websearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/compute/mgmt/compute/computeapi/models.go b/profiles/preview/compute/mgmt/compute/computeapi/models.go index fb6f06de8af3..7545d6220969 100644 --- a/profiles/preview/compute/mgmt/compute/computeapi/models.go +++ b/profiles/preview/compute/mgmt/compute/computeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/compute/mgmt/compute/models.go b/profiles/preview/compute/mgmt/compute/models.go index 4c957d6433b8..4997c66be905 100644 --- a/profiles/preview/compute/mgmt/compute/models.go +++ b/profiles/preview/compute/mgmt/compute/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/compute/mgmt/skus/models.go b/profiles/preview/compute/mgmt/skus/models.go index 4a11e3d4f22d..b0cccf1787ae 100644 --- a/profiles/preview/compute/mgmt/skus/models.go +++ b/profiles/preview/compute/mgmt/skus/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/compute/mgmt/skus/skusapi/models.go b/profiles/preview/compute/mgmt/skus/skusapi/models.go index b51abe8db832..104f1260f9df 100644 --- a/profiles/preview/compute/mgmt/skus/skusapi/models.go +++ b/profiles/preview/compute/mgmt/skus/skusapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/consumption/mgmt/consumption/consumptionapi/models.go b/profiles/preview/consumption/mgmt/consumption/consumptionapi/models.go index 4b0974d5046f..be45073f1991 100644 --- a/profiles/preview/consumption/mgmt/consumption/consumptionapi/models.go +++ b/profiles/preview/consumption/mgmt/consumption/consumptionapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/consumption/mgmt/consumption/models.go b/profiles/preview/consumption/mgmt/consumption/models.go index 1409915d7d62..08ad587ec097 100644 --- a/profiles/preview/consumption/mgmt/consumption/models.go +++ b/profiles/preview/consumption/mgmt/consumption/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/containerinstance/mgmt/containerinstance/containerinstanceapi/models.go b/profiles/preview/containerinstance/mgmt/containerinstance/containerinstanceapi/models.go index 34e154d7ab09..ae61abe5104f 100644 --- a/profiles/preview/containerinstance/mgmt/containerinstance/containerinstanceapi/models.go +++ b/profiles/preview/containerinstance/mgmt/containerinstance/containerinstanceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/containerinstance/mgmt/containerinstance/models.go b/profiles/preview/containerinstance/mgmt/containerinstance/models.go index b4bf91d13b72..fb7f73600bc8 100644 --- a/profiles/preview/containerinstance/mgmt/containerinstance/models.go +++ b/profiles/preview/containerinstance/mgmt/containerinstance/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/containerregistry/mgmt/containerregistry/containerregistryapi/models.go b/profiles/preview/containerregistry/mgmt/containerregistry/containerregistryapi/models.go index 74c5f8b4eeec..15caf33e5150 100644 --- a/profiles/preview/containerregistry/mgmt/containerregistry/containerregistryapi/models.go +++ b/profiles/preview/containerregistry/mgmt/containerregistry/containerregistryapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/containerregistry/mgmt/containerregistry/models.go b/profiles/preview/containerregistry/mgmt/containerregistry/models.go index e63dca4a2353..0bbc86fb80b7 100644 --- a/profiles/preview/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/preview/containerregistry/mgmt/containerregistry/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go b/profiles/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go index 124e38b96ee6..717c4c8e380f 100644 --- a/profiles/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go +++ b/profiles/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/containerservice/mgmt/containerservice/models.go b/profiles/preview/containerservice/mgmt/containerservice/models.go index f0a695233991..1a5191bb805f 100644 --- a/profiles/preview/containerservice/mgmt/containerservice/models.go +++ b/profiles/preview/containerservice/mgmt/containerservice/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cosmos-db/mgmt/documentdb/documentdbapi/models.go b/profiles/preview/cosmos-db/mgmt/documentdb/documentdbapi/models.go index 3dd4ddb27056..6cd3813c1a28 100644 --- a/profiles/preview/cosmos-db/mgmt/documentdb/documentdbapi/models.go +++ b/profiles/preview/cosmos-db/mgmt/documentdb/documentdbapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/cosmos-db/mgmt/documentdb/models.go b/profiles/preview/cosmos-db/mgmt/documentdb/models.go index bef632e5f621..0259e4b606f7 100644 --- a/profiles/preview/cosmos-db/mgmt/documentdb/models.go +++ b/profiles/preview/cosmos-db/mgmt/documentdb/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go b/profiles/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go index 5155d68c4e3a..d592058fec26 100644 --- a/profiles/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go +++ b/profiles/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/costmanagement/mgmt/costmanagement/models.go b/profiles/preview/costmanagement/mgmt/costmanagement/models.go index dff222c6155d..094a522d7101 100644 --- a/profiles/preview/costmanagement/mgmt/costmanagement/models.go +++ b/profiles/preview/costmanagement/mgmt/costmanagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/customerinsights/mgmt/customerinsights/customerinsightsapi/models.go b/profiles/preview/customerinsights/mgmt/customerinsights/customerinsightsapi/models.go index ffd98e2a5180..cc1e4dd9ef64 100644 --- a/profiles/preview/customerinsights/mgmt/customerinsights/customerinsightsapi/models.go +++ b/profiles/preview/customerinsights/mgmt/customerinsights/customerinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/customerinsights/mgmt/customerinsights/models.go b/profiles/preview/customerinsights/mgmt/customerinsights/models.go index 4d94642859b7..9671a6654338 100644 --- a/profiles/preview/customerinsights/mgmt/customerinsights/models.go +++ b/profiles/preview/customerinsights/mgmt/customerinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/databox/mgmt/databox/databoxapi/models.go b/profiles/preview/databox/mgmt/databox/databoxapi/models.go index a40d5c1802bc..4cbd950b6a9b 100644 --- a/profiles/preview/databox/mgmt/databox/databoxapi/models.go +++ b/profiles/preview/databox/mgmt/databox/databoxapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/databox/mgmt/databox/models.go b/profiles/preview/databox/mgmt/databox/models.go index d97f8ebdd39f..ca081e0e77d4 100644 --- a/profiles/preview/databox/mgmt/databox/models.go +++ b/profiles/preview/databox/mgmt/databox/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/databricks/mgmt/databricks/databricksapi/models.go b/profiles/preview/databricks/mgmt/databricks/databricksapi/models.go index 8143dbe87f40..bdd3cda732dc 100644 --- a/profiles/preview/databricks/mgmt/databricks/databricksapi/models.go +++ b/profiles/preview/databricks/mgmt/databricks/databricksapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/databricks/mgmt/databricks/models.go b/profiles/preview/databricks/mgmt/databricks/models.go index c6f8cf4de1c3..c62b6371bb17 100644 --- a/profiles/preview/databricks/mgmt/databricks/models.go +++ b/profiles/preview/databricks/mgmt/databricks/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datacatalog/mgmt/datacatalog/datacatalogapi/models.go b/profiles/preview/datacatalog/mgmt/datacatalog/datacatalogapi/models.go index 3ae676c9b995..d6848bb57e4b 100644 --- a/profiles/preview/datacatalog/mgmt/datacatalog/datacatalogapi/models.go +++ b/profiles/preview/datacatalog/mgmt/datacatalog/datacatalogapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datacatalog/mgmt/datacatalog/models.go b/profiles/preview/datacatalog/mgmt/datacatalog/models.go index f87832271161..f524cd6ba258 100644 --- a/profiles/preview/datacatalog/mgmt/datacatalog/models.go +++ b/profiles/preview/datacatalog/mgmt/datacatalog/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datafactory/mgmt/datafactory/datafactoryapi/models.go b/profiles/preview/datafactory/mgmt/datafactory/datafactoryapi/models.go index d121c9474391..5acbe29407ea 100644 --- a/profiles/preview/datafactory/mgmt/datafactory/datafactoryapi/models.go +++ b/profiles/preview/datafactory/mgmt/datafactory/datafactoryapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datafactory/mgmt/datafactory/models.go b/profiles/preview/datafactory/mgmt/datafactory/models.go index 5aab6231c27f..1b7421a9a007 100644 --- a/profiles/preview/datafactory/mgmt/datafactory/models.go +++ b/profiles/preview/datafactory/mgmt/datafactory/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datalake/analytics/catalog/catalogapi/models.go b/profiles/preview/datalake/analytics/catalog/catalogapi/models.go index 87106b01b960..11d2dcea4676 100644 --- a/profiles/preview/datalake/analytics/catalog/catalogapi/models.go +++ b/profiles/preview/datalake/analytics/catalog/catalogapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datalake/analytics/catalog/models.go b/profiles/preview/datalake/analytics/catalog/models.go index 133952ce807e..97860c4bbeba 100644 --- a/profiles/preview/datalake/analytics/catalog/models.go +++ b/profiles/preview/datalake/analytics/catalog/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datalake/analytics/job/jobapi/models.go b/profiles/preview/datalake/analytics/job/jobapi/models.go index 3707d89190f0..3d3092f45cfa 100644 --- a/profiles/preview/datalake/analytics/job/jobapi/models.go +++ b/profiles/preview/datalake/analytics/job/jobapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datalake/analytics/job/models.go b/profiles/preview/datalake/analytics/job/models.go index f75864a82a23..c46c671b2305 100644 --- a/profiles/preview/datalake/analytics/job/models.go +++ b/profiles/preview/datalake/analytics/job/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datalake/analytics/mgmt/account/accountapi/models.go b/profiles/preview/datalake/analytics/mgmt/account/accountapi/models.go index 75115d28ab3a..83e9df4139d0 100644 --- a/profiles/preview/datalake/analytics/mgmt/account/accountapi/models.go +++ b/profiles/preview/datalake/analytics/mgmt/account/accountapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datalake/analytics/mgmt/account/models.go b/profiles/preview/datalake/analytics/mgmt/account/models.go index 3782d5bb6ccb..5fca6c2bb026 100644 --- a/profiles/preview/datalake/analytics/mgmt/account/models.go +++ b/profiles/preview/datalake/analytics/mgmt/account/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datalake/store/filesystem/filesystemapi/models.go b/profiles/preview/datalake/store/filesystem/filesystemapi/models.go index 272b5571aad0..6093cf28a13a 100644 --- a/profiles/preview/datalake/store/filesystem/filesystemapi/models.go +++ b/profiles/preview/datalake/store/filesystem/filesystemapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datalake/store/filesystem/models.go b/profiles/preview/datalake/store/filesystem/models.go index 6e1b57979538..3cbd8a936c12 100644 --- a/profiles/preview/datalake/store/filesystem/models.go +++ b/profiles/preview/datalake/store/filesystem/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datalake/store/mgmt/account/accountapi/models.go b/profiles/preview/datalake/store/mgmt/account/accountapi/models.go index 19656f68b7c3..78fccb7d3760 100644 --- a/profiles/preview/datalake/store/mgmt/account/accountapi/models.go +++ b/profiles/preview/datalake/store/mgmt/account/accountapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datalake/store/mgmt/account/models.go b/profiles/preview/datalake/store/mgmt/account/models.go index 5d9432dfc718..abe3e4be2d9c 100644 --- a/profiles/preview/datalake/store/mgmt/account/models.go +++ b/profiles/preview/datalake/store/mgmt/account/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datamigration/mgmt/datamigration/datamigrationapi/models.go b/profiles/preview/datamigration/mgmt/datamigration/datamigrationapi/models.go index ea967733585c..dad255426d7c 100644 --- a/profiles/preview/datamigration/mgmt/datamigration/datamigrationapi/models.go +++ b/profiles/preview/datamigration/mgmt/datamigration/datamigrationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datamigration/mgmt/datamigration/models.go b/profiles/preview/datamigration/mgmt/datamigration/models.go index 60ea5041adff..5353ba766440 100644 --- a/profiles/preview/datamigration/mgmt/datamigration/models.go +++ b/profiles/preview/datamigration/mgmt/datamigration/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/devtestlabs/mgmt/dtl/dtlapi/models.go b/profiles/preview/devtestlabs/mgmt/dtl/dtlapi/models.go index 80cd697799b6..917f8fa36965 100644 --- a/profiles/preview/devtestlabs/mgmt/dtl/dtlapi/models.go +++ b/profiles/preview/devtestlabs/mgmt/dtl/dtlapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/devtestlabs/mgmt/dtl/models.go b/profiles/preview/devtestlabs/mgmt/dtl/models.go index 1ee8446131aa..254097a49f2c 100644 --- a/profiles/preview/devtestlabs/mgmt/dtl/models.go +++ b/profiles/preview/devtestlabs/mgmt/dtl/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/dns/mgmt/dns/dnsapi/models.go b/profiles/preview/dns/mgmt/dns/dnsapi/models.go index 29d2078f9827..53198d06f71f 100644 --- a/profiles/preview/dns/mgmt/dns/dnsapi/models.go +++ b/profiles/preview/dns/mgmt/dns/dnsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/dns/mgmt/dns/models.go b/profiles/preview/dns/mgmt/dns/models.go index d304dbb8ee49..a9e1a7f161c0 100644 --- a/profiles/preview/dns/mgmt/dns/models.go +++ b/profiles/preview/dns/mgmt/dns/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/domainservices/mgmt/aad/aadapi/models.go b/profiles/preview/domainservices/mgmt/aad/aadapi/models.go index abb04a812be6..9f299cf3ee98 100644 --- a/profiles/preview/domainservices/mgmt/aad/aadapi/models.go +++ b/profiles/preview/domainservices/mgmt/aad/aadapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/domainservices/mgmt/aad/models.go b/profiles/preview/domainservices/mgmt/aad/models.go index a6ab7824330f..1988a4bf6b03 100644 --- a/profiles/preview/domainservices/mgmt/aad/models.go +++ b/profiles/preview/domainservices/mgmt/aad/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/edgegateway/mgmt/edgegateway/edgegatewayapi/models.go b/profiles/preview/edgegateway/mgmt/edgegateway/edgegatewayapi/models.go new file mode 100644 index 000000000000..7e63ff367434 --- /dev/null +++ b/profiles/preview/edgegateway/mgmt/edgegateway/edgegatewayapi/models.go @@ -0,0 +1,34 @@ +// +build go1.9 + +// Copyright 2019 Microsoft Corporation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This code was auto-generated by: +// github.com/Azure/azure-sdk-for-go/tools/profileBuilder + +package edgegatewayapi + +import original "github.com/Azure/azure-sdk-for-go/services/edgegateway/mgmt/2018-07-01/edgegateway/edgegatewayapi" + +type AlertsClientAPI = original.AlertsClientAPI +type BandwidthSchedulesClientAPI = original.BandwidthSchedulesClientAPI +type DevicesClientAPI = original.DevicesClientAPI +type OperationsClientAPI = original.OperationsClientAPI +type OperationsStatusClientAPI = original.OperationsStatusClientAPI +type OrdersClientAPI = original.OrdersClientAPI +type RolesClientAPI = original.RolesClientAPI +type SharesClientAPI = original.SharesClientAPI +type StorageAccountCredentialsClientAPI = original.StorageAccountCredentialsClientAPI +type TriggersClientAPI = original.TriggersClientAPI +type UsersClientAPI = original.UsersClientAPI diff --git a/profiles/preview/edgegateway/mgmt/edgegateway/models.go b/profiles/preview/edgegateway/mgmt/edgegateway/models.go new file mode 100644 index 000000000000..23502452fa26 --- /dev/null +++ b/profiles/preview/edgegateway/mgmt/edgegateway/models.go @@ -0,0 +1,752 @@ +// +build go1.9 + +// Copyright 2019 Microsoft Corporation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This code was auto-generated by: +// github.com/Azure/azure-sdk-for-go/tools/profileBuilder + +package edgegateway + +import ( + "context" + + original "github.com/Azure/azure-sdk-for-go/services/edgegateway/mgmt/2018-07-01/edgegateway" +) + +const ( + DefaultBaseURI = original.DefaultBaseURI +) + +type AccountType = original.AccountType + +const ( + BlobStorage AccountType = original.BlobStorage + GeneralPurposeStorage AccountType = original.GeneralPurposeStorage +) + +type AlertSeverity = original.AlertSeverity + +const ( + Critical AlertSeverity = original.Critical + Informational AlertSeverity = original.Informational + Warning AlertSeverity = original.Warning +) + +type AuthenticationType = original.AuthenticationType + +const ( + AzureActiveDirectory AuthenticationType = original.AzureActiveDirectory + Invalid AuthenticationType = original.Invalid +) + +type AzureContainerDataFormat = original.AzureContainerDataFormat + +const ( + AzureFile AzureContainerDataFormat = original.AzureFile + BlockBlob AzureContainerDataFormat = original.BlockBlob + PageBlob AzureContainerDataFormat = original.PageBlob +) + +type ClientPermissionType = original.ClientPermissionType + +const ( + NoAccess ClientPermissionType = original.NoAccess + ReadOnly ClientPermissionType = original.ReadOnly + ReadWrite ClientPermissionType = original.ReadWrite +) + +type DataBoxEdgeDeviceStatus = original.DataBoxEdgeDeviceStatus + +const ( + Disconnected DataBoxEdgeDeviceStatus = original.Disconnected + NeedsAttention DataBoxEdgeDeviceStatus = original.NeedsAttention + Offline DataBoxEdgeDeviceStatus = original.Offline + Online DataBoxEdgeDeviceStatus = original.Online + PartiallyDisconnected DataBoxEdgeDeviceStatus = original.PartiallyDisconnected + ReadyToSetup DataBoxEdgeDeviceStatus = original.ReadyToSetup +) + +type DataPolicy = original.DataPolicy + +const ( + Cloud DataPolicy = original.Cloud + Local DataPolicy = original.Local +) + +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 +) + +type DeviceType = original.DeviceType + +const ( + DeviceTypeDataBoxEdgeDevice DeviceType = original.DeviceTypeDataBoxEdgeDevice +) + +type DownloadPhase = original.DownloadPhase + +const ( + Downloading DownloadPhase = original.Downloading + Initializing DownloadPhase = original.Initializing + Unknown DownloadPhase = original.Unknown + Verifying DownloadPhase = original.Verifying +) + +type EncryptionAlgorithm = original.EncryptionAlgorithm + +const ( + AES256 EncryptionAlgorithm = original.AES256 + None EncryptionAlgorithm = original.None + RSAESPKCS1V15 EncryptionAlgorithm = original.RSAESPKCS1V15 +) + +type InstallRebootBehavior = original.InstallRebootBehavior + +const ( + NeverReboots InstallRebootBehavior = original.NeverReboots + RequestReboot InstallRebootBehavior = original.RequestReboot + RequiresReboot InstallRebootBehavior = original.RequiresReboot +) + +type JobStatus = original.JobStatus + +const ( + JobStatusCanceled JobStatus = original.JobStatusCanceled + JobStatusFailed JobStatus = original.JobStatusFailed + JobStatusInvalid JobStatus = original.JobStatusInvalid + JobStatusPaused JobStatus = original.JobStatusPaused + JobStatusRunning JobStatus = original.JobStatusRunning + JobStatusScheduled JobStatus = original.JobStatusScheduled + JobStatusSucceeded JobStatus = original.JobStatusSucceeded +) + +type JobType = original.JobType + +const ( + JobTypeDownloadUpdates JobType = original.JobTypeDownloadUpdates + JobTypeInstallUpdates JobType = original.JobTypeInstallUpdates + JobTypeInvalid JobType = original.JobTypeInvalid + JobTypeRefreshShare JobType = original.JobTypeRefreshShare + JobTypeScanForUpdates JobType = original.JobTypeScanForUpdates +) + +type Kind = original.Kind + +const ( + KindIOT Kind = original.KindIOT + KindRole Kind = original.KindRole +) + +type KindBasicTrigger = original.KindBasicTrigger + +const ( + KindFileEvent KindBasicTrigger = original.KindFileEvent + KindPeriodicTimerEvent KindBasicTrigger = original.KindPeriodicTimerEvent + KindTrigger KindBasicTrigger = original.KindTrigger +) + +type MetricAggregationType = original.MetricAggregationType + +const ( + MetricAggregationTypeAverage MetricAggregationType = original.MetricAggregationTypeAverage + MetricAggregationTypeCount MetricAggregationType = original.MetricAggregationTypeCount + MetricAggregationTypeMaximum MetricAggregationType = original.MetricAggregationTypeMaximum + MetricAggregationTypeMinimum MetricAggregationType = original.MetricAggregationTypeMinimum + MetricAggregationTypeNone MetricAggregationType = original.MetricAggregationTypeNone + MetricAggregationTypeNotSpecified MetricAggregationType = original.MetricAggregationTypeNotSpecified + MetricAggregationTypeTotal MetricAggregationType = original.MetricAggregationTypeTotal +) + +type MetricCategory = original.MetricCategory + +const ( + Capacity MetricCategory = original.Capacity + Transaction MetricCategory = original.Transaction +) + +type MetricUnit = original.MetricUnit + +const ( + Bytes MetricUnit = original.Bytes + BytesPerSecond MetricUnit = original.BytesPerSecond + Count MetricUnit = original.Count + CountPerSecond MetricUnit = original.CountPerSecond + Milliseconds MetricUnit = original.Milliseconds + NotSpecified MetricUnit = original.NotSpecified + Percent MetricUnit = original.Percent + Seconds MetricUnit = original.Seconds +) + +type MonitoringStatus = original.MonitoringStatus + +const ( + Disabled MonitoringStatus = original.Disabled + Enabled MonitoringStatus = original.Enabled +) + +type NetworkAdapterDHCPStatus = original.NetworkAdapterDHCPStatus + +const ( + NetworkAdapterDHCPStatusDisabled NetworkAdapterDHCPStatus = original.NetworkAdapterDHCPStatusDisabled + NetworkAdapterDHCPStatusEnabled NetworkAdapterDHCPStatus = original.NetworkAdapterDHCPStatusEnabled +) + +type NetworkAdapterRDMAStatus = original.NetworkAdapterRDMAStatus + +const ( + Capable NetworkAdapterRDMAStatus = original.Capable + Incapable NetworkAdapterRDMAStatus = original.Incapable +) + +type NetworkAdapterStatus = original.NetworkAdapterStatus + +const ( + Active NetworkAdapterStatus = original.Active + Inactive NetworkAdapterStatus = original.Inactive +) + +type NetworkGroup = original.NetworkGroup + +const ( + NetworkGroupNone NetworkGroup = original.NetworkGroupNone + NetworkGroupNonRDMA NetworkGroup = original.NetworkGroupNonRDMA + NetworkGroupRDMA NetworkGroup = original.NetworkGroupRDMA +) + +type PlatformType = original.PlatformType + +const ( + Linux PlatformType = original.Linux + Windows PlatformType = original.Windows +) + +type RoleStatus = original.RoleStatus + +const ( + RoleStatusDisabled RoleStatus = original.RoleStatusDisabled + RoleStatusEnabled RoleStatus = original.RoleStatusEnabled +) + +type RoleTypes = original.RoleTypes + +const ( + ASA RoleTypes = original.ASA + Cognitive RoleTypes = original.Cognitive + Functions RoleTypes = original.Functions + IOT RoleTypes = original.IOT +) + +type SSLStatus = original.SSLStatus + +const ( + SSLStatusDisabled SSLStatus = original.SSLStatusDisabled + SSLStatusEnabled SSLStatus = original.SSLStatusEnabled +) + +type ShareAccessProtocol = original.ShareAccessProtocol + +const ( + NFS ShareAccessProtocol = original.NFS + SMB ShareAccessProtocol = original.SMB +) + +type ShareAccessType = original.ShareAccessType + +const ( + Change ShareAccessType = original.Change + Custom ShareAccessType = original.Custom + Read ShareAccessType = original.Read +) + +type ShareStatus = original.ShareStatus + +const ( + ShareStatusOffline ShareStatus = original.ShareStatusOffline + ShareStatusOnline ShareStatus = original.ShareStatusOnline +) + +type SkuName = original.SkuName + +const ( + Edge SkuName = original.Edge + Gateway SkuName = original.Gateway +) + +type SkuTier = original.SkuTier + +const ( + Standard SkuTier = original.Standard +) + +type StatusTypes = original.StatusTypes + +const ( + Arriving StatusTypes = original.Arriving + AwaitingFulfilment StatusTypes = original.AwaitingFulfilment + AwaitingPreparation StatusTypes = original.AwaitingPreparation + AwaitingReturnShipment StatusTypes = original.AwaitingReturnShipment + AwaitingShipment StatusTypes = original.AwaitingShipment + CollectedAtMicrosoft StatusTypes = original.CollectedAtMicrosoft + Declined StatusTypes = original.Declined + Delivered StatusTypes = original.Delivered + LostDevice StatusTypes = original.LostDevice + ReplacementRequested StatusTypes = original.ReplacementRequested + ReturnInitiated StatusTypes = original.ReturnInitiated + Shipped StatusTypes = original.Shipped + ShippedBack StatusTypes = original.ShippedBack + Untracked StatusTypes = original.Untracked +) + +type TimeGrain = original.TimeGrain + +const ( + PT12H TimeGrain = original.PT12H + PT15M TimeGrain = original.PT15M + PT1D TimeGrain = original.PT1D + PT1H TimeGrain = original.PT1H + PT1M TimeGrain = original.PT1M + PT30M TimeGrain = original.PT30M + PT5M TimeGrain = original.PT5M + PT6H TimeGrain = original.PT6H +) + +type UpdateOperation = original.UpdateOperation + +const ( + UpdateOperationDownload UpdateOperation = original.UpdateOperationDownload + UpdateOperationInstall UpdateOperation = original.UpdateOperationInstall + UpdateOperationNone UpdateOperation = original.UpdateOperationNone + UpdateOperationScan UpdateOperation = original.UpdateOperationScan +) + +type UpdateOperationStage = original.UpdateOperationStage + +const ( + UpdateOperationStageDownloadComplete UpdateOperationStage = original.UpdateOperationStageDownloadComplete + UpdateOperationStageDownloadFailed UpdateOperationStage = original.UpdateOperationStageDownloadFailed + UpdateOperationStageDownloadStarted UpdateOperationStage = original.UpdateOperationStageDownloadStarted + UpdateOperationStageFailure UpdateOperationStage = original.UpdateOperationStageFailure + UpdateOperationStageInitial UpdateOperationStage = original.UpdateOperationStageInitial + UpdateOperationStageInstallComplete UpdateOperationStage = original.UpdateOperationStageInstallComplete + UpdateOperationStageInstallFailed UpdateOperationStage = original.UpdateOperationStageInstallFailed + UpdateOperationStageInstallStarted UpdateOperationStage = original.UpdateOperationStageInstallStarted + UpdateOperationStageRebootInitiated UpdateOperationStage = original.UpdateOperationStageRebootInitiated + UpdateOperationStageRescanComplete UpdateOperationStage = original.UpdateOperationStageRescanComplete + UpdateOperationStageRescanFailed UpdateOperationStage = original.UpdateOperationStageRescanFailed + UpdateOperationStageRescanStarted UpdateOperationStage = original.UpdateOperationStageRescanStarted + UpdateOperationStageScanComplete UpdateOperationStage = original.UpdateOperationStageScanComplete + UpdateOperationStageScanFailed UpdateOperationStage = original.UpdateOperationStageScanFailed + UpdateOperationStageScanStarted UpdateOperationStage = original.UpdateOperationStageScanStarted + UpdateOperationStageSuccess UpdateOperationStage = original.UpdateOperationStageSuccess + UpdateOperationStageUnknown UpdateOperationStage = original.UpdateOperationStageUnknown +) + +type ARMBaseModel = original.ARMBaseModel +type Address = original.Address +type Alert = original.Alert +type AlertErrorDetails = original.AlertErrorDetails +type AlertList = original.AlertList +type AlertListIterator = original.AlertListIterator +type AlertListPage = original.AlertListPage +type AlertProperties = original.AlertProperties +type AlertsClient = original.AlertsClient +type AsymmetricEncryptedSecret = original.AsymmetricEncryptedSecret +type Authentication = original.Authentication +type AzureContainerInfo = original.AzureContainerInfo +type BandwidthSchedule = original.BandwidthSchedule +type BandwidthScheduleProperties = original.BandwidthScheduleProperties +type BandwidthSchedulesClient = original.BandwidthSchedulesClient +type BandwidthSchedulesCreateOrUpdateFuture = original.BandwidthSchedulesCreateOrUpdateFuture +type BandwidthSchedulesDeleteFuture = original.BandwidthSchedulesDeleteFuture +type BandwidthSchedulesList = original.BandwidthSchedulesList +type BandwidthSchedulesListIterator = original.BandwidthSchedulesListIterator +type BandwidthSchedulesListPage = original.BandwidthSchedulesListPage +type BaseClient = original.BaseClient +type BasicRole = original.BasicRole +type BasicTrigger = original.BasicTrigger +type ClientAccessRight = original.ClientAccessRight +type CloudError = original.CloudError +type CloudErrorBody = original.CloudErrorBody +type ContactDetails = original.ContactDetails +type DataBoxEdgeDevice = original.DataBoxEdgeDevice +type DataBoxEdgeDeviceExtendedInfo = original.DataBoxEdgeDeviceExtendedInfo +type DataBoxEdgeDeviceExtendedInfoProperties = original.DataBoxEdgeDeviceExtendedInfoProperties +type DataBoxEdgeDeviceList = original.DataBoxEdgeDeviceList +type DataBoxEdgeDeviceListIterator = original.DataBoxEdgeDeviceListIterator +type DataBoxEdgeDeviceListPage = original.DataBoxEdgeDeviceListPage +type DataBoxEdgeDevicePatch = original.DataBoxEdgeDevicePatch +type DataBoxEdgeDeviceProperties = original.DataBoxEdgeDeviceProperties +type DevicesClient = original.DevicesClient +type DevicesCreateOrUpdateFuture = original.DevicesCreateOrUpdateFuture +type DevicesCreateOrUpdateSecuritySettingsFuture = original.DevicesCreateOrUpdateSecuritySettingsFuture +type DevicesDeleteFuture = original.DevicesDeleteFuture +type DevicesDownloadUpdatesFuture = original.DevicesDownloadUpdatesFuture +type DevicesInstallUpdatesFuture = original.DevicesInstallUpdatesFuture +type DevicesScanForUpdatesFuture = original.DevicesScanForUpdatesFuture +type FileEventTrigger = original.FileEventTrigger +type FileSourceInfo = original.FileSourceInfo +type FileTriggerProperties = original.FileTriggerProperties +type IoTDeviceInfo = original.IoTDeviceInfo +type IoTRole = original.IoTRole +type IoTRoleProperties = original.IoTRoleProperties +type Ipv4Config = original.Ipv4Config +type Ipv6Config = original.Ipv6Config +type Job = original.Job +type JobErrorDetails = original.JobErrorDetails +type JobErrorItem = original.JobErrorItem +type JobProperties = original.JobProperties +type MetricDimensionV1 = original.MetricDimensionV1 +type MetricSpecificationV1 = original.MetricSpecificationV1 +type MountPointMap = original.MountPointMap +type NetworkAdapter = original.NetworkAdapter +type NetworkAdapterPosition = original.NetworkAdapterPosition +type NetworkSettings = original.NetworkSettings +type NetworkSettingsProperties = original.NetworkSettingsProperties +type Operation = original.Operation +type OperationDisplay = original.OperationDisplay +type OperationProperties = original.OperationProperties +type OperationsClient = original.OperationsClient +type OperationsList = original.OperationsList +type OperationsListIterator = original.OperationsListIterator +type OperationsListPage = original.OperationsListPage +type OperationsStatusClient = original.OperationsStatusClient +type Order = original.Order +type OrderList = original.OrderList +type OrderListIterator = original.OrderListIterator +type OrderListPage = original.OrderListPage +type OrderProperties = original.OrderProperties +type OrderStatus = original.OrderStatus +type OrdersClient = original.OrdersClient +type OrdersCreateOrUpdateFuture = original.OrdersCreateOrUpdateFuture +type OrdersDeleteFuture = original.OrdersDeleteFuture +type PeriodicTimerEventTrigger = original.PeriodicTimerEventTrigger +type PeriodicTimerProperties = original.PeriodicTimerProperties +type PeriodicTimerSourceInfo = original.PeriodicTimerSourceInfo +type RawCertificateData = original.RawCertificateData +type RefreshDetails = original.RefreshDetails +type Role = original.Role +type RoleList = original.RoleList +type RoleListIterator = original.RoleListIterator +type RoleListPage = original.RoleListPage +type RoleModel = original.RoleModel +type RoleSinkInfo = original.RoleSinkInfo +type RolesClient = original.RolesClient +type RolesCreateOrUpdateFuture = original.RolesCreateOrUpdateFuture +type RolesDeleteFuture = original.RolesDeleteFuture +type SecuritySettings = original.SecuritySettings +type SecuritySettingsProperties = original.SecuritySettingsProperties +type ServiceSpecification = original.ServiceSpecification +type Share = original.Share +type ShareAccessRight = original.ShareAccessRight +type ShareList = original.ShareList +type ShareListIterator = original.ShareListIterator +type ShareListPage = original.ShareListPage +type ShareProperties = original.ShareProperties +type SharesClient = original.SharesClient +type SharesCreateOrUpdateFuture = original.SharesCreateOrUpdateFuture +type SharesDeleteFuture = original.SharesDeleteFuture +type SharesRefreshFuture = original.SharesRefreshFuture +type Sku = original.Sku +type StorageAccountCredential = original.StorageAccountCredential +type StorageAccountCredentialList = original.StorageAccountCredentialList +type StorageAccountCredentialListIterator = original.StorageAccountCredentialListIterator +type StorageAccountCredentialListPage = original.StorageAccountCredentialListPage +type StorageAccountCredentialProperties = original.StorageAccountCredentialProperties +type StorageAccountCredentialsClient = original.StorageAccountCredentialsClient +type StorageAccountCredentialsCreateOrUpdateFuture = original.StorageAccountCredentialsCreateOrUpdateFuture +type StorageAccountCredentialsDeleteFuture = original.StorageAccountCredentialsDeleteFuture +type SymmetricKey = original.SymmetricKey +type TrackingInfo = original.TrackingInfo +type Trigger = original.Trigger +type TriggerList = original.TriggerList +type TriggerListIterator = original.TriggerListIterator +type TriggerListPage = original.TriggerListPage +type TriggerModel = original.TriggerModel +type TriggersClient = original.TriggersClient +type TriggersCreateOrUpdateFuture = original.TriggersCreateOrUpdateFuture +type TriggersDeleteFuture = original.TriggersDeleteFuture +type UpdateDownloadProgress = original.UpdateDownloadProgress +type UpdateInstallProgress = original.UpdateInstallProgress +type UpdateSummary = original.UpdateSummary +type UpdateSummaryProperties = original.UpdateSummaryProperties +type UploadCertificateRequest = original.UploadCertificateRequest +type UploadCertificateResponse = original.UploadCertificateResponse +type User = original.User +type UserAccessRight = original.UserAccessRight +type UserList = original.UserList +type UserListIterator = original.UserListIterator +type UserListPage = original.UserListPage +type UserProperties = original.UserProperties +type UsersClient = original.UsersClient +type UsersCreateOrUpdateFuture = original.UsersCreateOrUpdateFuture +type UsersDeleteFuture = original.UsersDeleteFuture + +func New(subscriptionID string) BaseClient { + return original.New(subscriptionID) +} +func NewAlertListIterator(page AlertListPage) AlertListIterator { + return original.NewAlertListIterator(page) +} +func NewAlertListPage(getNextPage func(context.Context, AlertList) (AlertList, error)) AlertListPage { + return original.NewAlertListPage(getNextPage) +} +func NewAlertsClient(subscriptionID string) AlertsClient { + return original.NewAlertsClient(subscriptionID) +} +func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsClient { + return original.NewAlertsClientWithBaseURI(baseURI, subscriptionID) +} +func NewBandwidthSchedulesClient(subscriptionID string) BandwidthSchedulesClient { + return original.NewBandwidthSchedulesClient(subscriptionID) +} +func NewBandwidthSchedulesClientWithBaseURI(baseURI string, subscriptionID string) BandwidthSchedulesClient { + return original.NewBandwidthSchedulesClientWithBaseURI(baseURI, subscriptionID) +} +func NewBandwidthSchedulesListIterator(page BandwidthSchedulesListPage) BandwidthSchedulesListIterator { + return original.NewBandwidthSchedulesListIterator(page) +} +func NewBandwidthSchedulesListPage(getNextPage func(context.Context, BandwidthSchedulesList) (BandwidthSchedulesList, error)) BandwidthSchedulesListPage { + return original.NewBandwidthSchedulesListPage(getNextPage) +} +func NewDataBoxEdgeDeviceListIterator(page DataBoxEdgeDeviceListPage) DataBoxEdgeDeviceListIterator { + return original.NewDataBoxEdgeDeviceListIterator(page) +} +func NewDataBoxEdgeDeviceListPage(getNextPage func(context.Context, DataBoxEdgeDeviceList) (DataBoxEdgeDeviceList, error)) DataBoxEdgeDeviceListPage { + return original.NewDataBoxEdgeDeviceListPage(getNextPage) +} +func NewDevicesClient(subscriptionID string) DevicesClient { + return original.NewDevicesClient(subscriptionID) +} +func NewDevicesClientWithBaseURI(baseURI string, subscriptionID string) DevicesClient { + return original.NewDevicesClientWithBaseURI(baseURI, subscriptionID) +} +func NewOperationsClient(subscriptionID string) OperationsClient { + return original.NewOperationsClient(subscriptionID) +} +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID) +} +func NewOperationsListIterator(page OperationsListPage) OperationsListIterator { + return original.NewOperationsListIterator(page) +} +func NewOperationsListPage(getNextPage func(context.Context, OperationsList) (OperationsList, error)) OperationsListPage { + return original.NewOperationsListPage(getNextPage) +} +func NewOperationsStatusClient(subscriptionID string) OperationsStatusClient { + return original.NewOperationsStatusClient(subscriptionID) +} +func NewOperationsStatusClientWithBaseURI(baseURI string, subscriptionID string) OperationsStatusClient { + return original.NewOperationsStatusClientWithBaseURI(baseURI, subscriptionID) +} +func NewOrderListIterator(page OrderListPage) OrderListIterator { + return original.NewOrderListIterator(page) +} +func NewOrderListPage(getNextPage func(context.Context, OrderList) (OrderList, error)) OrderListPage { + return original.NewOrderListPage(getNextPage) +} +func NewOrdersClient(subscriptionID string) OrdersClient { + return original.NewOrdersClient(subscriptionID) +} +func NewOrdersClientWithBaseURI(baseURI string, subscriptionID string) OrdersClient { + return original.NewOrdersClientWithBaseURI(baseURI, subscriptionID) +} +func NewRoleListIterator(page RoleListPage) RoleListIterator { + return original.NewRoleListIterator(page) +} +func NewRoleListPage(getNextPage func(context.Context, RoleList) (RoleList, error)) RoleListPage { + return original.NewRoleListPage(getNextPage) +} +func NewRolesClient(subscriptionID string) RolesClient { + return original.NewRolesClient(subscriptionID) +} +func NewRolesClientWithBaseURI(baseURI string, subscriptionID string) RolesClient { + return original.NewRolesClientWithBaseURI(baseURI, subscriptionID) +} +func NewShareListIterator(page ShareListPage) ShareListIterator { + return original.NewShareListIterator(page) +} +func NewShareListPage(getNextPage func(context.Context, ShareList) (ShareList, error)) ShareListPage { + return original.NewShareListPage(getNextPage) +} +func NewSharesClient(subscriptionID string) SharesClient { + return original.NewSharesClient(subscriptionID) +} +func NewSharesClientWithBaseURI(baseURI string, subscriptionID string) SharesClient { + return original.NewSharesClientWithBaseURI(baseURI, subscriptionID) +} +func NewStorageAccountCredentialListIterator(page StorageAccountCredentialListPage) StorageAccountCredentialListIterator { + return original.NewStorageAccountCredentialListIterator(page) +} +func NewStorageAccountCredentialListPage(getNextPage func(context.Context, StorageAccountCredentialList) (StorageAccountCredentialList, error)) StorageAccountCredentialListPage { + return original.NewStorageAccountCredentialListPage(getNextPage) +} +func NewStorageAccountCredentialsClient(subscriptionID string) StorageAccountCredentialsClient { + return original.NewStorageAccountCredentialsClient(subscriptionID) +} +func NewStorageAccountCredentialsClientWithBaseURI(baseURI string, subscriptionID string) StorageAccountCredentialsClient { + return original.NewStorageAccountCredentialsClientWithBaseURI(baseURI, subscriptionID) +} +func NewTriggerListIterator(page TriggerListPage) TriggerListIterator { + return original.NewTriggerListIterator(page) +} +func NewTriggerListPage(getNextPage func(context.Context, TriggerList) (TriggerList, error)) TriggerListPage { + return original.NewTriggerListPage(getNextPage) +} +func NewTriggersClient(subscriptionID string) TriggersClient { + return original.NewTriggersClient(subscriptionID) +} +func NewTriggersClientWithBaseURI(baseURI string, subscriptionID string) TriggersClient { + return original.NewTriggersClientWithBaseURI(baseURI, subscriptionID) +} +func NewUserListIterator(page UserListPage) UserListIterator { + return original.NewUserListIterator(page) +} +func NewUserListPage(getNextPage func(context.Context, UserList) (UserList, error)) UserListPage { + return original.NewUserListPage(getNextPage) +} +func NewUsersClient(subscriptionID string) UsersClient { + return original.NewUsersClient(subscriptionID) +} +func NewUsersClientWithBaseURI(baseURI string, subscriptionID string) UsersClient { + return original.NewUsersClientWithBaseURI(baseURI, subscriptionID) +} +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return original.NewWithBaseURI(baseURI, subscriptionID) +} +func PossibleAccountTypeValues() []AccountType { + return original.PossibleAccountTypeValues() +} +func PossibleAlertSeverityValues() []AlertSeverity { + return original.PossibleAlertSeverityValues() +} +func PossibleAuthenticationTypeValues() []AuthenticationType { + return original.PossibleAuthenticationTypeValues() +} +func PossibleAzureContainerDataFormatValues() []AzureContainerDataFormat { + return original.PossibleAzureContainerDataFormatValues() +} +func PossibleClientPermissionTypeValues() []ClientPermissionType { + return original.PossibleClientPermissionTypeValues() +} +func PossibleDataBoxEdgeDeviceStatusValues() []DataBoxEdgeDeviceStatus { + return original.PossibleDataBoxEdgeDeviceStatusValues() +} +func PossibleDataPolicyValues() []DataPolicy { + return original.PossibleDataPolicyValues() +} +func PossibleDayOfWeekValues() []DayOfWeek { + return original.PossibleDayOfWeekValues() +} +func PossibleDeviceTypeValues() []DeviceType { + return original.PossibleDeviceTypeValues() +} +func PossibleDownloadPhaseValues() []DownloadPhase { + return original.PossibleDownloadPhaseValues() +} +func PossibleEncryptionAlgorithmValues() []EncryptionAlgorithm { + return original.PossibleEncryptionAlgorithmValues() +} +func PossibleInstallRebootBehaviorValues() []InstallRebootBehavior { + return original.PossibleInstallRebootBehaviorValues() +} +func PossibleJobStatusValues() []JobStatus { + return original.PossibleJobStatusValues() +} +func PossibleJobTypeValues() []JobType { + return original.PossibleJobTypeValues() +} +func PossibleKindBasicTriggerValues() []KindBasicTrigger { + return original.PossibleKindBasicTriggerValues() +} +func PossibleKindValues() []Kind { + return original.PossibleKindValues() +} +func PossibleMetricAggregationTypeValues() []MetricAggregationType { + return original.PossibleMetricAggregationTypeValues() +} +func PossibleMetricCategoryValues() []MetricCategory { + return original.PossibleMetricCategoryValues() +} +func PossibleMetricUnitValues() []MetricUnit { + return original.PossibleMetricUnitValues() +} +func PossibleMonitoringStatusValues() []MonitoringStatus { + return original.PossibleMonitoringStatusValues() +} +func PossibleNetworkAdapterDHCPStatusValues() []NetworkAdapterDHCPStatus { + return original.PossibleNetworkAdapterDHCPStatusValues() +} +func PossibleNetworkAdapterRDMAStatusValues() []NetworkAdapterRDMAStatus { + return original.PossibleNetworkAdapterRDMAStatusValues() +} +func PossibleNetworkAdapterStatusValues() []NetworkAdapterStatus { + return original.PossibleNetworkAdapterStatusValues() +} +func PossibleNetworkGroupValues() []NetworkGroup { + return original.PossibleNetworkGroupValues() +} +func PossiblePlatformTypeValues() []PlatformType { + return original.PossiblePlatformTypeValues() +} +func PossibleRoleStatusValues() []RoleStatus { + return original.PossibleRoleStatusValues() +} +func PossibleRoleTypesValues() []RoleTypes { + return original.PossibleRoleTypesValues() +} +func PossibleSSLStatusValues() []SSLStatus { + return original.PossibleSSLStatusValues() +} +func PossibleShareAccessProtocolValues() []ShareAccessProtocol { + return original.PossibleShareAccessProtocolValues() +} +func PossibleShareAccessTypeValues() []ShareAccessType { + return original.PossibleShareAccessTypeValues() +} +func PossibleShareStatusValues() []ShareStatus { + return original.PossibleShareStatusValues() +} +func PossibleSkuNameValues() []SkuName { + return original.PossibleSkuNameValues() +} +func PossibleSkuTierValues() []SkuTier { + return original.PossibleSkuTierValues() +} +func PossibleStatusTypesValues() []StatusTypes { + return original.PossibleStatusTypesValues() +} +func PossibleTimeGrainValues() []TimeGrain { + return original.PossibleTimeGrainValues() +} +func PossibleUpdateOperationStageValues() []UpdateOperationStage { + return original.PossibleUpdateOperationStageValues() +} +func PossibleUpdateOperationValues() []UpdateOperation { + return original.PossibleUpdateOperationValues() +} +func UserAgent() string { + return original.UserAgent() + " profiles/preview" +} +func Version() string { + return original.Version() +} diff --git a/profiles/preview/eventgrid/eventgrid/eventgridapi/models.go b/profiles/preview/eventgrid/eventgrid/eventgridapi/models.go index f9cf9f07810b..643ca9529c1f 100644 --- a/profiles/preview/eventgrid/eventgrid/eventgridapi/models.go +++ b/profiles/preview/eventgrid/eventgrid/eventgridapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/eventgrid/eventgrid/models.go b/profiles/preview/eventgrid/eventgrid/models.go index b16762195dfa..abf942c3d687 100644 --- a/profiles/preview/eventgrid/eventgrid/models.go +++ b/profiles/preview/eventgrid/eventgrid/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/eventgrid/mgmt/eventgrid/eventgridapi/models.go b/profiles/preview/eventgrid/mgmt/eventgrid/eventgridapi/models.go index 9499b7e2eeac..1a29e6db7725 100644 --- a/profiles/preview/eventgrid/mgmt/eventgrid/eventgridapi/models.go +++ b/profiles/preview/eventgrid/mgmt/eventgrid/eventgridapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/eventgrid/mgmt/eventgrid/models.go b/profiles/preview/eventgrid/mgmt/eventgrid/models.go index 89d9d923a7a8..5c2be2d4018a 100644 --- a/profiles/preview/eventgrid/mgmt/eventgrid/models.go +++ b/profiles/preview/eventgrid/mgmt/eventgrid/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/eventhub/mgmt/eventhub/eventhubapi/models.go b/profiles/preview/eventhub/mgmt/eventhub/eventhubapi/models.go index d412bc9049ef..77d581207451 100644 --- a/profiles/preview/eventhub/mgmt/eventhub/eventhubapi/models.go +++ b/profiles/preview/eventhub/mgmt/eventhub/eventhubapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/eventhub/mgmt/eventhub/models.go b/profiles/preview/eventhub/mgmt/eventhub/models.go index 5f5836cae5a0..9f63d537443c 100644 --- a/profiles/preview/eventhub/mgmt/eventhub/models.go +++ b/profiles/preview/eventhub/mgmt/eventhub/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/graphrbac/graphrbac/graphrbacapi/models.go b/profiles/preview/graphrbac/graphrbac/graphrbacapi/models.go index a896f7135b82..85c39f45bf00 100644 --- a/profiles/preview/graphrbac/graphrbac/graphrbacapi/models.go +++ b/profiles/preview/graphrbac/graphrbac/graphrbacapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/graphrbac/graphrbac/models.go b/profiles/preview/graphrbac/graphrbac/models.go index d823a69527fb..b459bf4d0b21 100644 --- a/profiles/preview/graphrbac/graphrbac/models.go +++ b/profiles/preview/graphrbac/graphrbac/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/iotcentral/mgmt/iotcentral/iotcentralapi/models.go b/profiles/preview/iotcentral/mgmt/iotcentral/iotcentralapi/models.go index bd36650a0f5e..32bce487f617 100644 --- a/profiles/preview/iotcentral/mgmt/iotcentral/iotcentralapi/models.go +++ b/profiles/preview/iotcentral/mgmt/iotcentral/iotcentralapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/iotcentral/mgmt/iotcentral/models.go b/profiles/preview/iotcentral/mgmt/iotcentral/models.go index b16cec79d5f7..dc7f6a5b83a0 100644 --- a/profiles/preview/iotcentral/mgmt/iotcentral/models.go +++ b/profiles/preview/iotcentral/mgmt/iotcentral/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/iothub/mgmt/devices/devicesapi/models.go b/profiles/preview/iothub/mgmt/devices/devicesapi/models.go index b15a2fdca272..040f862c960a 100644 --- a/profiles/preview/iothub/mgmt/devices/devicesapi/models.go +++ b/profiles/preview/iothub/mgmt/devices/devicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/iothub/mgmt/devices/models.go b/profiles/preview/iothub/mgmt/devices/models.go index 785b3b1f531f..2d2719ca2a12 100644 --- a/profiles/preview/iothub/mgmt/devices/models.go +++ b/profiles/preview/iothub/mgmt/devices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/keyvault/keyvault/keyvaultapi/models.go b/profiles/preview/keyvault/keyvault/keyvaultapi/models.go index 68a7e5165339..8eb7279d9471 100644 --- a/profiles/preview/keyvault/keyvault/keyvaultapi/models.go +++ b/profiles/preview/keyvault/keyvault/keyvaultapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/keyvault/keyvault/models.go b/profiles/preview/keyvault/keyvault/models.go index 27ee9502aeb0..d52c73413b14 100644 --- a/profiles/preview/keyvault/keyvault/models.go +++ b/profiles/preview/keyvault/keyvault/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/keyvault/mgmt/keyvault/keyvaultapi/models.go b/profiles/preview/keyvault/mgmt/keyvault/keyvaultapi/models.go index 2d6f3cb2fcdd..c81845d4c8a4 100644 --- a/profiles/preview/keyvault/mgmt/keyvault/keyvaultapi/models.go +++ b/profiles/preview/keyvault/mgmt/keyvault/keyvaultapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/keyvault/mgmt/keyvault/models.go b/profiles/preview/keyvault/mgmt/keyvault/models.go index d4eec7ec69d4..de4aaf3310c0 100644 --- a/profiles/preview/keyvault/mgmt/keyvault/models.go +++ b/profiles/preview/keyvault/mgmt/keyvault/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/labservices/mgmt/labservices/labservicesapi/models.go b/profiles/preview/labservices/mgmt/labservices/labservicesapi/models.go index 50e4be861c4b..2350732632cf 100644 --- a/profiles/preview/labservices/mgmt/labservices/labservicesapi/models.go +++ b/profiles/preview/labservices/mgmt/labservices/labservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/labservices/mgmt/labservices/models.go b/profiles/preview/labservices/mgmt/labservices/models.go index f4149157a047..4722a7f1df12 100644 --- a/profiles/preview/labservices/mgmt/labservices/models.go +++ b/profiles/preview/labservices/mgmt/labservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/logic/mgmt/logic/logicapi/models.go b/profiles/preview/logic/mgmt/logic/logicapi/models.go index 6d654a338d2a..fd8780499286 100644 --- a/profiles/preview/logic/mgmt/logic/logicapi/models.go +++ b/profiles/preview/logic/mgmt/logic/logicapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/logic/mgmt/logic/models.go b/profiles/preview/logic/mgmt/logic/models.go index 81d6620cdb9b..aeac298216ad 100644 --- a/profiles/preview/logic/mgmt/logic/models.go +++ b/profiles/preview/logic/mgmt/logic/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/machinelearning/mgmt/compute/models.go b/profiles/preview/machinelearning/mgmt/compute/models.go index d4271d44a8bf..4c18420624e6 100644 --- a/profiles/preview/machinelearning/mgmt/compute/models.go +++ b/profiles/preview/machinelearning/mgmt/compute/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/machinelearning/mgmt/webservices/models.go b/profiles/preview/machinelearning/mgmt/webservices/models.go index 122dc3252da9..f3fb201bc630 100644 --- a/profiles/preview/machinelearning/mgmt/webservices/models.go +++ b/profiles/preview/machinelearning/mgmt/webservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/machinelearning/mgmt/webservices/webservicesapi/models.go b/profiles/preview/machinelearning/mgmt/webservices/webservicesapi/models.go index 87b6b21d82ae..402b252e1fee 100644 --- a/profiles/preview/machinelearning/mgmt/webservices/webservicesapi/models.go +++ b/profiles/preview/machinelearning/mgmt/webservices/webservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/machinelearning/mgmt/workspaces/models.go b/profiles/preview/machinelearning/mgmt/workspaces/models.go index d684ad952bac..227a5bc5b2f0 100644 --- a/profiles/preview/machinelearning/mgmt/workspaces/models.go +++ b/profiles/preview/machinelearning/mgmt/workspaces/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/machinelearning/mgmt/workspaces/workspacesapi/models.go b/profiles/preview/machinelearning/mgmt/workspaces/workspacesapi/models.go index 29dd2a743658..fc9027d0588b 100644 --- a/profiles/preview/machinelearning/mgmt/workspaces/workspacesapi/models.go +++ b/profiles/preview/machinelearning/mgmt/workspaces/workspacesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/managementpartner/mgmt/managementpartner/models.go b/profiles/preview/managementpartner/mgmt/managementpartner/models.go index dc0c9fb13eed..20505df78a49 100644 --- a/profiles/preview/managementpartner/mgmt/managementpartner/models.go +++ b/profiles/preview/managementpartner/mgmt/managementpartner/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/maps/mgmt/maps/mapsapi/models.go b/profiles/preview/maps/mgmt/maps/mapsapi/models.go index 6b8776093887..771e3bb12ef0 100644 --- a/profiles/preview/maps/mgmt/maps/mapsapi/models.go +++ b/profiles/preview/maps/mgmt/maps/mapsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/maps/mgmt/maps/models.go b/profiles/preview/maps/mgmt/maps/models.go index 91f58e76381f..8cbc46836617 100644 --- a/profiles/preview/maps/mgmt/maps/models.go +++ b/profiles/preview/maps/mgmt/maps/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/marketplaceordering/mgmt/marketplaceordering/marketplaceorderingapi/models.go b/profiles/preview/marketplaceordering/mgmt/marketplaceordering/marketplaceorderingapi/models.go index 0ca1989b73a6..b1a923973a63 100644 --- a/profiles/preview/marketplaceordering/mgmt/marketplaceordering/marketplaceorderingapi/models.go +++ b/profiles/preview/marketplaceordering/mgmt/marketplaceordering/marketplaceorderingapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/marketplaceordering/mgmt/marketplaceordering/models.go b/profiles/preview/marketplaceordering/mgmt/marketplaceordering/models.go index 42f630d4939f..d47233863694 100644 --- a/profiles/preview/marketplaceordering/mgmt/marketplaceordering/models.go +++ b/profiles/preview/marketplaceordering/mgmt/marketplaceordering/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/mediaservices/mgmt/media/mediaapi/models.go b/profiles/preview/mediaservices/mgmt/media/mediaapi/models.go index 891e3ed39011..7b7e1b77c8df 100644 --- a/profiles/preview/mediaservices/mgmt/media/mediaapi/models.go +++ b/profiles/preview/mediaservices/mgmt/media/mediaapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/mediaservices/mgmt/media/models.go b/profiles/preview/mediaservices/mgmt/media/models.go index 9f6d1ed6a1f8..86c69de1d9ea 100644 --- a/profiles/preview/mediaservices/mgmt/media/models.go +++ b/profiles/preview/mediaservices/mgmt/media/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/migrate/mgmt/migrate/migrateapi/models.go b/profiles/preview/migrate/mgmt/migrate/migrateapi/models.go index 5c39b4eeebda..a0fc1641708d 100644 --- a/profiles/preview/migrate/mgmt/migrate/migrateapi/models.go +++ b/profiles/preview/migrate/mgmt/migrate/migrateapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/migrate/mgmt/migrate/models.go b/profiles/preview/migrate/mgmt/migrate/models.go index 55cedf8c8a67..0b79a36e5247 100644 --- a/profiles/preview/migrate/mgmt/migrate/models.go +++ b/profiles/preview/migrate/mgmt/migrate/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/mobileengagement/mgmt/mobileengagement/models.go b/profiles/preview/mobileengagement/mgmt/mobileengagement/models.go index 0aca78ce38fa..d00733e2a2db 100644 --- a/profiles/preview/mobileengagement/mgmt/mobileengagement/models.go +++ b/profiles/preview/mobileengagement/mgmt/mobileengagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/monitor/mgmt/insights/models.go b/profiles/preview/monitor/mgmt/insights/models.go index 2494f13cef0c..46cd1a6d4107 100644 --- a/profiles/preview/monitor/mgmt/insights/models.go +++ b/profiles/preview/monitor/mgmt/insights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/msi/mgmt/msi/models.go b/profiles/preview/msi/mgmt/msi/models.go index 0387d8d79545..a1da8bb02285 100644 --- a/profiles/preview/msi/mgmt/msi/models.go +++ b/profiles/preview/msi/mgmt/msi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/msi/mgmt/msi/msiapi/models.go b/profiles/preview/msi/mgmt/msi/msiapi/models.go index 63d0afdc2e2f..fc3e1ecfaea9 100644 --- a/profiles/preview/msi/mgmt/msi/msiapi/models.go +++ b/profiles/preview/msi/mgmt/msi/msiapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/mysql/mgmt/mysql/models.go b/profiles/preview/mysql/mgmt/mysql/models.go index a32921b71f1b..737015440041 100644 --- a/profiles/preview/mysql/mgmt/mysql/models.go +++ b/profiles/preview/mysql/mgmt/mysql/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/mysql/mgmt/mysql/mysqlapi/models.go b/profiles/preview/mysql/mgmt/mysql/mysqlapi/models.go index 91124104e5d8..4765fcda409b 100644 --- a/profiles/preview/mysql/mgmt/mysql/mysqlapi/models.go +++ b/profiles/preview/mysql/mgmt/mysql/mysqlapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/network/mgmt/network/models.go b/profiles/preview/network/mgmt/network/models.go index 01eef8541454..c005b7bdc2bb 100644 --- a/profiles/preview/network/mgmt/network/models.go +++ b/profiles/preview/network/mgmt/network/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/network/mgmt/network/networkapi/models.go b/profiles/preview/network/mgmt/network/networkapi/models.go index 9078b8835c64..c2d59c1e09d0 100644 --- a/profiles/preview/network/mgmt/network/networkapi/models.go +++ b/profiles/preview/network/mgmt/network/networkapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/notificationhubs/mgmt/notificationhubs/models.go b/profiles/preview/notificationhubs/mgmt/notificationhubs/models.go index 04f35d04c331..97a886c21f55 100644 --- a/profiles/preview/notificationhubs/mgmt/notificationhubs/models.go +++ b/profiles/preview/notificationhubs/mgmt/notificationhubs/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/notificationhubs/mgmt/notificationhubs/notificationhubsapi/models.go b/profiles/preview/notificationhubs/mgmt/notificationhubs/notificationhubsapi/models.go index f253c8907551..e113b52496dc 100644 --- a/profiles/preview/notificationhubs/mgmt/notificationhubs/notificationhubsapi/models.go +++ b/profiles/preview/notificationhubs/mgmt/notificationhubs/notificationhubsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/operationalinsights/mgmt/operationalinsights/models.go b/profiles/preview/operationalinsights/mgmt/operationalinsights/models.go index b9af94e7dafe..d77d183fbf2c 100644 --- a/profiles/preview/operationalinsights/mgmt/operationalinsights/models.go +++ b/profiles/preview/operationalinsights/mgmt/operationalinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/operationalinsights/mgmt/operationalinsights/operationalinsightsapi/models.go b/profiles/preview/operationalinsights/mgmt/operationalinsights/operationalinsightsapi/models.go index d9cee28c6c9d..4c2d628cdeea 100644 --- a/profiles/preview/operationalinsights/mgmt/operationalinsights/operationalinsightsapi/models.go +++ b/profiles/preview/operationalinsights/mgmt/operationalinsights/operationalinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/operationalinsights/operationalinsights/models.go b/profiles/preview/operationalinsights/operationalinsights/models.go index 22e18e5e9d2e..f182a67b3043 100644 --- a/profiles/preview/operationalinsights/operationalinsights/models.go +++ b/profiles/preview/operationalinsights/operationalinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/operationalinsights/operationalinsights/operationalinsightsapi/models.go b/profiles/preview/operationalinsights/operationalinsights/operationalinsightsapi/models.go index c2f3aef8939d..e360aaf3e623 100644 --- a/profiles/preview/operationalinsights/operationalinsights/operationalinsightsapi/models.go +++ b/profiles/preview/operationalinsights/operationalinsights/operationalinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/policyinsights/mgmt/policyinsights/models.go b/profiles/preview/policyinsights/mgmt/policyinsights/models.go index 0da3047d97e4..d6643c95eceb 100644 --- a/profiles/preview/policyinsights/mgmt/policyinsights/models.go +++ b/profiles/preview/policyinsights/mgmt/policyinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go b/profiles/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go index a9ea2288a7e2..68f64baaefe8 100644 --- a/profiles/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go +++ b/profiles/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/postgresql/mgmt/postgresql/models.go b/profiles/preview/postgresql/mgmt/postgresql/models.go index adffd97733fa..da02d597927e 100644 --- a/profiles/preview/postgresql/mgmt/postgresql/models.go +++ b/profiles/preview/postgresql/mgmt/postgresql/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/postgresql/mgmt/postgresql/postgresqlapi/models.go b/profiles/preview/postgresql/mgmt/postgresql/postgresqlapi/models.go index c93e61cb34f4..599f4a3c6eda 100644 --- a/profiles/preview/postgresql/mgmt/postgresql/postgresqlapi/models.go +++ b/profiles/preview/postgresql/mgmt/postgresql/postgresqlapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/powerbidedicated/mgmt/powerbidedicated/models.go b/profiles/preview/powerbidedicated/mgmt/powerbidedicated/models.go index f1d70a371621..15861711df00 100644 --- a/profiles/preview/powerbidedicated/mgmt/powerbidedicated/models.go +++ b/profiles/preview/powerbidedicated/mgmt/powerbidedicated/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/powerbidedicated/mgmt/powerbidedicated/powerbidedicatedapi/models.go b/profiles/preview/powerbidedicated/mgmt/powerbidedicated/powerbidedicatedapi/models.go index 6cb3eee2e796..83f3b540190b 100644 --- a/profiles/preview/powerbidedicated/mgmt/powerbidedicated/powerbidedicatedapi/models.go +++ b/profiles/preview/powerbidedicated/mgmt/powerbidedicated/powerbidedicatedapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/powerbiembedded/mgmt/powerbiembedded/models.go b/profiles/preview/powerbiembedded/mgmt/powerbiembedded/models.go index 08c68d547332..f386160049d1 100644 --- a/profiles/preview/powerbiembedded/mgmt/powerbiembedded/models.go +++ b/profiles/preview/powerbiembedded/mgmt/powerbiembedded/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/powerbiembedded/mgmt/powerbiembedded/powerbiembeddedapi/models.go b/profiles/preview/powerbiembedded/mgmt/powerbiembedded/powerbiembeddedapi/models.go index 71a6191a5d07..20f15e177740 100644 --- a/profiles/preview/powerbiembedded/mgmt/powerbiembedded/powerbiembeddedapi/models.go +++ b/profiles/preview/powerbiembedded/mgmt/powerbiembedded/powerbiembeddedapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/addons/mgmt/addons/addonsapi/models.go b/profiles/preview/preview/addons/mgmt/addons/addonsapi/models.go index 9bd5f5327d26..41f9b7da0619 100644 --- a/profiles/preview/preview/addons/mgmt/addons/addonsapi/models.go +++ b/profiles/preview/preview/addons/mgmt/addons/addonsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/addons/mgmt/addons/models.go b/profiles/preview/preview/addons/mgmt/addons/models.go index d3de470ffac9..16d85017a304 100644 --- a/profiles/preview/preview/addons/mgmt/addons/models.go +++ b/profiles/preview/preview/addons/mgmt/addons/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/advisor/mgmt/advisor/advisorapi/models.go b/profiles/preview/preview/advisor/mgmt/advisor/advisorapi/models.go index 91250de58e70..7edd8c897191 100644 --- a/profiles/preview/preview/advisor/mgmt/advisor/advisorapi/models.go +++ b/profiles/preview/preview/advisor/mgmt/advisor/advisorapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/advisor/mgmt/advisor/models.go b/profiles/preview/preview/advisor/mgmt/advisor/models.go index 0901579446c2..c6035ab9e12c 100644 --- a/profiles/preview/preview/advisor/mgmt/advisor/models.go +++ b/profiles/preview/preview/advisor/mgmt/advisor/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/alertsmanagement/mgmt/alertsmanagement/models.go b/profiles/preview/preview/alertsmanagement/mgmt/alertsmanagement/models.go index 1690f47f28b7..5190cf395d51 100644 --- a/profiles/preview/preview/alertsmanagement/mgmt/alertsmanagement/models.go +++ b/profiles/preview/preview/alertsmanagement/mgmt/alertsmanagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/apimanagement/ctrl/apimanagement/apimanagementapi/models.go b/profiles/preview/preview/apimanagement/ctrl/apimanagement/apimanagementapi/models.go index f263888d7b84..a2f7eb5c87d5 100644 --- a/profiles/preview/preview/apimanagement/ctrl/apimanagement/apimanagementapi/models.go +++ b/profiles/preview/preview/apimanagement/ctrl/apimanagement/apimanagementapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/apimanagement/ctrl/apimanagement/models.go b/profiles/preview/preview/apimanagement/ctrl/apimanagement/models.go index d106eaf4c82b..105f0158c7a9 100644 --- a/profiles/preview/preview/apimanagement/ctrl/apimanagement/models.go +++ b/profiles/preview/preview/apimanagement/ctrl/apimanagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/apimanagement/mgmt/apimanagement/apimanagementapi/models.go b/profiles/preview/preview/apimanagement/mgmt/apimanagement/apimanagementapi/models.go index 0e3a6e58ec72..e0b99d539b18 100644 --- a/profiles/preview/preview/apimanagement/mgmt/apimanagement/apimanagementapi/models.go +++ b/profiles/preview/preview/apimanagement/mgmt/apimanagement/apimanagementapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go b/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go index 12f4da35193e..0ae3068dc44b 100644 --- a/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go +++ b/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/appinsights/insights/insightsapi/models.go b/profiles/preview/preview/appinsights/insights/insightsapi/models.go index a8c66feb37c2..b7a70c6af89f 100644 --- a/profiles/preview/preview/appinsights/insights/insightsapi/models.go +++ b/profiles/preview/preview/appinsights/insights/insightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/appinsights/insights/models.go b/profiles/preview/preview/appinsights/insights/models.go index ca669985d979..0fb79ed3c679 100644 --- a/profiles/preview/preview/appinsights/insights/models.go +++ b/profiles/preview/preview/appinsights/insights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/authorization/mgmt/authorization/authorizationapi/models.go b/profiles/preview/preview/authorization/mgmt/authorization/authorizationapi/models.go index c67f931fc17b..9a8f7090a312 100644 --- a/profiles/preview/preview/authorization/mgmt/authorization/authorizationapi/models.go +++ b/profiles/preview/preview/authorization/mgmt/authorization/authorizationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/authorization/mgmt/authorization/models.go b/profiles/preview/preview/authorization/mgmt/authorization/models.go index 75e4b6736420..d4dd8f1dc159 100644 --- a/profiles/preview/preview/authorization/mgmt/authorization/models.go +++ b/profiles/preview/preview/authorization/mgmt/authorization/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/automation/mgmt/automation/automationapi/models.go b/profiles/preview/preview/automation/mgmt/automation/automationapi/models.go index 9222b918515b..58c69ca8866c 100644 --- a/profiles/preview/preview/automation/mgmt/automation/automationapi/models.go +++ b/profiles/preview/preview/automation/mgmt/automation/automationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/automation/mgmt/automation/models.go b/profiles/preview/preview/automation/mgmt/automation/models.go index 24ccce499a58..d55d349a5065 100644 --- a/profiles/preview/preview/automation/mgmt/automation/models.go +++ b/profiles/preview/preview/automation/mgmt/automation/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/batchai/mgmt/batchai/batchaiapi/models.go b/profiles/preview/preview/batchai/mgmt/batchai/batchaiapi/models.go index 89a48b04eac0..87ab4b6cedd7 100644 --- a/profiles/preview/preview/batchai/mgmt/batchai/batchaiapi/models.go +++ b/profiles/preview/preview/batchai/mgmt/batchai/batchaiapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/batchai/mgmt/batchai/models.go b/profiles/preview/preview/batchai/mgmt/batchai/models.go index 4a31813fa479..d72745a18dcb 100644 --- a/profiles/preview/preview/batchai/mgmt/batchai/models.go +++ b/profiles/preview/preview/batchai/mgmt/batchai/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/billing/mgmt/billing/billingapi/models.go b/profiles/preview/preview/billing/mgmt/billing/billingapi/models.go index 70df8a2a50c9..f5096010e396 100644 --- a/profiles/preview/preview/billing/mgmt/billing/billingapi/models.go +++ b/profiles/preview/preview/billing/mgmt/billing/billingapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/billing/mgmt/billing/models.go b/profiles/preview/preview/billing/mgmt/billing/models.go index f0584fd1d20b..b4430da31da9 100644 --- a/profiles/preview/preview/billing/mgmt/billing/models.go +++ b/profiles/preview/preview/billing/mgmt/billing/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/blueprint/mgmt/blueprint/blueprintapi/models.go b/profiles/preview/preview/blueprint/mgmt/blueprint/blueprintapi/models.go index c50e2f988d38..7fd90d326f9a 100644 --- a/profiles/preview/preview/blueprint/mgmt/blueprint/blueprintapi/models.go +++ b/profiles/preview/preview/blueprint/mgmt/blueprint/blueprintapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/blueprint/mgmt/blueprint/models.go b/profiles/preview/preview/blueprint/mgmt/blueprint/models.go index dda948af1dc7..b884ab4b6cb2 100644 --- a/profiles/preview/preview/blueprint/mgmt/blueprint/models.go +++ b/profiles/preview/preview/blueprint/mgmt/blueprint/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/botservice/mgmt/botservice/botserviceapi/models.go b/profiles/preview/preview/botservice/mgmt/botservice/botserviceapi/models.go index 1f1afcefc7d3..2ce4c13ed440 100644 --- a/profiles/preview/preview/botservice/mgmt/botservice/botserviceapi/models.go +++ b/profiles/preview/preview/botservice/mgmt/botservice/botserviceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/botservice/mgmt/botservice/models.go b/profiles/preview/preview/botservice/mgmt/botservice/models.go index 3ee4f964cb63..4f2595a516a5 100644 --- a/profiles/preview/preview/botservice/mgmt/botservice/models.go +++ b/profiles/preview/preview/botservice/mgmt/botservice/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go b/profiles/preview/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go index c9bd4ee08263..7abe1a1321a1 100644 --- a/profiles/preview/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go +++ b/profiles/preview/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/cognitiveservices/mgmt/cognitiveservices/models.go b/profiles/preview/preview/cognitiveservices/mgmt/cognitiveservices/models.go index 47e26e83c642..9cbb558994fd 100644 --- a/profiles/preview/preview/cognitiveservices/mgmt/cognitiveservices/models.go +++ b/profiles/preview/preview/cognitiveservices/mgmt/cognitiveservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/cognitiveservices/visualsearch/models.go b/profiles/preview/preview/cognitiveservices/visualsearch/models.go index 6e6831a537d0..6e512b00c2de 100644 --- a/profiles/preview/preview/cognitiveservices/visualsearch/models.go +++ b/profiles/preview/preview/cognitiveservices/visualsearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/cognitiveservices/visualsearch/visualsearchapi/models.go b/profiles/preview/preview/cognitiveservices/visualsearch/visualsearchapi/models.go index 205b77e7b94a..f42736d3db71 100644 --- a/profiles/preview/preview/cognitiveservices/visualsearch/visualsearchapi/models.go +++ b/profiles/preview/preview/cognitiveservices/visualsearch/visualsearchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/commerce/mgmt/commerce/commerceapi/models.go b/profiles/preview/preview/commerce/mgmt/commerce/commerceapi/models.go index 7439d44b4aaf..d6eec7c52242 100644 --- a/profiles/preview/preview/commerce/mgmt/commerce/commerceapi/models.go +++ b/profiles/preview/preview/commerce/mgmt/commerce/commerceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/commerce/mgmt/commerce/models.go b/profiles/preview/preview/commerce/mgmt/commerce/models.go index ad10415a24d2..370078b85b7f 100644 --- a/profiles/preview/preview/commerce/mgmt/commerce/models.go +++ b/profiles/preview/preview/commerce/mgmt/commerce/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/compute/mgmt/compute/computeapi/models.go b/profiles/preview/preview/compute/mgmt/compute/computeapi/models.go index 219172f35397..f8a25a47ee75 100644 --- a/profiles/preview/preview/compute/mgmt/compute/computeapi/models.go +++ b/profiles/preview/preview/compute/mgmt/compute/computeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/compute/mgmt/compute/models.go b/profiles/preview/preview/compute/mgmt/compute/models.go index 41684dbc883f..53b4709f1331 100644 --- a/profiles/preview/preview/compute/mgmt/compute/models.go +++ b/profiles/preview/preview/compute/mgmt/compute/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/consumption/mgmt/consumption/consumptionapi/models.go b/profiles/preview/preview/consumption/mgmt/consumption/consumptionapi/models.go index 4e066770f305..e032d2e7d37d 100644 --- a/profiles/preview/preview/consumption/mgmt/consumption/consumptionapi/models.go +++ b/profiles/preview/preview/consumption/mgmt/consumption/consumptionapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/consumption/mgmt/consumption/models.go b/profiles/preview/preview/consumption/mgmt/consumption/models.go index 4508351138ac..0c499278db98 100644 --- a/profiles/preview/preview/consumption/mgmt/consumption/models.go +++ b/profiles/preview/preview/consumption/mgmt/consumption/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/containerinstance/mgmt/containerinstance/containerinstanceapi/models.go b/profiles/preview/preview/containerinstance/mgmt/containerinstance/containerinstanceapi/models.go index f77c2e8980b8..b62f1ef667ea 100644 --- a/profiles/preview/preview/containerinstance/mgmt/containerinstance/containerinstanceapi/models.go +++ b/profiles/preview/preview/containerinstance/mgmt/containerinstance/containerinstanceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/containerinstance/mgmt/containerinstance/models.go b/profiles/preview/preview/containerinstance/mgmt/containerinstance/models.go index 6b305cfe7707..23c86e5eb485 100644 --- a/profiles/preview/preview/containerinstance/mgmt/containerinstance/models.go +++ b/profiles/preview/preview/containerinstance/mgmt/containerinstance/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/containerregistry/mgmt/containerregistry/containerregistryapi/models.go b/profiles/preview/preview/containerregistry/mgmt/containerregistry/containerregistryapi/models.go index 3a8ca725fdc6..7e8d7e40812e 100644 --- a/profiles/preview/preview/containerregistry/mgmt/containerregistry/containerregistryapi/models.go +++ b/profiles/preview/preview/containerregistry/mgmt/containerregistry/containerregistryapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go b/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go index 64643a966ffc..e3a0d14f2a62 100644 --- a/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go +++ b/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go b/profiles/preview/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go index 5c4bca72d113..3a3037bed8f7 100644 --- a/profiles/preview/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go +++ b/profiles/preview/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/containerservice/mgmt/containerservice/models.go b/profiles/preview/preview/containerservice/mgmt/containerservice/models.go index 86486ede0e38..21aba432e614 100644 --- a/profiles/preview/preview/containerservice/mgmt/containerservice/models.go +++ b/profiles/preview/preview/containerservice/mgmt/containerservice/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go b/profiles/preview/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go index 74d1ebec03fc..9dba6dc460f3 100644 --- a/profiles/preview/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go +++ b/profiles/preview/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/costmanagement/mgmt/costmanagement/models.go b/profiles/preview/preview/costmanagement/mgmt/costmanagement/models.go index 45fb9c9276b0..748a91034e28 100644 --- a/profiles/preview/preview/costmanagement/mgmt/costmanagement/models.go +++ b/profiles/preview/preview/costmanagement/mgmt/costmanagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datafactory/mgmt/datafactory/datafactoryapi/models.go b/profiles/preview/preview/datafactory/mgmt/datafactory/datafactoryapi/models.go index a39cacfadeb1..c784cabbc38e 100644 --- a/profiles/preview/preview/datafactory/mgmt/datafactory/datafactoryapi/models.go +++ b/profiles/preview/preview/datafactory/mgmt/datafactory/datafactoryapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datafactory/mgmt/datafactory/models.go b/profiles/preview/preview/datafactory/mgmt/datafactory/models.go index f5ab89133c93..3f55e7d7cef6 100644 --- a/profiles/preview/preview/datafactory/mgmt/datafactory/models.go +++ b/profiles/preview/preview/datafactory/mgmt/datafactory/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datalake/analytics/catalog/catalogapi/models.go b/profiles/preview/preview/datalake/analytics/catalog/catalogapi/models.go index d429d0771c42..7c7f4e5c2084 100644 --- a/profiles/preview/preview/datalake/analytics/catalog/catalogapi/models.go +++ b/profiles/preview/preview/datalake/analytics/catalog/catalogapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datalake/analytics/catalog/models.go b/profiles/preview/preview/datalake/analytics/catalog/models.go index 1445a9981cfd..9f3f4b62bcf1 100644 --- a/profiles/preview/preview/datalake/analytics/catalog/models.go +++ b/profiles/preview/preview/datalake/analytics/catalog/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datalake/analytics/job/jobapi/models.go b/profiles/preview/preview/datalake/analytics/job/jobapi/models.go index 62101e693bf4..83fef072b5f6 100644 --- a/profiles/preview/preview/datalake/analytics/job/jobapi/models.go +++ b/profiles/preview/preview/datalake/analytics/job/jobapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datalake/analytics/job/models.go b/profiles/preview/preview/datalake/analytics/job/models.go index ff12f428507a..e710d9579f84 100644 --- a/profiles/preview/preview/datalake/analytics/job/models.go +++ b/profiles/preview/preview/datalake/analytics/job/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datalake/analytics/mgmt/account/accountapi/models.go b/profiles/preview/preview/datalake/analytics/mgmt/account/accountapi/models.go index dce515226db0..8646838a72ba 100644 --- a/profiles/preview/preview/datalake/analytics/mgmt/account/accountapi/models.go +++ b/profiles/preview/preview/datalake/analytics/mgmt/account/accountapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datalake/analytics/mgmt/account/models.go b/profiles/preview/preview/datalake/analytics/mgmt/account/models.go index 8e7074b7bf4f..bcb56e330ef2 100644 --- a/profiles/preview/preview/datalake/analytics/mgmt/account/models.go +++ b/profiles/preview/preview/datalake/analytics/mgmt/account/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datalake/store/filesystem/filesystemapi/models.go b/profiles/preview/preview/datalake/store/filesystem/filesystemapi/models.go index 736a5807d822..2cddd96e78e4 100644 --- a/profiles/preview/preview/datalake/store/filesystem/filesystemapi/models.go +++ b/profiles/preview/preview/datalake/store/filesystem/filesystemapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datalake/store/filesystem/models.go b/profiles/preview/preview/datalake/store/filesystem/models.go index 98482d92d389..081145fa44e3 100644 --- a/profiles/preview/preview/datalake/store/filesystem/models.go +++ b/profiles/preview/preview/datalake/store/filesystem/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datalake/store/mgmt/account/accountapi/models.go b/profiles/preview/preview/datalake/store/mgmt/account/accountapi/models.go index 750d79aac67b..bbc373d20b1f 100644 --- a/profiles/preview/preview/datalake/store/mgmt/account/accountapi/models.go +++ b/profiles/preview/preview/datalake/store/mgmt/account/accountapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datalake/store/mgmt/account/models.go b/profiles/preview/preview/datalake/store/mgmt/account/models.go index 76d7919fb646..2b4cfea47c43 100644 --- a/profiles/preview/preview/datalake/store/mgmt/account/models.go +++ b/profiles/preview/preview/datalake/store/mgmt/account/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datamigration/mgmt/datamigration/datamigrationapi/models.go b/profiles/preview/preview/datamigration/mgmt/datamigration/datamigrationapi/models.go index 06df26a6893a..81ea19c3abaf 100644 --- a/profiles/preview/preview/datamigration/mgmt/datamigration/datamigrationapi/models.go +++ b/profiles/preview/preview/datamigration/mgmt/datamigration/datamigrationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/datamigration/mgmt/datamigration/models.go b/profiles/preview/preview/datamigration/mgmt/datamigration/models.go index 55eb6ee15d46..eec9f0f7a21f 100644 --- a/profiles/preview/preview/datamigration/mgmt/datamigration/models.go +++ b/profiles/preview/preview/datamigration/mgmt/datamigration/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/deploymentmanager/mgmt/deploymentmanager/deploymentmanagerapi/models.go b/profiles/preview/preview/deploymentmanager/mgmt/deploymentmanager/deploymentmanagerapi/models.go index 44dae9768540..9891a3285143 100644 --- a/profiles/preview/preview/deploymentmanager/mgmt/deploymentmanager/deploymentmanagerapi/models.go +++ b/profiles/preview/preview/deploymentmanager/mgmt/deploymentmanager/deploymentmanagerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/deploymentmanager/mgmt/deploymentmanager/models.go b/profiles/preview/preview/deploymentmanager/mgmt/deploymentmanager/models.go index fe55f7143cea..a42bb54e7b5a 100644 --- a/profiles/preview/preview/deploymentmanager/mgmt/deploymentmanager/models.go +++ b/profiles/preview/preview/deploymentmanager/mgmt/deploymentmanager/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/devspaces/mgmt/devspaces/devspacesapi/models.go b/profiles/preview/preview/devspaces/mgmt/devspaces/devspacesapi/models.go index 70a71da4199c..784878dcab5c 100644 --- a/profiles/preview/preview/devspaces/mgmt/devspaces/devspacesapi/models.go +++ b/profiles/preview/preview/devspaces/mgmt/devspaces/devspacesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/devspaces/mgmt/devspaces/models.go b/profiles/preview/preview/devspaces/mgmt/devspaces/models.go index 894cf4e3dd46..339f05372388 100644 --- a/profiles/preview/preview/devspaces/mgmt/devspaces/models.go +++ b/profiles/preview/preview/devspaces/mgmt/devspaces/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/devtestlabs/mgmt/dtl/dtlapi/models.go b/profiles/preview/preview/devtestlabs/mgmt/dtl/dtlapi/models.go index 5e1263868a32..b116498919fb 100644 --- a/profiles/preview/preview/devtestlabs/mgmt/dtl/dtlapi/models.go +++ b/profiles/preview/preview/devtestlabs/mgmt/dtl/dtlapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/devtestlabs/mgmt/dtl/models.go b/profiles/preview/preview/devtestlabs/mgmt/dtl/models.go index 7bca67741663..ed05c68dbba0 100644 --- a/profiles/preview/preview/devtestlabs/mgmt/dtl/models.go +++ b/profiles/preview/preview/devtestlabs/mgmt/dtl/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/dns/mgmt/dns/dnsapi/models.go b/profiles/preview/preview/dns/mgmt/dns/dnsapi/models.go index a0b961c65cf0..13eadcafa8bd 100644 --- a/profiles/preview/preview/dns/mgmt/dns/dnsapi/models.go +++ b/profiles/preview/preview/dns/mgmt/dns/dnsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/dns/mgmt/dns/models.go b/profiles/preview/preview/dns/mgmt/dns/models.go index 55c4a361b0e1..1fa83be41a24 100644 --- a/profiles/preview/preview/dns/mgmt/dns/models.go +++ b/profiles/preview/preview/dns/mgmt/dns/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/engagementfabric/mgmt/engagementfabric/engagementfabricapi/models.go b/profiles/preview/preview/engagementfabric/mgmt/engagementfabric/engagementfabricapi/models.go index 433d66c05955..f820c4a1853e 100644 --- a/profiles/preview/preview/engagementfabric/mgmt/engagementfabric/engagementfabricapi/models.go +++ b/profiles/preview/preview/engagementfabric/mgmt/engagementfabric/engagementfabricapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/engagementfabric/mgmt/engagementfabric/models.go b/profiles/preview/preview/engagementfabric/mgmt/engagementfabric/models.go index 2764628a7f64..b5ce98f94f5c 100644 --- a/profiles/preview/preview/engagementfabric/mgmt/engagementfabric/models.go +++ b/profiles/preview/preview/engagementfabric/mgmt/engagementfabric/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/eventgrid/mgmt/eventgrid/eventgridapi/models.go b/profiles/preview/preview/eventgrid/mgmt/eventgrid/eventgridapi/models.go index 9a5044ed85da..2e379c0f4364 100644 --- a/profiles/preview/preview/eventgrid/mgmt/eventgrid/eventgridapi/models.go +++ b/profiles/preview/preview/eventgrid/mgmt/eventgrid/eventgridapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/eventgrid/mgmt/eventgrid/models.go b/profiles/preview/preview/eventgrid/mgmt/eventgrid/models.go index a81c8283c0db..96615962df0e 100644 --- a/profiles/preview/preview/eventgrid/mgmt/eventgrid/models.go +++ b/profiles/preview/preview/eventgrid/mgmt/eventgrid/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/eventhub/mgmt/eventhub/eventhubapi/models.go b/profiles/preview/preview/eventhub/mgmt/eventhub/eventhubapi/models.go index 1c7cfe6483a4..c29612bac4bd 100644 --- a/profiles/preview/preview/eventhub/mgmt/eventhub/eventhubapi/models.go +++ b/profiles/preview/preview/eventhub/mgmt/eventhub/eventhubapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/eventhub/mgmt/eventhub/models.go b/profiles/preview/preview/eventhub/mgmt/eventhub/models.go index 43c7fc4ad6b9..3bc3ebaa5fcd 100644 --- a/profiles/preview/preview/eventhub/mgmt/eventhub/models.go +++ b/profiles/preview/preview/eventhub/mgmt/eventhub/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/frontdoor/mgmt/frontdoor/frontdoorapi/models.go b/profiles/preview/preview/frontdoor/mgmt/frontdoor/frontdoorapi/models.go index 4ab6919b6cd9..987801ce410b 100644 --- a/profiles/preview/preview/frontdoor/mgmt/frontdoor/frontdoorapi/models.go +++ b/profiles/preview/preview/frontdoor/mgmt/frontdoor/frontdoorapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/frontdoor/mgmt/frontdoor/models.go b/profiles/preview/preview/frontdoor/mgmt/frontdoor/models.go index 09b1c7e91230..177aaf343521 100644 --- a/profiles/preview/preview/frontdoor/mgmt/frontdoor/models.go +++ b/profiles/preview/preview/frontdoor/mgmt/frontdoor/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/hanaonazure/mgmt/hanaonazure/hanaonazureapi/models.go b/profiles/preview/preview/hanaonazure/mgmt/hanaonazure/hanaonazureapi/models.go index 2aba1ac5fcf0..81bdb3436a03 100644 --- a/profiles/preview/preview/hanaonazure/mgmt/hanaonazure/hanaonazureapi/models.go +++ b/profiles/preview/preview/hanaonazure/mgmt/hanaonazure/hanaonazureapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/hanaonazure/mgmt/hanaonazure/models.go b/profiles/preview/preview/hanaonazure/mgmt/hanaonazure/models.go index 46b2927b5e57..c7f036e3a5dc 100644 --- a/profiles/preview/preview/hanaonazure/mgmt/hanaonazure/models.go +++ b/profiles/preview/preview/hanaonazure/mgmt/hanaonazure/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/hdinsight/hdinsight/hdinsightapi/models.go b/profiles/preview/preview/hdinsight/hdinsight/hdinsightapi/models.go index 8a189aa845a6..d18e3ef09681 100644 --- a/profiles/preview/preview/hdinsight/hdinsight/hdinsightapi/models.go +++ b/profiles/preview/preview/hdinsight/hdinsight/hdinsightapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/hdinsight/hdinsight/models.go b/profiles/preview/preview/hdinsight/hdinsight/models.go index b50659e52fae..52a0270521e7 100644 --- a/profiles/preview/preview/hdinsight/hdinsight/models.go +++ b/profiles/preview/preview/hdinsight/hdinsight/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/hdinsight/mgmt/hdinsight/hdinsightapi/models.go b/profiles/preview/preview/hdinsight/mgmt/hdinsight/hdinsightapi/models.go index 7fdc6879fed0..41565202c7d2 100644 --- a/profiles/preview/preview/hdinsight/mgmt/hdinsight/hdinsightapi/models.go +++ b/profiles/preview/preview/hdinsight/mgmt/hdinsight/hdinsightapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/hdinsight/mgmt/hdinsight/models.go b/profiles/preview/preview/hdinsight/mgmt/hdinsight/models.go index 2ba05a7c2cbb..c23600f2b7be 100644 --- a/profiles/preview/preview/hdinsight/mgmt/hdinsight/models.go +++ b/profiles/preview/preview/hdinsight/mgmt/hdinsight/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/iotspaces/mgmt/iotspaces/iotspacesapi/models.go b/profiles/preview/preview/iotspaces/mgmt/iotspaces/iotspacesapi/models.go index 8520afdcf836..0bae8a0029e4 100644 --- a/profiles/preview/preview/iotspaces/mgmt/iotspaces/iotspacesapi/models.go +++ b/profiles/preview/preview/iotspaces/mgmt/iotspaces/iotspacesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/iotspaces/mgmt/iotspaces/models.go b/profiles/preview/preview/iotspaces/mgmt/iotspaces/models.go index 313b5d5da0d7..6b6c901de55e 100644 --- a/profiles/preview/preview/iotspaces/mgmt/iotspaces/models.go +++ b/profiles/preview/preview/iotspaces/mgmt/iotspaces/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/kusto/mgmt/kusto/kustoapi/models.go b/profiles/preview/preview/kusto/mgmt/kusto/kustoapi/models.go index 539ed387ec04..55cef31bafd3 100644 --- a/profiles/preview/preview/kusto/mgmt/kusto/kustoapi/models.go +++ b/profiles/preview/preview/kusto/mgmt/kusto/kustoapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/kusto/mgmt/kusto/models.go b/profiles/preview/preview/kusto/mgmt/kusto/models.go index 0cc5a0f68395..44438864b566 100644 --- a/profiles/preview/preview/kusto/mgmt/kusto/models.go +++ b/profiles/preview/preview/kusto/mgmt/kusto/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/logic/mgmt/logic/logicapi/models.go b/profiles/preview/preview/logic/mgmt/logic/logicapi/models.go index 39527fb457b9..14c12e7e0d6b 100644 --- a/profiles/preview/preview/logic/mgmt/logic/logicapi/models.go +++ b/profiles/preview/preview/logic/mgmt/logic/logicapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/logic/mgmt/logic/models.go b/profiles/preview/preview/logic/mgmt/logic/models.go index 334d044fef12..4840cfe366c6 100644 --- a/profiles/preview/preview/logic/mgmt/logic/models.go +++ b/profiles/preview/preview/logic/mgmt/logic/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/machinelearning/mgmt/commitmentplans/commitmentplansapi/models.go b/profiles/preview/preview/machinelearning/mgmt/commitmentplans/commitmentplansapi/models.go index aa3072110de6..7e72a239575b 100644 --- a/profiles/preview/preview/machinelearning/mgmt/commitmentplans/commitmentplansapi/models.go +++ b/profiles/preview/preview/machinelearning/mgmt/commitmentplans/commitmentplansapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/machinelearning/mgmt/commitmentplans/models.go b/profiles/preview/preview/machinelearning/mgmt/commitmentplans/models.go index 6395a0784dd2..937ccedeb092 100644 --- a/profiles/preview/preview/machinelearning/mgmt/commitmentplans/models.go +++ b/profiles/preview/preview/machinelearning/mgmt/commitmentplans/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/machinelearning/mgmt/compute/computeapi/models.go b/profiles/preview/preview/machinelearning/mgmt/compute/computeapi/models.go index 12c0fa1e2255..853e64fd4a7e 100644 --- a/profiles/preview/preview/machinelearning/mgmt/compute/computeapi/models.go +++ b/profiles/preview/preview/machinelearning/mgmt/compute/computeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/machinelearning/mgmt/compute/models.go b/profiles/preview/preview/machinelearning/mgmt/compute/models.go index bbcfe8ea7874..269660de1b44 100644 --- a/profiles/preview/preview/machinelearning/mgmt/compute/models.go +++ b/profiles/preview/preview/machinelearning/mgmt/compute/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/machinelearning/mgmt/experimentation/experimentationapi/models.go b/profiles/preview/preview/machinelearning/mgmt/experimentation/experimentationapi/models.go index 3c5c1f3b7e2a..52b39f48f8ec 100644 --- a/profiles/preview/preview/machinelearning/mgmt/experimentation/experimentationapi/models.go +++ b/profiles/preview/preview/machinelearning/mgmt/experimentation/experimentationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/machinelearning/mgmt/experimentation/models.go b/profiles/preview/preview/machinelearning/mgmt/experimentation/models.go index b7a56423bf5b..d817003a774c 100644 --- a/profiles/preview/preview/machinelearning/mgmt/experimentation/models.go +++ b/profiles/preview/preview/machinelearning/mgmt/experimentation/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/machinelearning/mgmt/services/models.go b/profiles/preview/preview/machinelearning/mgmt/services/models.go index 2ff1f6bb98ee..467c0da43664 100644 --- a/profiles/preview/preview/machinelearning/mgmt/services/models.go +++ b/profiles/preview/preview/machinelearning/mgmt/services/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/machinelearning/mgmt/services/servicesapi/models.go b/profiles/preview/preview/machinelearning/mgmt/services/servicesapi/models.go index 74dd00c082e6..14f1fcfc2676 100644 --- a/profiles/preview/preview/machinelearning/mgmt/services/servicesapi/models.go +++ b/profiles/preview/preview/machinelearning/mgmt/services/servicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/machinelearning/mgmt/webservices/models.go b/profiles/preview/preview/machinelearning/mgmt/webservices/models.go index fbf8b2db9310..369b4b90b6be 100644 --- a/profiles/preview/preview/machinelearning/mgmt/webservices/models.go +++ b/profiles/preview/preview/machinelearning/mgmt/webservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/machinelearning/mgmt/webservices/webservicesapi/models.go b/profiles/preview/preview/machinelearning/mgmt/webservices/webservicesapi/models.go index dcf20129a1f3..89d80fd3b3dd 100644 --- a/profiles/preview/preview/machinelearning/mgmt/webservices/webservicesapi/models.go +++ b/profiles/preview/preview/machinelearning/mgmt/webservices/webservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/managementpartner/mgmt/managementpartner/managementpartnerapi/models.go b/profiles/preview/preview/managementpartner/mgmt/managementpartner/managementpartnerapi/models.go index e37db3c82cd6..58981c800aeb 100644 --- a/profiles/preview/preview/managementpartner/mgmt/managementpartner/managementpartnerapi/models.go +++ b/profiles/preview/preview/managementpartner/mgmt/managementpartner/managementpartnerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/managementpartner/mgmt/managementpartner/models.go b/profiles/preview/preview/managementpartner/mgmt/managementpartner/models.go index f8af5cd79f73..89efa62c9fe1 100644 --- a/profiles/preview/preview/managementpartner/mgmt/managementpartner/models.go +++ b/profiles/preview/preview/managementpartner/mgmt/managementpartner/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/mariadb/mgmt/mariadb/mariadbapi/models.go b/profiles/preview/preview/mariadb/mgmt/mariadb/mariadbapi/models.go index 01c963d5d306..c32025e9368f 100644 --- a/profiles/preview/preview/mariadb/mgmt/mariadb/mariadbapi/models.go +++ b/profiles/preview/preview/mariadb/mgmt/mariadb/mariadbapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/mariadb/mgmt/mariadb/models.go b/profiles/preview/preview/mariadb/mgmt/mariadb/models.go index 44b9d45da210..f65220eaaf2f 100644 --- a/profiles/preview/preview/mariadb/mgmt/mariadb/models.go +++ b/profiles/preview/preview/mariadb/mgmt/mariadb/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/mediaservices/mgmt/media/mediaapi/models.go b/profiles/preview/preview/mediaservices/mgmt/media/mediaapi/models.go index 76e0aa09ea02..77e4e150afff 100644 --- a/profiles/preview/preview/mediaservices/mgmt/media/mediaapi/models.go +++ b/profiles/preview/preview/mediaservices/mgmt/media/mediaapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/mediaservices/mgmt/media/models.go b/profiles/preview/preview/mediaservices/mgmt/media/models.go index b33c60beca68..5a8ff663ffb7 100644 --- a/profiles/preview/preview/mediaservices/mgmt/media/models.go +++ b/profiles/preview/preview/mediaservices/mgmt/media/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/monitor/mgmt/insights/insightsapi/models.go b/profiles/preview/preview/monitor/mgmt/insights/insightsapi/models.go index 255c91d3f20b..c0f3e40c794b 100644 --- a/profiles/preview/preview/monitor/mgmt/insights/insightsapi/models.go +++ b/profiles/preview/preview/monitor/mgmt/insights/insightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/monitor/mgmt/insights/models.go b/profiles/preview/preview/monitor/mgmt/insights/models.go index 934112acd718..79898aba7a1c 100644 --- a/profiles/preview/preview/monitor/mgmt/insights/models.go +++ b/profiles/preview/preview/monitor/mgmt/insights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/monitor/monitor/models.go b/profiles/preview/preview/monitor/monitor/models.go index f10710d38760..1ce83c9fcf29 100644 --- a/profiles/preview/preview/monitor/monitor/models.go +++ b/profiles/preview/preview/monitor/monitor/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/monitor/monitor/monitorapi/models.go b/profiles/preview/preview/monitor/monitor/monitorapi/models.go index e681bdc14866..33e19e6c167c 100644 --- a/profiles/preview/preview/monitor/monitor/monitorapi/models.go +++ b/profiles/preview/preview/monitor/monitor/monitorapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/msi/mgmt/msi/models.go b/profiles/preview/preview/msi/mgmt/msi/models.go index 339438bd26df..ab63e2554a02 100644 --- a/profiles/preview/preview/msi/mgmt/msi/models.go +++ b/profiles/preview/preview/msi/mgmt/msi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/msi/mgmt/msi/msiapi/models.go b/profiles/preview/preview/msi/mgmt/msi/msiapi/models.go index a9279c4fc91f..4d899e3fe9ac 100644 --- a/profiles/preview/preview/msi/mgmt/msi/msiapi/models.go +++ b/profiles/preview/preview/msi/mgmt/msi/msiapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/network/mgmt/network/models.go b/profiles/preview/preview/network/mgmt/network/models.go index b2e384139ae6..09117aa1a4eb 100644 --- a/profiles/preview/preview/network/mgmt/network/models.go +++ b/profiles/preview/preview/network/mgmt/network/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/network/mgmt/network/networkapi/models.go b/profiles/preview/preview/network/mgmt/network/networkapi/models.go index 974d14c8ab91..a42650e24383 100644 --- a/profiles/preview/preview/network/mgmt/network/networkapi/models.go +++ b/profiles/preview/preview/network/mgmt/network/networkapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/operationalinsights/mgmt/operationalinsights/models.go b/profiles/preview/preview/operationalinsights/mgmt/operationalinsights/models.go index c8773f334564..21d9d4612a66 100644 --- a/profiles/preview/preview/operationalinsights/mgmt/operationalinsights/models.go +++ b/profiles/preview/preview/operationalinsights/mgmt/operationalinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/operationalinsights/mgmt/operationalinsights/operationalinsightsapi/models.go b/profiles/preview/preview/operationalinsights/mgmt/operationalinsights/operationalinsightsapi/models.go index 3dd4cb9863ae..bf17329e3345 100644 --- a/profiles/preview/preview/operationalinsights/mgmt/operationalinsights/operationalinsightsapi/models.go +++ b/profiles/preview/preview/operationalinsights/mgmt/operationalinsights/operationalinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/operationalinsights/mgmt/servicemap/models.go b/profiles/preview/preview/operationalinsights/mgmt/servicemap/models.go index 5ee5449f172f..92043553d0a6 100644 --- a/profiles/preview/preview/operationalinsights/mgmt/servicemap/models.go +++ b/profiles/preview/preview/operationalinsights/mgmt/servicemap/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/operationalinsights/mgmt/servicemap/servicemapapi/models.go b/profiles/preview/preview/operationalinsights/mgmt/servicemap/servicemapapi/models.go index 59d12fbed3c9..1429c332b685 100644 --- a/profiles/preview/preview/operationalinsights/mgmt/servicemap/servicemapapi/models.go +++ b/profiles/preview/preview/operationalinsights/mgmt/servicemap/servicemapapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/operationsmanagement/mgmt/operationsmanagement/models.go b/profiles/preview/preview/operationsmanagement/mgmt/operationsmanagement/models.go index 45a7d8f3e61c..f96ae03aa872 100644 --- a/profiles/preview/preview/operationsmanagement/mgmt/operationsmanagement/models.go +++ b/profiles/preview/preview/operationsmanagement/mgmt/operationsmanagement/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/operationsmanagement/mgmt/operationsmanagement/operationsmanagementapi/models.go b/profiles/preview/preview/operationsmanagement/mgmt/operationsmanagement/operationsmanagementapi/models.go index b1423ec1ddf4..87c7d91d44da 100644 --- a/profiles/preview/preview/operationsmanagement/mgmt/operationsmanagement/operationsmanagementapi/models.go +++ b/profiles/preview/preview/operationsmanagement/mgmt/operationsmanagement/operationsmanagementapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/policyinsights/mgmt/policyinsights/models.go b/profiles/preview/preview/policyinsights/mgmt/policyinsights/models.go index 62d4b3948115..8c18c7e0ceeb 100644 --- a/profiles/preview/preview/policyinsights/mgmt/policyinsights/models.go +++ b/profiles/preview/preview/policyinsights/mgmt/policyinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go b/profiles/preview/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go index ec192e66efe5..4c182a8890ea 100644 --- a/profiles/preview/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go +++ b/profiles/preview/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/provisioningservices/mgmt/iothub/iothubapi/models.go b/profiles/preview/preview/provisioningservices/mgmt/iothub/iothubapi/models.go index ff18fd671b10..ab89ed4d1a5e 100644 --- a/profiles/preview/preview/provisioningservices/mgmt/iothub/iothubapi/models.go +++ b/profiles/preview/preview/provisioningservices/mgmt/iothub/iothubapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/provisioningservices/mgmt/iothub/models.go b/profiles/preview/preview/provisioningservices/mgmt/iothub/models.go index 247d7c745716..e19f2a3441aa 100644 --- a/profiles/preview/preview/provisioningservices/mgmt/iothub/models.go +++ b/profiles/preview/preview/provisioningservices/mgmt/iothub/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/reservations/mgmt/reservations/models.go b/profiles/preview/preview/reservations/mgmt/reservations/models.go index a86da1ba0bd6..9a83e0e8aad5 100644 --- a/profiles/preview/preview/reservations/mgmt/reservations/models.go +++ b/profiles/preview/preview/reservations/mgmt/reservations/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/reservations/mgmt/reservations/reservationsapi/models.go b/profiles/preview/preview/reservations/mgmt/reservations/reservationsapi/models.go index a76ac32384e7..56b20725c5a1 100644 --- a/profiles/preview/preview/reservations/mgmt/reservations/reservationsapi/models.go +++ b/profiles/preview/preview/reservations/mgmt/reservations/reservationsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/resources/mgmt/managedapplications/managedapplicationsapi/models.go b/profiles/preview/preview/resources/mgmt/managedapplications/managedapplicationsapi/models.go index d9f465ef0bea..241076f3994a 100644 --- a/profiles/preview/preview/resources/mgmt/managedapplications/managedapplicationsapi/models.go +++ b/profiles/preview/preview/resources/mgmt/managedapplications/managedapplicationsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/resources/mgmt/managedapplications/models.go b/profiles/preview/preview/resources/mgmt/managedapplications/models.go index 8d023f9b0c3c..4a8fe04d286f 100644 --- a/profiles/preview/preview/resources/mgmt/managedapplications/models.go +++ b/profiles/preview/preview/resources/mgmt/managedapplications/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/resources/mgmt/managementgroups/managementgroupsapi/models.go b/profiles/preview/preview/resources/mgmt/managementgroups/managementgroupsapi/models.go index f04d977cfabd..bc4208e24c23 100644 --- a/profiles/preview/preview/resources/mgmt/managementgroups/managementgroupsapi/models.go +++ b/profiles/preview/preview/resources/mgmt/managementgroups/managementgroupsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/resources/mgmt/managementgroups/models.go b/profiles/preview/preview/resources/mgmt/managementgroups/models.go index 09c17a341843..307069c0ff47 100644 --- a/profiles/preview/preview/resources/mgmt/managementgroups/models.go +++ b/profiles/preview/preview/resources/mgmt/managementgroups/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/resources/mgmt/policy/models.go b/profiles/preview/preview/resources/mgmt/policy/models.go index e15e838915ec..7469c4e0485e 100644 --- a/profiles/preview/preview/resources/mgmt/policy/models.go +++ b/profiles/preview/preview/resources/mgmt/policy/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/resources/mgmt/policy/policyapi/models.go b/profiles/preview/preview/resources/mgmt/policy/policyapi/models.go index 586b003fbb07..2248a1fef720 100644 --- a/profiles/preview/preview/resources/mgmt/policy/policyapi/models.go +++ b/profiles/preview/preview/resources/mgmt/policy/policyapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/scheduler/mgmt/scheduler/models.go b/profiles/preview/preview/scheduler/mgmt/scheduler/models.go index 03245759bed9..65cec574653e 100644 --- a/profiles/preview/preview/scheduler/mgmt/scheduler/models.go +++ b/profiles/preview/preview/scheduler/mgmt/scheduler/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/scheduler/mgmt/scheduler/schedulerapi/models.go b/profiles/preview/preview/scheduler/mgmt/scheduler/schedulerapi/models.go index fbd8e4c40c2f..7e6b82de2b5f 100644 --- a/profiles/preview/preview/scheduler/mgmt/scheduler/schedulerapi/models.go +++ b/profiles/preview/preview/scheduler/mgmt/scheduler/schedulerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/security/mgmt/security/models.go b/profiles/preview/preview/security/mgmt/security/models.go index b2ee7ef4489a..514a0a290cd1 100644 --- a/profiles/preview/preview/security/mgmt/security/models.go +++ b/profiles/preview/preview/security/mgmt/security/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/security/mgmt/security/securityapi/models.go b/profiles/preview/preview/security/mgmt/security/securityapi/models.go index 8f5d56b57b68..cc09cc4e7916 100644 --- a/profiles/preview/preview/security/mgmt/security/securityapi/models.go +++ b/profiles/preview/preview/security/mgmt/security/securityapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/servicefabric/mgmt/servicefabric/models.go b/profiles/preview/preview/servicefabric/mgmt/servicefabric/models.go index c8f05b75364f..b71aabdf2d5b 100644 --- a/profiles/preview/preview/servicefabric/mgmt/servicefabric/models.go +++ b/profiles/preview/preview/servicefabric/mgmt/servicefabric/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh/models.go b/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh/models.go index 04c607f58f3a..36e0ada34765 100644 --- a/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh/models.go +++ b/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh/servicefabricmeshapi/models.go b/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh/servicefabricmeshapi/models.go index def01f0a7372..ea48bd552ac2 100644 --- a/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh/servicefabricmeshapi/models.go +++ b/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh/servicefabricmeshapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/signalr/mgmt/signalr/models.go b/profiles/preview/preview/signalr/mgmt/signalr/models.go index ba14cd3a5cf7..da01d2b56bd0 100644 --- a/profiles/preview/preview/signalr/mgmt/signalr/models.go +++ b/profiles/preview/preview/signalr/mgmt/signalr/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/signalr/mgmt/signalr/signalrapi/models.go b/profiles/preview/preview/signalr/mgmt/signalr/signalrapi/models.go index a4cbbc961b96..512f60825022 100644 --- a/profiles/preview/preview/signalr/mgmt/signalr/signalrapi/models.go +++ b/profiles/preview/preview/signalr/mgmt/signalr/signalrapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/sql/mgmt/sql/models.go b/profiles/preview/preview/sql/mgmt/sql/models.go index 5a2e335630a4..320dd8b79df8 100644 --- a/profiles/preview/preview/sql/mgmt/sql/models.go +++ b/profiles/preview/preview/sql/mgmt/sql/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/sql/mgmt/sql/sqlapi/models.go b/profiles/preview/preview/sql/mgmt/sql/sqlapi/models.go index dfe5bda959a3..84a6942560c0 100644 --- a/profiles/preview/preview/sql/mgmt/sql/sqlapi/models.go +++ b/profiles/preview/preview/sql/mgmt/sql/sqlapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/sqlvirtualmachine/mgmt/sqlvirtualmachine/models.go b/profiles/preview/preview/sqlvirtualmachine/mgmt/sqlvirtualmachine/models.go index 0882eadb997a..7964d8917eda 100644 --- a/profiles/preview/preview/sqlvirtualmachine/mgmt/sqlvirtualmachine/models.go +++ b/profiles/preview/preview/sqlvirtualmachine/mgmt/sqlvirtualmachine/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/sqlvirtualmachine/mgmt/sqlvirtualmachine/sqlvirtualmachineapi/models.go b/profiles/preview/preview/sqlvirtualmachine/mgmt/sqlvirtualmachine/sqlvirtualmachineapi/models.go index 05fb5c7a340d..661ed3282f40 100644 --- a/profiles/preview/preview/sqlvirtualmachine/mgmt/sqlvirtualmachine/sqlvirtualmachineapi/models.go +++ b/profiles/preview/preview/sqlvirtualmachine/mgmt/sqlvirtualmachine/sqlvirtualmachineapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/storage/datalake/storagedatalake/models.go b/profiles/preview/preview/storage/datalake/storagedatalake/models.go index 17ae0d7c6f29..bf1d942ba4a0 100644 --- a/profiles/preview/preview/storage/datalake/storagedatalake/models.go +++ b/profiles/preview/preview/storage/datalake/storagedatalake/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/storage/datalake/storagedatalake/storagedatalakeapi/models.go b/profiles/preview/preview/storage/datalake/storagedatalake/storagedatalakeapi/models.go index 1a265ebf35a8..71df4b8a68db 100644 --- a/profiles/preview/preview/storage/datalake/storagedatalake/storagedatalakeapi/models.go +++ b/profiles/preview/preview/storage/datalake/storagedatalake/storagedatalakeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/storage/mgmt/storage/models.go b/profiles/preview/preview/storage/mgmt/storage/models.go index 41f820638443..dc1bed8233c0 100644 --- a/profiles/preview/preview/storage/mgmt/storage/models.go +++ b/profiles/preview/preview/storage/mgmt/storage/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/storage/mgmt/storage/storageapi/models.go b/profiles/preview/preview/storage/mgmt/storage/storageapi/models.go index f8a48cc6d6cd..eb06f761e79c 100644 --- a/profiles/preview/preview/storage/mgmt/storage/storageapi/models.go +++ b/profiles/preview/preview/storage/mgmt/storage/storageapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/storagesync/mgmt/storagesync/models.go b/profiles/preview/preview/storagesync/mgmt/storagesync/models.go index 89f162b84c31..1c0ea0250a3e 100644 --- a/profiles/preview/preview/storagesync/mgmt/storagesync/models.go +++ b/profiles/preview/preview/storagesync/mgmt/storagesync/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/storagesync/mgmt/storagesync/storagesyncapi/models.go b/profiles/preview/preview/storagesync/mgmt/storagesync/storagesyncapi/models.go index 2a664b0ab402..a2dcd522997b 100644 --- a/profiles/preview/preview/storagesync/mgmt/storagesync/storagesyncapi/models.go +++ b/profiles/preview/preview/storagesync/mgmt/storagesync/storagesyncapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/subscription/mgmt/subscription/models.go b/profiles/preview/preview/subscription/mgmt/subscription/models.go index aaeb690795fe..1e425bd847f0 100644 --- a/profiles/preview/preview/subscription/mgmt/subscription/models.go +++ b/profiles/preview/preview/subscription/mgmt/subscription/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/subscription/mgmt/subscription/subscriptionapi/models.go b/profiles/preview/preview/subscription/mgmt/subscription/subscriptionapi/models.go index 10b47d323f3a..9df51c367d22 100644 --- a/profiles/preview/preview/subscription/mgmt/subscription/subscriptionapi/models.go +++ b/profiles/preview/preview/subscription/mgmt/subscription/subscriptionapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/timeseriesinsights/mgmt/timeseriesinsights/models.go b/profiles/preview/preview/timeseriesinsights/mgmt/timeseriesinsights/models.go index d0ff541e4b1d..4e0f439b239d 100644 --- a/profiles/preview/preview/timeseriesinsights/mgmt/timeseriesinsights/models.go +++ b/profiles/preview/preview/timeseriesinsights/mgmt/timeseriesinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/timeseriesinsights/mgmt/timeseriesinsights/timeseriesinsightsapi/models.go b/profiles/preview/preview/timeseriesinsights/mgmt/timeseriesinsights/timeseriesinsightsapi/models.go index 4f824fe96fc1..3e99514ad580 100644 --- a/profiles/preview/preview/timeseriesinsights/mgmt/timeseriesinsights/timeseriesinsightsapi/models.go +++ b/profiles/preview/preview/timeseriesinsights/mgmt/timeseriesinsights/timeseriesinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/trafficmanager/mgmt/trafficmanager/models.go b/profiles/preview/preview/trafficmanager/mgmt/trafficmanager/models.go index 4728cc1d93fe..31db4079580c 100644 --- a/profiles/preview/preview/trafficmanager/mgmt/trafficmanager/models.go +++ b/profiles/preview/preview/trafficmanager/mgmt/trafficmanager/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/trafficmanager/mgmt/trafficmanager/trafficmanagerapi/models.go b/profiles/preview/preview/trafficmanager/mgmt/trafficmanager/trafficmanagerapi/models.go index ea1f98285ce8..20932371fa11 100644 --- a/profiles/preview/preview/trafficmanager/mgmt/trafficmanager/trafficmanagerapi/models.go +++ b/profiles/preview/preview/trafficmanager/mgmt/trafficmanager/trafficmanagerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/visualstudio/mgmt/visualstudio/models.go b/profiles/preview/preview/visualstudio/mgmt/visualstudio/models.go index c41afa8e1032..f8be78726511 100644 --- a/profiles/preview/preview/visualstudio/mgmt/visualstudio/models.go +++ b/profiles/preview/preview/visualstudio/mgmt/visualstudio/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/visualstudio/mgmt/visualstudio/visualstudioapi/models.go b/profiles/preview/preview/visualstudio/mgmt/visualstudio/visualstudioapi/models.go index c867e08d84b6..30e968f2336f 100644 --- a/profiles/preview/preview/visualstudio/mgmt/visualstudio/visualstudioapi/models.go +++ b/profiles/preview/preview/visualstudio/mgmt/visualstudio/visualstudioapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/web/mgmt/web/models.go b/profiles/preview/preview/web/mgmt/web/models.go index 6d0ace0aaf38..58610e980c9b 100644 --- a/profiles/preview/preview/web/mgmt/web/models.go +++ b/profiles/preview/preview/web/mgmt/web/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/web/mgmt/web/webapi/models.go b/profiles/preview/preview/web/mgmt/web/webapi/models.go index e6dc5b94c500..56315e3716f0 100644 --- a/profiles/preview/preview/web/mgmt/web/webapi/models.go +++ b/profiles/preview/preview/web/mgmt/web/webapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/workloadmonitor/mgmt/workloadmonitor/models.go b/profiles/preview/preview/workloadmonitor/mgmt/workloadmonitor/models.go index 888eb90f4ab3..544d5b3ad9f3 100644 --- a/profiles/preview/preview/workloadmonitor/mgmt/workloadmonitor/models.go +++ b/profiles/preview/preview/workloadmonitor/mgmt/workloadmonitor/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/preview/workloadmonitor/mgmt/workloadmonitor/workloadmonitorapi/models.go b/profiles/preview/preview/workloadmonitor/mgmt/workloadmonitor/workloadmonitorapi/models.go index b2572da096a7..5e772e5c0644 100644 --- a/profiles/preview/preview/workloadmonitor/mgmt/workloadmonitor/workloadmonitorapi/models.go +++ b/profiles/preview/preview/workloadmonitor/mgmt/workloadmonitor/workloadmonitorapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/provisioningservices/mgmt/iothub/iothubapi/models.go b/profiles/preview/provisioningservices/mgmt/iothub/iothubapi/models.go index f585efef25b7..cd904535f7b9 100644 --- a/profiles/preview/provisioningservices/mgmt/iothub/iothubapi/models.go +++ b/profiles/preview/provisioningservices/mgmt/iothub/iothubapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/provisioningservices/mgmt/iothub/models.go b/profiles/preview/provisioningservices/mgmt/iothub/models.go index 0903b21a763c..ca94a9893379 100644 --- a/profiles/preview/provisioningservices/mgmt/iothub/models.go +++ b/profiles/preview/provisioningservices/mgmt/iothub/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/recoveryservices/mgmt/backup/backupapi/models.go b/profiles/preview/recoveryservices/mgmt/backup/backupapi/models.go index 174ab37aefa7..f7aabeef3371 100644 --- a/profiles/preview/recoveryservices/mgmt/backup/backupapi/models.go +++ b/profiles/preview/recoveryservices/mgmt/backup/backupapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/recoveryservices/mgmt/backup/models.go b/profiles/preview/recoveryservices/mgmt/backup/models.go index ee295a2d736c..53c6327649ae 100644 --- a/profiles/preview/recoveryservices/mgmt/backup/models.go +++ b/profiles/preview/recoveryservices/mgmt/backup/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/recoveryservices/mgmt/recoveryservices/models.go b/profiles/preview/recoveryservices/mgmt/recoveryservices/models.go index 028bc8e2187d..6972ce6a6423 100644 --- a/profiles/preview/recoveryservices/mgmt/recoveryservices/models.go +++ b/profiles/preview/recoveryservices/mgmt/recoveryservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/recoveryservices/mgmt/recoveryservices/recoveryservicesapi/models.go b/profiles/preview/recoveryservices/mgmt/recoveryservices/recoveryservicesapi/models.go index b02ab93d03ba..29ea8e2c7fd2 100644 --- a/profiles/preview/recoveryservices/mgmt/recoveryservices/recoveryservicesapi/models.go +++ b/profiles/preview/recoveryservices/mgmt/recoveryservices/recoveryservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/recoveryservices/mgmt/siterecovery/models.go b/profiles/preview/recoveryservices/mgmt/siterecovery/models.go index d1a0097612d6..ac4b334cd13a 100644 --- a/profiles/preview/recoveryservices/mgmt/siterecovery/models.go +++ b/profiles/preview/recoveryservices/mgmt/siterecovery/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/recoveryservices/mgmt/siterecovery/siterecoveryapi/models.go b/profiles/preview/recoveryservices/mgmt/siterecovery/siterecoveryapi/models.go index 0e8769c5ed50..874745df4c8e 100644 --- a/profiles/preview/recoveryservices/mgmt/siterecovery/siterecoveryapi/models.go +++ b/profiles/preview/recoveryservices/mgmt/siterecovery/siterecoveryapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/redis/mgmt/redis/models.go b/profiles/preview/redis/mgmt/redis/models.go index d011564900f8..8994a23bae2e 100644 --- a/profiles/preview/redis/mgmt/redis/models.go +++ b/profiles/preview/redis/mgmt/redis/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/redis/mgmt/redis/redisapi/models.go b/profiles/preview/redis/mgmt/redis/redisapi/models.go index e44ed952bd44..710d10d813f3 100644 --- a/profiles/preview/redis/mgmt/redis/redisapi/models.go +++ b/profiles/preview/redis/mgmt/redis/redisapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/relay/mgmt/relay/models.go b/profiles/preview/relay/mgmt/relay/models.go index 58f78ccde98a..e5edbf60831f 100644 --- a/profiles/preview/relay/mgmt/relay/models.go +++ b/profiles/preview/relay/mgmt/relay/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/relay/mgmt/relay/relayapi/models.go b/profiles/preview/relay/mgmt/relay/relayapi/models.go index e3a67ccce4a8..d9ef14aee24c 100644 --- a/profiles/preview/relay/mgmt/relay/relayapi/models.go +++ b/profiles/preview/relay/mgmt/relay/relayapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/reservations/mgmt/reservations/models.go b/profiles/preview/reservations/mgmt/reservations/models.go index 7bf8207a3ae7..7f0f130a6ae7 100644 --- a/profiles/preview/reservations/mgmt/reservations/models.go +++ b/profiles/preview/reservations/mgmt/reservations/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/reservations/mgmt/reservations/reservationsapi/models.go b/profiles/preview/reservations/mgmt/reservations/reservationsapi/models.go index fea56b9a2764..3a78705055fd 100644 --- a/profiles/preview/reservations/mgmt/reservations/reservationsapi/models.go +++ b/profiles/preview/reservations/mgmt/reservations/reservationsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resourcehealth/mgmt/resourcehealth/models.go b/profiles/preview/resourcehealth/mgmt/resourcehealth/models.go index 199ad82cb36b..f37a7ff78cb2 100644 --- a/profiles/preview/resourcehealth/mgmt/resourcehealth/models.go +++ b/profiles/preview/resourcehealth/mgmt/resourcehealth/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resourcehealth/mgmt/resourcehealth/resourcehealthapi/models.go b/profiles/preview/resourcehealth/mgmt/resourcehealth/resourcehealthapi/models.go index 9c32cb60d357..86f8804138fd 100644 --- a/profiles/preview/resourcehealth/mgmt/resourcehealth/resourcehealthapi/models.go +++ b/profiles/preview/resourcehealth/mgmt/resourcehealth/resourcehealthapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/features/featuresapi/models.go b/profiles/preview/resources/mgmt/features/featuresapi/models.go index 6437e561a623..2e397b85d5a8 100644 --- a/profiles/preview/resources/mgmt/features/featuresapi/models.go +++ b/profiles/preview/resources/mgmt/features/featuresapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/features/models.go b/profiles/preview/resources/mgmt/features/models.go index 01729d3d18f9..5f743857d96d 100644 --- a/profiles/preview/resources/mgmt/features/models.go +++ b/profiles/preview/resources/mgmt/features/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/links/linksapi/models.go b/profiles/preview/resources/mgmt/links/linksapi/models.go index 0a921ac9d266..b0dbc943edc6 100644 --- a/profiles/preview/resources/mgmt/links/linksapi/models.go +++ b/profiles/preview/resources/mgmt/links/linksapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/links/models.go b/profiles/preview/resources/mgmt/links/models.go index 88eacb6f3119..4597816b04e6 100644 --- a/profiles/preview/resources/mgmt/links/models.go +++ b/profiles/preview/resources/mgmt/links/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/locks/locksapi/models.go b/profiles/preview/resources/mgmt/locks/locksapi/models.go index a533105f3454..de8c2e5d8d74 100644 --- a/profiles/preview/resources/mgmt/locks/locksapi/models.go +++ b/profiles/preview/resources/mgmt/locks/locksapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/locks/models.go b/profiles/preview/resources/mgmt/locks/models.go index 5505d9acb39c..7660d2ce4642 100644 --- a/profiles/preview/resources/mgmt/locks/models.go +++ b/profiles/preview/resources/mgmt/locks/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/managedapplications/managedapplicationsapi/models.go b/profiles/preview/resources/mgmt/managedapplications/managedapplicationsapi/models.go index a715d0b11a89..5d61ba2e7d61 100644 --- a/profiles/preview/resources/mgmt/managedapplications/managedapplicationsapi/models.go +++ b/profiles/preview/resources/mgmt/managedapplications/managedapplicationsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/managedapplications/models.go b/profiles/preview/resources/mgmt/managedapplications/models.go index 9bd15c5f0ca3..216b7b3c1005 100644 --- a/profiles/preview/resources/mgmt/managedapplications/models.go +++ b/profiles/preview/resources/mgmt/managedapplications/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/policy/models.go b/profiles/preview/resources/mgmt/policy/models.go index 2fbf6419ce2b..0cdc185d1e60 100644 --- a/profiles/preview/resources/mgmt/policy/models.go +++ b/profiles/preview/resources/mgmt/policy/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/policy/policyapi/models.go b/profiles/preview/resources/mgmt/policy/policyapi/models.go index 9ce4bbea8e8d..ce8ae2e9d56c 100644 --- a/profiles/preview/resources/mgmt/policy/policyapi/models.go +++ b/profiles/preview/resources/mgmt/policy/policyapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/resources/models.go b/profiles/preview/resources/mgmt/resources/models.go index f48c8f2a79ac..3a605acb924a 100644 --- a/profiles/preview/resources/mgmt/resources/models.go +++ b/profiles/preview/resources/mgmt/resources/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/resources/resourcesapi/models.go b/profiles/preview/resources/mgmt/resources/resourcesapi/models.go index f862d5b7ac53..b00557304a23 100644 --- a/profiles/preview/resources/mgmt/resources/resourcesapi/models.go +++ b/profiles/preview/resources/mgmt/resources/resourcesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/subscriptions/models.go b/profiles/preview/resources/mgmt/subscriptions/models.go index 878c46fce1d6..6cdedec693d3 100644 --- a/profiles/preview/resources/mgmt/subscriptions/models.go +++ b/profiles/preview/resources/mgmt/subscriptions/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resources/mgmt/subscriptions/subscriptionsapi/models.go b/profiles/preview/resources/mgmt/subscriptions/subscriptionsapi/models.go index 68a56e8ddf96..5d49a61a940e 100644 --- a/profiles/preview/resources/mgmt/subscriptions/subscriptionsapi/models.go +++ b/profiles/preview/resources/mgmt/subscriptions/subscriptionsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/scheduler/mgmt/scheduler/models.go b/profiles/preview/scheduler/mgmt/scheduler/models.go index 3f56b6bba916..d07a7787136f 100644 --- a/profiles/preview/scheduler/mgmt/scheduler/models.go +++ b/profiles/preview/scheduler/mgmt/scheduler/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/scheduler/mgmt/scheduler/schedulerapi/models.go b/profiles/preview/scheduler/mgmt/scheduler/schedulerapi/models.go index 9ee9fd729af1..300cbdc45916 100644 --- a/profiles/preview/scheduler/mgmt/scheduler/schedulerapi/models.go +++ b/profiles/preview/scheduler/mgmt/scheduler/schedulerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/search/mgmt/search/models.go b/profiles/preview/search/mgmt/search/models.go index 5e7ad55cf7c9..8c573d4b7b6f 100644 --- a/profiles/preview/search/mgmt/search/models.go +++ b/profiles/preview/search/mgmt/search/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/search/mgmt/search/searchapi/models.go b/profiles/preview/search/mgmt/search/searchapi/models.go index a93ec1cdff2c..3fb302f49e7c 100644 --- a/profiles/preview/search/mgmt/search/searchapi/models.go +++ b/profiles/preview/search/mgmt/search/searchapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/servicebus/mgmt/servicebus/models.go b/profiles/preview/servicebus/mgmt/servicebus/models.go index bf29ff820a25..ad53c2fe24a5 100644 --- a/profiles/preview/servicebus/mgmt/servicebus/models.go +++ b/profiles/preview/servicebus/mgmt/servicebus/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/servicebus/mgmt/servicebus/servicebusapi/models.go b/profiles/preview/servicebus/mgmt/servicebus/servicebusapi/models.go index 474d74a7867e..9f01cb32e070 100644 --- a/profiles/preview/servicebus/mgmt/servicebus/servicebusapi/models.go +++ b/profiles/preview/servicebus/mgmt/servicebus/servicebusapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/servicefabric/mgmt/servicefabric/models.go b/profiles/preview/servicefabric/mgmt/servicefabric/models.go index 484f51f73661..bd4be143c135 100644 --- a/profiles/preview/servicefabric/mgmt/servicefabric/models.go +++ b/profiles/preview/servicefabric/mgmt/servicefabric/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/servicefabric/servicefabric/models.go b/profiles/preview/servicefabric/servicefabric/models.go index 544014da60db..f77a22d4c3be 100644 --- a/profiles/preview/servicefabric/servicefabric/models.go +++ b/profiles/preview/servicefabric/servicefabric/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/servicefabric/servicefabric/servicefabricapi/models.go b/profiles/preview/servicefabric/servicefabric/servicefabricapi/models.go index 45b018335f79..daa6486249d0 100644 --- a/profiles/preview/servicefabric/servicefabric/servicefabricapi/models.go +++ b/profiles/preview/servicefabric/servicefabric/servicefabricapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/signalr/mgmt/signalr/models.go b/profiles/preview/signalr/mgmt/signalr/models.go index c62eeea4698a..cd9471ad772c 100644 --- a/profiles/preview/signalr/mgmt/signalr/models.go +++ b/profiles/preview/signalr/mgmt/signalr/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/signalr/mgmt/signalr/signalrapi/models.go b/profiles/preview/signalr/mgmt/signalr/signalrapi/models.go index 58d67980565d..97ab40cf226d 100644 --- a/profiles/preview/signalr/mgmt/signalr/signalrapi/models.go +++ b/profiles/preview/signalr/mgmt/signalr/signalrapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/sql/mgmt/sql/models.go b/profiles/preview/sql/mgmt/sql/models.go index 68c5b77c1626..b2b5a2346d20 100644 --- a/profiles/preview/sql/mgmt/sql/models.go +++ b/profiles/preview/sql/mgmt/sql/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/sql/mgmt/sql/sqlapi/models.go b/profiles/preview/sql/mgmt/sql/sqlapi/models.go index 53f569f6e815..8a1a24d93635 100644 --- a/profiles/preview/sql/mgmt/sql/sqlapi/models.go +++ b/profiles/preview/sql/mgmt/sql/sqlapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/stable/storage/datalake/storagedatalake/models.go b/profiles/preview/stable/storage/datalake/storagedatalake/models.go index 07a55982d189..780ebd78e1e8 100644 --- a/profiles/preview/stable/storage/datalake/storagedatalake/models.go +++ b/profiles/preview/stable/storage/datalake/storagedatalake/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/stable/storage/datalake/storagedatalake/storagedatalakeapi/models.go b/profiles/preview/stable/storage/datalake/storagedatalake/storagedatalakeapi/models.go index c96ca8b1f0df..31f30034a382 100644 --- a/profiles/preview/stable/storage/datalake/storagedatalake/storagedatalakeapi/models.go +++ b/profiles/preview/stable/storage/datalake/storagedatalake/storagedatalakeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storage/datalake/storagedatalake/models.go b/profiles/preview/storage/datalake/storagedatalake/models.go index 19eb9d264be4..60807fb78903 100644 --- a/profiles/preview/storage/datalake/storagedatalake/models.go +++ b/profiles/preview/storage/datalake/storagedatalake/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storage/datalake/storagedatalake/storagedatalakeapi/models.go b/profiles/preview/storage/datalake/storagedatalake/storagedatalakeapi/models.go index 91e30cd79c6e..f3a5332f1380 100644 --- a/profiles/preview/storage/datalake/storagedatalake/storagedatalakeapi/models.go +++ b/profiles/preview/storage/datalake/storagedatalake/storagedatalakeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storage/mgmt/storage/models.go b/profiles/preview/storage/mgmt/storage/models.go index cf5ca0191482..558c65cec207 100644 --- a/profiles/preview/storage/mgmt/storage/models.go +++ b/profiles/preview/storage/mgmt/storage/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storage/mgmt/storage/storageapi/models.go b/profiles/preview/storage/mgmt/storage/storageapi/models.go index 50dc4b7671d9..4feb8f4827c7 100644 --- a/profiles/preview/storage/mgmt/storage/storageapi/models.go +++ b/profiles/preview/storage/mgmt/storage/storageapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storageimportexport/mgmt/storageimportexport/models.go b/profiles/preview/storageimportexport/mgmt/storageimportexport/models.go index a76faaeb15e8..0452af9c3981 100644 --- a/profiles/preview/storageimportexport/mgmt/storageimportexport/models.go +++ b/profiles/preview/storageimportexport/mgmt/storageimportexport/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storageimportexport/mgmt/storageimportexport/storageimportexportapi/models.go b/profiles/preview/storageimportexport/mgmt/storageimportexport/storageimportexportapi/models.go index f16c33a6295d..e6d7e671ebfa 100644 --- a/profiles/preview/storageimportexport/mgmt/storageimportexport/storageimportexportapi/models.go +++ b/profiles/preview/storageimportexport/mgmt/storageimportexport/storageimportexportapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storagesync/mgmt/storagesync/models.go b/profiles/preview/storagesync/mgmt/storagesync/models.go index 879b74d898c9..a8e3dc71cf2f 100644 --- a/profiles/preview/storagesync/mgmt/storagesync/models.go +++ b/profiles/preview/storagesync/mgmt/storagesync/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storagesync/mgmt/storagesync/storagesyncapi/models.go b/profiles/preview/storagesync/mgmt/storagesync/storagesyncapi/models.go index f7ec69e6b1e0..e88b51931e14 100644 --- a/profiles/preview/storagesync/mgmt/storagesync/storagesyncapi/models.go +++ b/profiles/preview/storagesync/mgmt/storagesync/storagesyncapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storsimple1200series/mgmt/storsimple/models.go b/profiles/preview/storsimple1200series/mgmt/storsimple/models.go index 7c91c47e8b63..394ff94d4668 100644 --- a/profiles/preview/storsimple1200series/mgmt/storsimple/models.go +++ b/profiles/preview/storsimple1200series/mgmt/storsimple/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storsimple1200series/mgmt/storsimple/storsimpleapi/models.go b/profiles/preview/storsimple1200series/mgmt/storsimple/storsimpleapi/models.go index 11b413014a41..a0acc58522f6 100644 --- a/profiles/preview/storsimple1200series/mgmt/storsimple/storsimpleapi/models.go +++ b/profiles/preview/storsimple1200series/mgmt/storsimple/storsimpleapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storsimple8000series/mgmt/storsimple/models.go b/profiles/preview/storsimple8000series/mgmt/storsimple/models.go index 1eaa55ef4c2c..389a99e9faec 100644 --- a/profiles/preview/storsimple8000series/mgmt/storsimple/models.go +++ b/profiles/preview/storsimple8000series/mgmt/storsimple/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storsimple8000series/mgmt/storsimple/storsimpleapi/models.go b/profiles/preview/storsimple8000series/mgmt/storsimple/storsimpleapi/models.go index 91fb5f0f9163..e8e639ce7193 100644 --- a/profiles/preview/storsimple8000series/mgmt/storsimple/storsimpleapi/models.go +++ b/profiles/preview/storsimple8000series/mgmt/storsimple/storsimpleapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/streamanalytics/mgmt/streamanalytics/models.go b/profiles/preview/streamanalytics/mgmt/streamanalytics/models.go index f2d6430cbbfa..e52f7d2ed28e 100644 --- a/profiles/preview/streamanalytics/mgmt/streamanalytics/models.go +++ b/profiles/preview/streamanalytics/mgmt/streamanalytics/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/streamanalytics/mgmt/streamanalytics/streamanalyticsapi/models.go b/profiles/preview/streamanalytics/mgmt/streamanalytics/streamanalyticsapi/models.go index fa7b8c8bbeed..cff90bedb96d 100644 --- a/profiles/preview/streamanalytics/mgmt/streamanalytics/streamanalyticsapi/models.go +++ b/profiles/preview/streamanalytics/mgmt/streamanalytics/streamanalyticsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/timeseriesinsights/mgmt/timeseriesinsights/models.go b/profiles/preview/timeseriesinsights/mgmt/timeseriesinsights/models.go index 842189a69cad..743c0d3c2b6b 100644 --- a/profiles/preview/timeseriesinsights/mgmt/timeseriesinsights/models.go +++ b/profiles/preview/timeseriesinsights/mgmt/timeseriesinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/timeseriesinsights/mgmt/timeseriesinsights/timeseriesinsightsapi/models.go b/profiles/preview/timeseriesinsights/mgmt/timeseriesinsights/timeseriesinsightsapi/models.go index a534aa4ae22d..7b053c050cf1 100644 --- a/profiles/preview/timeseriesinsights/mgmt/timeseriesinsights/timeseriesinsightsapi/models.go +++ b/profiles/preview/timeseriesinsights/mgmt/timeseriesinsights/timeseriesinsightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/trafficmanager/mgmt/trafficmanager/models.go b/profiles/preview/trafficmanager/mgmt/trafficmanager/models.go index f5c5312fbea4..ff9dd250ce07 100644 --- a/profiles/preview/trafficmanager/mgmt/trafficmanager/models.go +++ b/profiles/preview/trafficmanager/mgmt/trafficmanager/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/trafficmanager/mgmt/trafficmanager/trafficmanagerapi/models.go b/profiles/preview/trafficmanager/mgmt/trafficmanager/trafficmanagerapi/models.go index 51c67c8deab8..0f951177a8d1 100644 --- a/profiles/preview/trafficmanager/mgmt/trafficmanager/trafficmanagerapi/models.go +++ b/profiles/preview/trafficmanager/mgmt/trafficmanager/trafficmanagerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/web/mgmt/web/models.go b/profiles/preview/web/mgmt/web/models.go index 6596b62574da..8294918430b5 100644 --- a/profiles/preview/web/mgmt/web/models.go +++ b/profiles/preview/web/mgmt/web/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/web/mgmt/web/webapi/models.go b/profiles/preview/web/mgmt/web/webapi/models.go index e441fbdafd89..a38a27b2cc73 100644 --- a/profiles/preview/web/mgmt/web/webapi/models.go +++ b/profiles/preview/web/mgmt/web/webapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2018 Microsoft Corporation +// Copyright 2019 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/alerts.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/alerts.go new file mode 100644 index 000000000000..f1fb8154ed74 --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/alerts.go @@ -0,0 +1,235 @@ +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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" +) + +// AlertsClient is the client for the Alerts methods of the Edgegateway service. +type AlertsClient struct { + BaseClient +} + +// NewAlertsClient creates an instance of the AlertsClient client. +func NewAlertsClient(subscriptionID string) AlertsClient { + return NewAlertsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewAlertsClientWithBaseURI creates an instance of the AlertsClient client. +func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsClient { + return AlertsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get sends the get request. +// Parameters: +// deviceName - name of the device. +// name - name of the alert which needs to be retrieved. +// resourceGroupName - the resource group name. +func (client AlertsClient) Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result Alert, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AlertsClient.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, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.AlertsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.AlertsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.AlertsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client AlertsClient) GetPreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/alerts/{name}", 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 AlertsClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client AlertsClient) GetResponder(resp *http.Response) (result Alert, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByDataBoxEdgeDevice retrieves all the alerts for a data box edge/gateway device. +// Parameters: +// deviceName - the device name. +// resourceGroupName - the resource group name. +func (client AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result AlertListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AlertsClient.ListByDataBoxEdgeDevice") + defer func() { + sc := -1 + if result.al.Response.Response != nil { + sc = result.al.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByDataBoxEdgeDeviceNextResults + req, err := client.ListByDataBoxEdgeDevicePreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.AlertsClient", "ListByDataBoxEdgeDevice", nil, "Failure preparing request") + return + } + + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.al.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.AlertsClient", "ListByDataBoxEdgeDevice", resp, "Failure sending request") + return + } + + result.al, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.AlertsClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + } + + return +} + +// ListByDataBoxEdgeDevicePreparer prepares the ListByDataBoxEdgeDevice request. +func (client AlertsClient) ListByDataBoxEdgeDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/alerts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByDataBoxEdgeDeviceSender sends the ListByDataBoxEdgeDevice request. The method will close the +// http.Response Body if it receives an error. +func (client AlertsClient) ListByDataBoxEdgeDeviceSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByDataBoxEdgeDeviceResponder handles the response to the ListByDataBoxEdgeDevice request. The method always +// closes the http.Response Body. +func (client AlertsClient) ListByDataBoxEdgeDeviceResponder(resp *http.Response) (result AlertList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByDataBoxEdgeDeviceNextResults retrieves the next set of results, if any. +func (client AlertsClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context, lastResults AlertList) (result AlertList, err error) { + req, err := lastResults.alertListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "edgegateway.AlertsClient", "listByDataBoxEdgeDeviceNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "edgegateway.AlertsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.AlertsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByDataBoxEdgeDeviceComplete enumerates all values, automatically crossing page boundaries as required. +func (client AlertsClient) ListByDataBoxEdgeDeviceComplete(ctx context.Context, deviceName string, resourceGroupName string) (result AlertListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AlertsClient.ListByDataBoxEdgeDevice") + 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.ListByDataBoxEdgeDevice(ctx, deviceName, resourceGroupName) + return +} diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/bandwidthschedules.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/bandwidthschedules.go new file mode 100644 index 000000000000..248cdb666fef --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/bandwidthschedules.go @@ -0,0 +1,407 @@ +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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" +) + +// BandwidthSchedulesClient is the client for the BandwidthSchedules methods of the Edgegateway service. +type BandwidthSchedulesClient struct { + BaseClient +} + +// NewBandwidthSchedulesClient creates an instance of the BandwidthSchedulesClient client. +func NewBandwidthSchedulesClient(subscriptionID string) BandwidthSchedulesClient { + return NewBandwidthSchedulesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewBandwidthSchedulesClientWithBaseURI creates an instance of the BandwidthSchedulesClient client. +func NewBandwidthSchedulesClientWithBaseURI(baseURI string, subscriptionID string) BandwidthSchedulesClient { + return BandwidthSchedulesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a bandwidth schedule. +// Parameters: +// deviceName - the device name. +// name - the bandwidth schedule name which needs to be added/updated. +// parameters - the bandwidth schedule to be added or updated. +// resourceGroupName - the resource group name. +func (client BandwidthSchedulesClient) CreateOrUpdate(ctx context.Context, deviceName string, name string, parameters BandwidthSchedule, resourceGroupName string) (result BandwidthSchedulesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BandwidthSchedulesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.BandwidthScheduleProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.BandwidthScheduleProperties.Start", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.BandwidthScheduleProperties.Stop", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.BandwidthScheduleProperties.RateInMbps", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.BandwidthScheduleProperties.Days", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("edgegateway.BandwidthSchedulesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, deviceName, name, parameters, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client BandwidthSchedulesClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, name string, parameters BandwidthSchedule, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/bandwidthSchedules/{name}", 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 BandwidthSchedulesClient) CreateOrUpdateSender(req *http.Request) (future BandwidthSchedulesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client BandwidthSchedulesClient) CreateOrUpdateResponder(resp *http.Response) (result BandwidthSchedule, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the specified bandwidth schedule. +// Parameters: +// deviceName - the device name. +// name - the bandwidth schedule name. +// resourceGroupName - the resource group name. +func (client BandwidthSchedulesClient) Delete(ctx context.Context, deviceName string, name string, resourceGroupName string) (result BandwidthSchedulesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BandwidthSchedulesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client BandwidthSchedulesClient) DeletePreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/bandwidthSchedules/{name}", 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 BandwidthSchedulesClient) DeleteSender(req *http.Request) (future BandwidthSchedulesDeleteFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client BandwidthSchedulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get returns the properties of the specified bandwidth schedule name. +// Parameters: +// deviceName - the device name. +// name - the bandwidth schedule name. +// resourceGroupName - the resource group name. +func (client BandwidthSchedulesClient) Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result BandwidthSchedule, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BandwidthSchedulesClient.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, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client BandwidthSchedulesClient) GetPreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/bandwidthSchedules/{name}", 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 BandwidthSchedulesClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client BandwidthSchedulesClient) GetResponder(resp *http.Response) (result BandwidthSchedule, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByDataBoxEdgeDevice returns all the bandwidth Schedules for a data box edge/gateway device. +// Parameters: +// deviceName - the device name. +// resourceGroupName - the resource group name. +func (client BandwidthSchedulesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result BandwidthSchedulesListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BandwidthSchedulesClient.ListByDataBoxEdgeDevice") + defer func() { + sc := -1 + if result.bsl.Response.Response != nil { + sc = result.bsl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByDataBoxEdgeDeviceNextResults + req, err := client.ListByDataBoxEdgeDevicePreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "ListByDataBoxEdgeDevice", nil, "Failure preparing request") + return + } + + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.bsl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "ListByDataBoxEdgeDevice", resp, "Failure sending request") + return + } + + result.bsl, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + } + + return +} + +// ListByDataBoxEdgeDevicePreparer prepares the ListByDataBoxEdgeDevice request. +func (client BandwidthSchedulesClient) ListByDataBoxEdgeDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/bandwidthSchedules", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByDataBoxEdgeDeviceSender sends the ListByDataBoxEdgeDevice request. The method will close the +// http.Response Body if it receives an error. +func (client BandwidthSchedulesClient) ListByDataBoxEdgeDeviceSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByDataBoxEdgeDeviceResponder handles the response to the ListByDataBoxEdgeDevice request. The method always +// closes the http.Response Body. +func (client BandwidthSchedulesClient) ListByDataBoxEdgeDeviceResponder(resp *http.Response) (result BandwidthSchedulesList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByDataBoxEdgeDeviceNextResults retrieves the next set of results, if any. +func (client BandwidthSchedulesClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context, lastResults BandwidthSchedulesList) (result BandwidthSchedulesList, err error) { + req, err := lastResults.bandwidthSchedulesListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "listByDataBoxEdgeDeviceNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByDataBoxEdgeDeviceComplete enumerates all values, automatically crossing page boundaries as required. +func (client BandwidthSchedulesClient) ListByDataBoxEdgeDeviceComplete(ctx context.Context, deviceName string, resourceGroupName string) (result BandwidthSchedulesListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BandwidthSchedulesClient.ListByDataBoxEdgeDevice") + 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.ListByDataBoxEdgeDevice(ctx, deviceName, resourceGroupName) + return +} diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/client.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/client.go new file mode 100644 index 000000000000..de974b50424e --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/client.go @@ -0,0 +1,51 @@ +// Package edgegateway implements the Azure ARM Edgegateway service API version 2018-07-01. +// +// +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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 Edgegateway + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Edgegateway. +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. +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/devices.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/devices.go new file mode 100644 index 000000000000..2fcd22545723 --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/devices.go @@ -0,0 +1,1316 @@ +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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" +) + +// DevicesClient is the client for the Devices methods of the Edgegateway service. +type DevicesClient struct { + BaseClient +} + +// NewDevicesClient creates an instance of the DevicesClient client. +func NewDevicesClient(subscriptionID string) DevicesClient { + return NewDevicesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewDevicesClientWithBaseURI creates an instance of the DevicesClient client. +func NewDevicesClientWithBaseURI(baseURI string, subscriptionID string) DevicesClient { + return DevicesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates a Data Box Edge/Gateway resource. +// Parameters: +// deviceName - the device name. +// dataBoxEdgeDevice - the resource object. +// resourceGroupName - the resource group name. +func (client DevicesClient) CreateOrUpdate(ctx context.Context, deviceName string, dataBoxEdgeDevice DataBoxEdgeDevice, resourceGroupName string) (result DevicesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: dataBoxEdgeDevice, + Constraints: []validation.Constraint{{Target: "dataBoxEdgeDevice.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("edgegateway.DevicesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, deviceName, dataBoxEdgeDevice, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client DevicesClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, dataBoxEdgeDevice DataBoxEdgeDevice, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}", pathParameters), + autorest.WithJSON(dataBoxEdgeDevice), + 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 DevicesClient) CreateOrUpdateSender(req *http.Request) (future DevicesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client DevicesClient) CreateOrUpdateResponder(resp *http.Response) (result DataBoxEdgeDevice, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateOrUpdateExtendedInfo creates or updates the extended info of the data box edge/gateway device. +// Parameters: +// deviceName - the device name. +// parameters - the device extended information. +// resourceGroupName - the resource group name. +func (client DevicesClient) CreateOrUpdateExtendedInfo(ctx context.Context, deviceName string, parameters DataBoxEdgeDeviceExtendedInfo, resourceGroupName string) (result DataBoxEdgeDeviceExtendedInfo, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.CreateOrUpdateExtendedInfo") + 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: parameters, + Constraints: []validation.Constraint{{Target: "parameters.DataBoxEdgeDeviceExtendedInfoProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.DataBoxEdgeDeviceExtendedInfoProperties.IntegrityKey", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("edgegateway.DevicesClient", "CreateOrUpdateExtendedInfo", err.Error()) + } + + req, err := client.CreateOrUpdateExtendedInfoPreparer(ctx, deviceName, parameters, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "CreateOrUpdateExtendedInfo", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateExtendedInfoSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "CreateOrUpdateExtendedInfo", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateExtendedInfoResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "CreateOrUpdateExtendedInfo", resp, "Failure responding to request") + } + + return +} + +// CreateOrUpdateExtendedInfoPreparer prepares the CreateOrUpdateExtendedInfo request. +func (client DevicesClient) CreateOrUpdateExtendedInfoPreparer(ctx context.Context, deviceName string, parameters DataBoxEdgeDeviceExtendedInfo, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/getExtendedInformation", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateExtendedInfoSender sends the CreateOrUpdateExtendedInfo request. The method will close the +// http.Response Body if it receives an error. +func (client DevicesClient) CreateOrUpdateExtendedInfoSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateExtendedInfoResponder handles the response to the CreateOrUpdateExtendedInfo request. The method always +// closes the http.Response Body. +func (client DevicesClient) CreateOrUpdateExtendedInfoResponder(resp *http.Response) (result DataBoxEdgeDeviceExtendedInfo, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateOrUpdateSecuritySettings updates the security settings on a data box edge/gateway device. +// Parameters: +// deviceName - the device name. +// securitySettings - the security settings. +// resourceGroupName - the resource group name. +func (client DevicesClient) CreateOrUpdateSecuritySettings(ctx context.Context, deviceName string, securitySettings SecuritySettings, resourceGroupName string) (result DevicesCreateOrUpdateSecuritySettingsFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.CreateOrUpdateSecuritySettings") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: securitySettings, + Constraints: []validation.Constraint{{Target: "securitySettings.SecuritySettingsProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "securitySettings.SecuritySettingsProperties.DeviceAdminPassword", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "securitySettings.SecuritySettingsProperties.DeviceAdminPassword.Value", Name: validation.Null, Rule: true, Chain: nil}}}, + }}}}}); err != nil { + return result, validation.NewError("edgegateway.DevicesClient", "CreateOrUpdateSecuritySettings", err.Error()) + } + + req, err := client.CreateOrUpdateSecuritySettingsPreparer(ctx, deviceName, securitySettings, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "CreateOrUpdateSecuritySettings", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSecuritySettingsSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "CreateOrUpdateSecuritySettings", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdateSecuritySettingsPreparer prepares the CreateOrUpdateSecuritySettings request. +func (client DevicesClient) CreateOrUpdateSecuritySettingsPreparer(ctx context.Context, deviceName string, securitySettings SecuritySettings, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/securitySettings/default/update", pathParameters), + autorest.WithJSON(securitySettings), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSecuritySettingsSender sends the CreateOrUpdateSecuritySettings request. The method will close the +// http.Response Body if it receives an error. +func (client DevicesClient) CreateOrUpdateSecuritySettingsSender(req *http.Request) (future DevicesCreateOrUpdateSecuritySettingsFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateSecuritySettingsResponder handles the response to the CreateOrUpdateSecuritySettings request. The method always +// closes the http.Response Body. +func (client DevicesClient) CreateOrUpdateSecuritySettingsResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Delete deletes the data box edge/gateway device. +// Parameters: +// deviceName - the device name. +// resourceGroupName - the resource group name. +func (client DevicesClient) Delete(ctx context.Context, deviceName string, resourceGroupName string) (result DevicesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client DevicesClient) DeletePreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}", 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 DevicesClient) DeleteSender(req *http.Request) (future DevicesDeleteFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client DevicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// DownloadUpdates sends the download updates request. +// Parameters: +// deviceName - the device name. +// resourceGroupName - the resource group name. +func (client DevicesClient) DownloadUpdates(ctx context.Context, deviceName string, resourceGroupName string) (result DevicesDownloadUpdatesFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.DownloadUpdates") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DownloadUpdatesPreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "DownloadUpdates", nil, "Failure preparing request") + return + } + + result, err = client.DownloadUpdatesSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "DownloadUpdates", result.Response(), "Failure sending request") + return + } + + return +} + +// DownloadUpdatesPreparer prepares the DownloadUpdates request. +func (client DevicesClient) DownloadUpdatesPreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/downloadUpdates", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DownloadUpdatesSender sends the DownloadUpdates request. The method will close the +// http.Response Body if it receives an error. +func (client DevicesClient) DownloadUpdatesSender(req *http.Request) (future DevicesDownloadUpdatesFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DownloadUpdatesResponder handles the response to the DownloadUpdates request. The method always +// closes the http.Response Body. +func (client DevicesClient) DownloadUpdatesResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get returns the properties of the data box edge/gateway device. +// Parameters: +// deviceName - the device name. +// resourceGroupName - the resource group name. +func (client DevicesClient) Get(ctx context.Context, deviceName string, resourceGroupName string) (result DataBoxEdgeDevice, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.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, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client DevicesClient) GetPreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}", 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 DevicesClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client DevicesClient) GetResponder(resp *http.Response) (result DataBoxEdgeDevice, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetExtendedInformation returns the extended information of the specified data box edge/gateway device. +// Parameters: +// deviceName - the device name. +// resourceGroupName - the resource group name. +func (client DevicesClient) GetExtendedInformation(ctx context.Context, deviceName string, resourceGroupName string) (result DataBoxEdgeDeviceExtendedInfo, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.GetExtendedInformation") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetExtendedInformationPreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "GetExtendedInformation", nil, "Failure preparing request") + return + } + + resp, err := client.GetExtendedInformationSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "GetExtendedInformation", resp, "Failure sending request") + return + } + + result, err = client.GetExtendedInformationResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "GetExtendedInformation", resp, "Failure responding to request") + } + + return +} + +// GetExtendedInformationPreparer prepares the GetExtendedInformation request. +func (client DevicesClient) GetExtendedInformationPreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/getExtendedInformation", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetExtendedInformationSender sends the GetExtendedInformation request. The method will close the +// http.Response Body if it receives an error. +func (client DevicesClient) GetExtendedInformationSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetExtendedInformationResponder handles the response to the GetExtendedInformation request. The method always +// closes the http.Response Body. +func (client DevicesClient) GetExtendedInformationResponder(resp *http.Response) (result DataBoxEdgeDeviceExtendedInfo, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetNetworkSettings returns the network settings of the specified data box edge/gateway device. +// Parameters: +// deviceName - the device name. +// resourceGroupName - the resource group name. +func (client DevicesClient) GetNetworkSettings(ctx context.Context, deviceName string, resourceGroupName string) (result NetworkSettings, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.GetNetworkSettings") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetNetworkSettingsPreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "GetNetworkSettings", nil, "Failure preparing request") + return + } + + resp, err := client.GetNetworkSettingsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "GetNetworkSettings", resp, "Failure sending request") + return + } + + result, err = client.GetNetworkSettingsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "GetNetworkSettings", resp, "Failure responding to request") + } + + return +} + +// GetNetworkSettingsPreparer prepares the GetNetworkSettings request. +func (client DevicesClient) GetNetworkSettingsPreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/networkSettings/default", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetNetworkSettingsSender sends the GetNetworkSettings request. The method will close the +// http.Response Body if it receives an error. +func (client DevicesClient) GetNetworkSettingsSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetNetworkSettingsResponder handles the response to the GetNetworkSettings request. The method always +// closes the http.Response Body. +func (client DevicesClient) GetNetworkSettingsResponder(resp *http.Response) (result NetworkSettings, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetUpdateSummary sends the get update summary request. +// Parameters: +// deviceName - the device name. +// resourceGroupName - the resource group name. +func (client DevicesClient) GetUpdateSummary(ctx context.Context, deviceName string, resourceGroupName string) (result UpdateSummary, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.GetUpdateSummary") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetUpdateSummaryPreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "GetUpdateSummary", nil, "Failure preparing request") + return + } + + resp, err := client.GetUpdateSummarySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "GetUpdateSummary", resp, "Failure sending request") + return + } + + result, err = client.GetUpdateSummaryResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "GetUpdateSummary", resp, "Failure responding to request") + } + + return +} + +// GetUpdateSummaryPreparer prepares the GetUpdateSummary request. +func (client DevicesClient) GetUpdateSummaryPreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/updateSummary/default", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetUpdateSummarySender sends the GetUpdateSummary request. The method will close the +// http.Response Body if it receives an error. +func (client DevicesClient) GetUpdateSummarySender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetUpdateSummaryResponder handles the response to the GetUpdateSummary request. The method always +// closes the http.Response Body. +func (client DevicesClient) GetUpdateSummaryResponder(resp *http.Response) (result UpdateSummary, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// InstallUpdates sends the install updates request. +// Parameters: +// deviceName - the device name. +// resourceGroupName - the resource group name. +func (client DevicesClient) InstallUpdates(ctx context.Context, deviceName string, resourceGroupName string) (result DevicesInstallUpdatesFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.InstallUpdates") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.InstallUpdatesPreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "InstallUpdates", nil, "Failure preparing request") + return + } + + result, err = client.InstallUpdatesSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "InstallUpdates", result.Response(), "Failure sending request") + return + } + + return +} + +// InstallUpdatesPreparer prepares the InstallUpdates request. +func (client DevicesClient) InstallUpdatesPreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/installUpdates", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// InstallUpdatesSender sends the InstallUpdates request. The method will close the +// http.Response Body if it receives an error. +func (client DevicesClient) InstallUpdatesSender(req *http.Request) (future DevicesInstallUpdatesFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// InstallUpdatesResponder handles the response to the InstallUpdates request. The method always +// closes the http.Response Body. +func (client DevicesClient) InstallUpdatesResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// ListByResourceGroup retrieves all data box edge/gateway devices in a resource group. +// Parameters: +// resourceGroupName - the resource group name. +// expand - specify $expand=details to populate additional fields related to the resource or Specify +// $skipToken= to populate the next page in the list. +func (client DevicesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, expand string) (result DataBoxEdgeDeviceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.dbedl.Response.Response != nil { + sc = result.dbedl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.dbedl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.dbedl, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "ListByResourceGroup", resp, "Failure responding to request") + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client DevicesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(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.DataBoxEdge/dataBoxEdgeDevices", 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 DevicesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client DevicesClient) ListByResourceGroupResponder(resp *http.Response) (result DataBoxEdgeDeviceList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + 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 DevicesClient) listByResourceGroupNextResults(ctx context.Context, lastResults DataBoxEdgeDeviceList) (result DataBoxEdgeDeviceList, err error) { + req, err := lastResults.dataBoxEdgeDeviceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "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, "edgegateway.DevicesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client DevicesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, expand string) (result DataBoxEdgeDeviceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.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, expand) + return +} + +// ListBySubscription retrieves all data box edge/gateway devices in a subscription. +// Parameters: +// expand - specify $expand=details to populate additional fields related to the resource or Specify +// $skipToken= to populate the next page in the list. +func (client DevicesClient) ListBySubscription(ctx context.Context, expand string) (result DataBoxEdgeDeviceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.ListBySubscription") + defer func() { + sc := -1 + if result.dbedl.Response.Response != nil { + sc = result.dbedl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listBySubscriptionNextResults + req, err := client.ListBySubscriptionPreparer(ctx, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.dbedl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "ListBySubscription", resp, "Failure sending request") + return + } + + result.dbedl, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "ListBySubscription", resp, "Failure responding to request") + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client DevicesClient) ListBySubscriptionPreparer(ctx context.Context, expand string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(expand) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", 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 DevicesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client DevicesClient) ListBySubscriptionResponder(resp *http.Response) (result DataBoxEdgeDeviceList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + 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 DevicesClient) listBySubscriptionNextResults(ctx context.Context, lastResults DataBoxEdgeDeviceList) (result DataBoxEdgeDeviceList, err error) { + req, err := lastResults.dataBoxEdgeDeviceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "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, "edgegateway.DevicesClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. +func (client DevicesClient) ListBySubscriptionComplete(ctx context.Context, expand string) (result DataBoxEdgeDeviceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.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, expand) + return +} + +// ScanForUpdates sends the scan for updates request. +// Parameters: +// deviceName - the device name. +// resourceGroupName - the resource group name. +func (client DevicesClient) ScanForUpdates(ctx context.Context, deviceName string, resourceGroupName string) (result DevicesScanForUpdatesFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.ScanForUpdates") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ScanForUpdatesPreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "ScanForUpdates", nil, "Failure preparing request") + return + } + + result, err = client.ScanForUpdatesSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "ScanForUpdates", result.Response(), "Failure sending request") + return + } + + return +} + +// ScanForUpdatesPreparer prepares the ScanForUpdates request. +func (client DevicesClient) ScanForUpdatesPreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/scanForUpdates", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ScanForUpdatesSender sends the ScanForUpdates request. The method will close the +// http.Response Body if it receives an error. +func (client DevicesClient) ScanForUpdatesSender(req *http.Request) (future DevicesScanForUpdatesFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// ScanForUpdatesResponder handles the response to the ScanForUpdates request. The method always +// closes the http.Response Body. +func (client DevicesClient) ScanForUpdatesResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Update updates data box edge/gateway device. +// Parameters: +// deviceName - the device name. +// parameters - the device update parameters. +// resourceGroupName - the resource group name. +func (client DevicesClient) Update(ctx context.Context, deviceName string, parameters DataBoxEdgeDevicePatch, resourceGroupName string) (result DataBoxEdgeDevice, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.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, deviceName, parameters, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "Update", resp, "Failure responding to request") + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client DevicesClient) UpdatePreparer(ctx context.Context, deviceName string, parameters DataBoxEdgeDevicePatch, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}", 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 DevicesClient) UpdateSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client DevicesClient) UpdateResponder(resp *http.Response) (result DataBoxEdgeDevice, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// UploadCertificate uploads registration certificate for the device. +// Parameters: +// deviceName - the device name. +// parameters - the upload certificate request. +// resourceGroupName - the resource group name. +func (client DevicesClient) UploadCertificate(ctx context.Context, deviceName string, parameters UploadCertificateRequest, resourceGroupName string) (result UploadCertificateResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DevicesClient.UploadCertificate") + 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: parameters, + Constraints: []validation.Constraint{{Target: "parameters.RawCertificateData", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.RawCertificateData.Certificate", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("edgegateway.DevicesClient", "UploadCertificate", err.Error()) + } + + req, err := client.UploadCertificatePreparer(ctx, deviceName, parameters, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "UploadCertificate", nil, "Failure preparing request") + return + } + + resp, err := client.UploadCertificateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "UploadCertificate", resp, "Failure sending request") + return + } + + result, err = client.UploadCertificateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesClient", "UploadCertificate", resp, "Failure responding to request") + } + + return +} + +// UploadCertificatePreparer prepares the UploadCertificate request. +func (client DevicesClient) UploadCertificatePreparer(ctx context.Context, deviceName string, parameters UploadCertificateRequest, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/uploadCertificate", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UploadCertificateSender sends the UploadCertificate request. The method will close the +// http.Response Body if it receives an error. +func (client DevicesClient) UploadCertificateSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// UploadCertificateResponder handles the response to the UploadCertificate request. The method always +// closes the http.Response Body. +func (client DevicesClient) UploadCertificateResponder(resp *http.Response) (result UploadCertificateResponse, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/edgegatewayapi/interfaces.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/edgegatewayapi/interfaces.go new file mode 100644 index 000000000000..3d7d007aceae --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/edgegatewayapi/interfaces.go @@ -0,0 +1,137 @@ +package edgegatewayapi + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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/edgegateway/mgmt/2018-07-01/edgegateway" +) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result edgegateway.OperationsListPage, err error) +} + +var _ OperationsClientAPI = (*edgegateway.OperationsClient)(nil) + +// DevicesClientAPI contains the set of methods on the DevicesClient type. +type DevicesClientAPI interface { + CreateOrUpdate(ctx context.Context, deviceName string, dataBoxEdgeDevice edgegateway.DataBoxEdgeDevice, resourceGroupName string) (result edgegateway.DevicesCreateOrUpdateFuture, err error) + CreateOrUpdateExtendedInfo(ctx context.Context, deviceName string, parameters edgegateway.DataBoxEdgeDeviceExtendedInfo, resourceGroupName string) (result edgegateway.DataBoxEdgeDeviceExtendedInfo, err error) + CreateOrUpdateSecuritySettings(ctx context.Context, deviceName string, securitySettings edgegateway.SecuritySettings, resourceGroupName string) (result edgegateway.DevicesCreateOrUpdateSecuritySettingsFuture, err error) + Delete(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.DevicesDeleteFuture, err error) + DownloadUpdates(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.DevicesDownloadUpdatesFuture, err error) + Get(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.DataBoxEdgeDevice, err error) + GetExtendedInformation(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.DataBoxEdgeDeviceExtendedInfo, err error) + GetNetworkSettings(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.NetworkSettings, err error) + GetUpdateSummary(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.UpdateSummary, err error) + InstallUpdates(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.DevicesInstallUpdatesFuture, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string, expand string) (result edgegateway.DataBoxEdgeDeviceListPage, err error) + ListBySubscription(ctx context.Context, expand string) (result edgegateway.DataBoxEdgeDeviceListPage, err error) + ScanForUpdates(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.DevicesScanForUpdatesFuture, err error) + Update(ctx context.Context, deviceName string, parameters edgegateway.DataBoxEdgeDevicePatch, resourceGroupName string) (result edgegateway.DataBoxEdgeDevice, err error) + UploadCertificate(ctx context.Context, deviceName string, parameters edgegateway.UploadCertificateRequest, resourceGroupName string) (result edgegateway.UploadCertificateResponse, err error) +} + +var _ DevicesClientAPI = (*edgegateway.DevicesClient)(nil) + +// AlertsClientAPI contains the set of methods on the AlertsClient type. +type AlertsClientAPI interface { + Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.Alert, err error) + ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.AlertListPage, err error) +} + +var _ AlertsClientAPI = (*edgegateway.AlertsClient)(nil) + +// BandwidthSchedulesClientAPI contains the set of methods on the BandwidthSchedulesClient type. +type BandwidthSchedulesClientAPI interface { + CreateOrUpdate(ctx context.Context, deviceName string, name string, parameters edgegateway.BandwidthSchedule, resourceGroupName string) (result edgegateway.BandwidthSchedulesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.BandwidthSchedulesDeleteFuture, err error) + Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.BandwidthSchedule, err error) + ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.BandwidthSchedulesListPage, err error) +} + +var _ BandwidthSchedulesClientAPI = (*edgegateway.BandwidthSchedulesClient)(nil) + +// OperationsStatusClientAPI contains the set of methods on the OperationsStatusClient type. +type OperationsStatusClientAPI interface { + Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.Job, err error) +} + +var _ OperationsStatusClientAPI = (*edgegateway.OperationsStatusClient)(nil) + +// OrdersClientAPI contains the set of methods on the OrdersClient type. +type OrdersClientAPI interface { + CreateOrUpdate(ctx context.Context, deviceName string, order edgegateway.Order, resourceGroupName string) (result edgegateway.OrdersCreateOrUpdateFuture, err error) + Delete(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.OrdersDeleteFuture, err error) + Get(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.Order, err error) + ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.OrderListPage, err error) +} + +var _ OrdersClientAPI = (*edgegateway.OrdersClient)(nil) + +// RolesClientAPI contains the set of methods on the RolesClient type. +type RolesClientAPI interface { + CreateOrUpdate(ctx context.Context, deviceName string, name string, role edgegateway.BasicRole, resourceGroupName string) (result edgegateway.RolesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.RolesDeleteFuture, err error) + Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.RoleModel, err error) + ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.RoleListPage, err error) +} + +var _ RolesClientAPI = (*edgegateway.RolesClient)(nil) + +// SharesClientAPI contains the set of methods on the SharesClient type. +type SharesClientAPI interface { + CreateOrUpdate(ctx context.Context, deviceName string, name string, share edgegateway.Share, resourceGroupName string) (result edgegateway.SharesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.SharesDeleteFuture, err error) + Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.Share, err error) + ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.ShareListPage, err error) + Refresh(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.SharesRefreshFuture, err error) +} + +var _ SharesClientAPI = (*edgegateway.SharesClient)(nil) + +// StorageAccountCredentialsClientAPI contains the set of methods on the StorageAccountCredentialsClient type. +type StorageAccountCredentialsClientAPI interface { + CreateOrUpdate(ctx context.Context, deviceName string, name string, storageAccountCredential edgegateway.StorageAccountCredential, resourceGroupName string) (result edgegateway.StorageAccountCredentialsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.StorageAccountCredentialsDeleteFuture, err error) + Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.StorageAccountCredential, err error) + ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.StorageAccountCredentialListPage, err error) +} + +var _ StorageAccountCredentialsClientAPI = (*edgegateway.StorageAccountCredentialsClient)(nil) + +// TriggersClientAPI contains the set of methods on the TriggersClient type. +type TriggersClientAPI interface { + CreateOrUpdate(ctx context.Context, deviceName string, name string, trigger edgegateway.BasicTrigger, resourceGroupName string) (result edgegateway.TriggersCreateOrUpdateFuture, err error) + Delete(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.TriggersDeleteFuture, err error) + Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.TriggerModel, err error) + ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.TriggerListPage, err error) +} + +var _ TriggersClientAPI = (*edgegateway.TriggersClient)(nil) + +// UsersClientAPI contains the set of methods on the UsersClient type. +type UsersClientAPI interface { + CreateOrUpdate(ctx context.Context, deviceName string, name string, userParameter edgegateway.User, resourceGroupName string) (result edgegateway.UsersCreateOrUpdateFuture, err error) + Delete(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.UsersDeleteFuture, err error) + Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result edgegateway.User, err error) + ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result edgegateway.UserListPage, err error) +} + +var _ UsersClientAPI = (*edgegateway.UsersClient)(nil) diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/models.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/models.go new file mode 100644 index 000000000000..f55b68988449 --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/models.go @@ -0,0 +1,5276 @@ +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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/edgegateway/mgmt/2018-07-01/edgegateway" + +// AccountType enumerates the values for account type. +type AccountType string + +const ( + // BlobStorage ... + BlobStorage AccountType = "BlobStorage" + // GeneralPurposeStorage ... + GeneralPurposeStorage AccountType = "GeneralPurposeStorage" +) + +// PossibleAccountTypeValues returns an array of possible values for the AccountType const type. +func PossibleAccountTypeValues() []AccountType { + return []AccountType{BlobStorage, GeneralPurposeStorage} +} + +// AlertSeverity enumerates the values for alert severity. +type AlertSeverity string + +const ( + // Critical ... + Critical AlertSeverity = "Critical" + // Informational ... + Informational AlertSeverity = "Informational" + // Warning ... + Warning AlertSeverity = "Warning" +) + +// PossibleAlertSeverityValues returns an array of possible values for the AlertSeverity const type. +func PossibleAlertSeverityValues() []AlertSeverity { + return []AlertSeverity{Critical, Informational, Warning} +} + +// AuthenticationType enumerates the values for authentication type. +type AuthenticationType string + +const ( + // AzureActiveDirectory ... + AzureActiveDirectory AuthenticationType = "AzureActiveDirectory" + // Invalid ... + Invalid AuthenticationType = "Invalid" +) + +// PossibleAuthenticationTypeValues returns an array of possible values for the AuthenticationType const type. +func PossibleAuthenticationTypeValues() []AuthenticationType { + return []AuthenticationType{AzureActiveDirectory, Invalid} +} + +// AzureContainerDataFormat enumerates the values for azure container data format. +type AzureContainerDataFormat string + +const ( + // AzureFile ... + AzureFile AzureContainerDataFormat = "AzureFile" + // BlockBlob ... + BlockBlob AzureContainerDataFormat = "BlockBlob" + // PageBlob ... + PageBlob AzureContainerDataFormat = "PageBlob" +) + +// PossibleAzureContainerDataFormatValues returns an array of possible values for the AzureContainerDataFormat const type. +func PossibleAzureContainerDataFormatValues() []AzureContainerDataFormat { + return []AzureContainerDataFormat{AzureFile, BlockBlob, PageBlob} +} + +// ClientPermissionType enumerates the values for client permission type. +type ClientPermissionType string + +const ( + // NoAccess ... + NoAccess ClientPermissionType = "NoAccess" + // ReadOnly ... + ReadOnly ClientPermissionType = "ReadOnly" + // ReadWrite ... + ReadWrite ClientPermissionType = "ReadWrite" +) + +// PossibleClientPermissionTypeValues returns an array of possible values for the ClientPermissionType const type. +func PossibleClientPermissionTypeValues() []ClientPermissionType { + return []ClientPermissionType{NoAccess, ReadOnly, ReadWrite} +} + +// DataBoxEdgeDeviceStatus enumerates the values for data box edge device status. +type DataBoxEdgeDeviceStatus string + +const ( + // Disconnected ... + Disconnected DataBoxEdgeDeviceStatus = "Disconnected" + // NeedsAttention ... + NeedsAttention DataBoxEdgeDeviceStatus = "NeedsAttention" + // Offline ... + Offline DataBoxEdgeDeviceStatus = "Offline" + // Online ... + Online DataBoxEdgeDeviceStatus = "Online" + // PartiallyDisconnected ... + PartiallyDisconnected DataBoxEdgeDeviceStatus = "PartiallyDisconnected" + // ReadyToSetup ... + ReadyToSetup DataBoxEdgeDeviceStatus = "ReadyToSetup" +) + +// PossibleDataBoxEdgeDeviceStatusValues returns an array of possible values for the DataBoxEdgeDeviceStatus const type. +func PossibleDataBoxEdgeDeviceStatusValues() []DataBoxEdgeDeviceStatus { + return []DataBoxEdgeDeviceStatus{Disconnected, NeedsAttention, Offline, Online, PartiallyDisconnected, ReadyToSetup} +} + +// DataPolicy enumerates the values for data policy. +type DataPolicy string + +const ( + // Cloud ... + Cloud DataPolicy = "Cloud" + // Local ... + Local DataPolicy = "Local" +) + +// PossibleDataPolicyValues returns an array of possible values for the DataPolicy const type. +func PossibleDataPolicyValues() []DataPolicy { + return []DataPolicy{Cloud, Local} +} + +// DayOfWeek enumerates the values for day of week. +type DayOfWeek string + +const ( + // Friday ... + Friday DayOfWeek = "Friday" + // Monday ... + Monday DayOfWeek = "Monday" + // Saturday ... + Saturday DayOfWeek = "Saturday" + // Sunday ... + Sunday DayOfWeek = "Sunday" + // Thursday ... + Thursday DayOfWeek = "Thursday" + // Tuesday ... + Tuesday DayOfWeek = "Tuesday" + // Wednesday ... + Wednesday DayOfWeek = "Wednesday" +) + +// PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type. +func PossibleDayOfWeekValues() []DayOfWeek { + return []DayOfWeek{Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday} +} + +// DeviceType enumerates the values for device type. +type DeviceType string + +const ( + // DeviceTypeDataBoxEdgeDevice ... + DeviceTypeDataBoxEdgeDevice DeviceType = "DataBoxEdgeDevice" +) + +// PossibleDeviceTypeValues returns an array of possible values for the DeviceType const type. +func PossibleDeviceTypeValues() []DeviceType { + return []DeviceType{DeviceTypeDataBoxEdgeDevice} +} + +// DownloadPhase enumerates the values for download phase. +type DownloadPhase string + +const ( + // Downloading ... + Downloading DownloadPhase = "Downloading" + // Initializing ... + Initializing DownloadPhase = "Initializing" + // Unknown ... + Unknown DownloadPhase = "Unknown" + // Verifying ... + Verifying DownloadPhase = "Verifying" +) + +// PossibleDownloadPhaseValues returns an array of possible values for the DownloadPhase const type. +func PossibleDownloadPhaseValues() []DownloadPhase { + return []DownloadPhase{Downloading, Initializing, Unknown, Verifying} +} + +// EncryptionAlgorithm enumerates the values for encryption algorithm. +type EncryptionAlgorithm string + +const ( + // AES256 ... + AES256 EncryptionAlgorithm = "AES256" + // None ... + None EncryptionAlgorithm = "None" + // RSAESPKCS1V15 ... + RSAESPKCS1V15 EncryptionAlgorithm = "RSAES_PKCS1_v_1_5" +) + +// PossibleEncryptionAlgorithmValues returns an array of possible values for the EncryptionAlgorithm const type. +func PossibleEncryptionAlgorithmValues() []EncryptionAlgorithm { + return []EncryptionAlgorithm{AES256, None, RSAESPKCS1V15} +} + +// InstallRebootBehavior enumerates the values for install reboot behavior. +type InstallRebootBehavior string + +const ( + // NeverReboots ... + NeverReboots InstallRebootBehavior = "NeverReboots" + // RequestReboot ... + RequestReboot InstallRebootBehavior = "RequestReboot" + // RequiresReboot ... + RequiresReboot InstallRebootBehavior = "RequiresReboot" +) + +// PossibleInstallRebootBehaviorValues returns an array of possible values for the InstallRebootBehavior const type. +func PossibleInstallRebootBehaviorValues() []InstallRebootBehavior { + return []InstallRebootBehavior{NeverReboots, RequestReboot, RequiresReboot} +} + +// JobStatus enumerates the values for job status. +type JobStatus string + +const ( + // JobStatusCanceled ... + JobStatusCanceled JobStatus = "Canceled" + // JobStatusFailed ... + JobStatusFailed JobStatus = "Failed" + // JobStatusInvalid ... + JobStatusInvalid JobStatus = "Invalid" + // JobStatusPaused ... + JobStatusPaused JobStatus = "Paused" + // JobStatusRunning ... + JobStatusRunning JobStatus = "Running" + // JobStatusScheduled ... + JobStatusScheduled JobStatus = "Scheduled" + // JobStatusSucceeded ... + JobStatusSucceeded JobStatus = "Succeeded" +) + +// PossibleJobStatusValues returns an array of possible values for the JobStatus const type. +func PossibleJobStatusValues() []JobStatus { + return []JobStatus{JobStatusCanceled, JobStatusFailed, JobStatusInvalid, JobStatusPaused, JobStatusRunning, JobStatusScheduled, JobStatusSucceeded} +} + +// JobType enumerates the values for job type. +type JobType string + +const ( + // JobTypeDownloadUpdates ... + JobTypeDownloadUpdates JobType = "DownloadUpdates" + // JobTypeInstallUpdates ... + JobTypeInstallUpdates JobType = "InstallUpdates" + // JobTypeInvalid ... + JobTypeInvalid JobType = "Invalid" + // JobTypeRefreshShare ... + JobTypeRefreshShare JobType = "RefreshShare" + // JobTypeScanForUpdates ... + JobTypeScanForUpdates JobType = "ScanForUpdates" +) + +// PossibleJobTypeValues returns an array of possible values for the JobType const type. +func PossibleJobTypeValues() []JobType { + return []JobType{JobTypeDownloadUpdates, JobTypeInstallUpdates, JobTypeInvalid, JobTypeRefreshShare, JobTypeScanForUpdates} +} + +// Kind enumerates the values for kind. +type Kind string + +const ( + // KindIOT ... + KindIOT Kind = "IOT" + // KindRole ... + KindRole Kind = "Role" +) + +// PossibleKindValues returns an array of possible values for the Kind const type. +func PossibleKindValues() []Kind { + return []Kind{KindIOT, KindRole} +} + +// KindBasicTrigger enumerates the values for kind basic trigger. +type KindBasicTrigger string + +const ( + // KindFileEvent ... + KindFileEvent KindBasicTrigger = "FileEvent" + // KindPeriodicTimerEvent ... + KindPeriodicTimerEvent KindBasicTrigger = "PeriodicTimerEvent" + // KindTrigger ... + KindTrigger KindBasicTrigger = "Trigger" +) + +// PossibleKindBasicTriggerValues returns an array of possible values for the KindBasicTrigger const type. +func PossibleKindBasicTriggerValues() []KindBasicTrigger { + return []KindBasicTrigger{KindFileEvent, KindPeriodicTimerEvent, KindTrigger} +} + +// MetricAggregationType enumerates the values for metric aggregation type. +type MetricAggregationType string + +const ( + // MetricAggregationTypeAverage ... + MetricAggregationTypeAverage MetricAggregationType = "Average" + // MetricAggregationTypeCount ... + MetricAggregationTypeCount MetricAggregationType = "Count" + // MetricAggregationTypeMaximum ... + MetricAggregationTypeMaximum MetricAggregationType = "Maximum" + // MetricAggregationTypeMinimum ... + MetricAggregationTypeMinimum MetricAggregationType = "Minimum" + // MetricAggregationTypeNone ... + MetricAggregationTypeNone MetricAggregationType = "None" + // MetricAggregationTypeNotSpecified ... + MetricAggregationTypeNotSpecified MetricAggregationType = "NotSpecified" + // MetricAggregationTypeTotal ... + MetricAggregationTypeTotal MetricAggregationType = "Total" +) + +// PossibleMetricAggregationTypeValues returns an array of possible values for the MetricAggregationType const type. +func PossibleMetricAggregationTypeValues() []MetricAggregationType { + return []MetricAggregationType{MetricAggregationTypeAverage, MetricAggregationTypeCount, MetricAggregationTypeMaximum, MetricAggregationTypeMinimum, MetricAggregationTypeNone, MetricAggregationTypeNotSpecified, MetricAggregationTypeTotal} +} + +// MetricCategory enumerates the values for metric category. +type MetricCategory string + +const ( + // Capacity ... + Capacity MetricCategory = "Capacity" + // Transaction ... + Transaction MetricCategory = "Transaction" +) + +// PossibleMetricCategoryValues returns an array of possible values for the MetricCategory const type. +func PossibleMetricCategoryValues() []MetricCategory { + return []MetricCategory{Capacity, Transaction} +} + +// MetricUnit enumerates the values for metric unit. +type MetricUnit string + +const ( + // Bytes ... + Bytes MetricUnit = "Bytes" + // BytesPerSecond ... + BytesPerSecond MetricUnit = "BytesPerSecond" + // Count ... + Count MetricUnit = "Count" + // CountPerSecond ... + CountPerSecond MetricUnit = "CountPerSecond" + // Milliseconds ... + Milliseconds MetricUnit = "Milliseconds" + // NotSpecified ... + NotSpecified MetricUnit = "NotSpecified" + // Percent ... + Percent MetricUnit = "Percent" + // Seconds ... + Seconds MetricUnit = "Seconds" +) + +// PossibleMetricUnitValues returns an array of possible values for the MetricUnit const type. +func PossibleMetricUnitValues() []MetricUnit { + return []MetricUnit{Bytes, BytesPerSecond, Count, CountPerSecond, Milliseconds, NotSpecified, Percent, Seconds} +} + +// MonitoringStatus enumerates the values for monitoring status. +type MonitoringStatus string + +const ( + // Disabled ... + Disabled MonitoringStatus = "Disabled" + // Enabled ... + Enabled MonitoringStatus = "Enabled" +) + +// PossibleMonitoringStatusValues returns an array of possible values for the MonitoringStatus const type. +func PossibleMonitoringStatusValues() []MonitoringStatus { + return []MonitoringStatus{Disabled, Enabled} +} + +// NetworkAdapterDHCPStatus enumerates the values for network adapter dhcp status. +type NetworkAdapterDHCPStatus string + +const ( + // NetworkAdapterDHCPStatusDisabled ... + NetworkAdapterDHCPStatusDisabled NetworkAdapterDHCPStatus = "Disabled" + // NetworkAdapterDHCPStatusEnabled ... + NetworkAdapterDHCPStatusEnabled NetworkAdapterDHCPStatus = "Enabled" +) + +// PossibleNetworkAdapterDHCPStatusValues returns an array of possible values for the NetworkAdapterDHCPStatus const type. +func PossibleNetworkAdapterDHCPStatusValues() []NetworkAdapterDHCPStatus { + return []NetworkAdapterDHCPStatus{NetworkAdapterDHCPStatusDisabled, NetworkAdapterDHCPStatusEnabled} +} + +// NetworkAdapterRDMAStatus enumerates the values for network adapter rdma status. +type NetworkAdapterRDMAStatus string + +const ( + // Capable ... + Capable NetworkAdapterRDMAStatus = "Capable" + // Incapable ... + Incapable NetworkAdapterRDMAStatus = "Incapable" +) + +// PossibleNetworkAdapterRDMAStatusValues returns an array of possible values for the NetworkAdapterRDMAStatus const type. +func PossibleNetworkAdapterRDMAStatusValues() []NetworkAdapterRDMAStatus { + return []NetworkAdapterRDMAStatus{Capable, Incapable} +} + +// NetworkAdapterStatus enumerates the values for network adapter status. +type NetworkAdapterStatus string + +const ( + // Active ... + Active NetworkAdapterStatus = "Active" + // Inactive ... + Inactive NetworkAdapterStatus = "Inactive" +) + +// PossibleNetworkAdapterStatusValues returns an array of possible values for the NetworkAdapterStatus const type. +func PossibleNetworkAdapterStatusValues() []NetworkAdapterStatus { + return []NetworkAdapterStatus{Active, Inactive} +} + +// NetworkGroup enumerates the values for network group. +type NetworkGroup string + +const ( + // NetworkGroupNone ... + NetworkGroupNone NetworkGroup = "None" + // NetworkGroupNonRDMA ... + NetworkGroupNonRDMA NetworkGroup = "NonRDMA" + // NetworkGroupRDMA ... + NetworkGroupRDMA NetworkGroup = "RDMA" +) + +// PossibleNetworkGroupValues returns an array of possible values for the NetworkGroup const type. +func PossibleNetworkGroupValues() []NetworkGroup { + return []NetworkGroup{NetworkGroupNone, NetworkGroupNonRDMA, NetworkGroupRDMA} +} + +// PlatformType enumerates the values for platform type. +type PlatformType string + +const ( + // Linux ... + Linux PlatformType = "Linux" + // Windows ... + Windows PlatformType = "Windows" +) + +// PossiblePlatformTypeValues returns an array of possible values for the PlatformType const type. +func PossiblePlatformTypeValues() []PlatformType { + return []PlatformType{Linux, Windows} +} + +// RoleStatus enumerates the values for role status. +type RoleStatus string + +const ( + // RoleStatusDisabled ... + RoleStatusDisabled RoleStatus = "Disabled" + // RoleStatusEnabled ... + RoleStatusEnabled RoleStatus = "Enabled" +) + +// PossibleRoleStatusValues returns an array of possible values for the RoleStatus const type. +func PossibleRoleStatusValues() []RoleStatus { + return []RoleStatus{RoleStatusDisabled, RoleStatusEnabled} +} + +// RoleTypes enumerates the values for role types. +type RoleTypes string + +const ( + // ASA ... + ASA RoleTypes = "ASA" + // Cognitive ... + Cognitive RoleTypes = "Cognitive" + // Functions ... + Functions RoleTypes = "Functions" + // IOT ... + IOT RoleTypes = "IOT" +) + +// PossibleRoleTypesValues returns an array of possible values for the RoleTypes const type. +func PossibleRoleTypesValues() []RoleTypes { + return []RoleTypes{ASA, Cognitive, Functions, IOT} +} + +// ShareAccessProtocol enumerates the values for share access protocol. +type ShareAccessProtocol string + +const ( + // NFS ... + NFS ShareAccessProtocol = "NFS" + // SMB ... + SMB ShareAccessProtocol = "SMB" +) + +// PossibleShareAccessProtocolValues returns an array of possible values for the ShareAccessProtocol const type. +func PossibleShareAccessProtocolValues() []ShareAccessProtocol { + return []ShareAccessProtocol{NFS, SMB} +} + +// ShareAccessType enumerates the values for share access type. +type ShareAccessType string + +const ( + // Change ... + Change ShareAccessType = "Change" + // Custom ... + Custom ShareAccessType = "Custom" + // Read ... + Read ShareAccessType = "Read" +) + +// PossibleShareAccessTypeValues returns an array of possible values for the ShareAccessType const type. +func PossibleShareAccessTypeValues() []ShareAccessType { + return []ShareAccessType{Change, Custom, Read} +} + +// ShareStatus enumerates the values for share status. +type ShareStatus string + +const ( + // ShareStatusOffline ... + ShareStatusOffline ShareStatus = "Offline" + // ShareStatusOnline ... + ShareStatusOnline ShareStatus = "Online" +) + +// PossibleShareStatusValues returns an array of possible values for the ShareStatus const type. +func PossibleShareStatusValues() []ShareStatus { + return []ShareStatus{ShareStatusOffline, ShareStatusOnline} +} + +// SkuName enumerates the values for sku name. +type SkuName string + +const ( + // Edge ... + Edge SkuName = "Edge" + // Gateway ... + Gateway SkuName = "Gateway" +) + +// PossibleSkuNameValues returns an array of possible values for the SkuName const type. +func PossibleSkuNameValues() []SkuName { + return []SkuName{Edge, Gateway} +} + +// SkuTier enumerates the values for sku tier. +type SkuTier string + +const ( + // Standard ... + Standard SkuTier = "Standard" +) + +// PossibleSkuTierValues returns an array of possible values for the SkuTier const type. +func PossibleSkuTierValues() []SkuTier { + return []SkuTier{Standard} +} + +// SSLStatus enumerates the values for ssl status. +type SSLStatus string + +const ( + // SSLStatusDisabled ... + SSLStatusDisabled SSLStatus = "Disabled" + // SSLStatusEnabled ... + SSLStatusEnabled SSLStatus = "Enabled" +) + +// PossibleSSLStatusValues returns an array of possible values for the SSLStatus const type. +func PossibleSSLStatusValues() []SSLStatus { + return []SSLStatus{SSLStatusDisabled, SSLStatusEnabled} +} + +// StatusTypes enumerates the values for status types. +type StatusTypes string + +const ( + // Arriving ... + Arriving StatusTypes = "Arriving" + // AwaitingFulfilment ... + AwaitingFulfilment StatusTypes = "AwaitingFulfilment" + // AwaitingPreparation ... + AwaitingPreparation StatusTypes = "AwaitingPreparation" + // AwaitingReturnShipment ... + AwaitingReturnShipment StatusTypes = "AwaitingReturnShipment" + // AwaitingShipment ... + AwaitingShipment StatusTypes = "AwaitingShipment" + // CollectedAtMicrosoft ... + CollectedAtMicrosoft StatusTypes = "CollectedAtMicrosoft" + // Declined ... + Declined StatusTypes = "Declined" + // Delivered ... + Delivered StatusTypes = "Delivered" + // LostDevice ... + LostDevice StatusTypes = "LostDevice" + // ReplacementRequested ... + ReplacementRequested StatusTypes = "ReplacementRequested" + // ReturnInitiated ... + ReturnInitiated StatusTypes = "ReturnInitiated" + // Shipped ... + Shipped StatusTypes = "Shipped" + // ShippedBack ... + ShippedBack StatusTypes = "ShippedBack" + // Untracked ... + Untracked StatusTypes = "Untracked" +) + +// PossibleStatusTypesValues returns an array of possible values for the StatusTypes const type. +func PossibleStatusTypesValues() []StatusTypes { + return []StatusTypes{Arriving, AwaitingFulfilment, AwaitingPreparation, AwaitingReturnShipment, AwaitingShipment, CollectedAtMicrosoft, Declined, Delivered, LostDevice, ReplacementRequested, ReturnInitiated, Shipped, ShippedBack, Untracked} +} + +// TimeGrain enumerates the values for time grain. +type TimeGrain string + +const ( + // PT12H ... + PT12H TimeGrain = "PT12H" + // PT15M ... + PT15M TimeGrain = "PT15M" + // PT1D ... + PT1D TimeGrain = "PT1D" + // PT1H ... + PT1H TimeGrain = "PT1H" + // PT1M ... + PT1M TimeGrain = "PT1M" + // PT30M ... + PT30M TimeGrain = "PT30M" + // PT5M ... + PT5M TimeGrain = "PT5M" + // PT6H ... + PT6H TimeGrain = "PT6H" +) + +// PossibleTimeGrainValues returns an array of possible values for the TimeGrain const type. +func PossibleTimeGrainValues() []TimeGrain { + return []TimeGrain{PT12H, PT15M, PT1D, PT1H, PT1M, PT30M, PT5M, PT6H} +} + +// UpdateOperation enumerates the values for update operation. +type UpdateOperation string + +const ( + // UpdateOperationDownload ... + UpdateOperationDownload UpdateOperation = "Download" + // UpdateOperationInstall ... + UpdateOperationInstall UpdateOperation = "Install" + // UpdateOperationNone ... + UpdateOperationNone UpdateOperation = "None" + // UpdateOperationScan ... + UpdateOperationScan UpdateOperation = "Scan" +) + +// PossibleUpdateOperationValues returns an array of possible values for the UpdateOperation const type. +func PossibleUpdateOperationValues() []UpdateOperation { + return []UpdateOperation{UpdateOperationDownload, UpdateOperationInstall, UpdateOperationNone, UpdateOperationScan} +} + +// UpdateOperationStage enumerates the values for update operation stage. +type UpdateOperationStage string + +const ( + // UpdateOperationStageDownloadComplete ... + UpdateOperationStageDownloadComplete UpdateOperationStage = "DownloadComplete" + // UpdateOperationStageDownloadFailed ... + UpdateOperationStageDownloadFailed UpdateOperationStage = "DownloadFailed" + // UpdateOperationStageDownloadStarted ... + UpdateOperationStageDownloadStarted UpdateOperationStage = "DownloadStarted" + // UpdateOperationStageFailure ... + UpdateOperationStageFailure UpdateOperationStage = "Failure" + // UpdateOperationStageInitial ... + UpdateOperationStageInitial UpdateOperationStage = "Initial" + // UpdateOperationStageInstallComplete ... + UpdateOperationStageInstallComplete UpdateOperationStage = "InstallComplete" + // UpdateOperationStageInstallFailed ... + UpdateOperationStageInstallFailed UpdateOperationStage = "InstallFailed" + // UpdateOperationStageInstallStarted ... + UpdateOperationStageInstallStarted UpdateOperationStage = "InstallStarted" + // UpdateOperationStageRebootInitiated ... + UpdateOperationStageRebootInitiated UpdateOperationStage = "RebootInitiated" + // UpdateOperationStageRescanComplete ... + UpdateOperationStageRescanComplete UpdateOperationStage = "RescanComplete" + // UpdateOperationStageRescanFailed ... + UpdateOperationStageRescanFailed UpdateOperationStage = "RescanFailed" + // UpdateOperationStageRescanStarted ... + UpdateOperationStageRescanStarted UpdateOperationStage = "RescanStarted" + // UpdateOperationStageScanComplete ... + UpdateOperationStageScanComplete UpdateOperationStage = "ScanComplete" + // UpdateOperationStageScanFailed ... + UpdateOperationStageScanFailed UpdateOperationStage = "ScanFailed" + // UpdateOperationStageScanStarted ... + UpdateOperationStageScanStarted UpdateOperationStage = "ScanStarted" + // UpdateOperationStageSuccess ... + UpdateOperationStageSuccess UpdateOperationStage = "Success" + // UpdateOperationStageUnknown ... + UpdateOperationStageUnknown UpdateOperationStage = "Unknown" +) + +// PossibleUpdateOperationStageValues returns an array of possible values for the UpdateOperationStage const type. +func PossibleUpdateOperationStageValues() []UpdateOperationStage { + return []UpdateOperationStage{UpdateOperationStageDownloadComplete, UpdateOperationStageDownloadFailed, UpdateOperationStageDownloadStarted, UpdateOperationStageFailure, UpdateOperationStageInitial, UpdateOperationStageInstallComplete, UpdateOperationStageInstallFailed, UpdateOperationStageInstallStarted, UpdateOperationStageRebootInitiated, UpdateOperationStageRescanComplete, UpdateOperationStageRescanFailed, UpdateOperationStageRescanStarted, UpdateOperationStageScanComplete, UpdateOperationStageScanFailed, UpdateOperationStageScanStarted, UpdateOperationStageSuccess, UpdateOperationStageUnknown} +} + +// Address the shipping address of the customer. +type Address struct { + // AddressLine1 - The address line1. + AddressLine1 *string `json:"addressLine1,omitempty"` + // AddressLine2 - The address line2. + AddressLine2 *string `json:"addressLine2,omitempty"` + // AddressLine3 - The address line3. + AddressLine3 *string `json:"addressLine3,omitempty"` + // PostalCode - The postal code. + PostalCode *string `json:"postalCode,omitempty"` + // City - The city name. + City *string `json:"city,omitempty"` + // State - The state name. + State *string `json:"state,omitempty"` + // Country - The country name. + Country *string `json:"country,omitempty"` +} + +// Alert alert on the data box edge/gateway device. +type Alert struct { + autorest.Response `json:"-"` + // AlertProperties - Properties of alert. + *AlertProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Alert. +func (a Alert) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if a.AlertProperties != nil { + objectMap["properties"] = a.AlertProperties + } + if a.ID != nil { + objectMap["id"] = a.ID + } + if a.Name != nil { + objectMap["name"] = a.Name + } + if a.Type != nil { + objectMap["type"] = a.Type + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Alert struct. +func (a *Alert) 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 alertProperties AlertProperties + err = json.Unmarshal(*v, &alertProperties) + if err != nil { + return err + } + a.AlertProperties = &alertProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + a.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + a.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + a.Type = &typeVar + } + } + } + + return nil +} + +// AlertErrorDetails error details for the alert. +type AlertErrorDetails struct { + // ErrorCode - Error code. + ErrorCode *string `json:"errorCode,omitempty"` + // ErrorMessage - Error Message. + ErrorMessage *string `json:"errorMessage,omitempty"` + // Occurrences - Number of occurrences. + Occurrences *int32 `json:"occurrences,omitempty"` +} + +// AlertList collection of Alerts. +type AlertList struct { + autorest.Response `json:"-"` + // Value - The value. + Value *[]Alert `json:"value,omitempty"` + // NextLink - Link to the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// AlertListIterator provides access to a complete listing of Alert values. +type AlertListIterator struct { + i int + page AlertListPage +} + +// 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 *AlertListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AlertListIterator.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 *AlertListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AlertListIterator) 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 AlertListIterator) Response() AlertList { + 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 AlertListIterator) Value() Alert { + if !iter.page.NotDone() { + return Alert{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AlertListIterator type. +func NewAlertListIterator(page AlertListPage) AlertListIterator { + return AlertListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (al AlertList) IsEmpty() bool { + return al.Value == nil || len(*al.Value) == 0 +} + +// alertListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (al AlertList) alertListPreparer(ctx context.Context) (*http.Request, error) { + if al.NextLink == nil || len(to.String(al.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(al.NextLink))) +} + +// AlertListPage contains a page of Alert values. +type AlertListPage struct { + fn func(context.Context, AlertList) (AlertList, error) + al AlertList +} + +// 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 *AlertListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AlertListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.al) + if err != nil { + return err + } + page.al = next + 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 *AlertListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AlertListPage) NotDone() bool { + return !page.al.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AlertListPage) Response() AlertList { + return page.al +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AlertListPage) Values() []Alert { + if page.al.IsEmpty() { + return nil + } + return *page.al.Value +} + +// Creates a new instance of the AlertListPage type. +func NewAlertListPage(getNextPage func(context.Context, AlertList) (AlertList, error)) AlertListPage { + return AlertListPage{fn: getNextPage} +} + +// AlertProperties properties of alert. +type AlertProperties struct { + // Title - Title of the alert. + Title *string `json:"title,omitempty"` + // AlertType - Type of the alert. + AlertType *string `json:"alertType,omitempty"` + // AppearedAtDateTime - UTC time at which the alert appeared. + AppearedAtDateTime *date.Time `json:"appearedAtDateTime,omitempty"` + // Recommendation - Recommendation for acting on the alert. + Recommendation *string `json:"recommendation,omitempty"` + // Severity - Severity of the alert. Possible values include: 'Informational', 'Warning', 'Critical' + Severity AlertSeverity `json:"severity,omitempty"` + // ErrorDetails - Error details of the alert. + ErrorDetails *AlertErrorDetails `json:"errorDetails,omitempty"` + // DetailedInformation - Detailed information about the alert. + DetailedInformation map[string]*string `json:"detailedInformation"` +} + +// MarshalJSON is the custom marshaler for AlertProperties. +func (ap AlertProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ap.Title != nil { + objectMap["title"] = ap.Title + } + if ap.AlertType != nil { + objectMap["alertType"] = ap.AlertType + } + if ap.AppearedAtDateTime != nil { + objectMap["appearedAtDateTime"] = ap.AppearedAtDateTime + } + if ap.Recommendation != nil { + objectMap["recommendation"] = ap.Recommendation + } + if ap.Severity != "" { + objectMap["severity"] = ap.Severity + } + if ap.ErrorDetails != nil { + objectMap["errorDetails"] = ap.ErrorDetails + } + if ap.DetailedInformation != nil { + objectMap["detailedInformation"] = ap.DetailedInformation + } + return json.Marshal(objectMap) +} + +// ARMBaseModel represents the base class for all object models. +type ARMBaseModel struct { + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// AsymmetricEncryptedSecret represent the secrets intended for encryption with asymmetric key pair. +type AsymmetricEncryptedSecret struct { + // Value - The value of the secret. + Value *string `json:"value,omitempty"` + // EncryptionCertThumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null. + EncryptionCertThumbprint *string `json:"encryptionCertThumbprint,omitempty"` + // EncryptionAlgorithm - The algorithm used to encrypt "Value". Possible values include: 'None', 'AES256', 'RSAESPKCS1V15' + EncryptionAlgorithm EncryptionAlgorithm `json:"encryptionAlgorithm,omitempty"` +} + +// Authentication authentication mechanism for IoT devices. +type Authentication struct { + // SymmetricKey - Symmetric key for authentication. + SymmetricKey *SymmetricKey `json:"symmetricKey,omitempty"` +} + +// AzureContainerInfo azure container mapping of the endpoint. +type AzureContainerInfo struct { + // StorageAccountCredentialID - ID of the Storage account credential to be used for accessing storage. + StorageAccountCredentialID *string `json:"storageAccountCredentialId,omitempty"` + // ContainerName - Container name (Based on the data format specified, represents the name of Azure file/ Page blob / Block blob). + ContainerName *string `json:"containerName,omitempty"` + // DataFormat - Storage format used for the file represented by the share. Possible values include: 'BlockBlob', 'PageBlob', 'AzureFile' + DataFormat AzureContainerDataFormat `json:"dataFormat,omitempty"` +} + +// BandwidthSchedule the bandwidth schedule details. +type BandwidthSchedule struct { + autorest.Response `json:"-"` + // BandwidthScheduleProperties - The properties of the bandwidth schedule. + *BandwidthScheduleProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for BandwidthSchedule. +func (bs BandwidthSchedule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bs.BandwidthScheduleProperties != nil { + objectMap["properties"] = bs.BandwidthScheduleProperties + } + if bs.ID != nil { + objectMap["id"] = bs.ID + } + if bs.Name != nil { + objectMap["name"] = bs.Name + } + if bs.Type != nil { + objectMap["type"] = bs.Type + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for BandwidthSchedule struct. +func (bs *BandwidthSchedule) 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 bandwidthScheduleProperties BandwidthScheduleProperties + err = json.Unmarshal(*v, &bandwidthScheduleProperties) + if err != nil { + return err + } + bs.BandwidthScheduleProperties = &bandwidthScheduleProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + bs.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + bs.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bs.Type = &typeVar + } + } + } + + return nil +} + +// BandwidthScheduleProperties the properties of the bandwidth schedule. +type BandwidthScheduleProperties struct { + // Start - The start time of the schedule in UTC. + Start *string `json:"start,omitempty"` + // Stop - The stop time of the schedule in UTC. + Stop *string `json:"stop,omitempty"` + // RateInMbps - The bandwidth rate in Mbps. + RateInMbps *int32 `json:"rateInMbps,omitempty"` + // Days - The days of the week when this schedule is applicable. + Days *[]DayOfWeek `json:"days,omitempty"` +} + +// BandwidthSchedulesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type BandwidthSchedulesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *BandwidthSchedulesCreateOrUpdateFuture) Result(client BandwidthSchedulesClient) (bs BandwidthSchedule, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.BandwidthSchedulesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if bs.Response.Response, err = future.GetResult(sender); err == nil && bs.Response.Response.StatusCode != http.StatusNoContent { + bs, err = client.CreateOrUpdateResponder(bs.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesCreateOrUpdateFuture", "Result", bs.Response.Response, "Failure responding to request") + } + } + return +} + +// BandwidthSchedulesDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type BandwidthSchedulesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *BandwidthSchedulesDeleteFuture) Result(client BandwidthSchedulesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.BandwidthSchedulesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.BandwidthSchedulesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// BandwidthSchedulesList the collection of bandwidth schedules. +type BandwidthSchedulesList struct { + autorest.Response `json:"-"` + // Value - The list of bandwidth schedules. + Value *[]BandwidthSchedule `json:"value,omitempty"` + // NextLink - Link to the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// BandwidthSchedulesListIterator provides access to a complete listing of BandwidthSchedule values. +type BandwidthSchedulesListIterator struct { + i int + page BandwidthSchedulesListPage +} + +// 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 *BandwidthSchedulesListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BandwidthSchedulesListIterator.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 *BandwidthSchedulesListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter BandwidthSchedulesListIterator) 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 BandwidthSchedulesListIterator) Response() BandwidthSchedulesList { + 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 BandwidthSchedulesListIterator) Value() BandwidthSchedule { + if !iter.page.NotDone() { + return BandwidthSchedule{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the BandwidthSchedulesListIterator type. +func NewBandwidthSchedulesListIterator(page BandwidthSchedulesListPage) BandwidthSchedulesListIterator { + return BandwidthSchedulesListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (bsl BandwidthSchedulesList) IsEmpty() bool { + return bsl.Value == nil || len(*bsl.Value) == 0 +} + +// bandwidthSchedulesListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (bsl BandwidthSchedulesList) bandwidthSchedulesListPreparer(ctx context.Context) (*http.Request, error) { + if bsl.NextLink == nil || len(to.String(bsl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(bsl.NextLink))) +} + +// BandwidthSchedulesListPage contains a page of BandwidthSchedule values. +type BandwidthSchedulesListPage struct { + fn func(context.Context, BandwidthSchedulesList) (BandwidthSchedulesList, error) + bsl BandwidthSchedulesList +} + +// 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 *BandwidthSchedulesListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BandwidthSchedulesListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.bsl) + if err != nil { + return err + } + page.bsl = next + 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 *BandwidthSchedulesListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page BandwidthSchedulesListPage) NotDone() bool { + return !page.bsl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page BandwidthSchedulesListPage) Response() BandwidthSchedulesList { + return page.bsl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page BandwidthSchedulesListPage) Values() []BandwidthSchedule { + if page.bsl.IsEmpty() { + return nil + } + return *page.bsl.Value +} + +// Creates a new instance of the BandwidthSchedulesListPage type. +func NewBandwidthSchedulesListPage(getNextPage func(context.Context, BandwidthSchedulesList) (BandwidthSchedulesList, error)) BandwidthSchedulesListPage { + return BandwidthSchedulesListPage{fn: getNextPage} +} + +// ClientAccessRight the mapping between a particular client ip and the type of access client has on the +// NFS share. +type ClientAccessRight struct { + // Client - Ip of the client. + Client *string `json:"client,omitempty"` + // AccessPermission - Type of access to be allowed for the client. Possible values include: 'NoAccess', 'ReadOnly', 'ReadWrite' + AccessPermission ClientPermissionType `json:"accessPermission,omitempty"` +} + +// CloudError an error response from the service. +type CloudError struct { + // Error - The error details. + Error *CloudErrorBody `json:"error,omitempty"` +} + +// CloudErrorBody an error response from the service. +type CloudErrorBody struct { + // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + Code *string `json:"code,omitempty"` + // Message - A message describing the error, intended to be suitable for display in a user interface. + Message *string `json:"message,omitempty"` + // Details - A list of additional details about the error. + Details *[]CloudErrorBody `json:"details,omitempty"` +} + +// ContactDetails contains all the contact details of the customer. +type ContactDetails struct { + // ContactPerson - Gets or sets the contact person. + ContactPerson *string `json:"contactPerson,omitempty"` + // CompanyName - Gets or sets the name of the company. + CompanyName *string `json:"companyName,omitempty"` + // Phone - Gets or sets the phone number. + Phone *string `json:"phone,omitempty"` + // EmailList - Gets or sets the email list. + EmailList *[]string `json:"emailList,omitempty"` +} + +// DataBoxEdgeDevice the Data Box Edge/Gateway device. +type DataBoxEdgeDevice struct { + autorest.Response `json:"-"` + // Location - The location of the device. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a device cannot be changed once it is created, but if an identical geo region is specified on update the request will succeed. + Location *string `json:"location,omitempty"` + // Tags - The list of tags that describe the device. These tags can be used in viewing and grouping this device (across resource groups). + Tags map[string]*string `json:"tags"` + // Sku - The sku type. + Sku *Sku `json:"sku,omitempty"` + // Etag - The etag of the devices. + Etag *string `json:"etag,omitempty"` + // DataBoxEdgeDeviceProperties - The properties of the Data Box Edge/Gateway device. + *DataBoxEdgeDeviceProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DataBoxEdgeDevice. +func (dbed DataBoxEdgeDevice) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dbed.Location != nil { + objectMap["location"] = dbed.Location + } + if dbed.Tags != nil { + objectMap["tags"] = dbed.Tags + } + if dbed.Sku != nil { + objectMap["sku"] = dbed.Sku + } + if dbed.Etag != nil { + objectMap["etag"] = dbed.Etag + } + if dbed.DataBoxEdgeDeviceProperties != nil { + objectMap["properties"] = dbed.DataBoxEdgeDeviceProperties + } + if dbed.ID != nil { + objectMap["id"] = dbed.ID + } + if dbed.Name != nil { + objectMap["name"] = dbed.Name + } + if dbed.Type != nil { + objectMap["type"] = dbed.Type + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DataBoxEdgeDevice struct. +func (dbed *DataBoxEdgeDevice) 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 "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + dbed.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + dbed.Tags = tags + } + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + dbed.Sku = &sku + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + dbed.Etag = &etag + } + case "properties": + if v != nil { + var dataBoxEdgeDeviceProperties DataBoxEdgeDeviceProperties + err = json.Unmarshal(*v, &dataBoxEdgeDeviceProperties) + if err != nil { + return err + } + dbed.DataBoxEdgeDeviceProperties = &dataBoxEdgeDeviceProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + dbed.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dbed.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dbed.Type = &typeVar + } + } + } + + return nil +} + +// DataBoxEdgeDeviceExtendedInfo the extended Info of the Data Box Edge/Gateway device. +type DataBoxEdgeDeviceExtendedInfo struct { + autorest.Response `json:"-"` + // DataBoxEdgeDeviceExtendedInfoProperties - The extended info properties. + *DataBoxEdgeDeviceExtendedInfoProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DataBoxEdgeDeviceExtendedInfo. +func (dbedei DataBoxEdgeDeviceExtendedInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dbedei.DataBoxEdgeDeviceExtendedInfoProperties != nil { + objectMap["properties"] = dbedei.DataBoxEdgeDeviceExtendedInfoProperties + } + if dbedei.ID != nil { + objectMap["id"] = dbedei.ID + } + if dbedei.Name != nil { + objectMap["name"] = dbedei.Name + } + if dbedei.Type != nil { + objectMap["type"] = dbedei.Type + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DataBoxEdgeDeviceExtendedInfo struct. +func (dbedei *DataBoxEdgeDeviceExtendedInfo) 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 dataBoxEdgeDeviceExtendedInfoProperties DataBoxEdgeDeviceExtendedInfoProperties + err = json.Unmarshal(*v, &dataBoxEdgeDeviceExtendedInfoProperties) + if err != nil { + return err + } + dbedei.DataBoxEdgeDeviceExtendedInfoProperties = &dataBoxEdgeDeviceExtendedInfoProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + dbedei.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dbedei.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dbedei.Type = &typeVar + } + } + } + + return nil +} + +// DataBoxEdgeDeviceExtendedInfoProperties the properties of the Data Box Edge/Gateway device extended +// info. +type DataBoxEdgeDeviceExtendedInfoProperties struct { + // IntegrityKey - The Channel Integrity Key (CIK) of the device. + IntegrityKey *string `json:"integrityKey,omitempty"` + // EncryptionKeyThumbprint - The certificate thumbprint that was used to encrypt the Channel Integrity Key (CIK). + EncryptionKeyThumbprint *string `json:"encryptionKeyThumbprint,omitempty"` + // EncryptionKey - The Channel Integrity Key (CIK) of the device. + EncryptionKey *string `json:"encryptionKey,omitempty"` + // ResourceKey - The Resource Id of the Resource. + ResourceKey *string `json:"resourceKey,omitempty"` +} + +// DataBoxEdgeDeviceList the collection of Data Box Edge/Gateway devices. +type DataBoxEdgeDeviceList struct { + autorest.Response `json:"-"` + // Value - The list of Data Box Edge/Gateway devices. + Value *[]DataBoxEdgeDevice `json:"value,omitempty"` + // NextLink - Link to the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// DataBoxEdgeDeviceListIterator provides access to a complete listing of DataBoxEdgeDevice values. +type DataBoxEdgeDeviceListIterator struct { + i int + page DataBoxEdgeDeviceListPage +} + +// 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 *DataBoxEdgeDeviceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DataBoxEdgeDeviceListIterator.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 *DataBoxEdgeDeviceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter DataBoxEdgeDeviceListIterator) 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 DataBoxEdgeDeviceListIterator) Response() DataBoxEdgeDeviceList { + 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 DataBoxEdgeDeviceListIterator) Value() DataBoxEdgeDevice { + if !iter.page.NotDone() { + return DataBoxEdgeDevice{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the DataBoxEdgeDeviceListIterator type. +func NewDataBoxEdgeDeviceListIterator(page DataBoxEdgeDeviceListPage) DataBoxEdgeDeviceListIterator { + return DataBoxEdgeDeviceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (dbedl DataBoxEdgeDeviceList) IsEmpty() bool { + return dbedl.Value == nil || len(*dbedl.Value) == 0 +} + +// dataBoxEdgeDeviceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (dbedl DataBoxEdgeDeviceList) dataBoxEdgeDeviceListPreparer(ctx context.Context) (*http.Request, error) { + if dbedl.NextLink == nil || len(to.String(dbedl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(dbedl.NextLink))) +} + +// DataBoxEdgeDeviceListPage contains a page of DataBoxEdgeDevice values. +type DataBoxEdgeDeviceListPage struct { + fn func(context.Context, DataBoxEdgeDeviceList) (DataBoxEdgeDeviceList, error) + dbedl DataBoxEdgeDeviceList +} + +// 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 *DataBoxEdgeDeviceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DataBoxEdgeDeviceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.dbedl) + if err != nil { + return err + } + page.dbedl = next + 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 *DataBoxEdgeDeviceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page DataBoxEdgeDeviceListPage) NotDone() bool { + return !page.dbedl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page DataBoxEdgeDeviceListPage) Response() DataBoxEdgeDeviceList { + return page.dbedl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page DataBoxEdgeDeviceListPage) Values() []DataBoxEdgeDevice { + if page.dbedl.IsEmpty() { + return nil + } + return *page.dbedl.Value +} + +// Creates a new instance of the DataBoxEdgeDeviceListPage type. +func NewDataBoxEdgeDeviceListPage(getNextPage func(context.Context, DataBoxEdgeDeviceList) (DataBoxEdgeDeviceList, error)) DataBoxEdgeDeviceListPage { + return DataBoxEdgeDeviceListPage{fn: getNextPage} +} + +// DataBoxEdgeDevicePatch the Data Box Edge/Gateway device patch. +type DataBoxEdgeDevicePatch struct { + // Tags - The tags attached to the Data Box Edge/Gateway resource. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for DataBoxEdgeDevicePatch. +func (dbedp DataBoxEdgeDevicePatch) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dbedp.Tags != nil { + objectMap["tags"] = dbedp.Tags + } + return json.Marshal(objectMap) +} + +// DataBoxEdgeDeviceProperties the properties of the Data Box Edge/Gateway device. +type DataBoxEdgeDeviceProperties struct { + // DataBoxEdgeDeviceStatus - The status of the Data Box Edge/Gateway device. Possible values include: 'ReadyToSetup', 'Online', 'Offline', 'NeedsAttention', 'Disconnected', 'PartiallyDisconnected' + DataBoxEdgeDeviceStatus DataBoxEdgeDeviceStatus `json:"dataBoxEdgeDeviceStatus,omitempty"` + // SerialNumber - The Serial Number of Data Box Edge/Gateway device. + SerialNumber *string `json:"serialNumber,omitempty"` + // Description - The Description of the Data Box Edge/Gateway device. + Description *string `json:"description,omitempty"` + // ModelDescription - The description of the Data Box Edge/Gateway device model. + ModelDescription *string `json:"modelDescription,omitempty"` + // DeviceType - The type of the Data Box Edge/Gateway device. Possible values include: 'DeviceTypeDataBoxEdgeDevice' + DeviceType DeviceType `json:"deviceType,omitempty"` + // FriendlyName - The Data Box Edge/Gateway device name. + FriendlyName *string `json:"friendlyName,omitempty"` + // Culture - The Data Box Edge/Gateway device culture. + Culture *string `json:"culture,omitempty"` + // DeviceModel - The Data Box Edge/Gateway device model. + DeviceModel *string `json:"deviceModel,omitempty"` + // DeviceSoftwareVersion - The Data Box Edge/Gateway device software version. + DeviceSoftwareVersion *string `json:"deviceSoftwareVersion,omitempty"` + // DeviceLocalCapacity - The Data Box Edge/Gateway device local capacity in MB. + DeviceLocalCapacity *int64 `json:"deviceLocalCapacity,omitempty"` + // TimeZone - The Data Box Edge/Gateway device timezone. + TimeZone *string `json:"timeZone,omitempty"` + // DeviceHcsVersion - The device software version number of the device (eg: 1.2.18105.6). + DeviceHcsVersion *string `json:"deviceHcsVersion,omitempty"` + // ConfiguredRoleTypes - Type of compute roles configured. + ConfiguredRoleTypes *[]RoleTypes `json:"configuredRoleTypes,omitempty"` +} + +// DevicesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DevicesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DevicesCreateOrUpdateFuture) Result(client DevicesClient) (dbed DataBoxEdgeDevice, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.DevicesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if dbed.Response.Response, err = future.GetResult(sender); err == nil && dbed.Response.Response.StatusCode != http.StatusNoContent { + dbed, err = client.CreateOrUpdateResponder(dbed.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesCreateOrUpdateFuture", "Result", dbed.Response.Response, "Failure responding to request") + } + } + return +} + +// DevicesCreateOrUpdateSecuritySettingsFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type DevicesCreateOrUpdateSecuritySettingsFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DevicesCreateOrUpdateSecuritySettingsFuture) Result(client DevicesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesCreateOrUpdateSecuritySettingsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.DevicesCreateOrUpdateSecuritySettingsFuture") + return + } + ar.Response = future.Response() + return +} + +// DevicesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DevicesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DevicesDeleteFuture) Result(client DevicesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.DevicesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// DevicesDownloadUpdatesFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DevicesDownloadUpdatesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DevicesDownloadUpdatesFuture) Result(client DevicesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesDownloadUpdatesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.DevicesDownloadUpdatesFuture") + return + } + ar.Response = future.Response() + return +} + +// DevicesInstallUpdatesFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DevicesInstallUpdatesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DevicesInstallUpdatesFuture) Result(client DevicesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesInstallUpdatesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.DevicesInstallUpdatesFuture") + return + } + ar.Response = future.Response() + return +} + +// DevicesScanForUpdatesFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DevicesScanForUpdatesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DevicesScanForUpdatesFuture) Result(client DevicesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.DevicesScanForUpdatesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.DevicesScanForUpdatesFuture") + return + } + ar.Response = future.Response() + return +} + +// FileEventTrigger trigger details. +type FileEventTrigger struct { + // FileTriggerProperties - File trigger properties. + *FileTriggerProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` + // Kind - Possible values include: 'KindTrigger', 'KindFileEvent', 'KindPeriodicTimerEvent' + Kind KindBasicTrigger `json:"kind,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileEventTrigger. +func (fet FileEventTrigger) MarshalJSON() ([]byte, error) { + fet.Kind = KindFileEvent + objectMap := make(map[string]interface{}) + if fet.FileTriggerProperties != nil { + objectMap["properties"] = fet.FileTriggerProperties + } + if fet.Kind != "" { + objectMap["kind"] = fet.Kind + } + if fet.ID != nil { + objectMap["id"] = fet.ID + } + if fet.Name != nil { + objectMap["name"] = fet.Name + } + if fet.Type != nil { + objectMap["type"] = fet.Type + } + return json.Marshal(objectMap) +} + +// AsFileEventTrigger is the BasicTrigger implementation for FileEventTrigger. +func (fet FileEventTrigger) AsFileEventTrigger() (*FileEventTrigger, bool) { + return &fet, true +} + +// AsPeriodicTimerEventTrigger is the BasicTrigger implementation for FileEventTrigger. +func (fet FileEventTrigger) AsPeriodicTimerEventTrigger() (*PeriodicTimerEventTrigger, bool) { + return nil, false +} + +// AsTrigger is the BasicTrigger implementation for FileEventTrigger. +func (fet FileEventTrigger) AsTrigger() (*Trigger, bool) { + return nil, false +} + +// AsBasicTrigger is the BasicTrigger implementation for FileEventTrigger. +func (fet FileEventTrigger) AsBasicTrigger() (BasicTrigger, bool) { + return &fet, true +} + +// UnmarshalJSON is the custom unmarshaler for FileEventTrigger struct. +func (fet *FileEventTrigger) 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 fileTriggerProperties FileTriggerProperties + err = json.Unmarshal(*v, &fileTriggerProperties) + if err != nil { + return err + } + fet.FileTriggerProperties = &fileTriggerProperties + } + case "kind": + if v != nil { + var kind KindBasicTrigger + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + fet.Kind = kind + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fet.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fet.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fet.Type = &typeVar + } + } + } + + return nil +} + +// FileSourceInfo file source details. +type FileSourceInfo struct { + // ShareID - File share ID. + ShareID *string `json:"shareId,omitempty"` +} + +// FileTriggerProperties file Trigger properties. +type FileTriggerProperties struct { + // SourceInfo - File event source details. + SourceInfo *FileSourceInfo `json:"sourceInfo,omitempty"` + // SinkInfo - Role Sink info. + SinkInfo *RoleSinkInfo `json:"sinkInfo,omitempty"` + // CustomContextTag - Custom context tag, typically used to co-relate the trigger against its usage. Eg. If a PeriodicTimer trigger may be intended for certain specific IOT modules in device, the tag can be the name/image url of the module. + CustomContextTag *string `json:"customContextTag,omitempty"` +} + +// IoTDeviceInfo metadata of IoT device/IoT edge device to be configured. +type IoTDeviceInfo struct { + // DeviceID - Id of the IoT device/edge device. + DeviceID *string `json:"deviceId,omitempty"` + // IoTHostHub - Host name for IoT hub which is associated to the device. + IoTHostHub *string `json:"ioTHostHub,omitempty"` + // Authentication - IoT device authentication info. + Authentication *Authentication `json:"authentication,omitempty"` +} + +// IoTRole compute role. +type IoTRole struct { + // IoTRoleProperties - Properties specific to IoT Role. + *IoTRoleProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` + // Kind - Possible values include: 'KindRole', 'KindIOT' + Kind Kind `json:"kind,omitempty"` +} + +// MarshalJSON is the custom marshaler for IoTRole. +func (itr IoTRole) MarshalJSON() ([]byte, error) { + itr.Kind = KindIOT + objectMap := make(map[string]interface{}) + if itr.IoTRoleProperties != nil { + objectMap["properties"] = itr.IoTRoleProperties + } + if itr.Kind != "" { + objectMap["kind"] = itr.Kind + } + if itr.ID != nil { + objectMap["id"] = itr.ID + } + if itr.Name != nil { + objectMap["name"] = itr.Name + } + if itr.Type != nil { + objectMap["type"] = itr.Type + } + return json.Marshal(objectMap) +} + +// AsIoTRole is the BasicRole implementation for IoTRole. +func (itr IoTRole) AsIoTRole() (*IoTRole, bool) { + return &itr, true +} + +// AsRole is the BasicRole implementation for IoTRole. +func (itr IoTRole) AsRole() (*Role, bool) { + return nil, false +} + +// AsBasicRole is the BasicRole implementation for IoTRole. +func (itr IoTRole) AsBasicRole() (BasicRole, bool) { + return &itr, true +} + +// UnmarshalJSON is the custom unmarshaler for IoTRole struct. +func (itr *IoTRole) 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 ioTRoleProperties IoTRoleProperties + err = json.Unmarshal(*v, &ioTRoleProperties) + if err != nil { + return err + } + itr.IoTRoleProperties = &ioTRoleProperties + } + case "kind": + if v != nil { + var kind Kind + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + itr.Kind = kind + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + itr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + itr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + itr.Type = &typeVar + } + } + } + + return nil +} + +// IoTRoleProperties ioT role properties. +type IoTRoleProperties struct { + // HostPlatform - Host OS which IoT role support. Possible values include: 'Windows', 'Linux' + HostPlatform PlatformType `json:"hostPlatform,omitempty"` + // IoTDeviceDetails - IoT device metadata to which data box edge device needs to be connected. + IoTDeviceDetails *IoTDeviceInfo `json:"ioTDeviceDetails,omitempty"` + // IoTEdgeDeviceDetails - IoT edge device to which the IoT role needs to be configured. + IoTEdgeDeviceDetails *IoTDeviceInfo `json:"ioTEdgeDeviceDetails,omitempty"` + // ShareMappings - Mount points of shares in role(s). + ShareMappings *[]MountPointMap `json:"shareMappings,omitempty"` + // RoleStatus - Role status. Possible values include: 'RoleStatusEnabled', 'RoleStatusDisabled' + RoleStatus RoleStatus `json:"roleStatus,omitempty"` +} + +// Ipv4Config details related to the IPv4 address configuration. +type Ipv4Config struct { + // IPAddress - The IPv4 address of the network adapter. + IPAddress *string `json:"ipAddress,omitempty"` + // Subnet - The IPv4 subnet of the network adapter. + Subnet *string `json:"subnet,omitempty"` + // Gateway - The IPv4 gateway of the network adapter. + Gateway *string `json:"gateway,omitempty"` +} + +// Ipv6Config details related to the IPv6 address configuration. +type Ipv6Config struct { + // IPAddress - The IPv6 address of the network adapter. + IPAddress *string `json:"ipAddress,omitempty"` + // PrefixLength - The IPv6 prefix of the network adapter. + PrefixLength *int32 `json:"prefixLength,omitempty"` + // Gateway - The IPv6 gateway of the network adapter. + Gateway *string `json:"gateway,omitempty"` +} + +// Job a device job. +type Job struct { + autorest.Response `json:"-"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` + // Status - The current status of the job. Possible values include: 'JobStatusInvalid', 'JobStatusRunning', 'JobStatusSucceeded', 'JobStatusFailed', 'JobStatusCanceled', 'JobStatusPaused', 'JobStatusScheduled' + Status JobStatus `json:"status,omitempty"` + // StartTime - The UTC datetime at which the job was started. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The UTC datetime at which the job completed. + EndTime *date.Time `json:"endTime,omitempty"` + // PercentComplete - The percentage of the job that is already complete. + PercentComplete *int32 `json:"percentComplete,omitempty"` + // Error - The Error details. + Error *JobErrorDetails `json:"error,omitempty"` + // JobProperties - The properties of the job. + *JobProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for Job. +func (j Job) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if j.ID != nil { + objectMap["id"] = j.ID + } + if j.Name != nil { + objectMap["name"] = j.Name + } + if j.Type != nil { + objectMap["type"] = j.Type + } + if j.Status != "" { + objectMap["status"] = j.Status + } + if j.StartTime != nil { + objectMap["startTime"] = j.StartTime + } + if j.EndTime != nil { + objectMap["endTime"] = j.EndTime + } + if j.PercentComplete != nil { + objectMap["percentComplete"] = j.PercentComplete + } + if j.Error != nil { + objectMap["error"] = j.Error + } + if j.JobProperties != nil { + objectMap["properties"] = j.JobProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Job struct. +func (j *Job) 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 + } + j.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + j.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + j.Type = &typeVar + } + case "status": + if v != nil { + var status JobStatus + err = json.Unmarshal(*v, &status) + if err != nil { + return err + } + j.Status = status + } + case "startTime": + if v != nil { + var startTime date.Time + err = json.Unmarshal(*v, &startTime) + if err != nil { + return err + } + j.StartTime = &startTime + } + case "endTime": + if v != nil { + var endTime date.Time + err = json.Unmarshal(*v, &endTime) + if err != nil { + return err + } + j.EndTime = &endTime + } + case "percentComplete": + if v != nil { + var percentComplete int32 + err = json.Unmarshal(*v, &percentComplete) + if err != nil { + return err + } + j.PercentComplete = &percentComplete + } + case "error": + if v != nil { + var errorVar JobErrorDetails + err = json.Unmarshal(*v, &errorVar) + if err != nil { + return err + } + j.Error = &errorVar + } + case "properties": + if v != nil { + var jobProperties JobProperties + err = json.Unmarshal(*v, &jobProperties) + if err != nil { + return err + } + j.JobProperties = &jobProperties + } + } + } + + return nil +} + +// JobErrorDetails the job error information containing List of JobErrorItem. +type JobErrorDetails struct { + // ErrorDetails - The error details. + ErrorDetails *[]JobErrorItem `json:"errorDetails,omitempty"` + // Code - The code intended for programmatic access. + Code *string `json:"code,omitempty"` + // Message - The message intended to describe the error in detail. + Message *string `json:"message,omitempty"` +} + +// JobErrorItem the job error items. +type JobErrorItem struct { + // Recommendations - The recommended actions. + Recommendations *[]string `json:"recommendations,omitempty"` + // Code - The code intended for programmatic access. + Code *string `json:"code,omitempty"` + // Message - The message intended to describe the error in detail. + Message *string `json:"message,omitempty"` +} + +// JobProperties the properties for the job. +type JobProperties struct { + // JobType - The type of the job. Possible values include: 'JobTypeInvalid', 'JobTypeScanForUpdates', 'JobTypeDownloadUpdates', 'JobTypeInstallUpdates', 'JobTypeRefreshShare' + JobType JobType `json:"jobType,omitempty"` + // CurrentStage - Current stage of the update operation. Possible values include: 'UpdateOperationStageUnknown', 'UpdateOperationStageInitial', 'UpdateOperationStageScanStarted', 'UpdateOperationStageScanComplete', 'UpdateOperationStageScanFailed', 'UpdateOperationStageDownloadStarted', 'UpdateOperationStageDownloadComplete', 'UpdateOperationStageDownloadFailed', 'UpdateOperationStageInstallStarted', 'UpdateOperationStageInstallComplete', 'UpdateOperationStageInstallFailed', 'UpdateOperationStageRebootInitiated', 'UpdateOperationStageSuccess', 'UpdateOperationStageFailure', 'UpdateOperationStageRescanStarted', 'UpdateOperationStageRescanComplete', 'UpdateOperationStageRescanFailed' + CurrentStage UpdateOperationStage `json:"currentStage,omitempty"` + // DownloadProgress - The download progress. + DownloadProgress *UpdateDownloadProgress `json:"downloadProgress,omitempty"` + // InstallProgress - The install progress. + InstallProgress *UpdateInstallProgress `json:"installProgress,omitempty"` + // TotalRefreshErrors - Total number of errors encountered during the refresh process. + TotalRefreshErrors *int32 `json:"totalRefreshErrors,omitempty"` + // ErrorManifestFile - Local Share/Remote Container relative path to the error manifest file of the refresh. + ErrorManifestFile *string `json:"errorManifestFile,omitempty"` + // ShareID - ARM id of the Share on which the Refresh operation was done. + ShareID *string `json:"shareId,omitempty"` + // Folder - If only subfolders need to be refreshed, then the sub folder path inside the share. Empty otherwise. + Folder *string `json:"folder,omitempty"` +} + +// MetricDimensionV1 metric Dimension v1. +type MetricDimensionV1 struct { + // Name - Name of the metrics dimension. + Name *string `json:"name,omitempty"` + // DisplayName - Display name of the metrics dimension. + DisplayName *string `json:"displayName,omitempty"` + // ToBeExportedForShoebox - To be exported to shoe box. + ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` +} + +// MetricSpecificationV1 metric specification version 1. +type MetricSpecificationV1 struct { + // Name - Name of the metric. + Name *string `json:"name,omitempty"` + // DisplayName - Display name of the metric. + DisplayName *string `json:"displayName,omitempty"` + // DisplayDescription - Description of the metric to be displayed. + DisplayDescription *string `json:"displayDescription,omitempty"` + // Unit - Metric units. Possible values include: 'NotSpecified', 'Percent', 'Count', 'Seconds', 'Milliseconds', 'Bytes', 'BytesPerSecond', 'CountPerSecond' + Unit MetricUnit `json:"unit,omitempty"` + // AggregationType - Metric aggregation type. Possible values include: 'MetricAggregationTypeNotSpecified', 'MetricAggregationTypeNone', 'MetricAggregationTypeAverage', 'MetricAggregationTypeMinimum', 'MetricAggregationTypeMaximum', 'MetricAggregationTypeTotal', 'MetricAggregationTypeCount' + AggregationType MetricAggregationType `json:"aggregationType,omitempty"` + // Dimensions - Metric dimensions, other than default dimension which is resource. + Dimensions *[]MetricDimensionV1 `json:"dimensions,omitempty"` + // FillGapWithZero - set true to fill the gaps with zero. + FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` + // Category - Metric category. Possible values include: 'Capacity', 'Transaction' + Category MetricCategory `json:"category,omitempty"` + // ResourceIDDimensionNameOverride - Resource name override. + ResourceIDDimensionNameOverride *string `json:"resourceIdDimensionNameOverride,omitempty"` + // SupportedTimeGrainTypes - Support granularity of metrics. + SupportedTimeGrainTypes *[]TimeGrain `json:"supportedTimeGrainTypes,omitempty"` + // SupportedAggregationTypes - Support metric aggregation type. + SupportedAggregationTypes *[]MetricAggregationType `json:"supportedAggregationTypes,omitempty"` +} + +// MountPointMap the share mount point. +type MountPointMap struct { + // ShareID - ID of the share which is mounted to role VM. + ShareID *string `json:"shareId,omitempty"` + // RoleID - ID of the role to which share is mounted. + RoleID *string `json:"roleId,omitempty"` + // MountPoint - Mount point for the share. + MountPoint *string `json:"mountPoint,omitempty"` + // RoleType - Role type. Possible values include: 'IOT', 'ASA', 'Functions', 'Cognitive' + RoleType RoleTypes `json:"roleType,omitempty"` +} + +// NetworkAdapter represents the networkAdapter on a device. +type NetworkAdapter struct { + // AdapterID - Instance ID of network adapter. + AdapterID *string `json:"adapterId,omitempty"` + // AdapterPosition - Hardware position of network adapter. + AdapterPosition *NetworkAdapterPosition `json:"adapterPosition,omitempty"` + // Index - Logical index of the adapter. + Index *int32 `json:"index,omitempty"` + // NodeID - Node ID of the network adapter. + NodeID *string `json:"nodeId,omitempty"` + // NetworkAdapterName - Network Adapter Name. + NetworkAdapterName *string `json:"networkAdapterName,omitempty"` + // Label - Hardware label for the adapter. + Label *string `json:"label,omitempty"` + // MacAddress - MAC Address. + MacAddress *string `json:"macAddress,omitempty"` + // LinkSpeed - Link Speed. + LinkSpeed *int64 `json:"linkSpeed,omitempty"` + // Status - Value indicating whether this adapter is valid. Possible values include: 'Inactive', 'Active' + Status NetworkAdapterStatus `json:"status,omitempty"` + // RdmaStatus - Value indicating whether this adapter is RDMA Capable. Possible values include: 'Incapable', 'Capable' + RdmaStatus NetworkAdapterRDMAStatus `json:"rdmaStatus,omitempty"` + // DhcpStatus - Value indicating whether this adapter has DHCP Enabled. Possible values include: 'NetworkAdapterDHCPStatusDisabled', 'NetworkAdapterDHCPStatusEnabled' + DhcpStatus NetworkAdapterDHCPStatus `json:"dhcpStatus,omitempty"` + // Ipv4Configuration - The IPv4 configuration of the network adapter. + Ipv4Configuration *Ipv4Config `json:"ipv4Configuration,omitempty"` + // Ipv6Configuration - The IPv6 configuration of the network adapter. + Ipv6Configuration *Ipv6Config `json:"ipv6Configuration,omitempty"` + // Ipv6LinkLocalAddress - The IPv6 local address. + Ipv6LinkLocalAddress *string `json:"ipv6LinkLocalAddress,omitempty"` + // DNSServers - The list DNS Servers of the device. + DNSServers *[]string `json:"dnsServers,omitempty"` +} + +// NetworkAdapterPosition the network adapter position. +type NetworkAdapterPosition struct { + // NetworkGroup - The network group. Possible values include: 'NetworkGroupNone', 'NetworkGroupNonRDMA', 'NetworkGroupRDMA' + NetworkGroup NetworkGroup `json:"networkGroup,omitempty"` + // Port - The port. + Port *int32 `json:"port,omitempty"` +} + +// NetworkSettings the NetworkSettings of a device. +type NetworkSettings struct { + autorest.Response `json:"-"` + // NetworkSettingsProperties - The properties of network settings of a device. + *NetworkSettingsProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for NetworkSettings. +func (ns NetworkSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ns.NetworkSettingsProperties != nil { + objectMap["properties"] = ns.NetworkSettingsProperties + } + if ns.ID != nil { + objectMap["id"] = ns.ID + } + if ns.Name != nil { + objectMap["name"] = ns.Name + } + if ns.Type != nil { + objectMap["type"] = ns.Type + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for NetworkSettings struct. +func (ns *NetworkSettings) 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 networkSettingsProperties NetworkSettingsProperties + err = json.Unmarshal(*v, &networkSettingsProperties) + if err != nil { + return err + } + ns.NetworkSettingsProperties = &networkSettingsProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ns.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ns.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ns.Type = &typeVar + } + } + } + + return nil +} + +// NetworkSettingsProperties the properties of NetworkSettings. +type NetworkSettingsProperties struct { + // NetworkAdapters - The network adapter list on the device. + NetworkAdapters *[]NetworkAdapter `json:"networkAdapters,omitempty"` +} + +// Operation operations. +type Operation struct { + // Name - Name of the operation. + Name *string `json:"name,omitempty"` + // Display - Properties to displayed for the operation. + Display *OperationDisplay `json:"display,omitempty"` + // Origin - Origin of the operation. + Origin *string `json:"origin,omitempty"` + // OperationProperties - Operation properties. + *OperationProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if o.Name != nil { + objectMap["name"] = o.Name + } + if o.Display != nil { + objectMap["display"] = o.Display + } + if o.Origin != nil { + objectMap["origin"] = o.Origin + } + if o.OperationProperties != nil { + objectMap["properties"] = o.OperationProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Operation struct. +func (o *Operation) 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 + } + o.Name = &name + } + case "display": + if v != nil { + var display OperationDisplay + err = json.Unmarshal(*v, &display) + if err != nil { + return err + } + o.Display = &display + } + case "origin": + if v != nil { + var origin string + err = json.Unmarshal(*v, &origin) + if err != nil { + return err + } + o.Origin = &origin + } + case "properties": + if v != nil { + var operationProperties OperationProperties + err = json.Unmarshal(*v, &operationProperties) + if err != nil { + return err + } + o.OperationProperties = &operationProperties + } + } + } + + return nil +} + +// OperationDisplay operation display properties. +type OperationDisplay struct { + // Provider - Provider name. + Provider *string `json:"provider,omitempty"` + // Resource - The type of resource in which the operation is performed. + Resource *string `json:"resource,omitempty"` + // Operation - Operation to be performed on the resource. + Operation *string `json:"operation,omitempty"` + // Description - Description of the operation to be performed. + Description *string `json:"description,omitempty"` +} + +// OperationProperties operations Properties. +type OperationProperties struct { + // ServiceSpecification - Service specification. + ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` +} + +// OperationsList class for set of operations used for discovery of available provider operations. +type OperationsList struct { + autorest.Response `json:"-"` + // Value - The value. + Value *[]Operation `json:"value,omitempty"` + // NextLink - Link to the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// OperationsListIterator provides access to a complete listing of Operation values. +type OperationsListIterator struct { + i int + page OperationsListPage +} + +// 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 *OperationsListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsListIterator.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 *OperationsListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OperationsListIterator) 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 OperationsListIterator) Response() OperationsList { + 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 OperationsListIterator) Value() Operation { + if !iter.page.NotDone() { + return Operation{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OperationsListIterator type. +func NewOperationsListIterator(page OperationsListPage) OperationsListIterator { + return OperationsListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ol OperationsList) IsEmpty() bool { + return ol.Value == nil || len(*ol.Value) == 0 +} + +// operationsListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ol OperationsList) operationsListPreparer(ctx context.Context) (*http.Request, error) { + if ol.NextLink == nil || len(to.String(ol.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ol.NextLink))) +} + +// OperationsListPage contains a page of Operation values. +type OperationsListPage struct { + fn func(context.Context, OperationsList) (OperationsList, error) + ol OperationsList +} + +// 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 *OperationsListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.ol) + if err != nil { + return err + } + page.ol = next + 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 *OperationsListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OperationsListPage) NotDone() bool { + return !page.ol.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OperationsListPage) Response() OperationsList { + return page.ol +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OperationsListPage) Values() []Operation { + if page.ol.IsEmpty() { + return nil + } + return *page.ol.Value +} + +// Creates a new instance of the OperationsListPage type. +func NewOperationsListPage(getNextPage func(context.Context, OperationsList) (OperationsList, error)) OperationsListPage { + return OperationsListPage{fn: getNextPage} +} + +// Order the order details. +type Order struct { + autorest.Response `json:"-"` + // OrderProperties - The order properties. + *OrderProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Order. +func (o Order) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if o.OrderProperties != nil { + objectMap["properties"] = o.OrderProperties + } + if o.ID != nil { + objectMap["id"] = o.ID + } + if o.Name != nil { + objectMap["name"] = o.Name + } + if o.Type != nil { + objectMap["type"] = o.Type + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Order struct. +func (o *Order) 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 orderProperties OrderProperties + err = json.Unmarshal(*v, &orderProperties) + if err != nil { + return err + } + o.OrderProperties = &orderProperties + } + 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 + } + } + } + + return nil +} + +// OrderList list of order entities. +type OrderList struct { + autorest.Response `json:"-"` + // Value - The list of orders. + Value *[]Order `json:"value,omitempty"` + // NextLink - Link to the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// OrderListIterator provides access to a complete listing of Order values. +type OrderListIterator struct { + i int + page OrderListPage +} + +// 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 *OrderListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OrderListIterator.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 *OrderListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OrderListIterator) 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 OrderListIterator) Response() OrderList { + 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 OrderListIterator) Value() Order { + if !iter.page.NotDone() { + return Order{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OrderListIterator type. +func NewOrderListIterator(page OrderListPage) OrderListIterator { + return OrderListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ol OrderList) IsEmpty() bool { + return ol.Value == nil || len(*ol.Value) == 0 +} + +// orderListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ol OrderList) orderListPreparer(ctx context.Context) (*http.Request, error) { + if ol.NextLink == nil || len(to.String(ol.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ol.NextLink))) +} + +// OrderListPage contains a page of Order values. +type OrderListPage struct { + fn func(context.Context, OrderList) (OrderList, error) + ol OrderList +} + +// 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 *OrderListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OrderListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.ol) + if err != nil { + return err + } + page.ol = next + 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 *OrderListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OrderListPage) NotDone() bool { + return !page.ol.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OrderListPage) Response() OrderList { + return page.ol +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OrderListPage) Values() []Order { + if page.ol.IsEmpty() { + return nil + } + return *page.ol.Value +} + +// Creates a new instance of the OrderListPage type. +func NewOrderListPage(getNextPage func(context.Context, OrderList) (OrderList, error)) OrderListPage { + return OrderListPage{fn: getNextPage} +} + +// OrderProperties order Properties. +type OrderProperties struct { + // ContactInformation - The contact details. + ContactInformation *ContactDetails `json:"contactInformation,omitempty"` + // ShippingAddress - The shipping address. + ShippingAddress *Address `json:"shippingAddress,omitempty"` + // ChangeStatusTo - Current status of the Order. + ChangeStatusTo *OrderStatus `json:"changeStatusTo,omitempty"` + // OrderHistory - List of status changes in the order. + OrderHistory *[]OrderStatus `json:"orderHistory,omitempty"` + // SerialNumber - Serial number of the device. + SerialNumber *string `json:"serialNumber,omitempty"` + // DeliveryTrackingInfo - Tracking information related to the packages being delivered to the customer whether original or replacement devices. + DeliveryTrackingInfo *[]TrackingInfo `json:"deliveryTrackingInfo,omitempty"` + // ReturnTrackingInfo - Tracking information related to the package being returned from the customer whether original or replacement devices. + ReturnTrackingInfo *[]TrackingInfo `json:"returnTrackingInfo,omitempty"` +} + +// OrdersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type OrdersCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *OrdersCreateOrUpdateFuture) Result(client OrdersClient) (o Order, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OrdersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.OrdersCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if o.Response.Response, err = future.GetResult(sender); err == nil && o.Response.Response.StatusCode != http.StatusNoContent { + o, err = client.CreateOrUpdateResponder(o.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OrdersCreateOrUpdateFuture", "Result", o.Response.Response, "Failure responding to request") + } + } + return +} + +// OrdersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type OrdersDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *OrdersDeleteFuture) Result(client OrdersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OrdersDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.OrdersDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// OrderStatus represents a single status change. +type OrderStatus struct { + // Status - Status of the order pertaining to the allowed StatusTypes. Possible values include: 'Untracked', 'AwaitingFulfilment', 'AwaitingPreparation', 'AwaitingShipment', 'Shipped', 'Arriving', 'Delivered', 'ReplacementRequested', 'LostDevice', 'Declined', 'ReturnInitiated', 'AwaitingReturnShipment', 'ShippedBack', 'CollectedAtMicrosoft' + Status StatusTypes `json:"status,omitempty"` + // UpdateDateTime - Time of status update. + UpdateDateTime *date.Time `json:"updateDateTime,omitempty"` + // Comments - Comments related to this status change. + Comments *string `json:"comments,omitempty"` +} + +// PeriodicTimerEventTrigger trigger details. +type PeriodicTimerEventTrigger struct { + // PeriodicTimerProperties - Periodic timer trigger properties. + *PeriodicTimerProperties `json:"properties,omitempty"` + // Kind - Possible values include: 'KindTrigger', 'KindFileEvent', 'KindPeriodicTimerEvent' + Kind KindBasicTrigger `json:"kind,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PeriodicTimerEventTrigger. +func (ptet PeriodicTimerEventTrigger) MarshalJSON() ([]byte, error) { + ptet.Kind = KindPeriodicTimerEvent + objectMap := make(map[string]interface{}) + if ptet.PeriodicTimerProperties != nil { + objectMap["properties"] = ptet.PeriodicTimerProperties + } + if ptet.Kind != "" { + objectMap["kind"] = ptet.Kind + } + if ptet.ID != nil { + objectMap["id"] = ptet.ID + } + if ptet.Name != nil { + objectMap["name"] = ptet.Name + } + if ptet.Type != nil { + objectMap["type"] = ptet.Type + } + return json.Marshal(objectMap) +} + +// AsFileEventTrigger is the BasicTrigger implementation for PeriodicTimerEventTrigger. +func (ptet PeriodicTimerEventTrigger) AsFileEventTrigger() (*FileEventTrigger, bool) { + return nil, false +} + +// AsPeriodicTimerEventTrigger is the BasicTrigger implementation for PeriodicTimerEventTrigger. +func (ptet PeriodicTimerEventTrigger) AsPeriodicTimerEventTrigger() (*PeriodicTimerEventTrigger, bool) { + return &ptet, true +} + +// AsTrigger is the BasicTrigger implementation for PeriodicTimerEventTrigger. +func (ptet PeriodicTimerEventTrigger) AsTrigger() (*Trigger, bool) { + return nil, false +} + +// AsBasicTrigger is the BasicTrigger implementation for PeriodicTimerEventTrigger. +func (ptet PeriodicTimerEventTrigger) AsBasicTrigger() (BasicTrigger, bool) { + return &ptet, true +} + +// UnmarshalJSON is the custom unmarshaler for PeriodicTimerEventTrigger struct. +func (ptet *PeriodicTimerEventTrigger) 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 periodicTimerProperties PeriodicTimerProperties + err = json.Unmarshal(*v, &periodicTimerProperties) + if err != nil { + return err + } + ptet.PeriodicTimerProperties = &periodicTimerProperties + } + case "kind": + if v != nil { + var kind KindBasicTrigger + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + ptet.Kind = kind + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ptet.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ptet.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ptet.Type = &typeVar + } + } + } + + return nil +} + +// PeriodicTimerProperties periodic Timer Trigger properties. +type PeriodicTimerProperties struct { + // SourceInfo - Periodic timer details. + SourceInfo *PeriodicTimerSourceInfo `json:"sourceInfo,omitempty"` + // SinkInfo - Role Sink info. + SinkInfo *RoleSinkInfo `json:"sinkInfo,omitempty"` + // CustomContextTag - Custom context tag, typically used to co-relate the trigger against its usage. Eg. If a PeriodicTimer trigger may be intended for certain specific IOT modules in device, the tag can be the name/image url of the module. + CustomContextTag *string `json:"customContextTag,omitempty"` +} + +// PeriodicTimerSourceInfo periodic timer event source. +type PeriodicTimerSourceInfo struct { + // StartTime - Time time [UTC] of the day, from which the trigger will be valid. Schedule will be computed with reference to the time specified. + StartTime *date.Time `json:"startTime,omitempty"` + // Schedule - Periodic frequency at which timer event needs to be raised. Supports Daily, Hourly, Minutes and seconds. + Schedule *string `json:"schedule,omitempty"` + // Topic - Topic with which periodic events needs to be published to IOT device. + Topic *string `json:"topic,omitempty"` +} + +// RawCertificateData raw Certificate Data. +type RawCertificateData struct { + // AuthenticationType - The authentication type. Possible values include: 'Invalid', 'AzureActiveDirectory' + AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` + // Certificate - The base64 encoded certificate raw data. + Certificate *string `json:"certificate,omitempty"` +} + +// RefreshDetails fields for tracking refresh job on the share. +type RefreshDetails struct { + // InProgressRefreshJobID - If a RefreshShare job is currently inprogress on this share - this field indicates the ArmId of that job. Empty otherwise. + InProgressRefreshJobID *string `json:"inProgressRefreshJobId,omitempty"` + // LastCompletedRefreshJobTimeInUTC - Indicates the job completed time of the last refresh job on this particular share, if any. + // This could be a failed job or a successful job. + LastCompletedRefreshJobTimeInUTC *date.Time `json:"lastCompletedRefreshJobTimeInUTC,omitempty"` + // ErrorManifestFile - Indicates the relative path of the error xml for the last refresh job on this particular share, if any. + // This could be a failed job or a successful job. + ErrorManifestFile *string `json:"errorManifestFile,omitempty"` + // LastJob - Indicates the id of the last refresh job on this particular share,if any. + // This could be a failed job or a successful job. + LastJob *string `json:"lastJob,omitempty"` +} + +// BasicRole compute role. +type BasicRole interface { + AsIoTRole() (*IoTRole, bool) + AsRole() (*Role, bool) +} + +// Role compute role. +type Role struct { + autorest.Response `json:"-"` + // Kind - Possible values include: 'KindRole', 'KindIOT' + Kind Kind `json:"kind,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +func unmarshalBasicRole(body []byte) (BasicRole, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["kind"] { + case string(KindIOT): + var itr IoTRole + err := json.Unmarshal(body, &itr) + return itr, err + default: + var r Role + err := json.Unmarshal(body, &r) + return r, err + } +} +func unmarshalBasicRoleArray(body []byte) ([]BasicRole, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + rArray := make([]BasicRole, len(rawMessages)) + + for index, rawMessage := range rawMessages { + r, err := unmarshalBasicRole(*rawMessage) + if err != nil { + return nil, err + } + rArray[index] = r + } + return rArray, nil +} + +// MarshalJSON is the custom marshaler for Role. +func (r Role) MarshalJSON() ([]byte, error) { + r.Kind = KindRole + objectMap := make(map[string]interface{}) + if r.Kind != "" { + objectMap["kind"] = r.Kind + } + if r.ID != nil { + objectMap["id"] = r.ID + } + if r.Name != nil { + objectMap["name"] = r.Name + } + if r.Type != nil { + objectMap["type"] = r.Type + } + return json.Marshal(objectMap) +} + +// AsIoTRole is the BasicRole implementation for Role. +func (r Role) AsIoTRole() (*IoTRole, bool) { + return nil, false +} + +// AsRole is the BasicRole implementation for Role. +func (r Role) AsRole() (*Role, bool) { + return &r, true +} + +// AsBasicRole is the BasicRole implementation for Role. +func (r Role) AsBasicRole() (BasicRole, bool) { + return &r, true +} + +// RoleList collection of all role on the data box edge device. +type RoleList struct { + autorest.Response `json:"-"` + // Value - The Value. + Value *[]BasicRole `json:"value,omitempty"` + // NextLink - Link to the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for RoleList struct. +func (rl *RoleList) 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 "value": + if v != nil { + value, err := unmarshalBasicRoleArray(*v) + if err != nil { + return err + } + rl.Value = &value + } + case "nextLink": + if v != nil { + var nextLink string + err = json.Unmarshal(*v, &nextLink) + if err != nil { + return err + } + rl.NextLink = &nextLink + } + } + } + + return nil +} + +// RoleListIterator provides access to a complete listing of Role values. +type RoleListIterator struct { + i int + page RoleListPage +} + +// 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 *RoleListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoleListIterator.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 *RoleListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RoleListIterator) 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 RoleListIterator) Response() RoleList { + 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 RoleListIterator) Value() BasicRole { + if !iter.page.NotDone() { + return Role{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RoleListIterator type. +func NewRoleListIterator(page RoleListPage) RoleListIterator { + return RoleListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rl RoleList) IsEmpty() bool { + return rl.Value == nil || len(*rl.Value) == 0 +} + +// roleListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rl RoleList) roleListPreparer(ctx context.Context) (*http.Request, error) { + if rl.NextLink == nil || len(to.String(rl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rl.NextLink))) +} + +// RoleListPage contains a page of BasicRole values. +type RoleListPage struct { + fn func(context.Context, RoleList) (RoleList, error) + rl RoleList +} + +// 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 *RoleListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RoleListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.rl) + if err != nil { + return err + } + page.rl = next + 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 *RoleListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RoleListPage) NotDone() bool { + return !page.rl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RoleListPage) Response() RoleList { + return page.rl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RoleListPage) Values() []BasicRole { + if page.rl.IsEmpty() { + return nil + } + return *page.rl.Value +} + +// Creates a new instance of the RoleListPage type. +func NewRoleListPage(getNextPage func(context.Context, RoleList) (RoleList, error)) RoleListPage { + return RoleListPage{fn: getNextPage} +} + +// RoleModel ... +type RoleModel struct { + autorest.Response `json:"-"` + Value BasicRole `json:"value,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for RoleModel struct. +func (rm *RoleModel) UnmarshalJSON(body []byte) error { + r, err := unmarshalBasicRole(body) + if err != nil { + return err + } + rm.Value = r + + return nil +} + +// RolesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type RolesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RolesCreateOrUpdateFuture) Result(client RolesClient) (rm RoleModel, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.RolesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.RolesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if rm.Response.Response, err = future.GetResult(sender); err == nil && rm.Response.Response.StatusCode != http.StatusNoContent { + rm, err = client.CreateOrUpdateResponder(rm.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.RolesCreateOrUpdateFuture", "Result", rm.Response.Response, "Failure responding to request") + } + } + return +} + +// RolesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type RolesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *RolesDeleteFuture) Result(client RolesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.RolesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.RolesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// RoleSinkInfo compute role against which events will be raised. +type RoleSinkInfo struct { + // RoleID - Compute role ID. + RoleID *string `json:"roleId,omitempty"` +} + +// SecuritySettings the security settings of a device. +type SecuritySettings struct { + // SecuritySettingsProperties - Properties of the security settings. + *SecuritySettingsProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecuritySettings. +func (ss SecuritySettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ss.SecuritySettingsProperties != nil { + objectMap["properties"] = ss.SecuritySettingsProperties + } + if ss.ID != nil { + objectMap["id"] = ss.ID + } + if ss.Name != nil { + objectMap["name"] = ss.Name + } + if ss.Type != nil { + objectMap["type"] = ss.Type + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SecuritySettings struct. +func (ss *SecuritySettings) 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 securitySettingsProperties SecuritySettingsProperties + err = json.Unmarshal(*v, &securitySettingsProperties) + if err != nil { + return err + } + ss.SecuritySettingsProperties = &securitySettingsProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ss.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ss.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ss.Type = &typeVar + } + } + } + + return nil +} + +// SecuritySettingsProperties the properties of security settings. +type SecuritySettingsProperties struct { + // DeviceAdminPassword - Device administrator password as an encrypted string (encrypted using RSA PKCS #1) is used to log into the local web UI of the device. Actual password could have at least 8 characters that are a combination of uppercase, lowercase, numeric, and special characters. + DeviceAdminPassword *AsymmetricEncryptedSecret `json:"deviceAdminPassword,omitempty"` +} + +// ServiceSpecification service specification. +type ServiceSpecification struct { + // MetricSpecifications - Metric specification as defined by shoebox. + MetricSpecifications *[]MetricSpecificationV1 `json:"metricSpecifications,omitempty"` +} + +// Share represents a share on the Data Box Edge/Gateway device. +type Share struct { + autorest.Response `json:"-"` + // ShareProperties - The share properties. + *ShareProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Share. +func (s Share) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if s.ShareProperties != nil { + objectMap["properties"] = s.ShareProperties + } + if s.ID != nil { + objectMap["id"] = s.ID + } + if s.Name != nil { + objectMap["name"] = s.Name + } + if s.Type != nil { + objectMap["type"] = s.Type + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Share struct. +func (s *Share) 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 shareProperties ShareProperties + err = json.Unmarshal(*v, &shareProperties) + if err != nil { + return err + } + s.ShareProperties = &shareProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + s.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + s.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + s.Type = &typeVar + } + } + } + + return nil +} + +// ShareAccessRight specifies the mapping between this particular user and the type of access he has on +// shares on this device. +type ShareAccessRight struct { + // ShareID - Id of the share. + ShareID *string `json:"shareId,omitempty"` + // AccessType - Type of access to be allowed on the share for this user. Possible values include: 'Change', 'Read', 'Custom' + AccessType ShareAccessType `json:"accessType,omitempty"` +} + +// ShareList collection of all shares on the Data Box Edge/Gateway device. +type ShareList struct { + autorest.Response `json:"-"` + // Value - The list of shares. + Value *[]Share `json:"value,omitempty"` + // NextLink - Link to the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ShareListIterator provides access to a complete listing of Share values. +type ShareListIterator struct { + i int + page ShareListPage +} + +// 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 *ShareListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ShareListIterator.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 *ShareListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ShareListIterator) 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 ShareListIterator) Response() ShareList { + 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 ShareListIterator) Value() Share { + if !iter.page.NotDone() { + return Share{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ShareListIterator type. +func NewShareListIterator(page ShareListPage) ShareListIterator { + return ShareListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (sl ShareList) IsEmpty() bool { + return sl.Value == nil || len(*sl.Value) == 0 +} + +// shareListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (sl ShareList) shareListPreparer(ctx context.Context) (*http.Request, error) { + if sl.NextLink == nil || len(to.String(sl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(sl.NextLink))) +} + +// ShareListPage contains a page of Share values. +type ShareListPage struct { + fn func(context.Context, ShareList) (ShareList, error) + sl ShareList +} + +// 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 *ShareListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ShareListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.sl) + if err != nil { + return err + } + page.sl = next + 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 *ShareListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ShareListPage) NotDone() bool { + return !page.sl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ShareListPage) Response() ShareList { + return page.sl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ShareListPage) Values() []Share { + if page.sl.IsEmpty() { + return nil + } + return *page.sl.Value +} + +// Creates a new instance of the ShareListPage type. +func NewShareListPage(getNextPage func(context.Context, ShareList) (ShareList, error)) ShareListPage { + return ShareListPage{fn: getNextPage} +} + +// ShareProperties the share properties. +type ShareProperties struct { + // Description - Description for the share. + Description *string `json:"description,omitempty"` + // ShareStatus - Current status of the share. Possible values include: 'ShareStatusOnline', 'ShareStatusOffline' + ShareStatus ShareStatus `json:"shareStatus,omitempty"` + // MonitoringStatus - Current monitoring status of the share. Possible values include: 'Enabled', 'Disabled' + MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"` + // AzureContainerInfo - Azure container mapping for the share. + AzureContainerInfo *AzureContainerInfo `json:"azureContainerInfo,omitempty"` + // AccessProtocol - Access protocol to be used by the share. Possible values include: 'SMB', 'NFS' + AccessProtocol ShareAccessProtocol `json:"accessProtocol,omitempty"` + // UserAccessRights - Mapping of Users and corresponding access rights on the share (mandatory for SMB protocol). + UserAccessRights *[]UserAccessRight `json:"userAccessRights,omitempty"` + // ClientAccessRights - List of IP addresses and corresponding access rights on the share(mandatory for NFS protocol). + ClientAccessRights *[]ClientAccessRight `json:"clientAccessRights,omitempty"` + // RefreshDetails - Details of the refresh job on this share. + RefreshDetails *RefreshDetails `json:"refreshDetails,omitempty"` + // ShareMappings - Share mount point to the role. + ShareMappings *[]MountPointMap `json:"shareMappings,omitempty"` + // DataPolicy - Data policy of the share. Possible values include: 'Cloud', 'Local' + DataPolicy DataPolicy `json:"dataPolicy,omitempty"` +} + +// SharesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SharesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SharesCreateOrUpdateFuture) Result(client SharesClient) (s Share, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.SharesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { + s, err = client.CreateOrUpdateResponder(s.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesCreateOrUpdateFuture", "Result", s.Response.Response, "Failure responding to request") + } + } + return +} + +// SharesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type SharesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SharesDeleteFuture) Result(client SharesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.SharesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// SharesRefreshFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type SharesRefreshFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *SharesRefreshFuture) Result(client SharesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesRefreshFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.SharesRefreshFuture") + return + } + ar.Response = future.Response() + return +} + +// Sku the SKU type. +type Sku struct { + // Name - Sku name. Possible values include: 'Gateway', 'Edge' + Name SkuName `json:"name,omitempty"` + // Tier - The SKU tier. This is based on the SKU name. Possible values include: 'Standard' + Tier SkuTier `json:"tier,omitempty"` +} + +// StorageAccountCredential the storage account credential. +type StorageAccountCredential struct { + autorest.Response `json:"-"` + // StorageAccountCredentialProperties - The storage account credential properties. + *StorageAccountCredentialProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for StorageAccountCredential. +func (sac StorageAccountCredential) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sac.StorageAccountCredentialProperties != nil { + objectMap["properties"] = sac.StorageAccountCredentialProperties + } + if sac.ID != nil { + objectMap["id"] = sac.ID + } + if sac.Name != nil { + objectMap["name"] = sac.Name + } + if sac.Type != nil { + objectMap["type"] = sac.Type + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for StorageAccountCredential struct. +func (sac *StorageAccountCredential) 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 storageAccountCredentialProperties StorageAccountCredentialProperties + err = json.Unmarshal(*v, &storageAccountCredentialProperties) + if err != nil { + return err + } + sac.StorageAccountCredentialProperties = &storageAccountCredentialProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + sac.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sac.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sac.Type = &typeVar + } + } + } + + return nil +} + +// StorageAccountCredentialList the collection of storage account credential entities. +type StorageAccountCredentialList struct { + autorest.Response `json:"-"` + // Value - The value. + Value *[]StorageAccountCredential `json:"value,omitempty"` + // NextLink - Link to the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// StorageAccountCredentialListIterator provides access to a complete listing of StorageAccountCredential +// values. +type StorageAccountCredentialListIterator struct { + i int + page StorageAccountCredentialListPage +} + +// 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 *StorageAccountCredentialListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/StorageAccountCredentialListIterator.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 *StorageAccountCredentialListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter StorageAccountCredentialListIterator) 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 StorageAccountCredentialListIterator) Response() StorageAccountCredentialList { + 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 StorageAccountCredentialListIterator) Value() StorageAccountCredential { + if !iter.page.NotDone() { + return StorageAccountCredential{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the StorageAccountCredentialListIterator type. +func NewStorageAccountCredentialListIterator(page StorageAccountCredentialListPage) StorageAccountCredentialListIterator { + return StorageAccountCredentialListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (sacl StorageAccountCredentialList) IsEmpty() bool { + return sacl.Value == nil || len(*sacl.Value) == 0 +} + +// storageAccountCredentialListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (sacl StorageAccountCredentialList) storageAccountCredentialListPreparer(ctx context.Context) (*http.Request, error) { + if sacl.NextLink == nil || len(to.String(sacl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(sacl.NextLink))) +} + +// StorageAccountCredentialListPage contains a page of StorageAccountCredential values. +type StorageAccountCredentialListPage struct { + fn func(context.Context, StorageAccountCredentialList) (StorageAccountCredentialList, error) + sacl StorageAccountCredentialList +} + +// 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 *StorageAccountCredentialListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/StorageAccountCredentialListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.sacl) + if err != nil { + return err + } + page.sacl = next + 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 *StorageAccountCredentialListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page StorageAccountCredentialListPage) NotDone() bool { + return !page.sacl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page StorageAccountCredentialListPage) Response() StorageAccountCredentialList { + return page.sacl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page StorageAccountCredentialListPage) Values() []StorageAccountCredential { + if page.sacl.IsEmpty() { + return nil + } + return *page.sacl.Value +} + +// Creates a new instance of the StorageAccountCredentialListPage type. +func NewStorageAccountCredentialListPage(getNextPage func(context.Context, StorageAccountCredentialList) (StorageAccountCredentialList, error)) StorageAccountCredentialListPage { + return StorageAccountCredentialListPage{fn: getNextPage} +} + +// StorageAccountCredentialProperties the storage account credential properties. +type StorageAccountCredentialProperties struct { + // Alias - Alias for the storage account. + Alias *string `json:"alias,omitempty"` + // UserName - UserName for the storage account. + UserName *string `json:"userName,omitempty"` + // AccountKey - Encrypted storage key. + AccountKey *AsymmetricEncryptedSecret `json:"accountKey,omitempty"` + // ConnectionString - ConnectionString for the storage account. This needs to be specified if UserName/AccountKey are not specified. + ConnectionString *string `json:"connectionString,omitempty"` + // SslStatus - Signifies whether SSL needs to be enabled or not. Possible values include: 'SSLStatusEnabled', 'SSLStatusDisabled' + SslStatus SSLStatus `json:"sslStatus,omitempty"` + // BlobDomainName - Blob end point for private clouds. + BlobDomainName *string `json:"blobDomainName,omitempty"` + // AccountType - Type of storage accessed on the storage account. Possible values include: 'GeneralPurposeStorage', 'BlobStorage' + AccountType AccountType `json:"accountType,omitempty"` +} + +// StorageAccountCredentialsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type StorageAccountCredentialsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *StorageAccountCredentialsCreateOrUpdateFuture) Result(client StorageAccountCredentialsClient) (sac StorageAccountCredential, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.StorageAccountCredentialsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if sac.Response.Response, err = future.GetResult(sender); err == nil && sac.Response.Response.StatusCode != http.StatusNoContent { + sac, err = client.CreateOrUpdateResponder(sac.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsCreateOrUpdateFuture", "Result", sac.Response.Response, "Failure responding to request") + } + } + return +} + +// StorageAccountCredentialsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type StorageAccountCredentialsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *StorageAccountCredentialsDeleteFuture) Result(client StorageAccountCredentialsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.StorageAccountCredentialsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// SymmetricKey symmetric Key for authentication. +type SymmetricKey struct { + // ConnectionString - Connection string based on symmetric key. + ConnectionString *AsymmetricEncryptedSecret `json:"connectionString,omitempty"` +} + +// TrackingInfo tracking courier information. +type TrackingInfo struct { + // SerialNumber - Serial number of the device being tracked. + SerialNumber *string `json:"serialNumber,omitempty"` + // CarrierName - Name of the carrier used in the delivery. + CarrierName *string `json:"carrierName,omitempty"` + // TrackingID - Tracking ID of the shipment. + TrackingID *string `json:"trackingId,omitempty"` + // TrackingURL - Tracking URL of the shipment. + TrackingURL *string `json:"trackingUrl,omitempty"` +} + +// BasicTrigger trigger details. +type BasicTrigger interface { + AsFileEventTrigger() (*FileEventTrigger, bool) + AsPeriodicTimerEventTrigger() (*PeriodicTimerEventTrigger, bool) + AsTrigger() (*Trigger, bool) +} + +// Trigger trigger details. +type Trigger struct { + autorest.Response `json:"-"` + // Kind - Possible values include: 'KindTrigger', 'KindFileEvent', 'KindPeriodicTimerEvent' + Kind KindBasicTrigger `json:"kind,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +func unmarshalBasicTrigger(body []byte) (BasicTrigger, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["kind"] { + case string(KindFileEvent): + var fet FileEventTrigger + err := json.Unmarshal(body, &fet) + return fet, err + case string(KindPeriodicTimerEvent): + var ptet PeriodicTimerEventTrigger + err := json.Unmarshal(body, &ptet) + return ptet, err + default: + var t Trigger + err := json.Unmarshal(body, &t) + return t, err + } +} +func unmarshalBasicTriggerArray(body []byte) ([]BasicTrigger, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + tArray := make([]BasicTrigger, len(rawMessages)) + + for index, rawMessage := range rawMessages { + t, err := unmarshalBasicTrigger(*rawMessage) + if err != nil { + return nil, err + } + tArray[index] = t + } + return tArray, nil +} + +// MarshalJSON is the custom marshaler for Trigger. +func (t Trigger) MarshalJSON() ([]byte, error) { + t.Kind = KindTrigger + objectMap := make(map[string]interface{}) + if t.Kind != "" { + objectMap["kind"] = t.Kind + } + if t.ID != nil { + objectMap["id"] = t.ID + } + if t.Name != nil { + objectMap["name"] = t.Name + } + if t.Type != nil { + objectMap["type"] = t.Type + } + return json.Marshal(objectMap) +} + +// AsFileEventTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsFileEventTrigger() (*FileEventTrigger, bool) { + return nil, false +} + +// AsPeriodicTimerEventTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsPeriodicTimerEventTrigger() (*PeriodicTimerEventTrigger, bool) { + return nil, false +} + +// AsTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsTrigger() (*Trigger, bool) { + return &t, true +} + +// AsBasicTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsBasicTrigger() (BasicTrigger, bool) { + return &t, true +} + +// TriggerList collection of all trigger on the data box edge device. +type TriggerList struct { + autorest.Response `json:"-"` + // Value - The list of triggers. + Value *[]BasicTrigger `json:"value,omitempty"` + // NextLink - Link to the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for TriggerList struct. +func (tl *TriggerList) 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 "value": + if v != nil { + value, err := unmarshalBasicTriggerArray(*v) + if err != nil { + return err + } + tl.Value = &value + } + case "nextLink": + if v != nil { + var nextLink string + err = json.Unmarshal(*v, &nextLink) + if err != nil { + return err + } + tl.NextLink = &nextLink + } + } + } + + return nil +} + +// TriggerListIterator provides access to a complete listing of Trigger values. +type TriggerListIterator struct { + i int + page TriggerListPage +} + +// 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 *TriggerListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TriggerListIterator.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 *TriggerListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter TriggerListIterator) 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 TriggerListIterator) Response() TriggerList { + 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 TriggerListIterator) Value() BasicTrigger { + if !iter.page.NotDone() { + return Trigger{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the TriggerListIterator type. +func NewTriggerListIterator(page TriggerListPage) TriggerListIterator { + return TriggerListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (tl TriggerList) IsEmpty() bool { + return tl.Value == nil || len(*tl.Value) == 0 +} + +// triggerListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (tl TriggerList) triggerListPreparer(ctx context.Context) (*http.Request, error) { + if tl.NextLink == nil || len(to.String(tl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(tl.NextLink))) +} + +// TriggerListPage contains a page of BasicTrigger values. +type TriggerListPage struct { + fn func(context.Context, TriggerList) (TriggerList, error) + tl TriggerList +} + +// 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 *TriggerListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TriggerListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.tl) + if err != nil { + return err + } + page.tl = next + 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 *TriggerListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page TriggerListPage) NotDone() bool { + return !page.tl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page TriggerListPage) Response() TriggerList { + return page.tl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page TriggerListPage) Values() []BasicTrigger { + if page.tl.IsEmpty() { + return nil + } + return *page.tl.Value +} + +// Creates a new instance of the TriggerListPage type. +func NewTriggerListPage(getNextPage func(context.Context, TriggerList) (TriggerList, error)) TriggerListPage { + return TriggerListPage{fn: getNextPage} +} + +// TriggerModel ... +type TriggerModel struct { + autorest.Response `json:"-"` + Value BasicTrigger `json:"value,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for TriggerModel struct. +func (tm *TriggerModel) UnmarshalJSON(body []byte) error { + t, err := unmarshalBasicTrigger(body) + if err != nil { + return err + } + tm.Value = t + + return nil +} + +// TriggersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type TriggersCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *TriggersCreateOrUpdateFuture) Result(client TriggersClient) (tm TriggerModel, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.TriggersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.TriggersCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if tm.Response.Response, err = future.GetResult(sender); err == nil && tm.Response.Response.StatusCode != http.StatusNoContent { + tm, err = client.CreateOrUpdateResponder(tm.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.TriggersCreateOrUpdateFuture", "Result", tm.Response.Response, "Failure responding to request") + } + } + return +} + +// TriggersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type TriggersDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *TriggersDeleteFuture) Result(client TriggersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.TriggersDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.TriggersDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// UpdateDownloadProgress details about the download progress of update. +type UpdateDownloadProgress struct { + // DownloadPhase - The download phase. Possible values include: 'Unknown', 'Initializing', 'Downloading', 'Verifying' + DownloadPhase DownloadPhase `json:"downloadPhase,omitempty"` + // PercentComplete - Percentage of completion. + PercentComplete *int32 `json:"percentComplete,omitempty"` + // TotalBytesToDownload - Total bytes to download. + TotalBytesToDownload *float64 `json:"totalBytesToDownload,omitempty"` + // TotalBytesDownloaded - Total bytes downloaded. + TotalBytesDownloaded *float64 `json:"totalBytesDownloaded,omitempty"` + // NumberOfUpdatesToDownload - Number of updates to download. + NumberOfUpdatesToDownload *int32 `json:"numberOfUpdatesToDownload,omitempty"` + // NumberOfUpdatesDownloaded - Number of updates downloaded. + NumberOfUpdatesDownloaded *int32 `json:"numberOfUpdatesDownloaded,omitempty"` +} + +// UpdateInstallProgress details about the progress during installation of updates. +type UpdateInstallProgress struct { + // PercentComplete - Percentage of completion. + PercentComplete *int32 `json:"percentComplete,omitempty"` + // NumberOfUpdatesToInstall - Number of updates to install. + NumberOfUpdatesToInstall *int32 `json:"numberOfUpdatesToInstall,omitempty"` + // NumberOfUpdatesInstalled - Number of updates installed. + NumberOfUpdatesInstalled *int32 `json:"numberOfUpdatesInstalled,omitempty"` +} + +// UpdateSummary details about ongoing updates and availability of updates on the device. +type UpdateSummary struct { + autorest.Response `json:"-"` + // UpdateSummaryProperties - The device update information summary. + *UpdateSummaryProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for UpdateSummary. +func (us UpdateSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if us.UpdateSummaryProperties != nil { + objectMap["properties"] = us.UpdateSummaryProperties + } + if us.ID != nil { + objectMap["id"] = us.ID + } + if us.Name != nil { + objectMap["name"] = us.Name + } + if us.Type != nil { + objectMap["type"] = us.Type + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for UpdateSummary struct. +func (us *UpdateSummary) 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 updateSummaryProperties UpdateSummaryProperties + err = json.Unmarshal(*v, &updateSummaryProperties) + if err != nil { + return err + } + us.UpdateSummaryProperties = &updateSummaryProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + us.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + us.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + us.Type = &typeVar + } + } + } + + return nil +} + +// UpdateSummaryProperties the device update information summary. +type UpdateSummaryProperties struct { + // DeviceVersionNumber - The current version of the device, of format: 1.2.17312.13. + DeviceVersionNumber *string `json:"deviceVersionNumber,omitempty"` + // FriendlyDeviceVersionName - The current version of the device represented in text format. + FriendlyDeviceVersionName *string `json:"friendlyDeviceVersionName,omitempty"` + // DeviceLastScannedDateTime - The last time when a scan was done on the device. + DeviceLastScannedDateTime *date.Time `json:"deviceLastScannedDateTime,omitempty"` + // LastCompletedScanJobDateTime - The time when the last scan job was completed (success/cancelled/failed) on the appliance. + LastCompletedScanJobDateTime *date.Time `json:"lastCompletedScanJobDateTime,omitempty"` + // LastCompletedDownloadJobDateTime - The time when the last Download job was completed (success/cancelled/failed) on the appliance. + LastCompletedDownloadJobDateTime *date.Time `json:"lastCompletedDownloadJobDateTime,omitempty"` + // LastCompletedInstallJobDateTime - The time when the last Install job was completed (success/cancelled/failed) on the appliance. + LastCompletedInstallJobDateTime *date.Time `json:"lastCompletedInstallJobDateTime,omitempty"` + // TotalNumberOfUpdatesAvailable - Count of updates that are available for the current device version as per the last scan on the device. + TotalNumberOfUpdatesAvailable *int32 `json:"totalNumberOfUpdatesAvailable,omitempty"` + // TotalNumberOfUpdatesPendingDownload - The total number of items pending download. + TotalNumberOfUpdatesPendingDownload *int32 `json:"totalNumberOfUpdatesPendingDownload,omitempty"` + // TotalNumberOfUpdatesPendingInstall - The total number of items pending install. + TotalNumberOfUpdatesPendingInstall *int32 `json:"totalNumberOfUpdatesPendingInstall,omitempty"` + // RebootBehavior - Indicates if updates are available and at least one of the update items detected needs a reboot. Possible values include: 'NeverReboots', 'RequiresReboot', 'RequestReboot' + RebootBehavior InstallRebootBehavior `json:"rebootBehavior,omitempty"` + // OngoingUpdateOperation - The current update operation. Possible values include: 'UpdateOperationNone', 'UpdateOperationScan', 'UpdateOperationDownload', 'UpdateOperationInstall' + OngoingUpdateOperation UpdateOperation `json:"ongoingUpdateOperation,omitempty"` + // InProgressDownloadJobID - The Job ID of the download job if a download is in progress. + InProgressDownloadJobID *string `json:"inProgressDownloadJobId,omitempty"` + // InProgressInstallJobID - The Job ID of the install job if an install is in progress. + InProgressInstallJobID *string `json:"inProgressInstallJobId,omitempty"` + // InProgressDownloadJobStartedDateTime - The time when the currently running download (if any) started. + InProgressDownloadJobStartedDateTime *date.Time `json:"inProgressDownloadJobStartedDateTime,omitempty"` + // InProgressInstallJobStartedDateTime - The time when the currently running install (if any) started. + InProgressInstallJobStartedDateTime *date.Time `json:"inProgressInstallJobStartedDateTime,omitempty"` + // UpdateTitles - The list of update titles which are available for install. + UpdateTitles *[]string `json:"updateTitles,omitempty"` + // TotalUpdateSizeInBytes - The total size of updates available for download in bytes. + TotalUpdateSizeInBytes *float64 `json:"totalUpdateSizeInBytes,omitempty"` +} + +// UploadCertificateRequest the Upload certificate request. +type UploadCertificateRequest struct { + // RawCertificateData - The Base 64 encoded certificate raw data. + *RawCertificateData `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for UploadCertificateRequest. +func (ucr UploadCertificateRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ucr.RawCertificateData != nil { + objectMap["properties"] = ucr.RawCertificateData + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for UploadCertificateRequest struct. +func (ucr *UploadCertificateRequest) 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 rawCertificateData RawCertificateData + err = json.Unmarshal(*v, &rawCertificateData) + if err != nil { + return err + } + ucr.RawCertificateData = &rawCertificateData + } + } + } + + return nil +} + +// UploadCertificateResponse the upload registration certificate response. +type UploadCertificateResponse struct { + autorest.Response `json:"-"` + // AuthType - Specifies the Authentication type. Possible values include: 'Invalid', 'AzureActiveDirectory' + AuthType AuthenticationType `json:"authType,omitempty"` + // ResourceID - The resource ID of the edge device. + ResourceID *string `json:"resourceId,omitempty"` + // AadAuthority - Azure Active Directory tenant authority. + AadAuthority *string `json:"aadAuthority,omitempty"` + // AadTenantID - Azure Active Directory tenant ID. + AadTenantID *string `json:"aadTenantId,omitempty"` + // ServicePrincipalClientID - Azure Active Directory service principal client ID. + ServicePrincipalClientID *string `json:"servicePrincipalClientId,omitempty"` + // ServicePrincipalObjectID - Azure Active Directory service principal Object ID. + ServicePrincipalObjectID *string `json:"servicePrincipalObjectId,omitempty"` + // AzureManagementEndpointAudience - The Azure Management Endpoint Audience. + AzureManagementEndpointAudience *string `json:"azureManagementEndpointAudience,omitempty"` +} + +// User represents a user who has access to one or more shares on the Edge storage device. +type User struct { + autorest.Response `json:"-"` + // UserProperties - The storage account credential properties. + *UserProperties `json:"properties,omitempty"` + // ID - The path ID that uniquely identifies the object. + ID *string `json:"id,omitempty"` + // Name - The name of the object. + Name *string `json:"name,omitempty"` + // Type - The hierarchical type of the object. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for User. +func (u User) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if u.UserProperties != nil { + objectMap["properties"] = u.UserProperties + } + if u.ID != nil { + objectMap["id"] = u.ID + } + if u.Name != nil { + objectMap["name"] = u.Name + } + if u.Type != nil { + objectMap["type"] = u.Type + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for User struct. +func (u *User) 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 userProperties UserProperties + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + u.UserProperties = &userProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + u.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + u.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + u.Type = &typeVar + } + } + } + + return nil +} + +// UserAccessRight the mapping between a particular user and the type of access they have on the SMB share. +type UserAccessRight struct { + // UserID - Id of the user (already existing in the device). + UserID *string `json:"userId,omitempty"` + // AccessType - Type of access to be allowed for the user. Possible values include: 'Change', 'Read', 'Custom' + AccessType ShareAccessType `json:"accessType,omitempty"` +} + +// UserList collection of users. +type UserList struct { + autorest.Response `json:"-"` + // Value - The list of users. + Value *[]User `json:"value,omitempty"` + // NextLink - Link to the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// UserListIterator provides access to a complete listing of User values. +type UserListIterator struct { + i int + page UserListPage +} + +// 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 *UserListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UserListIterator.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 *UserListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter UserListIterator) 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 UserListIterator) Response() UserList { + 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 UserListIterator) Value() User { + if !iter.page.NotDone() { + return User{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the UserListIterator type. +func NewUserListIterator(page UserListPage) UserListIterator { + return UserListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ul UserList) IsEmpty() bool { + return ul.Value == nil || len(*ul.Value) == 0 +} + +// userListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ul UserList) userListPreparer(ctx context.Context) (*http.Request, error) { + if ul.NextLink == nil || len(to.String(ul.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ul.NextLink))) +} + +// UserListPage contains a page of User values. +type UserListPage struct { + fn func(context.Context, UserList) (UserList, error) + ul UserList +} + +// 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 *UserListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UserListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.ul) + if err != nil { + return err + } + page.ul = next + 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 *UserListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page UserListPage) NotDone() bool { + return !page.ul.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page UserListPage) Response() UserList { + return page.ul +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page UserListPage) Values() []User { + if page.ul.IsEmpty() { + return nil + } + return *page.ul.Value +} + +// Creates a new instance of the UserListPage type. +func NewUserListPage(getNextPage func(context.Context, UserList) (UserList, error)) UserListPage { + return UserListPage{fn: getNextPage} +} + +// UserProperties the User properties. +type UserProperties struct { + // EncryptedPassword - The details of the password specified for the user. + EncryptedPassword *AsymmetricEncryptedSecret `json:"encryptedPassword,omitempty"` + // ShareAccessRights - List of shares that the user has rights on. This field should not be specified during user creation. + ShareAccessRights *[]ShareAccessRight `json:"shareAccessRights,omitempty"` +} + +// UsersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type UsersCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *UsersCreateOrUpdateFuture) Result(client UsersClient) (u User, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.UsersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.UsersCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if u.Response.Response, err = future.GetResult(sender); err == nil && u.Response.Response.StatusCode != http.StatusNoContent { + u, err = client.CreateOrUpdateResponder(u.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.UsersCreateOrUpdateFuture", "Result", u.Response.Response, "Failure responding to request") + } + } + return +} + +// UsersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type UsersDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *UsersDeleteFuture) Result(client UsersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.Done(client) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.UsersDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("edgegateway.UsersDeleteFuture") + return + } + ar.Response = future.Response() + return +} diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/operations.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/operations.go new file mode 100644 index 000000000000..f02c6098fde3 --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/operations.go @@ -0,0 +1,147 @@ +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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 Edgegateway 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. +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 OperationsListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.ol.Response.Response != nil { + sc = result.ol.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OperationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ol.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.OperationsClient", "List", resp, "Failure sending request") + return + } + + result.ol, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OperationsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + const APIVersion = "2018-07-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.DataBoxEdge/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 autorest.SendWithSender(client, 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 OperationsList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + 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 OperationsList) (result OperationsList, err error) { + req, err := lastResults.operationsListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "edgegateway.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, "edgegateway.OperationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.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 OperationsListIterator, 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/edgegateway/mgmt/2018-07-01/edgegateway/operationsstatus.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/operationsstatus.go new file mode 100644 index 000000000000..72f430fa1651 --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/operationsstatus.go @@ -0,0 +1,120 @@ +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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" +) + +// OperationsStatusClient is the client for the OperationsStatus methods of the Edgegateway service. +type OperationsStatusClient struct { + BaseClient +} + +// NewOperationsStatusClient creates an instance of the OperationsStatusClient client. +func NewOperationsStatusClient(subscriptionID string) OperationsStatusClient { + return NewOperationsStatusClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationsStatusClientWithBaseURI creates an instance of the OperationsStatusClient client. +func NewOperationsStatusClientWithBaseURI(baseURI string, subscriptionID string) OperationsStatusClient { + return OperationsStatusClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get sends the get request. +// Parameters: +// deviceName - the device name. +// name - the job name. +// resourceGroupName - the resource group name. +func (client OperationsStatusClient) Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result Job, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsStatusClient.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, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OperationsStatusClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.OperationsStatusClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OperationsStatusClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client OperationsStatusClient) GetPreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/operationsStatus/{name}", 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 OperationsStatusClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client OperationsStatusClient) GetResponder(resp *http.Response) (result Job, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/orders.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/orders.go new file mode 100644 index 000000000000..fb813e86c0a0 --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/orders.go @@ -0,0 +1,412 @@ +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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" +) + +// OrdersClient is the client for the Orders methods of the Edgegateway service. +type OrdersClient struct { + BaseClient +} + +// NewOrdersClient creates an instance of the OrdersClient client. +func NewOrdersClient(subscriptionID string) OrdersClient { + return NewOrdersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOrdersClientWithBaseURI creates an instance of the OrdersClient client. +func NewOrdersClientWithBaseURI(baseURI string, subscriptionID string) OrdersClient { + return OrdersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate sends the create or update request. +// Parameters: +// deviceName - name of the edge device for which order needs to be added or updated. +// order - order to be added. +// resourceGroupName - the resource group name. +func (client OrdersClient) CreateOrUpdate(ctx context.Context, deviceName string, order Order, resourceGroupName string) (result OrdersCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OrdersClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: order, + Constraints: []validation.Constraint{{Target: "order.OrderProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "order.OrderProperties.ContactInformation", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "order.OrderProperties.ContactInformation.ContactPerson", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "order.OrderProperties.ContactInformation.CompanyName", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "order.OrderProperties.ContactInformation.Phone", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "order.OrderProperties.ContactInformation.EmailList", Name: validation.Null, Rule: true, Chain: nil}, + }}, + {Target: "order.OrderProperties.ShippingAddress", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "order.OrderProperties.ShippingAddress.AddressLine1", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "order.OrderProperties.ShippingAddress.AddressLine2", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "order.OrderProperties.ShippingAddress.AddressLine3", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "order.OrderProperties.ShippingAddress.PostalCode", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "order.OrderProperties.ShippingAddress.City", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "order.OrderProperties.ShippingAddress.State", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "order.OrderProperties.ShippingAddress.Country", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("edgegateway.OrdersClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, deviceName, order, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client OrdersClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, order Order, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/orders/default", pathParameters), + autorest.WithJSON(order), + 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 OrdersClient) CreateOrUpdateSender(req *http.Request) (future OrdersCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client OrdersClient) CreateOrUpdateResponder(resp *http.Response) (result Order, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete sends the delete request. +// Parameters: +// deviceName - name of the device. +// resourceGroupName - the resource group name. +func (client OrdersClient) Delete(ctx context.Context, deviceName string, resourceGroupName string) (result OrdersDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OrdersClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client OrdersClient) DeletePreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/orders/default", 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 OrdersClient) DeleteSender(req *http.Request) (future OrdersDeleteFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client OrdersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get sends the get request. +// Parameters: +// deviceName - name of the device. +// resourceGroupName - the resource group name. +func (client OrdersClient) Get(ctx context.Context, deviceName string, resourceGroupName string) (result Order, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OrdersClient.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, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client OrdersClient) GetPreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/orders/default", 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 OrdersClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client OrdersClient) GetResponder(resp *http.Response) (result Order, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByDataBoxEdgeDevice sends the list by data box edge device request. +// Parameters: +// deviceName - name of the device. +// resourceGroupName - the resource group name. +func (client OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result OrderListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OrdersClient.ListByDataBoxEdgeDevice") + defer func() { + sc := -1 + if result.ol.Response.Response != nil { + sc = result.ol.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByDataBoxEdgeDeviceNextResults + req, err := client.ListByDataBoxEdgeDevicePreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "ListByDataBoxEdgeDevice", nil, "Failure preparing request") + return + } + + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.ol.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "ListByDataBoxEdgeDevice", resp, "Failure sending request") + return + } + + result.ol, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + } + + return +} + +// ListByDataBoxEdgeDevicePreparer prepares the ListByDataBoxEdgeDevice request. +func (client OrdersClient) ListByDataBoxEdgeDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/orders", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByDataBoxEdgeDeviceSender sends the ListByDataBoxEdgeDevice request. The method will close the +// http.Response Body if it receives an error. +func (client OrdersClient) ListByDataBoxEdgeDeviceSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByDataBoxEdgeDeviceResponder handles the response to the ListByDataBoxEdgeDevice request. The method always +// closes the http.Response Body. +func (client OrdersClient) ListByDataBoxEdgeDeviceResponder(resp *http.Response) (result OrderList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByDataBoxEdgeDeviceNextResults retrieves the next set of results, if any. +func (client OrdersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context, lastResults OrderList) (result OrderList, err error) { + req, err := lastResults.orderListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "listByDataBoxEdgeDeviceNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.OrdersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByDataBoxEdgeDeviceComplete enumerates all values, automatically crossing page boundaries as required. +func (client OrdersClient) ListByDataBoxEdgeDeviceComplete(ctx context.Context, deviceName string, resourceGroupName string) (result OrderListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OrdersClient.ListByDataBoxEdgeDevice") + 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.ListByDataBoxEdgeDevice(ctx, deviceName, resourceGroupName) + return +} diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/roles.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/roles.go new file mode 100644 index 000000000000..277786230186 --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/roles.go @@ -0,0 +1,395 @@ +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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" +) + +// RolesClient is the client for the Roles methods of the Edgegateway service. +type RolesClient struct { + BaseClient +} + +// NewRolesClient creates an instance of the RolesClient client. +func NewRolesClient(subscriptionID string) RolesClient { + return NewRolesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewRolesClientWithBaseURI creates an instance of the RolesClient client. +func NewRolesClientWithBaseURI(baseURI string, subscriptionID string) RolesClient { + return RolesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or update a role. +// Parameters: +// deviceName - name of the device in which the role needs to be added or updated. +// name - name of the role to be updated. +// role - role to be added. +// resourceGroupName - the resource group name. +func (client RolesClient) CreateOrUpdate(ctx context.Context, deviceName string, name string, role BasicRole, resourceGroupName string) (result RolesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RolesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, deviceName, name, role, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.RolesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.RolesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client RolesClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, name string, role BasicRole, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{name}", pathParameters), + autorest.WithJSON(role), + 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 RolesClient) CreateOrUpdateSender(req *http.Request) (future RolesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client RolesClient) CreateOrUpdateResponder(resp *http.Response) (result RoleModel, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the role on the gateway device. +// Parameters: +// deviceName - name of the device. +// name - name of the role which needs to be deleted. +// resourceGroupName - the resource group name. +func (client RolesClient) Delete(ctx context.Context, deviceName string, name string, resourceGroupName string) (result RolesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RolesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.RolesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.RolesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client RolesClient) DeletePreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{name}", 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 RolesClient) DeleteSender(req *http.Request) (future RolesDeleteFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client RolesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get a specific role by name. +// Parameters: +// deviceName - name of the device. +// name - name of role to be fetched. +// resourceGroupName - the resource group name. +func (client RolesClient) Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result RoleModel, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RolesClient.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, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.RolesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.RolesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.RolesClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client RolesClient) GetPreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{name}", 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 RolesClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RolesClient) GetResponder(resp *http.Response) (result RoleModel, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByDataBoxEdgeDevice lists all the roles configured in a data box edge/gateway device. +// Parameters: +// deviceName - name of the device. +// resourceGroupName - the resource group name. +func (client RolesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result RoleListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RolesClient.ListByDataBoxEdgeDevice") + defer func() { + sc := -1 + if result.rl.Response.Response != nil { + sc = result.rl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByDataBoxEdgeDeviceNextResults + req, err := client.ListByDataBoxEdgeDevicePreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.RolesClient", "ListByDataBoxEdgeDevice", nil, "Failure preparing request") + return + } + + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.rl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.RolesClient", "ListByDataBoxEdgeDevice", resp, "Failure sending request") + return + } + + result.rl, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.RolesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + } + + return +} + +// ListByDataBoxEdgeDevicePreparer prepares the ListByDataBoxEdgeDevice request. +func (client RolesClient) ListByDataBoxEdgeDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByDataBoxEdgeDeviceSender sends the ListByDataBoxEdgeDevice request. The method will close the +// http.Response Body if it receives an error. +func (client RolesClient) ListByDataBoxEdgeDeviceSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByDataBoxEdgeDeviceResponder handles the response to the ListByDataBoxEdgeDevice request. The method always +// closes the http.Response Body. +func (client RolesClient) ListByDataBoxEdgeDeviceResponder(resp *http.Response) (result RoleList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByDataBoxEdgeDeviceNextResults retrieves the next set of results, if any. +func (client RolesClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context, lastResults RoleList) (result RoleList, err error) { + req, err := lastResults.roleListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "edgegateway.RolesClient", "listByDataBoxEdgeDeviceNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "edgegateway.RolesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.RolesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByDataBoxEdgeDeviceComplete enumerates all values, automatically crossing page boundaries as required. +func (client RolesClient) ListByDataBoxEdgeDeviceComplete(ctx context.Context, deviceName string, resourceGroupName string) (result RoleListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RolesClient.ListByDataBoxEdgeDevice") + 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.ListByDataBoxEdgeDevice(ctx, deviceName, resourceGroupName) + return +} diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/shares.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/shares.go new file mode 100644 index 000000000000..448760d46376 --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/shares.go @@ -0,0 +1,485 @@ +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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" +) + +// SharesClient is the client for the Shares methods of the Edgegateway service. +type SharesClient struct { + BaseClient +} + +// NewSharesClient creates an instance of the SharesClient client. +func NewSharesClient(subscriptionID string) SharesClient { + return NewSharesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSharesClientWithBaseURI creates an instance of the SharesClient client. +func NewSharesClientWithBaseURI(baseURI string, subscriptionID string) SharesClient { + return SharesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate sends the create or update request. +// Parameters: +// deviceName - name of the device. +// name - name of the share which needs to be added/updated. +// share - the share object containing the share details. +// resourceGroupName - the resource group name. +func (client SharesClient) CreateOrUpdate(ctx context.Context, deviceName string, name string, share Share, resourceGroupName string) (result SharesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: share, + Constraints: []validation.Constraint{{Target: "share.ShareProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "share.ShareProperties.AzureContainerInfo", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "share.ShareProperties.AzureContainerInfo.StorageAccountCredentialID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "share.ShareProperties.AzureContainerInfo.ContainerName", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("edgegateway.SharesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, deviceName, name, share, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client SharesClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, name string, share Share, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/shares/{name}", pathParameters), + autorest.WithJSON(share), + 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 SharesClient) CreateOrUpdateSender(req *http.Request) (future SharesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client SharesClient) CreateOrUpdateResponder(resp *http.Response) (result Share, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the share on the data box edge/gateway device. +// Parameters: +// deviceName - name of the device. +// name - name of the share which needs to be deleted. +// resourceGroupName - the resource group name. +func (client SharesClient) Delete(ctx context.Context, deviceName string, name string, resourceGroupName string) (result SharesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client SharesClient) DeletePreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/shares/{name}", 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 SharesClient) DeleteSender(req *http.Request) (future SharesDeleteFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client SharesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get sends the get request. +// Parameters: +// deviceName - name of the device. +// name - name of the share. +// resourceGroupName - the resource group name. +func (client SharesClient) Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result Share, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.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, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client SharesClient) GetPreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/shares/{name}", 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 SharesClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SharesClient) GetResponder(resp *http.Response) (result Share, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByDataBoxEdgeDevice sends the list by data box edge device request. +// Parameters: +// deviceName - name of the device. +// resourceGroupName - the resource group name. +func (client SharesClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result ShareListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.ListByDataBoxEdgeDevice") + defer func() { + sc := -1 + if result.sl.Response.Response != nil { + sc = result.sl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByDataBoxEdgeDeviceNextResults + req, err := client.ListByDataBoxEdgeDevicePreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "ListByDataBoxEdgeDevice", nil, "Failure preparing request") + return + } + + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.sl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "ListByDataBoxEdgeDevice", resp, "Failure sending request") + return + } + + result.sl, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + } + + return +} + +// ListByDataBoxEdgeDevicePreparer prepares the ListByDataBoxEdgeDevice request. +func (client SharesClient) ListByDataBoxEdgeDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/shares", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByDataBoxEdgeDeviceSender sends the ListByDataBoxEdgeDevice request. The method will close the +// http.Response Body if it receives an error. +func (client SharesClient) ListByDataBoxEdgeDeviceSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByDataBoxEdgeDeviceResponder handles the response to the ListByDataBoxEdgeDevice request. The method always +// closes the http.Response Body. +func (client SharesClient) ListByDataBoxEdgeDeviceResponder(resp *http.Response) (result ShareList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByDataBoxEdgeDeviceNextResults retrieves the next set of results, if any. +func (client SharesClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context, lastResults ShareList) (result ShareList, err error) { + req, err := lastResults.shareListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "edgegateway.SharesClient", "listByDataBoxEdgeDeviceNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "edgegateway.SharesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByDataBoxEdgeDeviceComplete enumerates all values, automatically crossing page boundaries as required. +func (client SharesClient) ListByDataBoxEdgeDeviceComplete(ctx context.Context, deviceName string, resourceGroupName string) (result ShareListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.ListByDataBoxEdgeDevice") + 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.ListByDataBoxEdgeDevice(ctx, deviceName, resourceGroupName) + return +} + +// Refresh sends the refresh request. +// Parameters: +// deviceName - name of the device. +// name - name of the share. +// resourceGroupName - the resource group name. +func (client SharesClient) Refresh(ctx context.Context, deviceName string, name string, resourceGroupName string) (result SharesRefreshFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.Refresh") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.RefreshPreparer(ctx, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "Refresh", nil, "Failure preparing request") + return + } + + result, err = client.RefreshSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.SharesClient", "Refresh", result.Response(), "Failure sending request") + return + } + + return +} + +// RefreshPreparer prepares the Refresh request. +func (client SharesClient) RefreshPreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/shares/{name}/refresh", 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 SharesClient) RefreshSender(req *http.Request) (future SharesRefreshFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// RefreshResponder handles the response to the Refresh request. The method always +// closes the http.Response Body. +func (client SharesClient) RefreshResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/storageaccountcredentials.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/storageaccountcredentials.go new file mode 100644 index 000000000000..b39f5e60c41b --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/storageaccountcredentials.go @@ -0,0 +1,406 @@ +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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" +) + +// StorageAccountCredentialsClient is the client for the StorageAccountCredentials methods of the Edgegateway service. +type StorageAccountCredentialsClient struct { + BaseClient +} + +// NewStorageAccountCredentialsClient creates an instance of the StorageAccountCredentialsClient client. +func NewStorageAccountCredentialsClient(subscriptionID string) StorageAccountCredentialsClient { + return NewStorageAccountCredentialsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewStorageAccountCredentialsClientWithBaseURI creates an instance of the StorageAccountCredentialsClient client. +func NewStorageAccountCredentialsClientWithBaseURI(baseURI string, subscriptionID string) StorageAccountCredentialsClient { + return StorageAccountCredentialsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates or updates the storage account credential. +// Parameters: +// deviceName - name of the device. +// name - the storage account credential name. +// storageAccountCredential - the storage account credential to be added or updated. +// resourceGroupName - the resource group name. +func (client StorageAccountCredentialsClient) CreateOrUpdate(ctx context.Context, deviceName string, name string, storageAccountCredential StorageAccountCredential, resourceGroupName string) (result StorageAccountCredentialsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/StorageAccountCredentialsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: storageAccountCredential, + Constraints: []validation.Constraint{{Target: "storageAccountCredential.StorageAccountCredentialProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "storageAccountCredential.StorageAccountCredentialProperties.Alias", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "storageAccountCredential.StorageAccountCredentialProperties.AccountKey", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "storageAccountCredential.StorageAccountCredentialProperties.AccountKey.Value", Name: validation.Null, Rule: true, Chain: nil}}}, + }}}}}); err != nil { + return result, validation.NewError("edgegateway.StorageAccountCredentialsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, deviceName, name, storageAccountCredential, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client StorageAccountCredentialsClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, name string, storageAccountCredential StorageAccountCredential, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccountCredentials/{name}", pathParameters), + autorest.WithJSON(storageAccountCredential), + 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 StorageAccountCredentialsClient) CreateOrUpdateSender(req *http.Request) (future StorageAccountCredentialsCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client StorageAccountCredentialsClient) CreateOrUpdateResponder(resp *http.Response) (result StorageAccountCredential, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the storage account credential. +// Parameters: +// deviceName - name of the device. +// name - name of the storage account credential. +// resourceGroupName - the resource group name. +func (client StorageAccountCredentialsClient) Delete(ctx context.Context, deviceName string, name string, resourceGroupName string) (result StorageAccountCredentialsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/StorageAccountCredentialsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client StorageAccountCredentialsClient) DeletePreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccountCredentials/{name}", 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 StorageAccountCredentialsClient) DeleteSender(req *http.Request) (future StorageAccountCredentialsDeleteFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client StorageAccountCredentialsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the properties of the specified storage account credential. +// Parameters: +// deviceName - name of the device. +// name - name of the storage account credential to be fetched. +// resourceGroupName - the resource group name. +func (client StorageAccountCredentialsClient) Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result StorageAccountCredential, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/StorageAccountCredentialsClient.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, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client StorageAccountCredentialsClient) GetPreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccountCredentials/{name}", 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 StorageAccountCredentialsClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client StorageAccountCredentialsClient) GetResponder(resp *http.Response) (result StorageAccountCredential, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByDataBoxEdgeDevice sends the list by data box edge device request. +// Parameters: +// deviceName - name of the device. +// resourceGroupName - the resource group name. +func (client StorageAccountCredentialsClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result StorageAccountCredentialListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/StorageAccountCredentialsClient.ListByDataBoxEdgeDevice") + defer func() { + sc := -1 + if result.sacl.Response.Response != nil { + sc = result.sacl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByDataBoxEdgeDeviceNextResults + req, err := client.ListByDataBoxEdgeDevicePreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "ListByDataBoxEdgeDevice", nil, "Failure preparing request") + return + } + + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.sacl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "ListByDataBoxEdgeDevice", resp, "Failure sending request") + return + } + + result.sacl, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + } + + return +} + +// ListByDataBoxEdgeDevicePreparer prepares the ListByDataBoxEdgeDevice request. +func (client StorageAccountCredentialsClient) ListByDataBoxEdgeDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccountCredentials", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByDataBoxEdgeDeviceSender sends the ListByDataBoxEdgeDevice request. The method will close the +// http.Response Body if it receives an error. +func (client StorageAccountCredentialsClient) ListByDataBoxEdgeDeviceSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByDataBoxEdgeDeviceResponder handles the response to the ListByDataBoxEdgeDevice request. The method always +// closes the http.Response Body. +func (client StorageAccountCredentialsClient) ListByDataBoxEdgeDeviceResponder(resp *http.Response) (result StorageAccountCredentialList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByDataBoxEdgeDeviceNextResults retrieves the next set of results, if any. +func (client StorageAccountCredentialsClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context, lastResults StorageAccountCredentialList) (result StorageAccountCredentialList, err error) { + req, err := lastResults.storageAccountCredentialListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "listByDataBoxEdgeDeviceNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.StorageAccountCredentialsClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByDataBoxEdgeDeviceComplete enumerates all values, automatically crossing page boundaries as required. +func (client StorageAccountCredentialsClient) ListByDataBoxEdgeDeviceComplete(ctx context.Context, deviceName string, resourceGroupName string) (result StorageAccountCredentialListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/StorageAccountCredentialsClient.ListByDataBoxEdgeDevice") + 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.ListByDataBoxEdgeDevice(ctx, deviceName, resourceGroupName) + return +} diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/triggers.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/triggers.go new file mode 100644 index 000000000000..e5ee0174eaa2 --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/triggers.go @@ -0,0 +1,395 @@ +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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" +) + +// TriggersClient is the client for the Triggers methods of the Edgegateway service. +type TriggersClient struct { + BaseClient +} + +// NewTriggersClient creates an instance of the TriggersClient client. +func NewTriggersClient(subscriptionID string) TriggersClient { + return NewTriggersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewTriggersClientWithBaseURI creates an instance of the TriggersClient client. +func NewTriggersClientWithBaseURI(baseURI string, subscriptionID string) TriggersClient { + return TriggersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or update a trigger. +// Parameters: +// deviceName - name of the edge device in which trigger needs to be added or updated. +// name - name of trigger to be added or updated. +// trigger - trigger to be added. +// resourceGroupName - the resource group name. +func (client TriggersClient) CreateOrUpdate(ctx context.Context, deviceName string, name string, trigger BasicTrigger, resourceGroupName string) (result TriggersCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TriggersClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, deviceName, name, trigger, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client TriggersClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, name string, trigger BasicTrigger, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/triggers/{name}", pathParameters), + autorest.WithJSON(trigger), + 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 TriggersClient) CreateOrUpdateSender(req *http.Request) (future TriggersCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client TriggersClient) CreateOrUpdateResponder(resp *http.Response) (result TriggerModel, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the trigger on the gateway device. +// Parameters: +// deviceName - name of the device. +// name - name of the trigger which needs to be deleted. +// resourceGroupName - the resource group name. +func (client TriggersClient) Delete(ctx context.Context, deviceName string, name string, resourceGroupName string) (result TriggersDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TriggersClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client TriggersClient) DeletePreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/triggers/{name}", 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 TriggersClient) DeleteSender(req *http.Request) (future TriggersDeleteFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client TriggersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get a specific trigger by name. +// Parameters: +// deviceName - name of the device. +// name - name of trigger to be fetched. +// resourceGroupName - the resource group name. +func (client TriggersClient) Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result TriggerModel, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TriggersClient.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, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client TriggersClient) GetPreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/triggers/{name}", 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 TriggersClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client TriggersClient) GetResponder(resp *http.Response) (result TriggerModel, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByDataBoxEdgeDevice list all the triggers configured in the device. +// Parameters: +// deviceName - name of the device. +// resourceGroupName - the resource group name. +func (client TriggersClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result TriggerListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TriggersClient.ListByDataBoxEdgeDevice") + defer func() { + sc := -1 + if result.tl.Response.Response != nil { + sc = result.tl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByDataBoxEdgeDeviceNextResults + req, err := client.ListByDataBoxEdgeDevicePreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "ListByDataBoxEdgeDevice", nil, "Failure preparing request") + return + } + + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.tl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "ListByDataBoxEdgeDevice", resp, "Failure sending request") + return + } + + result.tl, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + } + + return +} + +// ListByDataBoxEdgeDevicePreparer prepares the ListByDataBoxEdgeDevice request. +func (client TriggersClient) ListByDataBoxEdgeDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/triggers", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByDataBoxEdgeDeviceSender sends the ListByDataBoxEdgeDevice request. The method will close the +// http.Response Body if it receives an error. +func (client TriggersClient) ListByDataBoxEdgeDeviceSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByDataBoxEdgeDeviceResponder handles the response to the ListByDataBoxEdgeDevice request. The method always +// closes the http.Response Body. +func (client TriggersClient) ListByDataBoxEdgeDeviceResponder(resp *http.Response) (result TriggerList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByDataBoxEdgeDeviceNextResults retrieves the next set of results, if any. +func (client TriggersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context, lastResults TriggerList) (result TriggerList, err error) { + req, err := lastResults.triggerListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "listByDataBoxEdgeDeviceNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.TriggersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByDataBoxEdgeDeviceComplete enumerates all values, automatically crossing page boundaries as required. +func (client TriggersClient) ListByDataBoxEdgeDeviceComplete(ctx context.Context, deviceName string, resourceGroupName string) (result TriggerListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TriggersClient.ListByDataBoxEdgeDevice") + 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.ListByDataBoxEdgeDevice(ctx, deviceName, resourceGroupName) + return +} diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/users.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/users.go new file mode 100644 index 000000000000..ee24086e3cc0 --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/users.go @@ -0,0 +1,405 @@ +package edgegateway + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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" +) + +// UsersClient is the client for the Users methods of the Edgegateway service. +type UsersClient struct { + BaseClient +} + +// NewUsersClient creates an instance of the UsersClient client. +func NewUsersClient(subscriptionID string) UsersClient { + return NewUsersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewUsersClientWithBaseURI creates an instance of the UsersClient client. +func NewUsersClientWithBaseURI(baseURI string, subscriptionID string) UsersClient { + return UsersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create a new user or update an existing user's information on a data box edge/gateway device. +// Parameters: +// deviceName - the device name. +// name - the name of the user who needs to be added/updated. +// userParameter - the user object containing the user details and encrypted password. +// resourceGroupName - the resource group name. +func (client UsersClient) CreateOrUpdate(ctx context.Context, deviceName string, name string, userParameter User, resourceGroupName string) (result UsersCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsersClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: userParameter, + Constraints: []validation.Constraint{{Target: "userParameter.UserProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "userParameter.UserProperties.EncryptedPassword", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "userParameter.UserProperties.EncryptedPassword.Value", Name: validation.Null, Rule: true, Chain: nil}}}, + }}}}}); err != nil { + return result, validation.NewError("edgegateway.UsersClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, deviceName, name, userParameter, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.UsersClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.UsersClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client UsersClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, name string, userParameter User, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/users/{name}", pathParameters), + autorest.WithJSON(userParameter), + 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 UsersClient) CreateOrUpdateSender(req *http.Request) (future UsersCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client UsersClient) CreateOrUpdateResponder(resp *http.Response) (result User, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the user on a databox edge/gateway device. +// Parameters: +// deviceName - the device name. +// name - the name of the user who needs to be deleted. +// resourceGroupName - the resource group name. +func (client UsersClient) Delete(ctx context.Context, deviceName string, name string, resourceGroupName string) (result UsersDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsersClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.UsersClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.UsersClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client UsersClient) DeletePreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/users/{name}", 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 UsersClient) DeleteSender(req *http.Request) (future UsersDeleteFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client UsersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get returns the properties of the specified user. +// Parameters: +// deviceName - the device name. +// name - the name of the user who needs to be retrieved. +// resourceGroupName - the resource group name. +func (client UsersClient) Get(ctx context.Context, deviceName string, name string, resourceGroupName string) (result User, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsersClient.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, deviceName, name, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.UsersClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.UsersClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.UsersClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client UsersClient) GetPreparer(ctx context.Context, deviceName string, name string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/users/{name}", 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 UsersClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client UsersClient) GetResponder(resp *http.Response) (result User, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByDataBoxEdgeDevice returns all the users registered in a data box edge/gateway device. +// Parameters: +// deviceName - the device name. +// resourceGroupName - the resource group name. +func (client UsersClient) ListByDataBoxEdgeDevice(ctx context.Context, deviceName string, resourceGroupName string) (result UserListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsersClient.ListByDataBoxEdgeDevice") + defer func() { + sc := -1 + if result.ul.Response.Response != nil { + sc = result.ul.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByDataBoxEdgeDeviceNextResults + req, err := client.ListByDataBoxEdgeDevicePreparer(ctx, deviceName, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.UsersClient", "ListByDataBoxEdgeDevice", nil, "Failure preparing request") + return + } + + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.ul.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "edgegateway.UsersClient", "ListByDataBoxEdgeDevice", resp, "Failure sending request") + return + } + + result.ul, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.UsersClient", "ListByDataBoxEdgeDevice", resp, "Failure responding to request") + } + + return +} + +// ListByDataBoxEdgeDevicePreparer prepares the ListByDataBoxEdgeDevice request. +func (client UsersClient) ListByDataBoxEdgeDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceName": autorest.Encode("path", deviceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/users", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByDataBoxEdgeDeviceSender sends the ListByDataBoxEdgeDevice request. The method will close the +// http.Response Body if it receives an error. +func (client UsersClient) ListByDataBoxEdgeDeviceSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByDataBoxEdgeDeviceResponder handles the response to the ListByDataBoxEdgeDevice request. The method always +// closes the http.Response Body. +func (client UsersClient) ListByDataBoxEdgeDeviceResponder(resp *http.Response) (result UserList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByDataBoxEdgeDeviceNextResults retrieves the next set of results, if any. +func (client UsersClient) listByDataBoxEdgeDeviceNextResults(ctx context.Context, lastResults UserList) (result UserList, err error) { + req, err := lastResults.userListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "edgegateway.UsersClient", "listByDataBoxEdgeDeviceNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByDataBoxEdgeDeviceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "edgegateway.UsersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByDataBoxEdgeDeviceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "edgegateway.UsersClient", "listByDataBoxEdgeDeviceNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByDataBoxEdgeDeviceComplete enumerates all values, automatically crossing page boundaries as required. +func (client UsersClient) ListByDataBoxEdgeDeviceComplete(ctx context.Context, deviceName string, resourceGroupName string) (result UserListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsersClient.ListByDataBoxEdgeDevice") + 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.ListByDataBoxEdgeDevice(ctx, deviceName, resourceGroupName) + return +} diff --git a/services/edgegateway/mgmt/2018-07-01/edgegateway/version.go b/services/edgegateway/mgmt/2018-07-01/edgegateway/version.go new file mode 100644 index 000000000000..8ff337127ab5 --- /dev/null +++ b/services/edgegateway/mgmt/2018-07-01/edgegateway/version.go @@ -0,0 +1,30 @@ +package edgegateway + +import "github.com/Azure/azure-sdk-for-go/version" + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// 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.Number + " edgegateway/2018-07-01" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +}