diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f00f911ae67..c995ef7fd6f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # CHANGELOG +## `v38.1.0` + +### New Packages + +| Package Name | API Version | +| -----------: | :---------: | +| frontdoor | 2019-10-01
2019-11-01 | + +### Updated Packages + +| Package Name | API Version | +| -----------: | :---------: | +| storage | 2019-06-01 | + ## `v38.0.0` ### New Packages 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 2d15ffd1c270..bb2126b78134 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 6100bd0f7c1b..e6c4af26dd9d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 8eb7279d9471..e664c608632a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 1831ae1581f5..735f00371ea9 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 c34497fcec1b..45e0283706e0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 7c140d2cb6bf..336db1bc67ed 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 0d4ffd1f5c94..0aa3504d1243 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 c3f0cfef3de1..772602b250f0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2e397b85d5a8..d19f6b114083 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 003dcd49e98e..56aaf2671292 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 b0dbc943edc6..fd0e2ad19235 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 6b3c2bdb7abe..7513c5ece970 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 1ec8c0a6f3d2..c61086ae4f67 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 6b38c8bf8fa4..3193dc8243e9 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 a9d90da4da05..eb2eafc3f775 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/policyapi/models.go b/profiles/2017-03-09/resources/mgmt/policy/policyapi/models.go index 477b7d32d427..9f132ebc7126 100644 --- a/profiles/2017-03-09/resources/mgmt/policy/policyapi/models.go +++ b/profiles/2017-03-09/resources/mgmt/policy/policyapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 94a1a8b8e728..9666bbaaddb8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 0429d6e102d7..f7fab1f64871 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 cb1aa0b6f920..e4452db6816a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 5d49a61a940e..24104e8c5238 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 1af1d6eb0304..777bd92a163d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 10bc022e37b5..5fc5721187e8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 8fd2a92fb838..7a426dc69265 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 ad116610e6a5..e54bbb47e48d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 7ba6567c83e2..1aca3b9ed97b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 aaa74bdc5ec8..b8fee411e4fe 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 ae04cf57d981..c38f56712f8a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2b8f1db99547..389d16581205 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 8eb7279d9471..e664c608632a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 4c8d1ee9871b..10760746362f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 c34497fcec1b..45e0283706e0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d1b56baf72e7..ebec9dbacd94 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 4c54c1ee2b2f..796e384e6cf2 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 53b52aa78812..d9941ba1b3fd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 b0dbc943edc6..fd0e2ad19235 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 c2e29b6b5bcb..ed26f7495dde 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 de8c2e5d8d74..849387e83e50 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 c46e1441c11b..8ffeb511c55b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 1135000b9f51..1c3308c66c88 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 b11f221e60a5..bf9d01f60ce0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e23282499986..1e5ba958b457 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 a7751111f006..b6a5de983da1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 3fc0a30b7ef5..c04d52a84493 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 5d49a61a940e..24104e8c5238 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 83cc89864c98..7d8e8f492f60 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 10bc022e37b5..5fc5721187e8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 628843b1ea3e..457184123b44 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 18e527ffb27b..5c5071387427 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/authorization/mgmt/authorization/authorizationapi/models.go b/profiles/2019-03-01/authorization/mgmt/authorization/authorizationapi/models.go index 8fd2a92fb838..7a426dc69265 100644 --- a/profiles/2019-03-01/authorization/mgmt/authorization/authorizationapi/models.go +++ b/profiles/2019-03-01/authorization/mgmt/authorization/authorizationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/authorization/mgmt/authorization/models.go b/profiles/2019-03-01/authorization/mgmt/authorization/models.go index ff5ab96b272d..d094a646618c 100644 --- a/profiles/2019-03-01/authorization/mgmt/authorization/models.go +++ b/profiles/2019-03-01/authorization/mgmt/authorization/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/compute/mgmt/compute/computeapi/models.go b/profiles/2019-03-01/compute/mgmt/compute/computeapi/models.go index 7172e8f97b35..3dab1dec4ce0 100644 --- a/profiles/2019-03-01/compute/mgmt/compute/computeapi/models.go +++ b/profiles/2019-03-01/compute/mgmt/compute/computeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/compute/mgmt/compute/models.go b/profiles/2019-03-01/compute/mgmt/compute/models.go index fed2780c1b54..2b9a2a49ce13 100644 --- a/profiles/2019-03-01/compute/mgmt/compute/models.go +++ b/profiles/2019-03-01/compute/mgmt/compute/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/dns/mgmt/dns/dnsapi/models.go b/profiles/2019-03-01/dns/mgmt/dns/dnsapi/models.go index ae04cf57d981..c38f56712f8a 100644 --- a/profiles/2019-03-01/dns/mgmt/dns/dnsapi/models.go +++ b/profiles/2019-03-01/dns/mgmt/dns/dnsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/dns/mgmt/dns/models.go b/profiles/2019-03-01/dns/mgmt/dns/models.go index 542455fdff25..636a97c08dd5 100644 --- a/profiles/2019-03-01/dns/mgmt/dns/models.go +++ b/profiles/2019-03-01/dns/mgmt/dns/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/keyvault/keyvault/keyvaultapi/models.go b/profiles/2019-03-01/keyvault/keyvault/keyvaultapi/models.go index 8eb7279d9471..e664c608632a 100644 --- a/profiles/2019-03-01/keyvault/keyvault/keyvaultapi/models.go +++ b/profiles/2019-03-01/keyvault/keyvault/keyvaultapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/keyvault/keyvault/models.go b/profiles/2019-03-01/keyvault/keyvault/models.go index 2b18caa5e052..c6a356d5c071 100644 --- a/profiles/2019-03-01/keyvault/keyvault/models.go +++ b/profiles/2019-03-01/keyvault/keyvault/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/keyvault/mgmt/keyvault/keyvaultapi/models.go b/profiles/2019-03-01/keyvault/mgmt/keyvault/keyvaultapi/models.go index c34497fcec1b..45e0283706e0 100644 --- a/profiles/2019-03-01/keyvault/mgmt/keyvault/keyvaultapi/models.go +++ b/profiles/2019-03-01/keyvault/mgmt/keyvault/keyvaultapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/keyvault/mgmt/keyvault/models.go b/profiles/2019-03-01/keyvault/mgmt/keyvault/models.go index 48d524ba39f5..269bf9c48d10 100644 --- a/profiles/2019-03-01/keyvault/mgmt/keyvault/models.go +++ b/profiles/2019-03-01/keyvault/mgmt/keyvault/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/network/mgmt/network/models.go b/profiles/2019-03-01/network/mgmt/network/models.go index 9bb568ec0d01..a47c440a68e4 100644 --- a/profiles/2019-03-01/network/mgmt/network/models.go +++ b/profiles/2019-03-01/network/mgmt/network/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/network/mgmt/network/networkapi/models.go b/profiles/2019-03-01/network/mgmt/network/networkapi/models.go index 53b52aa78812..d9941ba1b3fd 100644 --- a/profiles/2019-03-01/network/mgmt/network/networkapi/models.go +++ b/profiles/2019-03-01/network/mgmt/network/networkapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/resources/mgmt/insights/insightsapi/models.go b/profiles/2019-03-01/resources/mgmt/insights/insightsapi/models.go index 369176267635..521054b8e9ea 100644 --- a/profiles/2019-03-01/resources/mgmt/insights/insightsapi/models.go +++ b/profiles/2019-03-01/resources/mgmt/insights/insightsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/resources/mgmt/insights/models.go b/profiles/2019-03-01/resources/mgmt/insights/models.go index 82a6e63679a5..49c8bffc14e0 100644 --- a/profiles/2019-03-01/resources/mgmt/insights/models.go +++ b/profiles/2019-03-01/resources/mgmt/insights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/resources/mgmt/links/linksapi/models.go b/profiles/2019-03-01/resources/mgmt/links/linksapi/models.go index b0dbc943edc6..fd0e2ad19235 100644 --- a/profiles/2019-03-01/resources/mgmt/links/linksapi/models.go +++ b/profiles/2019-03-01/resources/mgmt/links/linksapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/resources/mgmt/links/models.go b/profiles/2019-03-01/resources/mgmt/links/models.go index e9906ed0f79e..88c2d9db7eb5 100644 --- a/profiles/2019-03-01/resources/mgmt/links/models.go +++ b/profiles/2019-03-01/resources/mgmt/links/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/resources/mgmt/locks/locksapi/models.go b/profiles/2019-03-01/resources/mgmt/locks/locksapi/models.go index de8c2e5d8d74..849387e83e50 100644 --- a/profiles/2019-03-01/resources/mgmt/locks/locksapi/models.go +++ b/profiles/2019-03-01/resources/mgmt/locks/locksapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/resources/mgmt/locks/models.go b/profiles/2019-03-01/resources/mgmt/locks/models.go index a1c6c60a73e6..5697871d9ecd 100644 --- a/profiles/2019-03-01/resources/mgmt/locks/models.go +++ b/profiles/2019-03-01/resources/mgmt/locks/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/resources/mgmt/policy/models.go b/profiles/2019-03-01/resources/mgmt/policy/models.go index e5c0e7277957..875081745fbb 100644 --- a/profiles/2019-03-01/resources/mgmt/policy/models.go +++ b/profiles/2019-03-01/resources/mgmt/policy/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/resources/mgmt/policy/policyapi/models.go b/profiles/2019-03-01/resources/mgmt/policy/policyapi/models.go index b11f221e60a5..bf9d01f60ce0 100644 --- a/profiles/2019-03-01/resources/mgmt/policy/policyapi/models.go +++ b/profiles/2019-03-01/resources/mgmt/policy/policyapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/resources/mgmt/resources/models.go b/profiles/2019-03-01/resources/mgmt/resources/models.go index b6b068090beb..835ead509b9d 100644 --- a/profiles/2019-03-01/resources/mgmt/resources/models.go +++ b/profiles/2019-03-01/resources/mgmt/resources/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/resources/mgmt/resources/resourcesapi/models.go b/profiles/2019-03-01/resources/mgmt/resources/resourcesapi/models.go index b00557304a23..a19975427871 100644 --- a/profiles/2019-03-01/resources/mgmt/resources/resourcesapi/models.go +++ b/profiles/2019-03-01/resources/mgmt/resources/resourcesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/resources/mgmt/subscriptions/models.go b/profiles/2019-03-01/resources/mgmt/subscriptions/models.go index 35d64b13201c..d0a897392a92 100644 --- a/profiles/2019-03-01/resources/mgmt/subscriptions/models.go +++ b/profiles/2019-03-01/resources/mgmt/subscriptions/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/resources/mgmt/subscriptions/subscriptionsapi/models.go b/profiles/2019-03-01/resources/mgmt/subscriptions/subscriptionsapi/models.go index 5d49a61a940e..24104e8c5238 100644 --- a/profiles/2019-03-01/resources/mgmt/subscriptions/subscriptionsapi/models.go +++ b/profiles/2019-03-01/resources/mgmt/subscriptions/subscriptionsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/storage/mgmt/storage/models.go b/profiles/2019-03-01/storage/mgmt/storage/models.go index bd4158a858b7..2b4a2829c06a 100644 --- a/profiles/2019-03-01/storage/mgmt/storage/models.go +++ b/profiles/2019-03-01/storage/mgmt/storage/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/storage/mgmt/storage/storageapi/models.go b/profiles/2019-03-01/storage/mgmt/storage/storageapi/models.go index 737a8b099b0e..893ea45de867 100644 --- a/profiles/2019-03-01/storage/mgmt/storage/storageapi/models.go +++ b/profiles/2019-03-01/storage/mgmt/storage/storageapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/web/mgmt/web/models.go b/profiles/2019-03-01/web/mgmt/web/models.go index fd8978007c05..34b5fc5ddff0 100644 --- a/profiles/2019-03-01/web/mgmt/web/models.go +++ b/profiles/2019-03-01/web/mgmt/web/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/2019-03-01/web/mgmt/web/webapi/models.go b/profiles/2019-03-01/web/mgmt/web/webapi/models.go index a38a27b2cc73..12cabaa83f22 100644 --- a/profiles/2019-03-01/web/mgmt/web/webapi/models.go +++ b/profiles/2019-03-01/web/mgmt/web/webapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/aad/mgmt/aad/aadapi/models.go b/profiles/latest/aad/mgmt/aad/aadapi/models.go index 3bfa5c73d4cc..9c2c89bfb397 100644 --- a/profiles/latest/aad/mgmt/aad/aadapi/models.go +++ b/profiles/latest/aad/mgmt/aad/aadapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/aad/mgmt/aad/models.go b/profiles/latest/aad/mgmt/aad/models.go index e16bc5cedaee..a9ce085f10e6 100644 --- a/profiles/latest/aad/mgmt/aad/models.go +++ b/profiles/latest/aad/mgmt/aad/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d0430824e120..849c19427639 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 615cb2f97263..cbfbaae17916 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 1cd617148bb3..34718d811c40 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 68a8ce3dd966..64bc36701a52 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 951ae0f21a84..e9d30a6e17f7 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e2352cdf013c..ab923646b8c2 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 f0e384bd4cdb..fe32d8e81ea1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e740b1301b82..7b7d6cacaf87 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 8f2a550a219a..025cdd9cd4d1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e33ff9e73565..c61240a715fb 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go b/profiles/latest/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go index 2cc70b8e585a..3bf7a623c226 100644 --- a/profiles/latest/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go +++ b/profiles/latest/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/appconfiguration/mgmt/appconfiguration/models.go b/profiles/latest/appconfiguration/mgmt/appconfiguration/models.go index 1b7e13f25d5b..db0bd23e7df4 100644 --- a/profiles/latest/appconfiguration/mgmt/appconfiguration/models.go +++ b/profiles/latest/appconfiguration/mgmt/appconfiguration/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 b5609afe38de..98106bbf2857 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d49dfdf12ba6..0d112b8e6ab9 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 8fd2a92fb838..7a426dc69265 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 1ddd871dcbd4..0929ed5436db 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 4ecdab7a9cce..0c9f1fb8518d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 5aeba882bd1b..8dbe0d840ae7 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 b741f8bbb411..861f3a7b8e24 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 eb2759357de6..407ac1947b2b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2454cbf25796..13f9cd820c20 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2164f52af302..f883d2b4ae32 100644 --- a/profiles/latest/batch/batch/models.go +++ b/profiles/latest/batch/batch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 0a26813bd53e..6e730ae554fc 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 381adf56f262..31c70f7ac750 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2444beec7a48..2eeab2701f19 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 1fab65c97ad9..0581576c9ced 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 8fc5018cbc32..b0c7cc781828 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 978bd80bbf83..efa977211a2a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 eede70a18dc6..b44e84f2bc05 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 b34b1f352c61..6fffa31e6741 100644 --- a/profiles/latest/cognitiveservices/autosuggest/models.go +++ b/profiles/latest/cognitiveservices/autosuggest/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 27a1ed2e9e90..7bcaba1a4dd0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 40353f14c743..0e57cfceb950 100644 --- a/profiles/latest/cognitiveservices/computervision/models.go +++ b/profiles/latest/cognitiveservices/computervision/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e1c9ff1ff0e7..90c34d01b256 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 ba97c1cf8ff9..f35f54f4d763 100644 --- a/profiles/latest/cognitiveservices/contentmoderator/models.go +++ b/profiles/latest/cognitiveservices/contentmoderator/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e63ba5931467..47559a395013 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 cb476ba22467..c52e6e2f9bed 100644 --- a/profiles/latest/cognitiveservices/customimagesearch/models.go +++ b/profiles/latest/cognitiveservices/customimagesearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 3d40c669a132..8e564997ca40 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 532783df69a1..e9dab778ae46 100644 --- a/profiles/latest/cognitiveservices/customsearch/models.go +++ b/profiles/latest/cognitiveservices/customsearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 546fac43aac4..e849c31aa0b5 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e907dc83224c..c448e62bad92 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 6ac391ccc004..e22bc41a95b0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 58513bb4fcd7..ddb97d86b389 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2d2dfa809af8..6031b473e014 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 89669296f7ba..bd0c85b6d061 100644 --- a/profiles/latest/cognitiveservices/entitysearch/models.go +++ b/profiles/latest/cognitiveservices/entitysearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 cfb1153bedef..d695ffe0fa2d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 f13e0bf1f1a1..62eaa370891c 100644 --- a/profiles/latest/cognitiveservices/face/models.go +++ b/profiles/latest/cognitiveservices/face/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 256da2ec0e2c..8791797f8845 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 80306f13fb0b..9099457762ee 100644 --- a/profiles/latest/cognitiveservices/imagesearch/models.go +++ b/profiles/latest/cognitiveservices/imagesearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 8acfb085e1cc..40dd3c65c3ca 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 6c302c948768..4ebe2a099c43 100644 --- a/profiles/latest/cognitiveservices/localsearch/models.go +++ b/profiles/latest/cognitiveservices/localsearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 15ac78bb317b..f01865e65d2a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 ec5d284fd97a..5d044d4e6dcd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 7cb4f4e642ef..649be5ccb1bb 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d667bc94c344..51ec6a5094ad 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2ab87e1823d9..86bc6be67b6d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 42eca8c78f11..3f99499ecf94 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 b771b01050f9..526037cdcb98 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 98d24451f878..30f6a13a8fc4 100644 --- a/profiles/latest/cognitiveservices/newssearch/models.go +++ b/profiles/latest/cognitiveservices/newssearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e8154974d69d..6b38285ecc2d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2b7767ec320d..0a940d59347a 100644 --- a/profiles/latest/cognitiveservices/qnamaker/models.go +++ b/profiles/latest/cognitiveservices/qnamaker/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 012c60505bae..5f876b2cf304 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/qnamakerruntime/models.go b/profiles/latest/cognitiveservices/qnamakerruntime/models.go index b73874a95dfc..3aca5994ea5d 100644 --- a/profiles/latest/cognitiveservices/qnamakerruntime/models.go +++ b/profiles/latest/cognitiveservices/qnamakerruntime/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/qnamakerruntime/qnamakerruntimeapi/models.go b/profiles/latest/cognitiveservices/qnamakerruntime/qnamakerruntimeapi/models.go index b2f6ac1d9100..43ce91748419 100644 --- a/profiles/latest/cognitiveservices/qnamakerruntime/qnamakerruntimeapi/models.go +++ b/profiles/latest/cognitiveservices/qnamakerruntime/qnamakerruntimeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 7c39c44fe434..839b19f4e78b 100644 --- a/profiles/latest/cognitiveservices/spellcheck/models.go +++ b/profiles/latest/cognitiveservices/spellcheck/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 0d1d1a7edeba..a6ecd8bbd740 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 745f6ffc696a..a4c8d5bef56a 100644 --- a/profiles/latest/cognitiveservices/textanalytics/models.go +++ b/profiles/latest/cognitiveservices/textanalytics/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 0c4f37d3ad3d..adc2a38e22e1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/translatortext/models.go b/profiles/latest/cognitiveservices/translatortext/models.go index b74b4c886c12..9d656d76a049 100644 --- a/profiles/latest/cognitiveservices/translatortext/models.go +++ b/profiles/latest/cognitiveservices/translatortext/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/translatortext/translatortextapi/models.go b/profiles/latest/cognitiveservices/translatortext/translatortextapi/models.go index 4aeb11ba918d..0d3d428fd605 100644 --- a/profiles/latest/cognitiveservices/translatortext/translatortextapi/models.go +++ b/profiles/latest/cognitiveservices/translatortext/translatortextapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 a2f0de6d9b6b..631223eea26a 100644 --- a/profiles/latest/cognitiveservices/videosearch/models.go +++ b/profiles/latest/cognitiveservices/videosearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 de5a5e36f3a2..7b5547ebfcca 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 02115f4faefa..40481e338c87 100644 --- a/profiles/latest/cognitiveservices/websearch/models.go +++ b/profiles/latest/cognitiveservices/websearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 fc093cff5ac2..4271e983b726 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 680673b3d51e..ca263918ee02 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 953a2c77e4b3..dc0d9e4dfee9 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 b72ec64f92d8..718c611172a5 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 104f1260f9df..ca5363a7341e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d168dc27d646..3a0e8d1c8ab2 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d608a8651939..4a2f8128241f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 ae61abe5104f..daf52ae7ae38 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 89da7e503cfc..1d2afd9cc42b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 5c32c07116ab..8679ab53f112 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2834140ca33f..0da6c1fedce5 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 5d4f388c4c87..c764f39fdfa6 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d86df85d27d4..6881a24572fa 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 3fb63bea091e..5c1e5ea9e492 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 3aaf9fd42e09..94d6bb0d751e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 f8a485d17abf..21c7c4860925 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 ba9e40291e1d..1a54c0960f53 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 cc1e4dd9ef64..237c6aa6f183 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 f26d2607ed4b..92f2ee091ceb 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d1f0705c3f4b..b3b065a65b27 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 cfd5f24d7b2b..2df99a6d46f3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/databoxedge/mgmt/databoxedge/databoxedgeapi/models.go b/profiles/latest/databoxedge/mgmt/databoxedge/databoxedgeapi/models.go index 1ffe67fd69c9..74e5d364985b 100644 --- a/profiles/latest/databoxedge/mgmt/databoxedge/databoxedgeapi/models.go +++ b/profiles/latest/databoxedge/mgmt/databoxedge/databoxedgeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/databoxedge/mgmt/databoxedge/models.go b/profiles/latest/databoxedge/mgmt/databoxedge/models.go index 6844582275aa..6af93df6d258 100644 --- a/profiles/latest/databoxedge/mgmt/databoxedge/models.go +++ b/profiles/latest/databoxedge/mgmt/databoxedge/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 bdd3cda732dc..f522ae8717a9 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 770dd38e4274..99866e6e2916 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d6848bb57e4b..46290f73f523 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 92cd19d8a763..780d4836d076 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 28f064af3a1b..7e5379731571 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e3ba33c3686e..11284b3fad70 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 3d3092f45cfa..b30e057a7d18 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 bab45184315f..a416d94fca0f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 83e9df4139d0..acd08dc0f592 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 98f8eada9475..8067bdc248ea 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 6093cf28a13a..abfec75d3998 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 4712b09bb40d..a758116bab1d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 78fccb7d3760..619693b13af8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 9fc9ac7dc23c..1ca203e41a78 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 dad255426d7c..882c020b8a46 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 4827fc7d1ca8..f71ae46495d7 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/datashare/mgmt/datashare/datashareapi/models.go b/profiles/latest/datashare/mgmt/datashare/datashareapi/models.go index 9f24dd90d35d..8b098f120ec1 100644 --- a/profiles/latest/datashare/mgmt/datashare/datashareapi/models.go +++ b/profiles/latest/datashare/mgmt/datashare/datashareapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/datashare/mgmt/datashare/models.go b/profiles/latest/datashare/mgmt/datashare/models.go index fb88cb82a7a1..b239f680176c 100644 --- a/profiles/latest/datashare/mgmt/datashare/models.go +++ b/profiles/latest/datashare/mgmt/datashare/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/devspaces/mgmt/devspaces/devspacesapi/models.go b/profiles/latest/devspaces/mgmt/devspaces/devspacesapi/models.go index 8aedc0fec96c..c771b7aac52b 100644 --- a/profiles/latest/devspaces/mgmt/devspaces/devspacesapi/models.go +++ b/profiles/latest/devspaces/mgmt/devspaces/devspacesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/devspaces/mgmt/devspaces/models.go b/profiles/latest/devspaces/mgmt/devspaces/models.go index 3174983a226c..12d3af99275f 100644 --- a/profiles/latest/devspaces/mgmt/devspaces/models.go +++ b/profiles/latest/devspaces/mgmt/devspaces/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 917f8fa36965..e6b5d13a437e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 f35bb8a8b6ee..1e56a966de7a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 0b1293ab7f7f..5bb4d9da62b0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 bb47c7dee04d..0165635bc3fc 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 9f299cf3ee98..19e15543488a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d204eceb8de3..533c77e2675e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/eventgridapi/models.go b/profiles/latest/eventgrid/eventgrid/eventgridapi/models.go index 643ca9529c1f..0b949b0d2b50 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 9ee7818f21d7..78f52659e11f 100644 --- a/profiles/latest/eventgrid/eventgrid/models.go +++ b/profiles/latest/eventgrid/eventgrid/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 974bd474c480..96e6f3621a8b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/models.go b/profiles/latest/eventgrid/mgmt/eventgrid/models.go index a3ad0e40bae9..f0aec6dff95b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/eventhubapi/models.go b/profiles/latest/eventhub/mgmt/eventhub/eventhubapi/models.go index 77d581207451..6122265b95c4 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 678b8dbc2774..b4701280776a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/frontdoor/mgmt/frontdoor/frontdoorapi/models.go b/profiles/latest/frontdoor/mgmt/frontdoor/frontdoorapi/models.go index 08954a3ee34d..8116b4b93fa1 100644 --- a/profiles/latest/frontdoor/mgmt/frontdoor/frontdoorapi/models.go +++ b/profiles/latest/frontdoor/mgmt/frontdoor/frontdoorapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 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,11 +19,15 @@ package frontdoorapi -import original "github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoorapi" +import original "github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoorapi" type BaseClientAPI = original.BaseClientAPI type EndpointsClientAPI = original.EndpointsClientAPI +type ExperimentsClientAPI = original.ExperimentsClientAPI type FrontDoorsClientAPI = original.FrontDoorsClientAPI type FrontendEndpointsClientAPI = original.FrontendEndpointsClientAPI type ManagedRuleSetsClientAPI = original.ManagedRuleSetsClientAPI +type NetworkExperimentProfilesClientAPI = original.NetworkExperimentProfilesClientAPI type PoliciesClientAPI = original.PoliciesClientAPI +type PreconfiguredEndpointsClientAPI = original.PreconfiguredEndpointsClientAPI +type ReportsClientAPI = original.ReportsClientAPI diff --git a/profiles/latest/frontdoor/mgmt/frontdoor/models.go b/profiles/latest/frontdoor/mgmt/frontdoor/models.go index 501bee6917c7..11d85cd6915e 100644 --- a/profiles/latest/frontdoor/mgmt/frontdoor/models.go +++ b/profiles/latest/frontdoor/mgmt/frontdoor/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ package frontdoor import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-05-01/frontdoor" + original "github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-11-01/frontdoor" ) const ( @@ -38,6 +38,13 @@ const ( Redirect ActionType = original.Redirect ) +type AggregationInterval = original.AggregationInterval + +const ( + Daily AggregationInterval = original.Daily + Hourly AggregationInterval = original.Hourly +) + type Availability = original.Availability const ( @@ -111,6 +118,15 @@ const ( EnabledStateEnabled EnabledState = original.EnabledStateEnabled ) +type EndpointType = original.EndpointType + +const ( + AFD EndpointType = original.AFD + ATM EndpointType = original.ATM + AzureRegion EndpointType = original.AzureRegion + CDN EndpointType = original.CDN +) + type EnforceCertificateNameCheckEnabledState = original.EnforceCertificateNameCheckEnabledState const ( @@ -140,6 +156,14 @@ const ( HEAD HealthProbeMethod = original.HEAD ) +type LatencyScorecardAggregationInterval = original.LatencyScorecardAggregationInterval + +const ( + LatencyScorecardAggregationIntervalDaily LatencyScorecardAggregationInterval = original.LatencyScorecardAggregationIntervalDaily + LatencyScorecardAggregationIntervalMonthly LatencyScorecardAggregationInterval = original.LatencyScorecardAggregationIntervalMonthly + LatencyScorecardAggregationIntervalWeekly LatencyScorecardAggregationInterval = original.LatencyScorecardAggregationIntervalWeekly +) + type ManagedRuleEnabledState = original.ManagedRuleEnabledState const ( @@ -147,6 +171,25 @@ const ( ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = original.ManagedRuleEnabledStateEnabled ) +type ManagedRuleExclusionMatchVariable = original.ManagedRuleExclusionMatchVariable + +const ( + QueryStringArgNames ManagedRuleExclusionMatchVariable = original.QueryStringArgNames + RequestBodyPostArgNames ManagedRuleExclusionMatchVariable = original.RequestBodyPostArgNames + RequestCookieNames ManagedRuleExclusionMatchVariable = original.RequestCookieNames + RequestHeaderNames ManagedRuleExclusionMatchVariable = original.RequestHeaderNames +) + +type ManagedRuleExclusionSelectorMatchOperator = original.ManagedRuleExclusionSelectorMatchOperator + +const ( + Contains ManagedRuleExclusionSelectorMatchOperator = original.Contains + EndsWith ManagedRuleExclusionSelectorMatchOperator = original.EndsWith + Equals ManagedRuleExclusionSelectorMatchOperator = original.Equals + EqualsAny ManagedRuleExclusionSelectorMatchOperator = original.EqualsAny + StartsWith ManagedRuleExclusionSelectorMatchOperator = original.StartsWith +) + type MatchVariable = original.MatchVariable const ( @@ -168,6 +211,17 @@ const ( OneFullStopZero MinimumTLSVersion = original.OneFullStopZero ) +type NetworkExperimentResourceState = original.NetworkExperimentResourceState + +const ( + NetworkExperimentResourceStateCreating NetworkExperimentResourceState = original.NetworkExperimentResourceStateCreating + NetworkExperimentResourceStateDeleting NetworkExperimentResourceState = original.NetworkExperimentResourceStateDeleting + NetworkExperimentResourceStateDisabled NetworkExperimentResourceState = original.NetworkExperimentResourceStateDisabled + NetworkExperimentResourceStateDisabling NetworkExperimentResourceState = original.NetworkExperimentResourceStateDisabling + NetworkExperimentResourceStateEnabled NetworkExperimentResourceState = original.NetworkExperimentResourceStateEnabled + NetworkExperimentResourceStateEnabling NetworkExperimentResourceState = original.NetworkExperimentResourceStateEnabling +) + type NetworkOperationStatus = original.NetworkOperationStatus const ( @@ -187,18 +241,18 @@ const ( type Operator = original.Operator const ( - Any Operator = original.Any - BeginsWith Operator = original.BeginsWith - Contains Operator = original.Contains - EndsWith Operator = original.EndsWith - Equal Operator = original.Equal - GeoMatch Operator = original.GeoMatch - GreaterThan Operator = original.GreaterThan - GreaterThanOrEqual Operator = original.GreaterThanOrEqual - IPMatch Operator = original.IPMatch - LessThan Operator = original.LessThan - LessThanOrEqual Operator = original.LessThanOrEqual - RegEx Operator = original.RegEx + OperatorAny Operator = original.OperatorAny + OperatorBeginsWith Operator = original.OperatorBeginsWith + OperatorContains Operator = original.OperatorContains + OperatorEndsWith Operator = original.OperatorEndsWith + OperatorEqual Operator = original.OperatorEqual + OperatorGeoMatch Operator = original.OperatorGeoMatch + OperatorGreaterThan Operator = original.OperatorGreaterThan + OperatorGreaterThanOrEqual Operator = original.OperatorGreaterThanOrEqual + OperatorIPMatch Operator = original.OperatorIPMatch + OperatorLessThan Operator = original.OperatorLessThan + OperatorLessThanOrEqual Operator = original.OperatorLessThanOrEqual + OperatorRegEx Operator = original.OperatorRegEx ) type PolicyEnabledState = original.PolicyEnabledState @@ -296,6 +350,29 @@ const ( SessionAffinityEnabledStateEnabled SessionAffinityEnabledState = original.SessionAffinityEnabledStateEnabled ) +type State = original.State + +const ( + StateDisabled State = original.StateDisabled + StateEnabled State = original.StateEnabled +) + +type TimeseriesAggregationInterval = original.TimeseriesAggregationInterval + +const ( + TimeseriesAggregationIntervalDaily TimeseriesAggregationInterval = original.TimeseriesAggregationIntervalDaily + TimeseriesAggregationIntervalHourly TimeseriesAggregationInterval = original.TimeseriesAggregationIntervalHourly +) + +type TimeseriesType = original.TimeseriesType + +const ( + LatencyP50 TimeseriesType = original.LatencyP50 + LatencyP75 TimeseriesType = original.LatencyP75 + LatencyP95 TimeseriesType = original.LatencyP95 + MeasurementCounts TimeseriesType = original.MeasurementCounts +) + type TransformType = original.TransformType const ( @@ -323,11 +400,23 @@ type CheckNameAvailabilityOutput = original.CheckNameAvailabilityOutput type CustomHTTPSConfiguration = original.CustomHTTPSConfiguration type CustomRule = original.CustomRule type CustomRuleList = original.CustomRuleList +type Endpoint = original.Endpoint type EndpointsClient = original.EndpointsClient type EndpointsPurgeContentFuture = original.EndpointsPurgeContentFuture type Error = original.Error type ErrorDetails = original.ErrorDetails type ErrorResponse = original.ErrorResponse +type Experiment = original.Experiment +type ExperimentList = original.ExperimentList +type ExperimentListIterator = original.ExperimentListIterator +type ExperimentListPage = original.ExperimentListPage +type ExperimentProperties = original.ExperimentProperties +type ExperimentUpdateModel = original.ExperimentUpdateModel +type ExperimentUpdateProperties = original.ExperimentUpdateProperties +type ExperimentsClient = original.ExperimentsClient +type ExperimentsCreateOrUpdateFuture = original.ExperimentsCreateOrUpdateFuture +type ExperimentsDeleteFuture = original.ExperimentsDeleteFuture +type ExperimentsUpdateFuture = original.ExperimentsUpdateFuture type ForwardingConfiguration = original.ForwardingConfiguration type FrontDoor = original.FrontDoor type FrontDoorsClient = original.FrontDoorsClient @@ -350,6 +439,9 @@ type HealthProbeSettingsProperties = original.HealthProbeSettingsProperties type HealthProbeSettingsUpdateParameters = original.HealthProbeSettingsUpdateParameters type KeyVaultCertificateSourceParameters = original.KeyVaultCertificateSourceParameters type KeyVaultCertificateSourceParametersVault = original.KeyVaultCertificateSourceParametersVault +type LatencyMetric = original.LatencyMetric +type LatencyScorecard = original.LatencyScorecard +type LatencyScorecardProperties = original.LatencyScorecardProperties type ListResult = original.ListResult type ListResultIterator = original.ListResultIterator type ListResultPage = original.ListResultPage @@ -358,6 +450,7 @@ type LoadBalancingSettingsModel = original.LoadBalancingSettingsModel type LoadBalancingSettingsProperties = original.LoadBalancingSettingsProperties type LoadBalancingSettingsUpdateParameters = original.LoadBalancingSettingsUpdateParameters type ManagedRuleDefinition = original.ManagedRuleDefinition +type ManagedRuleExclusion = original.ManagedRuleExclusion type ManagedRuleGroupDefinition = original.ManagedRuleGroupDefinition type ManagedRuleGroupOverride = original.ManagedRuleGroupOverride type ManagedRuleOverride = original.ManagedRuleOverride @@ -370,13 +463,31 @@ type ManagedRuleSetDefinitionProperties = original.ManagedRuleSetDefinitionPrope type ManagedRuleSetList = original.ManagedRuleSetList type ManagedRuleSetsClient = original.ManagedRuleSetsClient type MatchCondition = original.MatchCondition +type NetworkExperimentProfilesClient = original.NetworkExperimentProfilesClient +type NetworkExperimentProfilesCreateOrUpdateFuture = original.NetworkExperimentProfilesCreateOrUpdateFuture +type NetworkExperimentProfilesDeleteFuture = original.NetworkExperimentProfilesDeleteFuture +type NetworkExperimentProfilesUpdateFuture = original.NetworkExperimentProfilesUpdateFuture type PoliciesClient = original.PoliciesClient type PoliciesCreateOrUpdateFuture = original.PoliciesCreateOrUpdateFuture type PoliciesDeleteFuture = original.PoliciesDeleteFuture type PolicySettings = original.PolicySettings +type PreconfiguredEndpoint = original.PreconfiguredEndpoint +type PreconfiguredEndpointList = original.PreconfiguredEndpointList +type PreconfiguredEndpointListIterator = original.PreconfiguredEndpointListIterator +type PreconfiguredEndpointListPage = original.PreconfiguredEndpointListPage +type PreconfiguredEndpointProperties = original.PreconfiguredEndpointProperties +type PreconfiguredEndpointsClient = original.PreconfiguredEndpointsClient +type Profile = original.Profile +type ProfileList = original.ProfileList +type ProfileListIterator = original.ProfileListIterator +type ProfileListPage = original.ProfileListPage +type ProfileProperties = original.ProfileProperties +type ProfileUpdateModel = original.ProfileUpdateModel +type ProfileUpdateProperties = original.ProfileUpdateProperties type Properties = original.Properties type PurgeParameters = original.PurgeParameters type RedirectConfiguration = original.RedirectConfiguration +type ReportsClient = original.ReportsClient type Resource = original.Resource type RouteConfiguration = original.RouteConfiguration type RoutingRule = original.RoutingRule @@ -385,6 +496,9 @@ type RoutingRuleProperties = original.RoutingRuleProperties type RoutingRuleUpdateParameters = original.RoutingRuleUpdateParameters type SubResource = original.SubResource type TagsObject = original.TagsObject +type Timeseries = original.Timeseries +type TimeseriesDataPoint = original.TimeseriesDataPoint +type TimeseriesProperties = original.TimeseriesProperties type UpdateParameters = original.UpdateParameters type ValidateCustomDomainInput = original.ValidateCustomDomainInput type ValidateCustomDomainOutput = original.ValidateCustomDomainOutput @@ -403,6 +517,18 @@ func NewEndpointsClient(subscriptionID string) EndpointsClient { func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient { return original.NewEndpointsClientWithBaseURI(baseURI, subscriptionID) } +func NewExperimentListIterator(page ExperimentListPage) ExperimentListIterator { + return original.NewExperimentListIterator(page) +} +func NewExperimentListPage(getNextPage func(context.Context, ExperimentList) (ExperimentList, error)) ExperimentListPage { + return original.NewExperimentListPage(getNextPage) +} +func NewExperimentsClient(subscriptionID string) ExperimentsClient { + return original.NewExperimentsClient(subscriptionID) +} +func NewExperimentsClientWithBaseURI(baseURI string, subscriptionID string) ExperimentsClient { + return original.NewExperimentsClientWithBaseURI(baseURI, subscriptionID) +} func NewFrontDoorsClient(subscriptionID string) FrontDoorsClient { return original.NewFrontDoorsClient(subscriptionID) } @@ -439,12 +565,42 @@ func NewManagedRuleSetsClient(subscriptionID string) ManagedRuleSetsClient { func NewManagedRuleSetsClientWithBaseURI(baseURI string, subscriptionID string) ManagedRuleSetsClient { return original.NewManagedRuleSetsClientWithBaseURI(baseURI, subscriptionID) } +func NewNetworkExperimentProfilesClient(subscriptionID string) NetworkExperimentProfilesClient { + return original.NewNetworkExperimentProfilesClient(subscriptionID) +} +func NewNetworkExperimentProfilesClientWithBaseURI(baseURI string, subscriptionID string) NetworkExperimentProfilesClient { + return original.NewNetworkExperimentProfilesClientWithBaseURI(baseURI, subscriptionID) +} func NewPoliciesClient(subscriptionID string) PoliciesClient { return original.NewPoliciesClient(subscriptionID) } func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient { return original.NewPoliciesClientWithBaseURI(baseURI, subscriptionID) } +func NewPreconfiguredEndpointListIterator(page PreconfiguredEndpointListPage) PreconfiguredEndpointListIterator { + return original.NewPreconfiguredEndpointListIterator(page) +} +func NewPreconfiguredEndpointListPage(getNextPage func(context.Context, PreconfiguredEndpointList) (PreconfiguredEndpointList, error)) PreconfiguredEndpointListPage { + return original.NewPreconfiguredEndpointListPage(getNextPage) +} +func NewPreconfiguredEndpointsClient(subscriptionID string) PreconfiguredEndpointsClient { + return original.NewPreconfiguredEndpointsClient(subscriptionID) +} +func NewPreconfiguredEndpointsClientWithBaseURI(baseURI string, subscriptionID string) PreconfiguredEndpointsClient { + return original.NewPreconfiguredEndpointsClientWithBaseURI(baseURI, subscriptionID) +} +func NewProfileListIterator(page ProfileListPage) ProfileListIterator { + return original.NewProfileListIterator(page) +} +func NewProfileListPage(getNextPage func(context.Context, ProfileList) (ProfileList, error)) ProfileListPage { + return original.NewProfileListPage(getNextPage) +} +func NewReportsClient(subscriptionID string) ReportsClient { + return original.NewReportsClient(subscriptionID) +} +func NewReportsClientWithBaseURI(baseURI string, subscriptionID string) ReportsClient { + return original.NewReportsClientWithBaseURI(baseURI, subscriptionID) +} func NewWebApplicationFirewallPolicyListIterator(page WebApplicationFirewallPolicyListPage) WebApplicationFirewallPolicyListIterator { return original.NewWebApplicationFirewallPolicyListIterator(page) } @@ -457,6 +613,9 @@ func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { func PossibleActionTypeValues() []ActionType { return original.PossibleActionTypeValues() } +func PossibleAggregationIntervalValues() []AggregationInterval { + return original.PossibleAggregationIntervalValues() +} func PossibleAvailabilityValues() []Availability { return original.PossibleAvailabilityValues() } @@ -484,6 +643,9 @@ func PossibleDynamicCompressionEnabledValues() []DynamicCompressionEnabled { func PossibleEnabledStateValues() []EnabledState { return original.PossibleEnabledStateValues() } +func PossibleEndpointTypeValues() []EndpointType { + return original.PossibleEndpointTypeValues() +} func PossibleEnforceCertificateNameCheckEnabledStateValues() []EnforceCertificateNameCheckEnabledState { return original.PossibleEnforceCertificateNameCheckEnabledStateValues() } @@ -496,15 +658,27 @@ func PossibleHealthProbeEnabledValues() []HealthProbeEnabled { func PossibleHealthProbeMethodValues() []HealthProbeMethod { return original.PossibleHealthProbeMethodValues() } +func PossibleLatencyScorecardAggregationIntervalValues() []LatencyScorecardAggregationInterval { + return original.PossibleLatencyScorecardAggregationIntervalValues() +} func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState { return original.PossibleManagedRuleEnabledStateValues() } +func PossibleManagedRuleExclusionMatchVariableValues() []ManagedRuleExclusionMatchVariable { + return original.PossibleManagedRuleExclusionMatchVariableValues() +} +func PossibleManagedRuleExclusionSelectorMatchOperatorValues() []ManagedRuleExclusionSelectorMatchOperator { + return original.PossibleManagedRuleExclusionSelectorMatchOperatorValues() +} func PossibleMatchVariableValues() []MatchVariable { return original.PossibleMatchVariableValues() } func PossibleMinimumTLSVersionValues() []MinimumTLSVersion { return original.PossibleMinimumTLSVersionValues() } +func PossibleNetworkExperimentResourceStateValues() []NetworkExperimentResourceState { + return original.PossibleNetworkExperimentResourceStateValues() +} func PossibleNetworkOperationStatusValues() []NetworkOperationStatus { return original.PossibleNetworkOperationStatusValues() } @@ -550,6 +724,15 @@ func PossibleRuleTypeValues() []RuleType { func PossibleSessionAffinityEnabledStateValues() []SessionAffinityEnabledState { return original.PossibleSessionAffinityEnabledStateValues() } +func PossibleStateValues() []State { + return original.PossibleStateValues() +} +func PossibleTimeseriesAggregationIntervalValues() []TimeseriesAggregationInterval { + return original.PossibleTimeseriesAggregationIntervalValues() +} +func PossibleTimeseriesTypeValues() []TimeseriesType { + return original.PossibleTimeseriesTypeValues() +} func PossibleTransformTypeValues() []TransformType { return original.PossibleTransformTypeValues() } diff --git a/profiles/latest/graphrbac/graphrbac/graphrbacapi/models.go b/profiles/latest/graphrbac/graphrbac/graphrbacapi/models.go index 8fa86b6e14c0..8a169e69a6af 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 0f2949bc61e3..7097aa2c333b 100644 --- a/profiles/latest/graphrbac/graphrbac/models.go +++ b/profiles/latest/graphrbac/graphrbac/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/healthcareapis/mgmt/healthcareapis/healthcareapisapi/models.go b/profiles/latest/healthcareapis/mgmt/healthcareapis/healthcareapisapi/models.go index ebd9615bd1ab..d0f4de8f103d 100644 --- a/profiles/latest/healthcareapis/mgmt/healthcareapis/healthcareapisapi/models.go +++ b/profiles/latest/healthcareapis/mgmt/healthcareapis/healthcareapisapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/healthcareapis/mgmt/healthcareapis/models.go b/profiles/latest/healthcareapis/mgmt/healthcareapis/models.go index 0018a473de12..5d031f9027fd 100644 --- a/profiles/latest/healthcareapis/mgmt/healthcareapis/models.go +++ b/profiles/latest/healthcareapis/mgmt/healthcareapis/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/hybriddatamanager/mgmt/hybriddata/hybriddataapi/models.go b/profiles/latest/hybriddatamanager/mgmt/hybriddata/hybriddataapi/models.go index bb1a12c17f72..7800dcd0cdfc 100644 --- a/profiles/latest/hybriddatamanager/mgmt/hybriddata/hybriddataapi/models.go +++ b/profiles/latest/hybriddatamanager/mgmt/hybriddata/hybriddataapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/hybriddatamanager/mgmt/hybriddata/models.go b/profiles/latest/hybriddatamanager/mgmt/hybriddata/models.go index 575c9f0ba193..e80b0b9141be 100644 --- a/profiles/latest/hybriddatamanager/mgmt/hybriddata/models.go +++ b/profiles/latest/hybriddatamanager/mgmt/hybriddata/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 32bce487f617..88835b71e7f2 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 3aaef74f5831..6a29a2db7cf2 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 70394d93652f..361bf7676bc4 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 a932b1ef6cfd..15030487e80a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 8eb7279d9471..e664c608632a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 85f49ba19c65..d38e2cd61e9d 100644 --- a/profiles/latest/keyvault/keyvault/models.go +++ b/profiles/latest/keyvault/keyvault/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 c81845d4c8a4..0a95fba8c4e0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 69794df03fff..e89715678a39 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/kusto/mgmt/kusto/kustoapi/models.go b/profiles/latest/kusto/mgmt/kusto/kustoapi/models.go index 25b871538b2d..ba0fab33b0d2 100644 --- a/profiles/latest/kusto/mgmt/kusto/kustoapi/models.go +++ b/profiles/latest/kusto/mgmt/kusto/kustoapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/kusto/mgmt/kusto/models.go b/profiles/latest/kusto/mgmt/kusto/models.go index 917855cd280e..cd4254eeb911 100644 --- a/profiles/latest/kusto/mgmt/kusto/models.go +++ b/profiles/latest/kusto/mgmt/kusto/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2350732632cf..e528ed62b5e8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 f5ce6271be3a..d2d828fba661 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d311caa49361..24fb16b4e480 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e56cc580326c..f53ba6f73d88 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 15e0f13cfe13..a4b9f28fd424 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 402b252e1fee..6b480a7fa150 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2d8d10ee0e19..f6edcc7a68dd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 00eba9a41c36..079038a26f41 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/machinelearningservices/mgmt/machinelearningservices/machinelearningservicesapi/models.go b/profiles/latest/machinelearningservices/mgmt/machinelearningservices/machinelearningservicesapi/models.go index 02636c78618d..6a1e3a5daa69 100644 --- a/profiles/latest/machinelearningservices/mgmt/machinelearningservices/machinelearningservicesapi/models.go +++ b/profiles/latest/machinelearningservices/mgmt/machinelearningservices/machinelearningservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/machinelearningservices/mgmt/machinelearningservices/models.go b/profiles/latest/machinelearningservices/mgmt/machinelearningservices/models.go index cb5128e1561a..cb91c8b62699 100644 --- a/profiles/latest/machinelearningservices/mgmt/machinelearningservices/models.go +++ b/profiles/latest/machinelearningservices/mgmt/machinelearningservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/managedservices/mgmt/managedservices/managedservicesapi/models.go b/profiles/latest/managedservices/mgmt/managedservices/managedservicesapi/models.go index b29c9789448b..1d56610e5920 100644 --- a/profiles/latest/managedservices/mgmt/managedservices/managedservicesapi/models.go +++ b/profiles/latest/managedservices/mgmt/managedservices/managedservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/managedservices/mgmt/managedservices/models.go b/profiles/latest/managedservices/mgmt/managedservices/models.go index 7c40f1e60364..dbc87780a8f0 100644 --- a/profiles/latest/managedservices/mgmt/managedservices/models.go +++ b/profiles/latest/managedservices/mgmt/managedservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 771e3bb12ef0..d636544b39f3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 81dff0faeb12..bc9942b27295 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/mariadb/mgmt/mariadb/mariadbapi/models.go b/profiles/latest/mariadb/mgmt/mariadb/mariadbapi/models.go index 6af08ef988df..edbcaf1b944d 100644 --- a/profiles/latest/mariadb/mgmt/mariadb/mariadbapi/models.go +++ b/profiles/latest/mariadb/mgmt/mariadb/mariadbapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/mariadb/mgmt/mariadb/models.go b/profiles/latest/mariadb/mgmt/mariadb/models.go index 58043e5fe43a..c4743d4d43b7 100644 --- a/profiles/latest/mariadb/mgmt/mariadb/models.go +++ b/profiles/latest/mariadb/mgmt/mariadb/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 b1a923973a63..ae60dc67c770 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 20add7aa4f85..6a2af9f52dcf 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 7b7e1b77c8df..35bf6476056b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2d6e65db32eb..74eb67ee7cff 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 a0fc1641708d..90cdf8662c9f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 bc59f2f01263..e5d1518b4862 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 35cc33a057e7..de61b6021eea 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 fc3e1ecfaea9..b4d642134af5 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 4d1f316f0e53..837498b0056c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 4765fcda409b..f78cb75c6ff5 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/netapp/mgmt/netapp/models.go b/profiles/latest/netapp/mgmt/netapp/models.go index 0c849f443f5d..d5404210f4bb 100644 --- a/profiles/latest/netapp/mgmt/netapp/models.go +++ b/profiles/latest/netapp/mgmt/netapp/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/netapp/mgmt/netapp/netappapi/models.go b/profiles/latest/netapp/mgmt/netapp/netappapi/models.go index 058cbc7760aa..b6fda7add131 100644 --- a/profiles/latest/netapp/mgmt/netapp/netappapi/models.go +++ b/profiles/latest/netapp/mgmt/netapp/netappapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 32b923f5765b..957449f8a526 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 23d5449f6b74..ea9208590787 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 27df750b1595..7456d92f3aef 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e113b52496dc..849f3bccd56c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 38e9078107cf..45db29649028 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 4c2d628cdeea..18ff04f779cf 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 5fd2b176f1de..58e6110a371a 100644 --- a/profiles/latest/operationalinsights/operationalinsights/models.go +++ b/profiles/latest/operationalinsights/operationalinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e360aaf3e623..5ccbef56cee8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 4544f0f230dd..9164a8ded013 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 093f733e0044..df7dbb8e4af3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 0ecda442f55f..322144aa8600 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 76e17f5537b2..1933c547f198 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2e5a294e9497..3bcf061b8687 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 83f3b540190b..0b16a55a2b1d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 07f4ca8f7bc8..0b132cc37485 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 20f15e177740..93796e123e2b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/privatedns/mgmt/privatedns/models.go b/profiles/latest/privatedns/mgmt/privatedns/models.go index dca366efc494..514f8c240326 100644 --- a/profiles/latest/privatedns/mgmt/privatedns/models.go +++ b/profiles/latest/privatedns/mgmt/privatedns/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/privatedns/mgmt/privatedns/privatednsapi/models.go b/profiles/latest/privatedns/mgmt/privatedns/privatednsapi/models.go index b131f8963b9e..f9fb9df59b88 100644 --- a/profiles/latest/privatedns/mgmt/privatedns/privatednsapi/models.go +++ b/profiles/latest/privatedns/mgmt/privatedns/privatednsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 cd904535f7b9..689968efa67c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 69e6afef28d1..b28f8092a4ef 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 019ebc617251..f963839e8537 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 52714f7c8804..152ba48e0d45 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2572030482dc..3d3ea8a3a7e9 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 ce6b385c30c6..193f4c44c0fb 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 ca9dcb138629..b50e7fb8909c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 a14559010360..d2375bfadfe9 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e890926684fd..816bfe62a2a8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 710d10d813f3..42af71fb8234 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 25501b15456f..7c67cbb2a01c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d9ef14aee24c..200b927cfa80 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 bc759fa13acf..70f2d4f05d99 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 3a78705055fd..46f111b9954f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/resourcegraph/mgmt/resourcegraph/models.go b/profiles/latest/resourcegraph/mgmt/resourcegraph/models.go index 19e10980c29c..a7f5e5a2599a 100644 --- a/profiles/latest/resourcegraph/mgmt/resourcegraph/models.go +++ b/profiles/latest/resourcegraph/mgmt/resourcegraph/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/resourcegraph/mgmt/resourcegraph/resourcegraphapi/models.go b/profiles/latest/resourcegraph/mgmt/resourcegraph/resourcegraphapi/models.go index d9da3d718523..1f7a3457c69e 100644 --- a/profiles/latest/resourcegraph/mgmt/resourcegraph/resourcegraphapi/models.go +++ b/profiles/latest/resourcegraph/mgmt/resourcegraph/resourcegraphapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2ae980a511ad..e69cb69beeb4 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e5342f3ac740..2fb68b7df259 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 69fd9a5cf75a..093798e15e1e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 1b8b8ff7ea0c..133df329950d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 b0dbc943edc6..fd0e2ad19235 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 6ace6dfb3b3b..3b080f0d336b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 de8c2e5d8d74..849387e83e50 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 0989b2277b06..455d61436d72 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 fc49db2a227e..108633223bac 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 8d2254d01b66..8917f94f265a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 10d313ff0499..3f63ef5545a7 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 c57141c7a2f4..e72b2283372d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 75481a5726dc..7c403761ab57 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 a4f41e15a0ac..be6a206fd799 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 0013c129fd6f..300a3b9b8c7d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 160e7606fe40..1189c310b185 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 4a04c0f60678..f1a7a6f206bd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 300cbdc45916..6b03fc053e98 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 c8ea685be9ae..119437ef599e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 3fb302f49e7c..2c7d427ecbec 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/serialconsole/mgmt/serialconsole/models.go b/profiles/latest/serialconsole/mgmt/serialconsole/models.go index e7b4b9fd4410..5d66b1c46908 100644 --- a/profiles/latest/serialconsole/mgmt/serialconsole/models.go +++ b/profiles/latest/serialconsole/mgmt/serialconsole/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/serialconsole/mgmt/serialconsole/serialconsoleapi/models.go b/profiles/latest/serialconsole/mgmt/serialconsole/serialconsoleapi/models.go index 713d3c085568..bc4b8ca5607b 100644 --- a/profiles/latest/serialconsole/mgmt/serialconsole/serialconsoleapi/models.go +++ b/profiles/latest/serialconsole/mgmt/serialconsole/serialconsoleapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 fba494f170aa..0573a92534aa 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 9f01cb32e070..533ed70eb44f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 0f8b50fa3cc8..33d597b9e0a8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/servicefabricapi/models.go b/profiles/latest/servicefabric/mgmt/servicefabric/servicefabricapi/models.go index 971d9ab2df07..10d6733923a5 100644 --- a/profiles/latest/servicefabric/mgmt/servicefabric/servicefabricapi/models.go +++ b/profiles/latest/servicefabric/mgmt/servicefabric/servicefabricapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 eba4306a27ce..8df63115a115 100644 --- a/profiles/latest/servicefabric/servicefabric/models.go +++ b/profiles/latest/servicefabric/servicefabric/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 46a6f3d6ad84..7a9f21604ea3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 571cef513466..8e7b499f007f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 97ab40cf226d..a6761c7662e2 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 250d9c622dff..b5cd105f8fd2 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 d641097b6ea9..97dd990d7d8b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 2c818b7bc172..f51d99a2176a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 fe6cd4856f06..78ecf2b96077 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 c1a82e06f0b3..62195fcddcb0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -133,6 +133,13 @@ const ( MicrosoftStorage KeySource = original.MicrosoftStorage ) +type KeyType = original.KeyType + +const ( + KeyTypeAccount KeyType = original.KeyTypeAccount + KeyTypeService KeyType = original.KeyTypeService +) + type Kind = original.Kind const ( @@ -566,6 +573,9 @@ func PossibleKeyPermissionValues() []KeyPermission { func PossibleKeySourceValues() []KeySource { return original.PossibleKeySourceValues() } +func PossibleKeyTypeValues() []KeyType { + return original.PossibleKeyTypeValues() +} func PossibleKindValues() []Kind { return original.PossibleKindValues() } diff --git a/profiles/latest/storage/mgmt/storage/storageapi/models.go b/profiles/latest/storage/mgmt/storage/storageapi/models.go index 200c4ad1138c..ec8dfd635a4c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/storagecache/mgmt/storagecache/models.go b/profiles/latest/storagecache/mgmt/storagecache/models.go index c7027d13d7da..ab38a8c0e045 100644 --- a/profiles/latest/storagecache/mgmt/storagecache/models.go +++ b/profiles/latest/storagecache/mgmt/storagecache/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/storagecache/mgmt/storagecache/storagecacheapi/models.go b/profiles/latest/storagecache/mgmt/storagecache/storagecacheapi/models.go index 77b8ab88ba0b..43a5a3d0e6fd 100644 --- a/profiles/latest/storagecache/mgmt/storagecache/storagecacheapi/models.go +++ b/profiles/latest/storagecache/mgmt/storagecache/storagecacheapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 b8d48d00dd05..b1c7d1b2549f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e6d7e671ebfa..c9c4939e3764 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 9a01efec9944..d58c1300eb81 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 864f87959a54..e607e6e72685 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 68157a05e6db..0d5dd63aeec5 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 a0acc58522f6..b8dc2acfbb46 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 facf91ceac3a..1eacd04178cb 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 e8e639ce7193..8936954640c3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 b54ec101ab7f..db05cae9f346 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 cff90bedb96d..4e457395b00c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 c987aee85a4a..87c32b6f9e6f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 7b053c050cf1..8211a5a0e42b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 c53a9e74d31d..891d0699045e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 75308cec0d79..c01847d4824c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go b/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go index f00824d7308d..5f415d990a03 100644 --- a/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go +++ b/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go b/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go index ed837345e317..f1a8fdf36c68 100644 --- a/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go +++ b/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 efded70f081c..545c4f5b4bfa 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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 8f59e4c13c02..0c2575ecdcbd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/windowsiot/mgmt/windowsiot/models.go b/profiles/latest/windowsiot/mgmt/windowsiot/models.go index d3847c9e83b8..73365ca9aa5b 100644 --- a/profiles/latest/windowsiot/mgmt/windowsiot/models.go +++ b/profiles/latest/windowsiot/mgmt/windowsiot/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under 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/windowsiot/mgmt/windowsiot/windowsiotapi/models.go b/profiles/latest/windowsiot/mgmt/windowsiot/windowsiotapi/models.go index b23facad9bcd..5787dc653ee5 100644 --- a/profiles/latest/windowsiot/mgmt/windowsiot/windowsiotapi/models.go +++ b/profiles/latest/windowsiot/mgmt/windowsiot/windowsiotapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/aad/mgmt/aad/aadapi/models.go b/profiles/preview/aad/mgmt/aad/aadapi/models.go index 3bfa5c73d4cc..9c2c89bfb397 100644 --- a/profiles/preview/aad/mgmt/aad/aadapi/models.go +++ b/profiles/preview/aad/mgmt/aad/aadapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/aad/mgmt/aad/models.go b/profiles/preview/aad/mgmt/aad/models.go index 3f86107822d7..84b9adcc1f8c 100644 --- a/profiles/preview/aad/mgmt/aad/models.go +++ b/profiles/preview/aad/mgmt/aad/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d0430824e120..849c19427639 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 3134e56ce298..acea760b2295 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 1cd617148bb3..34718d811c40 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 89c05f9f48c1..933456c9b055 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 951ae0f21a84..e9d30a6e17f7 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b9d10af1e3ae..299f60c01eab 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f0e384bd4cdb..fe32d8e81ea1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 23299fabe447..13c252ccc286 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8f2a550a219a..025cdd9cd4d1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 53fd339803b5..2bdb13aa7c82 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go b/profiles/preview/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go index 2cc70b8e585a..3bf7a623c226 100644 --- a/profiles/preview/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go +++ b/profiles/preview/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/appconfiguration/mgmt/appconfiguration/models.go b/profiles/preview/appconfiguration/mgmt/appconfiguration/models.go index f95ea208e937..544810422ac4 100644 --- a/profiles/preview/appconfiguration/mgmt/appconfiguration/models.go +++ b/profiles/preview/appconfiguration/mgmt/appconfiguration/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b5609afe38de..98106bbf2857 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a4390fd072bc..dd0e2e9f0bae 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8fd2a92fb838..7a426dc69265 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 6367d9fc0821..7b33d4057958 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 4ecdab7a9cce..0c9f1fb8518d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 6cf9b2b7badb..080e81982229 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b741f8bbb411..861f3a7b8e24 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b9966e784a6d..a413e1ce68e7 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2454cbf25796..13f9cd820c20 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f42e12232c6d..3c8419fa3a5a 100644 --- a/profiles/preview/batch/batch/models.go +++ b/profiles/preview/batch/batch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 0a26813bd53e..6e730ae554fc 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e8456e1022a6..8c4705198553 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2444beec7a48..2eeab2701f19 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 41b871e06931..c8da532275a7 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8fc5018cbc32..b0c7cc781828 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 fc8fc506a58a..0c64b7d9b4a8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 eede70a18dc6..b44e84f2bc05 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 1c86625c2af8..e0dc4b9957dc 100644 --- a/profiles/preview/cognitiveservices/autosuggest/models.go +++ b/profiles/preview/cognitiveservices/autosuggest/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 27a1ed2e9e90..7bcaba1a4dd0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 c2b072a0ed70..0f6b66185f05 100644 --- a/profiles/preview/cognitiveservices/computervision/models.go +++ b/profiles/preview/cognitiveservices/computervision/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e1c9ff1ff0e7..90c34d01b256 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a61770e73699..31ec66488f24 100644 --- a/profiles/preview/cognitiveservices/contentmoderator/models.go +++ b/profiles/preview/cognitiveservices/contentmoderator/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e63ba5931467..47559a395013 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 219372e3f473..bd5ff46f7c52 100644 --- a/profiles/preview/cognitiveservices/customimagesearch/models.go +++ b/profiles/preview/cognitiveservices/customimagesearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 3d40c669a132..8e564997ca40 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 c329b89a611b..6ac7b78b2712 100644 --- a/profiles/preview/cognitiveservices/customsearch/models.go +++ b/profiles/preview/cognitiveservices/customsearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2f2d555dc40e..690214ce29db 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e907dc83224c..c448e62bad92 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 70ecd6121043..49827640a445 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 58513bb4fcd7..ddb97d86b389 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2d2dfa809af8..6031b473e014 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 01becbedaf0f..5dad97bcd072 100644 --- a/profiles/preview/cognitiveservices/entitysearch/models.go +++ b/profiles/preview/cognitiveservices/entitysearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 cfb1153bedef..d695ffe0fa2d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 9f84d5bce384..f9da9873c030 100644 --- a/profiles/preview/cognitiveservices/face/models.go +++ b/profiles/preview/cognitiveservices/face/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 256da2ec0e2c..8791797f8845 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 4e1eeb49a9da..fbc299bfc586 100644 --- a/profiles/preview/cognitiveservices/imagesearch/models.go +++ b/profiles/preview/cognitiveservices/imagesearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8acfb085e1cc..40dd3c65c3ca 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 59e464119d3e..62b71533993a 100644 --- a/profiles/preview/cognitiveservices/localsearch/models.go +++ b/profiles/preview/cognitiveservices/localsearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 15ac78bb317b..f01865e65d2a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 ed84134e8459..b7c2919e2d08 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 bb1528ceddbc..3be2518ff384 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f33485fca269..bb10691a8366 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2ab87e1823d9..86bc6be67b6d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 42eca8c78f11..3f99499ecf94 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 14ca297ee24f..3b5a73777e94 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a5235973e568..bb8a83a5ba8f 100644 --- a/profiles/preview/cognitiveservices/newssearch/models.go +++ b/profiles/preview/cognitiveservices/newssearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e8154974d69d..6b38285ecc2d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 4329ee96e118..26221702e028 100644 --- a/profiles/preview/cognitiveservices/qnamaker/models.go +++ b/profiles/preview/cognitiveservices/qnamaker/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 012c60505bae..5f876b2cf304 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/qnamakerruntime/models.go b/profiles/preview/cognitiveservices/qnamakerruntime/models.go index 3989b963093d..e061903b8e8f 100644 --- a/profiles/preview/cognitiveservices/qnamakerruntime/models.go +++ b/profiles/preview/cognitiveservices/qnamakerruntime/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/qnamakerruntime/qnamakerruntimeapi/models.go b/profiles/preview/cognitiveservices/qnamakerruntime/qnamakerruntimeapi/models.go index b2f6ac1d9100..43ce91748419 100644 --- a/profiles/preview/cognitiveservices/qnamakerruntime/qnamakerruntimeapi/models.go +++ b/profiles/preview/cognitiveservices/qnamakerruntime/qnamakerruntimeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 93db91561665..04ca33658ee5 100644 --- a/profiles/preview/cognitiveservices/spellcheck/models.go +++ b/profiles/preview/cognitiveservices/spellcheck/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 0d1d1a7edeba..a6ecd8bbd740 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a0e7e64a02f2..6e64e10418a6 100644 --- a/profiles/preview/cognitiveservices/textanalytics/models.go +++ b/profiles/preview/cognitiveservices/textanalytics/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 0c4f37d3ad3d..adc2a38e22e1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/translatortext/models.go b/profiles/preview/cognitiveservices/translatortext/models.go index f046404feb31..e14cd804310c 100644 --- a/profiles/preview/cognitiveservices/translatortext/models.go +++ b/profiles/preview/cognitiveservices/translatortext/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/translatortext/translatortextapi/models.go b/profiles/preview/cognitiveservices/translatortext/translatortextapi/models.go index 4aeb11ba918d..0d3d428fd605 100644 --- a/profiles/preview/cognitiveservices/translatortext/translatortextapi/models.go +++ b/profiles/preview/cognitiveservices/translatortext/translatortextapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d3d434584426..e67e0f6d0439 100644 --- a/profiles/preview/cognitiveservices/videosearch/models.go +++ b/profiles/preview/cognitiveservices/videosearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 de5a5e36f3a2..7b5547ebfcca 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 5872b0bf5179..aad0086f5be8 100644 --- a/profiles/preview/cognitiveservices/websearch/models.go +++ b/profiles/preview/cognitiveservices/websearch/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 fc093cff5ac2..4271e983b726 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 680673b3d51e..ca263918ee02 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a5f0bd6a742b..58c42cecab68 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b0cccf1787ae..fafc7fdcdf4a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 104f1260f9df..ca5363a7341e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d168dc27d646..3a0e8d1c8ab2 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e6a953c5c462..f40701497460 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 ae61abe5104f..daf52ae7ae38 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 fb7f73600bc8..f09cf448ea53 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 245afa60d062..a5b3092bdef3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 4f7281c43d3c..68a980e8f047 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 5d4f388c4c87..c764f39fdfa6 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 9431fc7e867a..7f8309ea87d4 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 3fb63bea091e..5c1e5ea9e492 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 867d346f99a2..fb92dedcac00 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f8a485d17abf..21c7c4860925 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 9c34b91e1c1d..23a7c8bcc49a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 cc1e4dd9ef64..237c6aa6f183 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 9671a6654338..b51133a49624 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d1f0705c3f4b..b3b065a65b27 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 ab19aaa4a8f5..d83b24589db0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/databoxedge/mgmt/databoxedge/databoxedgeapi/models.go b/profiles/preview/databoxedge/mgmt/databoxedge/databoxedgeapi/models.go index 1ffe67fd69c9..74e5d364985b 100644 --- a/profiles/preview/databoxedge/mgmt/databoxedge/databoxedgeapi/models.go +++ b/profiles/preview/databoxedge/mgmt/databoxedge/databoxedgeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/databoxedge/mgmt/databoxedge/models.go b/profiles/preview/databoxedge/mgmt/databoxedge/models.go index 94074df96fd5..c43145efbf25 100644 --- a/profiles/preview/databoxedge/mgmt/databoxedge/models.go +++ b/profiles/preview/databoxedge/mgmt/databoxedge/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 bdd3cda732dc..f522ae8717a9 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 fbf21a4c51d0..c6003a552c91 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d6848bb57e4b..46290f73f523 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f524cd6ba258..9ecdd6040bc3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 28f064af3a1b..7e5379731571 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f56f1ff4364a..9ce2d07ec76c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 11d2dcea4676..6d03467061c3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 97860c4bbeba..fbdadd0c3f30 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 3d3092f45cfa..b30e057a7d18 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 c46c671b2305..cb069d97dc80 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 83e9df4139d0..acd08dc0f592 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 5fca6c2bb026..1f2ec042e996 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 6093cf28a13a..abfec75d3998 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 3cbd8a936c12..517d2d7d9899 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 78fccb7d3760..619693b13af8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 1ead0bbe397f..81470a14d148 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 dad255426d7c..882c020b8a46 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 5c38ab119fb1..e9ea4ef14705 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datashare/mgmt/datashare/datashareapi/models.go b/profiles/preview/datashare/mgmt/datashare/datashareapi/models.go index 9f24dd90d35d..8b098f120ec1 100644 --- a/profiles/preview/datashare/mgmt/datashare/datashareapi/models.go +++ b/profiles/preview/datashare/mgmt/datashare/datashareapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/datashare/mgmt/datashare/models.go b/profiles/preview/datashare/mgmt/datashare/models.go index 77a3c148668d..bbaf17b352ee 100644 --- a/profiles/preview/datashare/mgmt/datashare/models.go +++ b/profiles/preview/datashare/mgmt/datashare/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/devspaces/mgmt/devspaces/devspacesapi/models.go b/profiles/preview/devspaces/mgmt/devspaces/devspacesapi/models.go index 8aedc0fec96c..c771b7aac52b 100644 --- a/profiles/preview/devspaces/mgmt/devspaces/devspacesapi/models.go +++ b/profiles/preview/devspaces/mgmt/devspaces/devspacesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/devspaces/mgmt/devspaces/models.go b/profiles/preview/devspaces/mgmt/devspaces/models.go index ef5b8bb87bb2..00147b65676a 100644 --- a/profiles/preview/devspaces/mgmt/devspaces/models.go +++ b/profiles/preview/devspaces/mgmt/devspaces/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 917f8fa36965..e6b5d13a437e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 0f9b01653c20..20362a351c49 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 0b1293ab7f7f..5bb4d9da62b0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 7cc1c4d376d6..07f8497fb296 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 9f299cf3ee98..19e15543488a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 1988a4bf6b03..adeb1e7efc12 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/eventgridapi/models.go b/profiles/preview/eventgrid/eventgrid/eventgridapi/models.go index 643ca9529c1f..0b949b0d2b50 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f2da17491fc7..30255134468f 100644 --- a/profiles/preview/eventgrid/eventgrid/models.go +++ b/profiles/preview/eventgrid/eventgrid/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 974bd474c480..96e6f3621a8b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 30b009c3bcf4..484e3c2b8159 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 77d581207451..6122265b95c4 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 47ba92e0dbf1..9ea96915e436 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/frontdoor/mgmt/frontdoor/frontdoorapi/models.go b/profiles/preview/frontdoor/mgmt/frontdoor/frontdoorapi/models.go index 08954a3ee34d..8116b4b93fa1 100644 --- a/profiles/preview/frontdoor/mgmt/frontdoor/frontdoorapi/models.go +++ b/profiles/preview/frontdoor/mgmt/frontdoor/frontdoorapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 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,11 +19,15 @@ package frontdoorapi -import original "github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoorapi" +import original "github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoorapi" type BaseClientAPI = original.BaseClientAPI type EndpointsClientAPI = original.EndpointsClientAPI +type ExperimentsClientAPI = original.ExperimentsClientAPI type FrontDoorsClientAPI = original.FrontDoorsClientAPI type FrontendEndpointsClientAPI = original.FrontendEndpointsClientAPI type ManagedRuleSetsClientAPI = original.ManagedRuleSetsClientAPI +type NetworkExperimentProfilesClientAPI = original.NetworkExperimentProfilesClientAPI type PoliciesClientAPI = original.PoliciesClientAPI +type PreconfiguredEndpointsClientAPI = original.PreconfiguredEndpointsClientAPI +type ReportsClientAPI = original.ReportsClientAPI diff --git a/profiles/preview/frontdoor/mgmt/frontdoor/models.go b/profiles/preview/frontdoor/mgmt/frontdoor/models.go index b2c48ed85c7f..6cee00fa88fd 100644 --- a/profiles/preview/frontdoor/mgmt/frontdoor/models.go +++ b/profiles/preview/frontdoor/mgmt/frontdoor/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ package frontdoor import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-05-01/frontdoor" + original "github.com/Azure/azure-sdk-for-go/services/frontdoor/mgmt/2019-11-01/frontdoor" ) const ( @@ -38,6 +38,13 @@ const ( Redirect ActionType = original.Redirect ) +type AggregationInterval = original.AggregationInterval + +const ( + Daily AggregationInterval = original.Daily + Hourly AggregationInterval = original.Hourly +) + type Availability = original.Availability const ( @@ -111,6 +118,15 @@ const ( EnabledStateEnabled EnabledState = original.EnabledStateEnabled ) +type EndpointType = original.EndpointType + +const ( + AFD EndpointType = original.AFD + ATM EndpointType = original.ATM + AzureRegion EndpointType = original.AzureRegion + CDN EndpointType = original.CDN +) + type EnforceCertificateNameCheckEnabledState = original.EnforceCertificateNameCheckEnabledState const ( @@ -140,6 +156,14 @@ const ( HEAD HealthProbeMethod = original.HEAD ) +type LatencyScorecardAggregationInterval = original.LatencyScorecardAggregationInterval + +const ( + LatencyScorecardAggregationIntervalDaily LatencyScorecardAggregationInterval = original.LatencyScorecardAggregationIntervalDaily + LatencyScorecardAggregationIntervalMonthly LatencyScorecardAggregationInterval = original.LatencyScorecardAggregationIntervalMonthly + LatencyScorecardAggregationIntervalWeekly LatencyScorecardAggregationInterval = original.LatencyScorecardAggregationIntervalWeekly +) + type ManagedRuleEnabledState = original.ManagedRuleEnabledState const ( @@ -147,6 +171,25 @@ const ( ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = original.ManagedRuleEnabledStateEnabled ) +type ManagedRuleExclusionMatchVariable = original.ManagedRuleExclusionMatchVariable + +const ( + QueryStringArgNames ManagedRuleExclusionMatchVariable = original.QueryStringArgNames + RequestBodyPostArgNames ManagedRuleExclusionMatchVariable = original.RequestBodyPostArgNames + RequestCookieNames ManagedRuleExclusionMatchVariable = original.RequestCookieNames + RequestHeaderNames ManagedRuleExclusionMatchVariable = original.RequestHeaderNames +) + +type ManagedRuleExclusionSelectorMatchOperator = original.ManagedRuleExclusionSelectorMatchOperator + +const ( + Contains ManagedRuleExclusionSelectorMatchOperator = original.Contains + EndsWith ManagedRuleExclusionSelectorMatchOperator = original.EndsWith + Equals ManagedRuleExclusionSelectorMatchOperator = original.Equals + EqualsAny ManagedRuleExclusionSelectorMatchOperator = original.EqualsAny + StartsWith ManagedRuleExclusionSelectorMatchOperator = original.StartsWith +) + type MatchVariable = original.MatchVariable const ( @@ -168,6 +211,17 @@ const ( OneFullStopZero MinimumTLSVersion = original.OneFullStopZero ) +type NetworkExperimentResourceState = original.NetworkExperimentResourceState + +const ( + NetworkExperimentResourceStateCreating NetworkExperimentResourceState = original.NetworkExperimentResourceStateCreating + NetworkExperimentResourceStateDeleting NetworkExperimentResourceState = original.NetworkExperimentResourceStateDeleting + NetworkExperimentResourceStateDisabled NetworkExperimentResourceState = original.NetworkExperimentResourceStateDisabled + NetworkExperimentResourceStateDisabling NetworkExperimentResourceState = original.NetworkExperimentResourceStateDisabling + NetworkExperimentResourceStateEnabled NetworkExperimentResourceState = original.NetworkExperimentResourceStateEnabled + NetworkExperimentResourceStateEnabling NetworkExperimentResourceState = original.NetworkExperimentResourceStateEnabling +) + type NetworkOperationStatus = original.NetworkOperationStatus const ( @@ -187,18 +241,18 @@ const ( type Operator = original.Operator const ( - Any Operator = original.Any - BeginsWith Operator = original.BeginsWith - Contains Operator = original.Contains - EndsWith Operator = original.EndsWith - Equal Operator = original.Equal - GeoMatch Operator = original.GeoMatch - GreaterThan Operator = original.GreaterThan - GreaterThanOrEqual Operator = original.GreaterThanOrEqual - IPMatch Operator = original.IPMatch - LessThan Operator = original.LessThan - LessThanOrEqual Operator = original.LessThanOrEqual - RegEx Operator = original.RegEx + OperatorAny Operator = original.OperatorAny + OperatorBeginsWith Operator = original.OperatorBeginsWith + OperatorContains Operator = original.OperatorContains + OperatorEndsWith Operator = original.OperatorEndsWith + OperatorEqual Operator = original.OperatorEqual + OperatorGeoMatch Operator = original.OperatorGeoMatch + OperatorGreaterThan Operator = original.OperatorGreaterThan + OperatorGreaterThanOrEqual Operator = original.OperatorGreaterThanOrEqual + OperatorIPMatch Operator = original.OperatorIPMatch + OperatorLessThan Operator = original.OperatorLessThan + OperatorLessThanOrEqual Operator = original.OperatorLessThanOrEqual + OperatorRegEx Operator = original.OperatorRegEx ) type PolicyEnabledState = original.PolicyEnabledState @@ -296,6 +350,29 @@ const ( SessionAffinityEnabledStateEnabled SessionAffinityEnabledState = original.SessionAffinityEnabledStateEnabled ) +type State = original.State + +const ( + StateDisabled State = original.StateDisabled + StateEnabled State = original.StateEnabled +) + +type TimeseriesAggregationInterval = original.TimeseriesAggregationInterval + +const ( + TimeseriesAggregationIntervalDaily TimeseriesAggregationInterval = original.TimeseriesAggregationIntervalDaily + TimeseriesAggregationIntervalHourly TimeseriesAggregationInterval = original.TimeseriesAggregationIntervalHourly +) + +type TimeseriesType = original.TimeseriesType + +const ( + LatencyP50 TimeseriesType = original.LatencyP50 + LatencyP75 TimeseriesType = original.LatencyP75 + LatencyP95 TimeseriesType = original.LatencyP95 + MeasurementCounts TimeseriesType = original.MeasurementCounts +) + type TransformType = original.TransformType const ( @@ -323,11 +400,23 @@ type CheckNameAvailabilityOutput = original.CheckNameAvailabilityOutput type CustomHTTPSConfiguration = original.CustomHTTPSConfiguration type CustomRule = original.CustomRule type CustomRuleList = original.CustomRuleList +type Endpoint = original.Endpoint type EndpointsClient = original.EndpointsClient type EndpointsPurgeContentFuture = original.EndpointsPurgeContentFuture type Error = original.Error type ErrorDetails = original.ErrorDetails type ErrorResponse = original.ErrorResponse +type Experiment = original.Experiment +type ExperimentList = original.ExperimentList +type ExperimentListIterator = original.ExperimentListIterator +type ExperimentListPage = original.ExperimentListPage +type ExperimentProperties = original.ExperimentProperties +type ExperimentUpdateModel = original.ExperimentUpdateModel +type ExperimentUpdateProperties = original.ExperimentUpdateProperties +type ExperimentsClient = original.ExperimentsClient +type ExperimentsCreateOrUpdateFuture = original.ExperimentsCreateOrUpdateFuture +type ExperimentsDeleteFuture = original.ExperimentsDeleteFuture +type ExperimentsUpdateFuture = original.ExperimentsUpdateFuture type ForwardingConfiguration = original.ForwardingConfiguration type FrontDoor = original.FrontDoor type FrontDoorsClient = original.FrontDoorsClient @@ -350,6 +439,9 @@ type HealthProbeSettingsProperties = original.HealthProbeSettingsProperties type HealthProbeSettingsUpdateParameters = original.HealthProbeSettingsUpdateParameters type KeyVaultCertificateSourceParameters = original.KeyVaultCertificateSourceParameters type KeyVaultCertificateSourceParametersVault = original.KeyVaultCertificateSourceParametersVault +type LatencyMetric = original.LatencyMetric +type LatencyScorecard = original.LatencyScorecard +type LatencyScorecardProperties = original.LatencyScorecardProperties type ListResult = original.ListResult type ListResultIterator = original.ListResultIterator type ListResultPage = original.ListResultPage @@ -358,6 +450,7 @@ type LoadBalancingSettingsModel = original.LoadBalancingSettingsModel type LoadBalancingSettingsProperties = original.LoadBalancingSettingsProperties type LoadBalancingSettingsUpdateParameters = original.LoadBalancingSettingsUpdateParameters type ManagedRuleDefinition = original.ManagedRuleDefinition +type ManagedRuleExclusion = original.ManagedRuleExclusion type ManagedRuleGroupDefinition = original.ManagedRuleGroupDefinition type ManagedRuleGroupOverride = original.ManagedRuleGroupOverride type ManagedRuleOverride = original.ManagedRuleOverride @@ -370,13 +463,31 @@ type ManagedRuleSetDefinitionProperties = original.ManagedRuleSetDefinitionPrope type ManagedRuleSetList = original.ManagedRuleSetList type ManagedRuleSetsClient = original.ManagedRuleSetsClient type MatchCondition = original.MatchCondition +type NetworkExperimentProfilesClient = original.NetworkExperimentProfilesClient +type NetworkExperimentProfilesCreateOrUpdateFuture = original.NetworkExperimentProfilesCreateOrUpdateFuture +type NetworkExperimentProfilesDeleteFuture = original.NetworkExperimentProfilesDeleteFuture +type NetworkExperimentProfilesUpdateFuture = original.NetworkExperimentProfilesUpdateFuture type PoliciesClient = original.PoliciesClient type PoliciesCreateOrUpdateFuture = original.PoliciesCreateOrUpdateFuture type PoliciesDeleteFuture = original.PoliciesDeleteFuture type PolicySettings = original.PolicySettings +type PreconfiguredEndpoint = original.PreconfiguredEndpoint +type PreconfiguredEndpointList = original.PreconfiguredEndpointList +type PreconfiguredEndpointListIterator = original.PreconfiguredEndpointListIterator +type PreconfiguredEndpointListPage = original.PreconfiguredEndpointListPage +type PreconfiguredEndpointProperties = original.PreconfiguredEndpointProperties +type PreconfiguredEndpointsClient = original.PreconfiguredEndpointsClient +type Profile = original.Profile +type ProfileList = original.ProfileList +type ProfileListIterator = original.ProfileListIterator +type ProfileListPage = original.ProfileListPage +type ProfileProperties = original.ProfileProperties +type ProfileUpdateModel = original.ProfileUpdateModel +type ProfileUpdateProperties = original.ProfileUpdateProperties type Properties = original.Properties type PurgeParameters = original.PurgeParameters type RedirectConfiguration = original.RedirectConfiguration +type ReportsClient = original.ReportsClient type Resource = original.Resource type RouteConfiguration = original.RouteConfiguration type RoutingRule = original.RoutingRule @@ -385,6 +496,9 @@ type RoutingRuleProperties = original.RoutingRuleProperties type RoutingRuleUpdateParameters = original.RoutingRuleUpdateParameters type SubResource = original.SubResource type TagsObject = original.TagsObject +type Timeseries = original.Timeseries +type TimeseriesDataPoint = original.TimeseriesDataPoint +type TimeseriesProperties = original.TimeseriesProperties type UpdateParameters = original.UpdateParameters type ValidateCustomDomainInput = original.ValidateCustomDomainInput type ValidateCustomDomainOutput = original.ValidateCustomDomainOutput @@ -403,6 +517,18 @@ func NewEndpointsClient(subscriptionID string) EndpointsClient { func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient { return original.NewEndpointsClientWithBaseURI(baseURI, subscriptionID) } +func NewExperimentListIterator(page ExperimentListPage) ExperimentListIterator { + return original.NewExperimentListIterator(page) +} +func NewExperimentListPage(getNextPage func(context.Context, ExperimentList) (ExperimentList, error)) ExperimentListPage { + return original.NewExperimentListPage(getNextPage) +} +func NewExperimentsClient(subscriptionID string) ExperimentsClient { + return original.NewExperimentsClient(subscriptionID) +} +func NewExperimentsClientWithBaseURI(baseURI string, subscriptionID string) ExperimentsClient { + return original.NewExperimentsClientWithBaseURI(baseURI, subscriptionID) +} func NewFrontDoorsClient(subscriptionID string) FrontDoorsClient { return original.NewFrontDoorsClient(subscriptionID) } @@ -439,12 +565,42 @@ func NewManagedRuleSetsClient(subscriptionID string) ManagedRuleSetsClient { func NewManagedRuleSetsClientWithBaseURI(baseURI string, subscriptionID string) ManagedRuleSetsClient { return original.NewManagedRuleSetsClientWithBaseURI(baseURI, subscriptionID) } +func NewNetworkExperimentProfilesClient(subscriptionID string) NetworkExperimentProfilesClient { + return original.NewNetworkExperimentProfilesClient(subscriptionID) +} +func NewNetworkExperimentProfilesClientWithBaseURI(baseURI string, subscriptionID string) NetworkExperimentProfilesClient { + return original.NewNetworkExperimentProfilesClientWithBaseURI(baseURI, subscriptionID) +} func NewPoliciesClient(subscriptionID string) PoliciesClient { return original.NewPoliciesClient(subscriptionID) } func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient { return original.NewPoliciesClientWithBaseURI(baseURI, subscriptionID) } +func NewPreconfiguredEndpointListIterator(page PreconfiguredEndpointListPage) PreconfiguredEndpointListIterator { + return original.NewPreconfiguredEndpointListIterator(page) +} +func NewPreconfiguredEndpointListPage(getNextPage func(context.Context, PreconfiguredEndpointList) (PreconfiguredEndpointList, error)) PreconfiguredEndpointListPage { + return original.NewPreconfiguredEndpointListPage(getNextPage) +} +func NewPreconfiguredEndpointsClient(subscriptionID string) PreconfiguredEndpointsClient { + return original.NewPreconfiguredEndpointsClient(subscriptionID) +} +func NewPreconfiguredEndpointsClientWithBaseURI(baseURI string, subscriptionID string) PreconfiguredEndpointsClient { + return original.NewPreconfiguredEndpointsClientWithBaseURI(baseURI, subscriptionID) +} +func NewProfileListIterator(page ProfileListPage) ProfileListIterator { + return original.NewProfileListIterator(page) +} +func NewProfileListPage(getNextPage func(context.Context, ProfileList) (ProfileList, error)) ProfileListPage { + return original.NewProfileListPage(getNextPage) +} +func NewReportsClient(subscriptionID string) ReportsClient { + return original.NewReportsClient(subscriptionID) +} +func NewReportsClientWithBaseURI(baseURI string, subscriptionID string) ReportsClient { + return original.NewReportsClientWithBaseURI(baseURI, subscriptionID) +} func NewWebApplicationFirewallPolicyListIterator(page WebApplicationFirewallPolicyListPage) WebApplicationFirewallPolicyListIterator { return original.NewWebApplicationFirewallPolicyListIterator(page) } @@ -457,6 +613,9 @@ func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { func PossibleActionTypeValues() []ActionType { return original.PossibleActionTypeValues() } +func PossibleAggregationIntervalValues() []AggregationInterval { + return original.PossibleAggregationIntervalValues() +} func PossibleAvailabilityValues() []Availability { return original.PossibleAvailabilityValues() } @@ -484,6 +643,9 @@ func PossibleDynamicCompressionEnabledValues() []DynamicCompressionEnabled { func PossibleEnabledStateValues() []EnabledState { return original.PossibleEnabledStateValues() } +func PossibleEndpointTypeValues() []EndpointType { + return original.PossibleEndpointTypeValues() +} func PossibleEnforceCertificateNameCheckEnabledStateValues() []EnforceCertificateNameCheckEnabledState { return original.PossibleEnforceCertificateNameCheckEnabledStateValues() } @@ -496,15 +658,27 @@ func PossibleHealthProbeEnabledValues() []HealthProbeEnabled { func PossibleHealthProbeMethodValues() []HealthProbeMethod { return original.PossibleHealthProbeMethodValues() } +func PossibleLatencyScorecardAggregationIntervalValues() []LatencyScorecardAggregationInterval { + return original.PossibleLatencyScorecardAggregationIntervalValues() +} func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState { return original.PossibleManagedRuleEnabledStateValues() } +func PossibleManagedRuleExclusionMatchVariableValues() []ManagedRuleExclusionMatchVariable { + return original.PossibleManagedRuleExclusionMatchVariableValues() +} +func PossibleManagedRuleExclusionSelectorMatchOperatorValues() []ManagedRuleExclusionSelectorMatchOperator { + return original.PossibleManagedRuleExclusionSelectorMatchOperatorValues() +} func PossibleMatchVariableValues() []MatchVariable { return original.PossibleMatchVariableValues() } func PossibleMinimumTLSVersionValues() []MinimumTLSVersion { return original.PossibleMinimumTLSVersionValues() } +func PossibleNetworkExperimentResourceStateValues() []NetworkExperimentResourceState { + return original.PossibleNetworkExperimentResourceStateValues() +} func PossibleNetworkOperationStatusValues() []NetworkOperationStatus { return original.PossibleNetworkOperationStatusValues() } @@ -550,6 +724,15 @@ func PossibleRuleTypeValues() []RuleType { func PossibleSessionAffinityEnabledStateValues() []SessionAffinityEnabledState { return original.PossibleSessionAffinityEnabledStateValues() } +func PossibleStateValues() []State { + return original.PossibleStateValues() +} +func PossibleTimeseriesAggregationIntervalValues() []TimeseriesAggregationInterval { + return original.PossibleTimeseriesAggregationIntervalValues() +} +func PossibleTimeseriesTypeValues() []TimeseriesType { + return original.PossibleTimeseriesTypeValues() +} func PossibleTransformTypeValues() []TransformType { return original.PossibleTransformTypeValues() } diff --git a/profiles/preview/graphrbac/graphrbac/graphrbacapi/models.go b/profiles/preview/graphrbac/graphrbac/graphrbacapi/models.go index 8fa86b6e14c0..8a169e69a6af 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d3846552c93d..a0066dd0d5e6 100644 --- a/profiles/preview/graphrbac/graphrbac/models.go +++ b/profiles/preview/graphrbac/graphrbac/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/healthcareapis/mgmt/healthcareapis/healthcareapisapi/models.go b/profiles/preview/healthcareapis/mgmt/healthcareapis/healthcareapisapi/models.go index ebd9615bd1ab..d0f4de8f103d 100644 --- a/profiles/preview/healthcareapis/mgmt/healthcareapis/healthcareapisapi/models.go +++ b/profiles/preview/healthcareapis/mgmt/healthcareapis/healthcareapisapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/healthcareapis/mgmt/healthcareapis/models.go b/profiles/preview/healthcareapis/mgmt/healthcareapis/models.go index 13f5929787eb..0085031dbb0d 100644 --- a/profiles/preview/healthcareapis/mgmt/healthcareapis/models.go +++ b/profiles/preview/healthcareapis/mgmt/healthcareapis/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/hybriddatamanager/mgmt/hybriddata/hybriddataapi/models.go b/profiles/preview/hybriddatamanager/mgmt/hybriddata/hybriddataapi/models.go index bb1a12c17f72..7800dcd0cdfc 100644 --- a/profiles/preview/hybriddatamanager/mgmt/hybriddata/hybriddataapi/models.go +++ b/profiles/preview/hybriddatamanager/mgmt/hybriddata/hybriddataapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/hybriddatamanager/mgmt/hybriddata/models.go b/profiles/preview/hybriddatamanager/mgmt/hybriddata/models.go index 73da362ad2f0..ebaae3e000c3 100644 --- a/profiles/preview/hybriddatamanager/mgmt/hybriddata/models.go +++ b/profiles/preview/hybriddatamanager/mgmt/hybriddata/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 32bce487f617..88835b71e7f2 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 802cfc9184c4..947044897691 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 70394d93652f..361bf7676bc4 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 ad5eca9f6e7d..54935fe50a3b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8eb7279d9471..e664c608632a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d52c73413b14..c4c7f8608036 100644 --- a/profiles/preview/keyvault/keyvault/models.go +++ b/profiles/preview/keyvault/keyvault/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 c81845d4c8a4..0a95fba8c4e0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 de4aaf3310c0..49f8f9963851 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/kusto/mgmt/kusto/kustoapi/models.go b/profiles/preview/kusto/mgmt/kusto/kustoapi/models.go index 25b871538b2d..ba0fab33b0d2 100644 --- a/profiles/preview/kusto/mgmt/kusto/kustoapi/models.go +++ b/profiles/preview/kusto/mgmt/kusto/kustoapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/kusto/mgmt/kusto/models.go b/profiles/preview/kusto/mgmt/kusto/models.go index 0683433aa011..1d5d5d1787c5 100644 --- a/profiles/preview/kusto/mgmt/kusto/models.go +++ b/profiles/preview/kusto/mgmt/kusto/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2350732632cf..e528ed62b5e8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 4722a7f1df12..cd85614b3690 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d311caa49361..24fb16b4e480 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 9e459f0dbb09..a1044ccd56c0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 fcd55b1a5df4..2333bfc038d3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 402b252e1fee..6b480a7fa150 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2edf2e649de1..a13b005b28d3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 00eba9a41c36..079038a26f41 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/machinelearningservices/mgmt/machinelearningservices/machinelearningservicesapi/models.go b/profiles/preview/machinelearningservices/mgmt/machinelearningservices/machinelearningservicesapi/models.go index 02636c78618d..6a1e3a5daa69 100644 --- a/profiles/preview/machinelearningservices/mgmt/machinelearningservices/machinelearningservicesapi/models.go +++ b/profiles/preview/machinelearningservices/mgmt/machinelearningservices/machinelearningservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/machinelearningservices/mgmt/machinelearningservices/models.go b/profiles/preview/machinelearningservices/mgmt/machinelearningservices/models.go index 6c2753fa1c81..dd2322bf6db7 100644 --- a/profiles/preview/machinelearningservices/mgmt/machinelearningservices/models.go +++ b/profiles/preview/machinelearningservices/mgmt/machinelearningservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/managedservices/mgmt/managedservices/managedservicesapi/models.go b/profiles/preview/managedservices/mgmt/managedservices/managedservicesapi/models.go index b29c9789448b..1d56610e5920 100644 --- a/profiles/preview/managedservices/mgmt/managedservices/managedservicesapi/models.go +++ b/profiles/preview/managedservices/mgmt/managedservices/managedservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/managedservices/mgmt/managedservices/models.go b/profiles/preview/managedservices/mgmt/managedservices/models.go index c20131485ddd..4430d2b98e09 100644 --- a/profiles/preview/managedservices/mgmt/managedservices/models.go +++ b/profiles/preview/managedservices/mgmt/managedservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 771e3bb12ef0..d636544b39f3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8cbc46836617..2a16e736e2ae 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/mariadb/mgmt/mariadb/mariadbapi/models.go b/profiles/preview/mariadb/mgmt/mariadb/mariadbapi/models.go index 6af08ef988df..edbcaf1b944d 100644 --- a/profiles/preview/mariadb/mgmt/mariadb/mariadbapi/models.go +++ b/profiles/preview/mariadb/mgmt/mariadb/mariadbapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/mariadb/mgmt/mariadb/models.go b/profiles/preview/mariadb/mgmt/mariadb/models.go index 16f9a386b5c1..e6cd4e6e034f 100644 --- a/profiles/preview/mariadb/mgmt/mariadb/models.go +++ b/profiles/preview/mariadb/mgmt/mariadb/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b1a923973a63..ae60dc67c770 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 7bf7f82d3646..0c8625c87deb 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 7b7e1b77c8df..35bf6476056b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 aef85606b618..9b9f6a582a6f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a0fc1641708d..90cdf8662c9f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 0b79a36e5247..a5e03f31ccb8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a1da8bb02285..2dbf7440b2cc 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 fc3e1ecfaea9..b4d642134af5 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 57faaff2d1a7..ffbc04aa4221 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 4765fcda409b..f78cb75c6ff5 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/netapp/mgmt/netapp/models.go b/profiles/preview/netapp/mgmt/netapp/models.go index 59d9ee90a8d5..386302038d6b 100644 --- a/profiles/preview/netapp/mgmt/netapp/models.go +++ b/profiles/preview/netapp/mgmt/netapp/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/netapp/mgmt/netapp/netappapi/models.go b/profiles/preview/netapp/mgmt/netapp/netappapi/models.go index 058cbc7760aa..b6fda7add131 100644 --- a/profiles/preview/netapp/mgmt/netapp/netappapi/models.go +++ b/profiles/preview/netapp/mgmt/netapp/netappapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 c5e0368d014b..77ea02f29d39 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 23d5449f6b74..ea9208590787 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 97a886c21f55..6684a59dd409 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e113b52496dc..849f3bccd56c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 072914563365..0175837aee62 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 4c2d628cdeea..18ff04f779cf 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f182a67b3043..080d5d655639 100644 --- a/profiles/preview/operationalinsights/operationalinsights/models.go +++ b/profiles/preview/operationalinsights/operationalinsights/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e360aaf3e623..5ccbef56cee8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 7966b0033673..30834eed24fd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 093f733e0044..df7dbb8e4af3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 c254f2f504c4..a60afaf4f7d3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 76e17f5537b2..1933c547f198 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 15861711df00..71d9faf117fd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 83f3b540190b..0b16a55a2b1d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f386160049d1..4680214f76b3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 20f15e177740..93796e123e2b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 41f9b7da0619..8db62cc8b2b4 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 16d85017a304..e24b08950aae 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 7edd8c897191..fc184367dd11 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 c6035ab9e12c..777cfca524db 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/alertsmanagementapi/models.go b/profiles/preview/preview/alertsmanagement/mgmt/alertsmanagement/alertsmanagementapi/models.go index d2e4fac63e33..1fa512b3b7c4 100644 --- a/profiles/preview/preview/alertsmanagement/mgmt/alertsmanagement/alertsmanagementapi/models.go +++ b/profiles/preview/preview/alertsmanagement/mgmt/alertsmanagement/alertsmanagementapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 32894db34ab8..fa0b22208755 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a2f7eb5c87d5..86b54057e558 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 105f0158c7a9..815513eb15d1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 3f7c9070edcc..e868bda71737 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 55260c81f33b..a3e1d19d00e8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go b/profiles/preview/preview/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go index 19076664bebc..5e89ecc14d01 100644 --- a/profiles/preview/preview/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go +++ b/profiles/preview/preview/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/appconfiguration/mgmt/appconfiguration/models.go b/profiles/preview/preview/appconfiguration/mgmt/appconfiguration/models.go index 695ea51ccff1..062b7139cdac 100644 --- a/profiles/preview/preview/appconfiguration/mgmt/appconfiguration/models.go +++ b/profiles/preview/preview/appconfiguration/mgmt/appconfiguration/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b7a70c6af89f..db93673cba4a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 0fb79ed3c679..b172904edf9a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/appplatform/mgmt/appplatform/appplatformapi/models.go b/profiles/preview/preview/appplatform/mgmt/appplatform/appplatformapi/models.go index 3678e5593e3e..82036042cace 100644 --- a/profiles/preview/preview/appplatform/mgmt/appplatform/appplatformapi/models.go +++ b/profiles/preview/preview/appplatform/mgmt/appplatform/appplatformapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/appplatform/mgmt/appplatform/models.go b/profiles/preview/preview/appplatform/mgmt/appplatform/models.go index 099e9fa16a92..c20168eee799 100644 --- a/profiles/preview/preview/appplatform/mgmt/appplatform/models.go +++ b/profiles/preview/preview/appplatform/mgmt/appplatform/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 07d5ff19d9f2..8b4206dcc0d0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 3928143cc0a1..8f5de0419f9f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 58c69ca8866c..b3d0920a6d0a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 c90c4a6c1b67..729f660d50ce 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/azuredata/mgmt/azuredata/azuredataapi/models.go b/profiles/preview/preview/azuredata/mgmt/azuredata/azuredataapi/models.go index 4d154c580940..4d3b3e13fc5e 100644 --- a/profiles/preview/preview/azuredata/mgmt/azuredata/azuredataapi/models.go +++ b/profiles/preview/preview/azuredata/mgmt/azuredata/azuredataapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/azuredata/mgmt/azuredata/models.go b/profiles/preview/preview/azuredata/mgmt/azuredata/models.go index 2bff918acecd..bdb76f50a424 100644 --- a/profiles/preview/preview/azuredata/mgmt/azuredata/models.go +++ b/profiles/preview/preview/azuredata/mgmt/azuredata/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 87ab4b6cedd7..812e534c2915 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d72745a18dcb..a180ac40d602 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 1bd9da01c6e7..4b21e65b3e57 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2443bbc6ff68..124dc8f59ec7 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/blockchain/mgmt/blockchain/blockchainapi/models.go b/profiles/preview/preview/blockchain/mgmt/blockchain/blockchainapi/models.go index 24c805f3af80..184d38e563d7 100644 --- a/profiles/preview/preview/blockchain/mgmt/blockchain/blockchainapi/models.go +++ b/profiles/preview/preview/blockchain/mgmt/blockchain/blockchainapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/blockchain/mgmt/blockchain/models.go b/profiles/preview/preview/blockchain/mgmt/blockchain/models.go index 625ee66e6192..0707c08f29b1 100644 --- a/profiles/preview/preview/blockchain/mgmt/blockchain/models.go +++ b/profiles/preview/preview/blockchain/mgmt/blockchain/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 43fba6c37ceb..c64f0f3e8a9d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a90e21d1b063..4da221585992 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2ce4c13ed440..5f9d9c2e613a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 4f2595a516a5..7e9d55c3560c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/cdn/mgmt/cdn/cdnapi/models.go b/profiles/preview/preview/cdn/mgmt/cdn/cdnapi/models.go index 63b52def6ccd..e1cea17c2d7d 100644 --- a/profiles/preview/preview/cdn/mgmt/cdn/cdnapi/models.go +++ b/profiles/preview/preview/cdn/mgmt/cdn/cdnapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/cdn/mgmt/cdn/models.go b/profiles/preview/preview/cdn/mgmt/cdn/models.go index 10504de6c40c..9a2f2f5aaf6c 100644 --- a/profiles/preview/preview/cdn/mgmt/cdn/models.go +++ b/profiles/preview/preview/cdn/mgmt/cdn/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/anomalydetector/anomalydetectorapi/models.go b/profiles/preview/preview/cognitiveservices/anomalydetector/anomalydetectorapi/models.go index 59baf9caf7bb..d54cace34d6e 100644 --- a/profiles/preview/preview/cognitiveservices/anomalydetector/anomalydetectorapi/models.go +++ b/profiles/preview/preview/cognitiveservices/anomalydetector/anomalydetectorapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/anomalydetector/models.go b/profiles/preview/preview/cognitiveservices/anomalydetector/models.go index 6d3e0c8355e2..aa8fcf50800c 100644 --- a/profiles/preview/preview/cognitiveservices/anomalydetector/models.go +++ b/profiles/preview/preview/cognitiveservices/anomalydetector/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/formrecognizer/formrecognizerapi/models.go b/profiles/preview/preview/cognitiveservices/formrecognizer/formrecognizerapi/models.go index 65777a3caa2b..51801a6672b9 100644 --- a/profiles/preview/preview/cognitiveservices/formrecognizer/formrecognizerapi/models.go +++ b/profiles/preview/preview/cognitiveservices/formrecognizer/formrecognizerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/formrecognizer/models.go b/profiles/preview/preview/cognitiveservices/formrecognizer/models.go index 739152aa03ca..3b053b9a2031 100644 --- a/profiles/preview/preview/cognitiveservices/formrecognizer/models.go +++ b/profiles/preview/preview/cognitiveservices/formrecognizer/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/inkrecognizer/inkrecognizerapi/models.go b/profiles/preview/preview/cognitiveservices/inkrecognizer/inkrecognizerapi/models.go index 40612cfaabff..019c1026f37b 100644 --- a/profiles/preview/preview/cognitiveservices/inkrecognizer/inkrecognizerapi/models.go +++ b/profiles/preview/preview/cognitiveservices/inkrecognizer/inkrecognizerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/inkrecognizer/models.go b/profiles/preview/preview/cognitiveservices/inkrecognizer/models.go index eced44eb7b8c..ca772eab030c 100644 --- a/profiles/preview/preview/cognitiveservices/inkrecognizer/models.go +++ b/profiles/preview/preview/cognitiveservices/inkrecognizer/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/luis/authoring/authoringapi/models.go b/profiles/preview/preview/cognitiveservices/luis/authoring/authoringapi/models.go index a7c3942ad949..129ce74741c7 100644 --- a/profiles/preview/preview/cognitiveservices/luis/authoring/authoringapi/models.go +++ b/profiles/preview/preview/cognitiveservices/luis/authoring/authoringapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/luis/authoring/models.go b/profiles/preview/preview/cognitiveservices/luis/authoring/models.go index 419c0c92ba50..7c1fe13b9b45 100644 --- a/profiles/preview/preview/cognitiveservices/luis/authoring/models.go +++ b/profiles/preview/preview/cognitiveservices/luis/authoring/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 7abe1a1321a1..ec4d06af64bd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 9cbb558994fd..a52d3546bd97 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 6e512b00c2de..cae0b8200670 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f42736d3db71..1d761dedde62 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d6eec7c52242..f745b0e3794a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 370078b85b7f..af69f0050033 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f8a25a47ee75..eca07cee6f39 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 53b4709f1331..fb30d2733c3f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e032d2e7d37d..c0a377179b89 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 0c499278db98..15c3685414b8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b62f1ef667ea..1758a916547e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 23c86e5eb485..65bd1876698f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 aca28c8a0555..33189dbad2e2 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 fc0565aa8f32..aad1b300d300 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/runtime/containerregistry/containerregistryapi/models.go b/profiles/preview/preview/containerregistry/runtime/containerregistry/containerregistryapi/models.go index 737eef8e9563..cd4c5a93c26b 100644 --- a/profiles/preview/preview/containerregistry/runtime/containerregistry/containerregistryapi/models.go +++ b/profiles/preview/preview/containerregistry/runtime/containerregistry/containerregistryapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/runtime/containerregistry/models.go b/profiles/preview/preview/containerregistry/runtime/containerregistry/models.go index df98f91b6ca2..9429fc84958c 100644 --- a/profiles/preview/preview/containerregistry/runtime/containerregistry/models.go +++ b/profiles/preview/preview/containerregistry/runtime/containerregistry/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a0f27d9e1c42..dcfba68016fb 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 28fdc64e189c..5a69cee93d8c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/cosmos-db/mgmt/documentdb/documentdbapi/models.go b/profiles/preview/preview/cosmos-db/mgmt/documentdb/documentdbapi/models.go index adf8c82e8e89..390d02fd0d3c 100644 --- a/profiles/preview/preview/cosmos-db/mgmt/documentdb/documentdbapi/models.go +++ b/profiles/preview/preview/cosmos-db/mgmt/documentdb/documentdbapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/cosmos-db/mgmt/documentdb/models.go b/profiles/preview/preview/cosmos-db/mgmt/documentdb/models.go index 0fc9511aa648..b083a7d9ed26 100644 --- a/profiles/preview/preview/cosmos-db/mgmt/documentdb/models.go +++ b/profiles/preview/preview/cosmos-db/mgmt/documentdb/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 65d2217016c3..f190bd5c5f1b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2cf56f16ec73..a9622d2c52c1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/customerlockbox/mgmt/customerlockbox/customerlockboxapi/models.go b/profiles/preview/preview/customerlockbox/mgmt/customerlockbox/customerlockboxapi/models.go index 294a2cdecdaf..7d77ed5f5595 100644 --- a/profiles/preview/preview/customerlockbox/mgmt/customerlockbox/customerlockboxapi/models.go +++ b/profiles/preview/preview/customerlockbox/mgmt/customerlockbox/customerlockboxapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/customerlockbox/mgmt/customerlockbox/models.go b/profiles/preview/preview/customerlockbox/mgmt/customerlockbox/models.go index 0ec6c54d58d1..53a1e4d48d6a 100644 --- a/profiles/preview/preview/customerlockbox/mgmt/customerlockbox/models.go +++ b/profiles/preview/preview/customerlockbox/mgmt/customerlockbox/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/customproviders/mgmt/customproviders/customprovidersapi/models.go b/profiles/preview/preview/customproviders/mgmt/customproviders/customprovidersapi/models.go index 4bdcc67d7847..f20622245780 100644 --- a/profiles/preview/preview/customproviders/mgmt/customproviders/customprovidersapi/models.go +++ b/profiles/preview/preview/customproviders/mgmt/customproviders/customprovidersapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/customproviders/mgmt/customproviders/models.go b/profiles/preview/preview/customproviders/mgmt/customproviders/models.go index 4faf35e5cdbc..d5baf9c1ba74 100644 --- a/profiles/preview/preview/customproviders/mgmt/customproviders/models.go +++ b/profiles/preview/preview/customproviders/mgmt/customproviders/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 c784cabbc38e..d27bdb1c2227 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 bb4c99891be0..5fdf008ead7e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 7c7f4e5c2084..cb43fb0015ed 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 9f3f4b62bcf1..1cc5d113f22e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 83fef072b5f6..77afacae668b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e710d9579f84..404fb32e6e08 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8646838a72ba..452a721e8035 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 bcb56e330ef2..6785fa8c3dde 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2cddd96e78e4..2eb25813790b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 081145fa44e3..a1f3c333d0b9 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 bbc373d20b1f..ac81fd51b948 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2b4cfea47c43..caa7ec94479e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b2170196b6ca..61f6a15c4ebb 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e854ea0ec7ff..36a5688f3b78 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/datashare/mgmt/datashare/datashareapi/models.go b/profiles/preview/preview/datashare/mgmt/datashare/datashareapi/models.go index 481e104647d2..1ec282ba3d30 100644 --- a/profiles/preview/preview/datashare/mgmt/datashare/datashareapi/models.go +++ b/profiles/preview/preview/datashare/mgmt/datashare/datashareapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/datashare/mgmt/datashare/models.go b/profiles/preview/preview/datashare/mgmt/datashare/models.go index 35130fe8a3eb..5f3a64a2fda6 100644 --- a/profiles/preview/preview/datashare/mgmt/datashare/models.go +++ b/profiles/preview/preview/datashare/mgmt/datashare/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 ffa579722b64..2f0366521d5e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f9d60f69bd91..bc4676babe45 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/devops/mgmt/devops/devopsapi/models.go b/profiles/preview/preview/devops/mgmt/devops/devopsapi/models.go index 48c25bc90d06..86ca59526de1 100644 --- a/profiles/preview/preview/devops/mgmt/devops/devopsapi/models.go +++ b/profiles/preview/preview/devops/mgmt/devops/devopsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/devops/mgmt/devops/models.go b/profiles/preview/preview/devops/mgmt/devops/models.go index 5d677ca28cd9..e719d9fd46cb 100644 --- a/profiles/preview/preview/devops/mgmt/devops/models.go +++ b/profiles/preview/preview/devops/mgmt/devops/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b116498919fb..2c8ad0bf76b8 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 ed05c68dbba0..7529ea18c9dd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 13eadcafa8bd..471b3cde6011 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 1fa83be41a24..35adfde2ca89 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f820c4a1853e..2164de7b2f03 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b5ce98f94f5c..a98f2acf6553 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/enterpriseknowledgegraphservice/enterpriseknowledgegraphservice/enterpriseknowledgegraphserviceapi/models.go b/profiles/preview/preview/enterpriseknowledgegraphservice/enterpriseknowledgegraphservice/enterpriseknowledgegraphserviceapi/models.go index d460633cd87b..7bb66dc95c06 100644 --- a/profiles/preview/preview/enterpriseknowledgegraphservice/enterpriseknowledgegraphservice/enterpriseknowledgegraphserviceapi/models.go +++ b/profiles/preview/preview/enterpriseknowledgegraphservice/enterpriseknowledgegraphservice/enterpriseknowledgegraphserviceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/enterpriseknowledgegraphservice/enterpriseknowledgegraphservice/models.go b/profiles/preview/preview/enterpriseknowledgegraphservice/enterpriseknowledgegraphservice/models.go index 11bebf1ab1e0..8f44156febbc 100644 --- a/profiles/preview/preview/enterpriseknowledgegraphservice/enterpriseknowledgegraphservice/models.go +++ b/profiles/preview/preview/enterpriseknowledgegraphservice/enterpriseknowledgegraphservice/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 48a51517e0f2..5497c2074aba 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 6c9a6daafa25..be10be8ee5dd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 c29612bac4bd..315ef941f199 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f4cc4662efc8..b17d5758470a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8a4e9fe3dfdd..b7c56847570d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f7bfa1e2a7e0..1168a72f1400 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 3076387057d0..cca538cf2e2e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 79c196a30907..6c3bc2f479e1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d18e3ef09681..dddf92c61244 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 52a0270521e7..38564eef6130 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 41565202c7d2..4101d0f91ccc 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 aed1e9714cb3..549f9e149506 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/healthcareapis/mgmt/healthcareapis/healthcareapisapi/models.go b/profiles/preview/preview/healthcareapis/mgmt/healthcareapis/healthcareapisapi/models.go index b9470eb0791c..d3ee29849ab0 100644 --- a/profiles/preview/preview/healthcareapis/mgmt/healthcareapis/healthcareapisapi/models.go +++ b/profiles/preview/preview/healthcareapis/mgmt/healthcareapis/healthcareapisapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/healthcareapis/mgmt/healthcareapis/models.go b/profiles/preview/preview/healthcareapis/mgmt/healthcareapis/models.go index 813c88d1695d..dfe69f13ef1c 100644 --- a/profiles/preview/preview/healthcareapis/mgmt/healthcareapis/models.go +++ b/profiles/preview/preview/healthcareapis/mgmt/healthcareapis/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/hybridcompute/mgmt/hybridcompute/hybridcomputeapi/models.go b/profiles/preview/preview/hybridcompute/mgmt/hybridcompute/hybridcomputeapi/models.go index cd8991e3187d..59cc2a36f6c6 100644 --- a/profiles/preview/preview/hybridcompute/mgmt/hybridcompute/hybridcomputeapi/models.go +++ b/profiles/preview/preview/hybridcompute/mgmt/hybridcompute/hybridcomputeapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/hybridcompute/mgmt/hybridcompute/models.go b/profiles/preview/preview/hybridcompute/mgmt/hybridcompute/models.go index 7f28840ce6a8..269a3754858b 100644 --- a/profiles/preview/preview/hybridcompute/mgmt/hybridcompute/models.go +++ b/profiles/preview/preview/hybridcompute/mgmt/hybridcompute/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/iothub/mgmt/devices/devicesapi/models.go b/profiles/preview/preview/iothub/mgmt/devices/devicesapi/models.go index 55177598603d..c7bf9d20d378 100644 --- a/profiles/preview/preview/iothub/mgmt/devices/devicesapi/models.go +++ b/profiles/preview/preview/iothub/mgmt/devices/devicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/iothub/mgmt/devices/models.go b/profiles/preview/preview/iothub/mgmt/devices/models.go index 926eba8f9e48..ec4f89c5015c 100644 --- a/profiles/preview/preview/iothub/mgmt/devices/models.go +++ b/profiles/preview/preview/iothub/mgmt/devices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 0bae8a0029e4..7903370747e6 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 6b6c901de55e..bdc69976ac4a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 55cef31bafd3..f264f3d3af5e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 44438864b566..633a42f983ce 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 707ce253505e..47b560215a1b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d440b4dcda88..4d804b40ac83 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 ab89dae93e0b..7bce10c9237d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 39c945cfcb97..d91422398d79 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 853e64fd4a7e..ff1a6581436d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 269660de1b44..b4f2462dab49 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 52b39f48f8ec..806ef0212ef4 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d817003a774c..d433f83a8542 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 369b4b90b6be..8b8784abd523 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 89d80fd3b3dd..e2fdfaa51cff 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/machinelearningservices/mgmt/machinelearningservices/machinelearningservicesapi/models.go b/profiles/preview/preview/machinelearningservices/mgmt/machinelearningservices/machinelearningservicesapi/models.go index ddbe69085256..80932b9ffaf4 100644 --- a/profiles/preview/preview/machinelearningservices/mgmt/machinelearningservices/machinelearningservicesapi/models.go +++ b/profiles/preview/preview/machinelearningservices/mgmt/machinelearningservices/machinelearningservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/machinelearningservices/mgmt/machinelearningservices/models.go b/profiles/preview/preview/machinelearningservices/mgmt/machinelearningservices/models.go index 432d37c1b821..1ba3556151d3 100644 --- a/profiles/preview/preview/machinelearningservices/mgmt/machinelearningservices/models.go +++ b/profiles/preview/preview/machinelearningservices/mgmt/machinelearningservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/maintenance/mgmt/maintenance/maintenanceapi/models.go b/profiles/preview/preview/maintenance/mgmt/maintenance/maintenanceapi/models.go index 9aae9dd8b0d4..c03892fb244f 100644 --- a/profiles/preview/preview/maintenance/mgmt/maintenance/maintenanceapi/models.go +++ b/profiles/preview/preview/maintenance/mgmt/maintenance/maintenanceapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/maintenance/mgmt/maintenance/models.go b/profiles/preview/preview/maintenance/mgmt/maintenance/models.go index 873254c688c5..1e77aa11ad2d 100644 --- a/profiles/preview/preview/maintenance/mgmt/maintenance/models.go +++ b/profiles/preview/preview/maintenance/mgmt/maintenance/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/managednetwork/mgmt/managednetwork/managednetworkapi/models.go b/profiles/preview/preview/managednetwork/mgmt/managednetwork/managednetworkapi/models.go index 01732589b0cd..bef133d48eb5 100644 --- a/profiles/preview/preview/managednetwork/mgmt/managednetwork/managednetworkapi/models.go +++ b/profiles/preview/preview/managednetwork/mgmt/managednetwork/managednetworkapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/managednetwork/mgmt/managednetwork/models.go b/profiles/preview/preview/managednetwork/mgmt/managednetwork/models.go index d2b5de3e5177..5a7f720cba59 100644 --- a/profiles/preview/preview/managednetwork/mgmt/managednetwork/models.go +++ b/profiles/preview/preview/managednetwork/mgmt/managednetwork/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/managedservices/mgmt/managedservices/managedservicesapi/models.go b/profiles/preview/preview/managedservices/mgmt/managedservices/managedservicesapi/models.go index 1dbcbf2f74b9..4ff72ff78483 100644 --- a/profiles/preview/preview/managedservices/mgmt/managedservices/managedservicesapi/models.go +++ b/profiles/preview/preview/managedservices/mgmt/managedservices/managedservicesapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/managedservices/mgmt/managedservices/models.go b/profiles/preview/preview/managedservices/mgmt/managedservices/models.go index e12575ee480b..32a3a4949d84 100644 --- a/profiles/preview/preview/managedservices/mgmt/managedservices/models.go +++ b/profiles/preview/preview/managedservices/mgmt/managedservices/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 404d86de096e..9f75e82d368f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a67fb8cc89e9..3903fcba9db7 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 782e37dbf4a0..18ac7de4b2e3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 160b477c95d1..42c4bd5ec057 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/migrate/mgmt/migrate/migrateapi/models.go b/profiles/preview/preview/migrate/mgmt/migrate/migrateapi/models.go index 8e5f8f2c0cb1..e04338625c1a 100644 --- a/profiles/preview/preview/migrate/mgmt/migrate/migrateapi/models.go +++ b/profiles/preview/preview/migrate/mgmt/migrate/migrateapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/migrate/mgmt/migrate/models.go b/profiles/preview/preview/migrate/mgmt/migrate/models.go index 9c9b059b0f54..dd4ba5bc4947 100644 --- a/profiles/preview/preview/migrate/mgmt/migrate/models.go +++ b/profiles/preview/preview/migrate/mgmt/migrate/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/mixedreality/mgmt/mixedreality/mixedrealityapi/models.go b/profiles/preview/preview/mixedreality/mgmt/mixedreality/mixedrealityapi/models.go index 288585d74c3d..c36162fd0467 100644 --- a/profiles/preview/preview/mixedreality/mgmt/mixedreality/mixedrealityapi/models.go +++ b/profiles/preview/preview/mixedreality/mgmt/mixedreality/mixedrealityapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/mixedreality/mgmt/mixedreality/models.go b/profiles/preview/preview/mixedreality/mgmt/mixedreality/models.go index b1dbbe47555e..a04550b8493c 100644 --- a/profiles/preview/preview/mixedreality/mgmt/mixedreality/models.go +++ b/profiles/preview/preview/mixedreality/mgmt/mixedreality/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 304290c82b8a..535d76b50fbe 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d890dd518126..b4a0be8f4049 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 1ce83c9fcf29..4b7e6ac73701 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 33e19e6c167c..c0189106b8be 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 ab63e2554a02..82be44070f83 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 4d899e3fe9ac..23b7fbc786d6 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/mysql/mgmt/mysql/models.go b/profiles/preview/preview/mysql/mgmt/mysql/models.go index a2696b226ee8..4c5b0be45662 100644 --- a/profiles/preview/preview/mysql/mgmt/mysql/models.go +++ b/profiles/preview/preview/mysql/mgmt/mysql/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/mysql/mgmt/mysql/mysqlapi/models.go b/profiles/preview/preview/mysql/mgmt/mysql/mysqlapi/models.go index d2d2d155946f..69c965aeb4a1 100644 --- a/profiles/preview/preview/mysql/mgmt/mysql/mysqlapi/models.go +++ b/profiles/preview/preview/mysql/mgmt/mysql/mysqlapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/netapp/mgmt/netapp/models.go b/profiles/preview/preview/netapp/mgmt/netapp/models.go index 9d55065ea8da..e9b66c4d6326 100644 --- a/profiles/preview/preview/netapp/mgmt/netapp/models.go +++ b/profiles/preview/preview/netapp/mgmt/netapp/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/netapp/mgmt/netapp/netappapi/models.go b/profiles/preview/preview/netapp/mgmt/netapp/netappapi/models.go index df5136fc858a..b3abaeba03f8 100644 --- a/profiles/preview/preview/netapp/mgmt/netapp/netappapi/models.go +++ b/profiles/preview/preview/netapp/mgmt/netapp/netappapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 09117aa1a4eb..4ebb16e79da3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a42650e24383..1902e77dff9f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 748d71a371e7..69873bce9d32 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 bf17329e3345..a7706dda7d24 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 92043553d0a6..119ce1f7286b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 1429c332b685..b2a7aa132532 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 fd48a80852c8..cdea06e849ef 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 87c7d91d44da..672f833df031 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/peering/mgmt/peering/models.go b/profiles/preview/preview/peering/mgmt/peering/models.go index 80000056b1b1..7599927749e2 100644 --- a/profiles/preview/preview/peering/mgmt/peering/models.go +++ b/profiles/preview/preview/peering/mgmt/peering/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/peering/mgmt/peering/peeringapi/models.go b/profiles/preview/preview/peering/mgmt/peering/peeringapi/models.go index d6b774c37b95..7be16f26f6c9 100644 --- a/profiles/preview/preview/peering/mgmt/peering/peeringapi/models.go +++ b/profiles/preview/preview/peering/mgmt/peering/peeringapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/personalizer/personalizer/models.go b/profiles/preview/preview/personalizer/personalizer/models.go index d02f4c2ae9cd..03bf779b8862 100644 --- a/profiles/preview/preview/personalizer/personalizer/models.go +++ b/profiles/preview/preview/personalizer/personalizer/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/personalizer/personalizer/personalizerapi/models.go b/profiles/preview/preview/personalizer/personalizer/personalizerapi/models.go index 2ecebd9977a4..47bbd5ea4b54 100644 --- a/profiles/preview/preview/personalizer/personalizer/personalizerapi/models.go +++ b/profiles/preview/preview/personalizer/personalizer/personalizerapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 49ac37271d95..f0b0f248efae 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 4c182a8890ea..17e50e870a27 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/portal/mgmt/portal/models.go b/profiles/preview/preview/portal/mgmt/portal/models.go index 828b439ea3a1..cfffc99fb56e 100644 --- a/profiles/preview/preview/portal/mgmt/portal/models.go +++ b/profiles/preview/preview/portal/mgmt/portal/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/portal/mgmt/portal/portalapi/models.go b/profiles/preview/preview/portal/mgmt/portal/portalapi/models.go index 42a766955a23..deed2691da80 100644 --- a/profiles/preview/preview/portal/mgmt/portal/portalapi/models.go +++ b/profiles/preview/preview/portal/mgmt/portal/portalapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/postgresql/mgmt/postgresql/models.go b/profiles/preview/preview/postgresql/mgmt/postgresql/models.go index d1b50ec42155..74068acbe3a7 100644 --- a/profiles/preview/preview/postgresql/mgmt/postgresql/models.go +++ b/profiles/preview/preview/postgresql/mgmt/postgresql/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/postgresql/mgmt/postgresql/postgresqlapi/models.go b/profiles/preview/preview/postgresql/mgmt/postgresql/postgresqlapi/models.go index a50964de6acb..9ba2f9095fae 100644 --- a/profiles/preview/preview/postgresql/mgmt/postgresql/postgresqlapi/models.go +++ b/profiles/preview/preview/postgresql/mgmt/postgresql/postgresqlapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 ab89ed4d1a5e..583a096e3fb6 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e19f2a3441aa..5d4f7c07d58c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8a48e611bb76..d00db885304a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2d7aae84ae6d..66f0361cb4e3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/resourcegraph/mgmt/resourcegraph/models.go b/profiles/preview/preview/resourcegraph/mgmt/resourcegraph/models.go index 55f09b708ad4..1a13ab5b8735 100644 --- a/profiles/preview/preview/resourcegraph/mgmt/resourcegraph/models.go +++ b/profiles/preview/preview/resourcegraph/mgmt/resourcegraph/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/resourcegraph/mgmt/resourcegraph/resourcegraphapi/models.go b/profiles/preview/preview/resourcegraph/mgmt/resourcegraph/resourcegraphapi/models.go index 64316d31bb03..950c539abfb4 100644 --- a/profiles/preview/preview/resourcegraph/mgmt/resourcegraph/resourcegraphapi/models.go +++ b/profiles/preview/preview/resourcegraph/mgmt/resourcegraph/resourcegraphapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 241076f3994a..b0d91617ea8d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 4a8fe04d286f..cfc029cfa117 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 80a6e0d0d215..9bdb02c079d1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8c750886b270..e0e8760b2955 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 7469c4e0485e..af4cd6cf7d9a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2248a1fef720..88fb18d199f5 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 65cec574653e..e70ac4b938fe 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 7e6b82de2b5f..079850db50dd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 25b06ebd6436..1fb9efce69b0 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 5ad5aa4f97d0..049a372a6dc1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/securityinsight/mgmt/securityinsight/models.go b/profiles/preview/preview/securityinsight/mgmt/securityinsight/models.go index f166c9eccd81..a9c8e8eace31 100644 --- a/profiles/preview/preview/securityinsight/mgmt/securityinsight/models.go +++ b/profiles/preview/preview/securityinsight/mgmt/securityinsight/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/securityinsight/mgmt/securityinsight/securityinsightapi/models.go b/profiles/preview/preview/securityinsight/mgmt/securityinsight/securityinsightapi/models.go index bcfdeb4c208a..2f1d31d9e814 100644 --- a/profiles/preview/preview/securityinsight/mgmt/securityinsight/securityinsightapi/models.go +++ b/profiles/preview/preview/securityinsight/mgmt/securityinsight/securityinsightapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/servicebus/mgmt/servicebus/models.go b/profiles/preview/preview/servicebus/mgmt/servicebus/models.go index ed1967fdac05..3f381b38ea75 100644 --- a/profiles/preview/preview/servicebus/mgmt/servicebus/models.go +++ b/profiles/preview/preview/servicebus/mgmt/servicebus/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/servicebus/mgmt/servicebus/servicebusapi/models.go b/profiles/preview/preview/servicebus/mgmt/servicebus/servicebusapi/models.go index aebf8bb0eb2f..47ba9ae448a6 100644 --- a/profiles/preview/preview/servicebus/mgmt/servicebus/servicebusapi/models.go +++ b/profiles/preview/preview/servicebus/mgmt/servicebus/servicebusapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 6e2171d4fdc5..8fa433ee3934 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/servicefabricapi/models.go b/profiles/preview/preview/servicefabric/mgmt/servicefabric/servicefabricapi/models.go index 92bebee141b6..3d8b1bc3b369 100644 --- a/profiles/preview/preview/servicefabric/mgmt/servicefabric/servicefabricapi/models.go +++ b/profiles/preview/preview/servicefabric/mgmt/servicefabric/servicefabricapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 36e0ada34765..a6b956d6567e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 ea48bd552ac2..f05bd01d0b01 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 da01d2b56bd0..abd07a9e7c65 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 512f60825022..e61ba3b7d83c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/softwareplan/mgmt/softwareplan/models.go b/profiles/preview/preview/softwareplan/mgmt/softwareplan/models.go index 6f2a06d42bc1..9a277913c377 100644 --- a/profiles/preview/preview/softwareplan/mgmt/softwareplan/models.go +++ b/profiles/preview/preview/softwareplan/mgmt/softwareplan/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/softwareplan/mgmt/softwareplan/softwareplanapi/models.go b/profiles/preview/preview/softwareplan/mgmt/softwareplan/softwareplanapi/models.go index 56c5223de0f6..23369a5adec9 100644 --- a/profiles/preview/preview/softwareplan/mgmt/softwareplan/softwareplanapi/models.go +++ b/profiles/preview/preview/softwareplan/mgmt/softwareplan/softwareplanapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b3908b2d87cf..ec79da26df68 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 33a1e830cf2a..92e04cfe22b7 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e2bb6ff86869..a980b609a319 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 661ed3282f40..5a428177579c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 bf1d942ba4a0..66347cd6692d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 71df4b8a68db..04db9856cf57 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f8386a8481b3..edb1b40dd214 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 eb06f761e79c..ad9c5890be6d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/storagecache/mgmt/storagecache/models.go b/profiles/preview/preview/storagecache/mgmt/storagecache/models.go index d947da0f591c..0eb2c2b0b78e 100644 --- a/profiles/preview/preview/storagecache/mgmt/storagecache/models.go +++ b/profiles/preview/preview/storagecache/mgmt/storagecache/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/storagecache/mgmt/storagecache/storagecacheapi/models.go b/profiles/preview/preview/storagecache/mgmt/storagecache/storagecacheapi/models.go index 53c75c01b3f4..366c579eb64f 100644 --- a/profiles/preview/preview/storagecache/mgmt/storagecache/storagecacheapi/models.go +++ b/profiles/preview/preview/storagecache/mgmt/storagecache/storagecacheapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 90ba0be92c49..395a7e2b656b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 20c781c071be..c682fe6cfa10 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 190cf7e8450a..0b2611201e82 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 3e99514ad580..110ed9e2350e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 31db4079580c..af863c424303 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 20932371fa11..4286e7cfcda6 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/models.go b/profiles/preview/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/models.go index 61f4c34a94cd..e28e8761d6ff 100644 --- a/profiles/preview/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/models.go +++ b/profiles/preview/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/virtualmachineimagebuilderapi/models.go b/profiles/preview/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/virtualmachineimagebuilderapi/models.go index 18a47ed84bcb..4992a3481888 100644 --- a/profiles/preview/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/virtualmachineimagebuilderapi/models.go +++ b/profiles/preview/preview/virtualmachineimagebuilder/mgmt/virtualmachineimagebuilder/virtualmachineimagebuilderapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f8be78726511..189307e00e48 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 30e968f2336f..5e3736c699df 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 58610e980c9b..5b047d94b353 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 56315e3716f0..7006b8f73eed 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/windowsesu/windowsesu/models.go b/profiles/preview/preview/windowsesu/windowsesu/models.go index 6e6128e5f542..3ed1b79ca049 100644 --- a/profiles/preview/preview/windowsesu/windowsesu/models.go +++ b/profiles/preview/preview/windowsesu/windowsesu/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/windowsesu/windowsesu/windowsesuapi/models.go b/profiles/preview/preview/windowsesu/windowsesu/windowsesuapi/models.go index 80555b35e6be..81a697d3e0b8 100644 --- a/profiles/preview/preview/windowsesu/windowsesu/windowsesuapi/models.go +++ b/profiles/preview/preview/windowsesu/windowsesu/windowsesuapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 544d5b3ad9f3..e477ab6ebb01 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 5e772e5c0644..53a98fcd16fa 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/privatedns/mgmt/privatedns/models.go b/profiles/preview/privatedns/mgmt/privatedns/models.go index f8929dba6404..1da550fe3974 100644 --- a/profiles/preview/privatedns/mgmt/privatedns/models.go +++ b/profiles/preview/privatedns/mgmt/privatedns/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/privatedns/mgmt/privatedns/privatednsapi/models.go b/profiles/preview/privatedns/mgmt/privatedns/privatednsapi/models.go index b131f8963b9e..f9fb9df59b88 100644 --- a/profiles/preview/privatedns/mgmt/privatedns/privatednsapi/models.go +++ b/profiles/preview/privatedns/mgmt/privatedns/privatednsapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 cd904535f7b9..689968efa67c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 ca94a9893379..5fd62523454e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 019ebc617251..f963839e8537 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8aa2dd1fe357..598516d5fafc 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 2a2754597b22..95abba77cd71 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 ce6b385c30c6..193f4c44c0fb 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a10c329774a3..bfc035e80061 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a14559010360..d2375bfadfe9 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8994a23bae2e..7d94274d2080 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 710d10d813f3..42af71fb8234 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e5edbf60831f..7d449b4b6429 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d9ef14aee24c..200b927cfa80 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 0136bc7cc710..3a4b43604fd2 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 3a78705055fd..46f111b9954f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resourcegraph/mgmt/resourcegraph/models.go b/profiles/preview/resourcegraph/mgmt/resourcegraph/models.go index 18533d97c880..4d13a3231e06 100644 --- a/profiles/preview/resourcegraph/mgmt/resourcegraph/models.go +++ b/profiles/preview/resourcegraph/mgmt/resourcegraph/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/resourcegraph/mgmt/resourcegraph/resourcegraphapi/models.go b/profiles/preview/resourcegraph/mgmt/resourcegraph/resourcegraphapi/models.go index d9da3d718523..1f7a3457c69e 100644 --- a/profiles/preview/resourcegraph/mgmt/resourcegraph/resourcegraphapi/models.go +++ b/profiles/preview/resourcegraph/mgmt/resourcegraph/resourcegraphapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e7057f631911..ba0d87825fca 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e5342f3ac740..2fb68b7df259 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 69fd9a5cf75a..093798e15e1e 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 0061b02829ba..d0cb5f674257 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 b0dbc943edc6..fd0e2ad19235 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 4597816b04e6..3ac1b7494adc 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 de8c2e5d8d74..849387e83e50 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 7660d2ce4642..0b9fc62556fa 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 fc49db2a227e..108633223bac 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 49b796076258..68b2714aff6b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e2ece98125d5..3266f96e854d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 c57141c7a2f4..e72b2283372d 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 34bfcc4a4866..a016a5bfecbd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a4f41e15a0ac..be6a206fd799 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 614c49b0119d..96c62616f247 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 160e7606fe40..1189c310b185 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d07a7787136f..44460a1ba219 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 300cbdc45916..6b03fc053e98 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 585bcd435a6e..e97bb52bfeb1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 3fb302f49e7c..2c7d427ecbec 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/serialconsole/mgmt/serialconsole/models.go b/profiles/preview/serialconsole/mgmt/serialconsole/models.go index e42c52fc959f..bccebe936675 100644 --- a/profiles/preview/serialconsole/mgmt/serialconsole/models.go +++ b/profiles/preview/serialconsole/mgmt/serialconsole/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/serialconsole/mgmt/serialconsole/serialconsoleapi/models.go b/profiles/preview/serialconsole/mgmt/serialconsole/serialconsoleapi/models.go index 713d3c085568..bc4b8ca5607b 100644 --- a/profiles/preview/serialconsole/mgmt/serialconsole/serialconsoleapi/models.go +++ b/profiles/preview/serialconsole/mgmt/serialconsole/serialconsoleapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e92dd03050c6..9ce2c705a568 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 9f01cb32e070..533ed70eb44f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 1646871573e3..a8358a7296f1 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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/servicefabricapi/models.go b/profiles/preview/servicefabric/mgmt/servicefabric/servicefabricapi/models.go index 971d9ab2df07..10d6733923a5 100644 --- a/profiles/preview/servicefabric/mgmt/servicefabric/servicefabricapi/models.go +++ b/profiles/preview/servicefabric/mgmt/servicefabric/servicefabricapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 bf4dbc6da3cc..16d3d250bcbe 100644 --- a/profiles/preview/servicefabric/servicefabric/models.go +++ b/profiles/preview/servicefabric/servicefabric/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 46a6f3d6ad84..7a9f21604ea3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 f3cacdeab936..21c1c9f23341 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 97ab40cf226d..a6761c7662e2 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 1ef18e61db29..bfd8227eea63 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 d641097b6ea9..97dd990d7d8b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 da811c3a9849..c39a66839849 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 fe6cd4856f06..78ecf2b96077 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 87c8946db909..9ca2fa0a44be 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -133,6 +133,13 @@ const ( MicrosoftStorage KeySource = original.MicrosoftStorage ) +type KeyType = original.KeyType + +const ( + KeyTypeAccount KeyType = original.KeyTypeAccount + KeyTypeService KeyType = original.KeyTypeService +) + type Kind = original.Kind const ( @@ -566,6 +573,9 @@ func PossibleKeyPermissionValues() []KeyPermission { func PossibleKeySourceValues() []KeySource { return original.PossibleKeySourceValues() } +func PossibleKeyTypeValues() []KeyType { + return original.PossibleKeyTypeValues() +} func PossibleKindValues() []Kind { return original.PossibleKindValues() } diff --git a/profiles/preview/storage/mgmt/storage/storageapi/models.go b/profiles/preview/storage/mgmt/storage/storageapi/models.go index 200c4ad1138c..ec8dfd635a4c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storagecache/mgmt/storagecache/models.go b/profiles/preview/storagecache/mgmt/storagecache/models.go index cbedb328a65a..48a5c6b1b641 100644 --- a/profiles/preview/storagecache/mgmt/storagecache/models.go +++ b/profiles/preview/storagecache/mgmt/storagecache/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/storagecache/mgmt/storagecache/storagecacheapi/models.go b/profiles/preview/storagecache/mgmt/storagecache/storagecacheapi/models.go index 77b8ab88ba0b..43a5a3d0e6fd 100644 --- a/profiles/preview/storagecache/mgmt/storagecache/storagecacheapi/models.go +++ b/profiles/preview/storagecache/mgmt/storagecache/storagecacheapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 0452af9c3981..67f61fcb4810 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e6d7e671ebfa..c9c4939e3764 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a8baef531bd4..928acc07d357 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 864f87959a54..e607e6e72685 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 394ff94d4668..173fb09f65fd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 a0acc58522f6..b8dc2acfbb46 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 389a99e9faec..a0d117c4023a 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e8e639ce7193..8936954640c3 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 e52f7d2ed28e..082727d743e4 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 cff90bedb96d..4e457395b00c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 743c0d3c2b6b..c8fe82fc3c1f 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 7b053c050cf1..8211a5a0e42b 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 440e4aaa3379..c9fd241e9451 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 75308cec0d79..c01847d4824c 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go b/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go index e89218f20d0e..500c85858425 100644 --- a/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go +++ b/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go b/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go index ed837345e317..f1a8fdf36c68 100644 --- a/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go +++ b/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 09d21472b55a..f02ff4fd28c5 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the 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 8f59e4c13c02..0c2575ecdcbd 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 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/windowsiot/mgmt/windowsiot/models.go b/profiles/preview/windowsiot/mgmt/windowsiot/models.go index eadd75ed7853..a46485c5b5ff 100644 --- a/profiles/preview/windowsiot/mgmt/windowsiot/models.go +++ b/profiles/preview/windowsiot/mgmt/windowsiot/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/profiles/preview/windowsiot/mgmt/windowsiot/windowsiotapi/models.go b/profiles/preview/windowsiot/mgmt/windowsiot/windowsiotapi/models.go index b23facad9bcd..5787dc653ee5 100644 --- a/profiles/preview/windowsiot/mgmt/windowsiot/windowsiotapi/models.go +++ b/profiles/preview/windowsiot/mgmt/windowsiot/windowsiotapi/models.go @@ -1,6 +1,6 @@ // +build go1.9 -// Copyright 2019 Microsoft Corporation +// Copyright 2020 Microsoft Corporation // // Licensed 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/frontdoor/mgmt/2019-04-01/frontdoor/client.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/client.go index 31795304aa33..85a96011ad7d 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/client.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/client.go @@ -46,7 +46,8 @@ func New(subscriptionID string) BaseClient { return NewWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewWithBaseURI creates an instance of the BaseClient client. +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return BaseClient{ Client: autorest.NewClientWithUserAgent(UserAgent()), diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/endpoints.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/endpoints.go index 935523490056..2af2c8cdec9d 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/endpoints.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/endpoints.go @@ -36,7 +36,8 @@ func NewEndpointsClient(subscriptionID string) EndpointsClient { return NewEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client. +// NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient { return EndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/frontdoorapi/interfaces.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/frontdoorapi/interfaces.go index f7fa78530e1e..1ef5a46f5623 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/frontdoorapi/interfaces.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/frontdoorapi/interfaces.go @@ -36,7 +36,9 @@ type FrontDoorsClientAPI interface { Delete(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontDoorsDeleteFutureType, err error) Get(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontDoor, err error) List(ctx context.Context) (result frontdoor.ListResultPage, err error) + ListComplete(ctx context.Context) (result frontdoor.ListResultIterator, err error) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result frontdoor.ListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result frontdoor.ListResultIterator, err error) ValidateCustomDomain(ctx context.Context, resourceGroupName string, frontDoorName string, customDomainProperties frontdoor.ValidateCustomDomainInput) (result frontdoor.ValidateCustomDomainOutput, err error) } @@ -48,6 +50,7 @@ type FrontendEndpointsClientAPI interface { EnableHTTPS(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string, customHTTPSConfiguration frontdoor.CustomHTTPSConfiguration) (result frontdoor.FrontendEndpointsEnableHTTPSFuture, err error) Get(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (result frontdoor.FrontendEndpoint, err error) ListByFrontDoor(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontendEndpointsListResultPage, err error) + ListByFrontDoorComplete(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontendEndpointsListResultIterator, err error) } var _ FrontendEndpointsClientAPI = (*frontdoor.FrontendEndpointsClient)(nil) @@ -65,6 +68,7 @@ type PoliciesClientAPI interface { Delete(ctx context.Context, resourceGroupName string, policyName string) (result frontdoor.PoliciesDeleteFuture, err error) Get(ctx context.Context, resourceGroupName string, policyName string) (result frontdoor.WebApplicationFirewallPolicy, err error) List(ctx context.Context, resourceGroupName string) (result frontdoor.WebApplicationFirewallPolicyListPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result frontdoor.WebApplicationFirewallPolicyListIterator, err error) } var _ PoliciesClientAPI = (*frontdoor.PoliciesClient)(nil) @@ -72,6 +76,7 @@ var _ PoliciesClientAPI = (*frontdoor.PoliciesClient)(nil) // ManagedRuleSetsClientAPI contains the set of methods on the ManagedRuleSetsClient type. type ManagedRuleSetsClientAPI interface { List(ctx context.Context) (result frontdoor.ManagedRuleSetDefinitionListPage, err error) + ListComplete(ctx context.Context) (result frontdoor.ManagedRuleSetDefinitionListIterator, err error) } var _ ManagedRuleSetsClientAPI = (*frontdoor.ManagedRuleSetsClient)(nil) diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/frontdoors.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/frontdoors.go index 6c1133caf17e..64bf2061380d 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/frontdoors.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/frontdoors.go @@ -36,7 +36,8 @@ func NewFrontDoorsClient(subscriptionID string) FrontDoorsClient { return NewFrontDoorsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewFrontDoorsClientWithBaseURI creates an instance of the FrontDoorsClient client. +// NewFrontDoorsClientWithBaseURI creates an instance of the FrontDoorsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewFrontDoorsClientWithBaseURI(baseURI string, subscriptionID string) FrontDoorsClient { return FrontDoorsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/frontendendpoints.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/frontendendpoints.go index c05303c37ea4..2bc8cd0f7619 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/frontendendpoints.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/frontendendpoints.go @@ -36,7 +36,9 @@ func NewFrontendEndpointsClient(subscriptionID string) FrontendEndpointsClient { return NewFrontendEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewFrontendEndpointsClientWithBaseURI creates an instance of the FrontendEndpointsClient client. +// NewFrontendEndpointsClientWithBaseURI creates an instance of the FrontendEndpointsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). func NewFrontendEndpointsClientWithBaseURI(baseURI string, subscriptionID string) FrontendEndpointsClient { return FrontendEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/managedrulesets.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/managedrulesets.go index 131f3c52f5ef..9ecf69d2c2e6 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/managedrulesets.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/managedrulesets.go @@ -35,7 +35,8 @@ func NewManagedRuleSetsClient(subscriptionID string) ManagedRuleSetsClient { return NewManagedRuleSetsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewManagedRuleSetsClientWithBaseURI creates an instance of the ManagedRuleSetsClient client. +// NewManagedRuleSetsClientWithBaseURI creates an instance of the ManagedRuleSetsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewManagedRuleSetsClientWithBaseURI(baseURI string, subscriptionID string) ManagedRuleSetsClient { return ManagedRuleSetsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/frontdoor/mgmt/2019-04-01/frontdoor/policies.go b/services/frontdoor/mgmt/2019-04-01/frontdoor/policies.go index 89c4fdb4da6d..7fab8d2c0c9f 100644 --- a/services/frontdoor/mgmt/2019-04-01/frontdoor/policies.go +++ b/services/frontdoor/mgmt/2019-04-01/frontdoor/policies.go @@ -36,7 +36,8 @@ func NewPoliciesClient(subscriptionID string) PoliciesClient { return NewPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client. +// NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient { return PoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/client.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/client.go index 4ae20818d416..91f605afddb9 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/client.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/client.go @@ -46,7 +46,8 @@ func New(subscriptionID string) BaseClient { return NewWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewWithBaseURI creates an instance of the BaseClient client. +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return BaseClient{ Client: autorest.NewClientWithUserAgent(UserAgent()), diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/endpoints.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/endpoints.go index 45b3caf3f6eb..edb66c36b708 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/endpoints.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/endpoints.go @@ -36,7 +36,8 @@ func NewEndpointsClient(subscriptionID string) EndpointsClient { return NewEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client. +// NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient { return EndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoorapi/interfaces.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoorapi/interfaces.go index 2fa8bb51b743..29c0dd148748 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoorapi/interfaces.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoorapi/interfaces.go @@ -36,7 +36,9 @@ type FrontDoorsClientAPI interface { Delete(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontDoorsDeleteFutureType, err error) Get(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontDoor, err error) List(ctx context.Context) (result frontdoor.ListResultPage, err error) + ListComplete(ctx context.Context) (result frontdoor.ListResultIterator, err error) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result frontdoor.ListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result frontdoor.ListResultIterator, err error) ValidateCustomDomain(ctx context.Context, resourceGroupName string, frontDoorName string, customDomainProperties frontdoor.ValidateCustomDomainInput) (result frontdoor.ValidateCustomDomainOutput, err error) } @@ -48,6 +50,7 @@ type FrontendEndpointsClientAPI interface { EnableHTTPS(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string, customHTTPSConfiguration frontdoor.CustomHTTPSConfiguration) (result frontdoor.FrontendEndpointsEnableHTTPSFuture, err error) Get(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (result frontdoor.FrontendEndpoint, err error) ListByFrontDoor(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontendEndpointsListResultPage, err error) + ListByFrontDoorComplete(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontendEndpointsListResultIterator, err error) } var _ FrontendEndpointsClientAPI = (*frontdoor.FrontendEndpointsClient)(nil) @@ -65,6 +68,7 @@ type PoliciesClientAPI interface { Delete(ctx context.Context, resourceGroupName string, policyName string) (result frontdoor.PoliciesDeleteFuture, err error) Get(ctx context.Context, resourceGroupName string, policyName string) (result frontdoor.WebApplicationFirewallPolicy, err error) List(ctx context.Context, resourceGroupName string) (result frontdoor.WebApplicationFirewallPolicyListPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result frontdoor.WebApplicationFirewallPolicyListIterator, err error) } var _ PoliciesClientAPI = (*frontdoor.PoliciesClient)(nil) @@ -72,6 +76,7 @@ var _ PoliciesClientAPI = (*frontdoor.PoliciesClient)(nil) // ManagedRuleSetsClientAPI contains the set of methods on the ManagedRuleSetsClient type. type ManagedRuleSetsClientAPI interface { List(ctx context.Context) (result frontdoor.ManagedRuleSetDefinitionListPage, err error) + ListComplete(ctx context.Context) (result frontdoor.ManagedRuleSetDefinitionListIterator, err error) } var _ ManagedRuleSetsClientAPI = (*frontdoor.ManagedRuleSetsClient)(nil) diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoors.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoors.go index 69c824ef87ce..8c62d42cfafe 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoors.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/frontdoors.go @@ -36,7 +36,8 @@ func NewFrontDoorsClient(subscriptionID string) FrontDoorsClient { return NewFrontDoorsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewFrontDoorsClientWithBaseURI creates an instance of the FrontDoorsClient client. +// NewFrontDoorsClientWithBaseURI creates an instance of the FrontDoorsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewFrontDoorsClientWithBaseURI(baseURI string, subscriptionID string) FrontDoorsClient { return FrontDoorsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/frontendendpoints.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/frontendendpoints.go index 9fa5f132ff37..f1e0d59f0b8a 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/frontendendpoints.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/frontendendpoints.go @@ -36,7 +36,9 @@ func NewFrontendEndpointsClient(subscriptionID string) FrontendEndpointsClient { return NewFrontendEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewFrontendEndpointsClientWithBaseURI creates an instance of the FrontendEndpointsClient client. +// NewFrontendEndpointsClientWithBaseURI creates an instance of the FrontendEndpointsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). func NewFrontendEndpointsClientWithBaseURI(baseURI string, subscriptionID string) FrontendEndpointsClient { return FrontendEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/managedrulesets.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/managedrulesets.go index 131f3c52f5ef..9ecf69d2c2e6 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/managedrulesets.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/managedrulesets.go @@ -35,7 +35,8 @@ func NewManagedRuleSetsClient(subscriptionID string) ManagedRuleSetsClient { return NewManagedRuleSetsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewManagedRuleSetsClientWithBaseURI creates an instance of the ManagedRuleSetsClient client. +// NewManagedRuleSetsClientWithBaseURI creates an instance of the ManagedRuleSetsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewManagedRuleSetsClientWithBaseURI(baseURI string, subscriptionID string) ManagedRuleSetsClient { return ManagedRuleSetsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/frontdoor/mgmt/2019-05-01/frontdoor/policies.go b/services/frontdoor/mgmt/2019-05-01/frontdoor/policies.go index 89c4fdb4da6d..7fab8d2c0c9f 100644 --- a/services/frontdoor/mgmt/2019-05-01/frontdoor/policies.go +++ b/services/frontdoor/mgmt/2019-05-01/frontdoor/policies.go @@ -36,7 +36,8 @@ func NewPoliciesClient(subscriptionID string) PoliciesClient { return NewPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client. +// NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient { return PoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/client.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/client.go new file mode 100644 index 000000000000..91f605afddb9 --- /dev/null +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/client.go @@ -0,0 +1,217 @@ +// Package frontdoor implements the Azure ARM Frontdoor service API version . +// +// FrontDoor Client +package frontdoor + +// 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" +) + +const ( + // DefaultBaseURI is the default URI used for the service Frontdoor + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Frontdoor. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} + +// CheckFrontDoorNameAvailability check the availability of a Front Door resource name. +// Parameters: +// checkFrontDoorNameAvailabilityInput - input to check. +func (client BaseClient) CheckFrontDoorNameAvailability(ctx context.Context, checkFrontDoorNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckFrontDoorNameAvailability") + 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: checkFrontDoorNameAvailabilityInput, + Constraints: []validation.Constraint{{Target: "checkFrontDoorNameAvailabilityInput.Name", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.BaseClient", "CheckFrontDoorNameAvailability", err.Error()) + } + + req, err := client.CheckFrontDoorNameAvailabilityPreparer(ctx, checkFrontDoorNameAvailabilityInput) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckFrontDoorNameAvailabilitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckFrontDoorNameAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", resp, "Failure responding to request") + } + + return +} + +// CheckFrontDoorNameAvailabilityPreparer prepares the CheckFrontDoorNameAvailability request. +func (client BaseClient) CheckFrontDoorNameAvailabilityPreparer(ctx context.Context, checkFrontDoorNameAvailabilityInput CheckNameAvailabilityInput) (*http.Request, error) { + const APIVersion = "2019-05-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.WithPath("/providers/Microsoft.Network/checkFrontDoorNameAvailability"), + autorest.WithJSON(checkFrontDoorNameAvailabilityInput), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckFrontDoorNameAvailabilitySender sends the CheckFrontDoorNameAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) CheckFrontDoorNameAvailabilitySender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + return autorest.SendWithSender(client, req, sd...) +} + +// CheckFrontDoorNameAvailabilityResponder handles the response to the CheckFrontDoorNameAvailability request. The method always +// closes the http.Response Body. +func (client BaseClient) CheckFrontDoorNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityOutput, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CheckFrontDoorNameAvailabilityWithSubscription check the availability of a Front Door subdomain. +// Parameters: +// checkFrontDoorNameAvailabilityInput - input to check. +func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscription(ctx context.Context, checkFrontDoorNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckFrontDoorNameAvailabilityWithSubscription") + 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: checkFrontDoorNameAvailabilityInput, + Constraints: []validation.Constraint{{Target: "checkFrontDoorNameAvailabilityInput.Name", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", err.Error()) + } + + req, err := client.CheckFrontDoorNameAvailabilityWithSubscriptionPreparer(ctx, checkFrontDoorNameAvailabilityInput) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", nil, "Failure preparing request") + return + } + + resp, err := client.CheckFrontDoorNameAvailabilityWithSubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", resp, "Failure sending request") + return + } + + result, err = client.CheckFrontDoorNameAvailabilityWithSubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", resp, "Failure responding to request") + } + + return +} + +// CheckFrontDoorNameAvailabilityWithSubscriptionPreparer prepares the CheckFrontDoorNameAvailabilityWithSubscription request. +func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscriptionPreparer(ctx context.Context, checkFrontDoorNameAvailabilityInput CheckNameAvailabilityInput) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability", pathParameters), + autorest.WithJSON(checkFrontDoorNameAvailabilityInput), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckFrontDoorNameAvailabilityWithSubscriptionSender sends the CheckFrontDoorNameAvailabilityWithSubscription request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscriptionSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// CheckFrontDoorNameAvailabilityWithSubscriptionResponder handles the response to the CheckFrontDoorNameAvailabilityWithSubscription request. The method always +// closes the http.Response Body. +func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscriptionResponder(resp *http.Response) (result CheckNameAvailabilityOutput, 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/frontdoor/mgmt/2019-10-01/frontdoor/endpoints.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/endpoints.go new file mode 100644 index 000000000000..edb66c36b708 --- /dev/null +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/endpoints.go @@ -0,0 +1,138 @@ +package frontdoor + +// 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" +) + +// EndpointsClient is the frontDoor Client +type EndpointsClient struct { + BaseClient +} + +// NewEndpointsClient creates an instance of the EndpointsClient client. +func NewEndpointsClient(subscriptionID string) EndpointsClient { + return NewEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient { + return EndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// PurgeContent removes a content from Front Door. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +// contentFilePaths - the path to the content to be purged. Path can be a full URL, e.g. '/pictures/city.png' +// which removes a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders +// and files in the directory. +func (client EndpointsClient) PurgeContent(ctx context.Context, resourceGroupName string, frontDoorName string, contentFilePaths PurgeParameters) (result EndpointsPurgeContentFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.PurgeContent") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}, + {TargetValue: contentFilePaths, + Constraints: []validation.Constraint{{Target: "contentFilePaths.ContentPaths", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.EndpointsClient", "PurgeContent", err.Error()) + } + + req, err := client.PurgeContentPreparer(ctx, resourceGroupName, frontDoorName, contentFilePaths) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.EndpointsClient", "PurgeContent", nil, "Failure preparing request") + return + } + + result, err = client.PurgeContentSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.EndpointsClient", "PurgeContent", result.Response(), "Failure sending request") + return + } + + return +} + +// PurgeContentPreparer prepares the PurgeContent request. +func (client EndpointsClient) PurgeContentPreparer(ctx context.Context, resourceGroupName string, frontDoorName string, contentFilePaths PurgeParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}/purge", pathParameters), + autorest.WithJSON(contentFilePaths), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PurgeContentSender sends the PurgeContent request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) PurgeContentSender(req *http.Request) (future EndpointsPurgeContentFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// PurgeContentResponder handles the response to the PurgeContent request. The method always +// closes the http.Response Body. +func (client EndpointsClient) PurgeContentResponder(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/frontdoor/mgmt/2019-10-01/frontdoor/frontdoorapi/interfaces.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/frontdoorapi/interfaces.go new file mode 100644 index 000000000000..cd080542df6d --- /dev/null +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/frontdoorapi/interfaces.go @@ -0,0 +1,82 @@ +package frontdoorapi + +// 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/frontdoor/mgmt/2019-10-01/frontdoor" +) + +// BaseClientAPI contains the set of methods on the BaseClient type. +type BaseClientAPI interface { + CheckFrontDoorNameAvailability(ctx context.Context, checkFrontDoorNameAvailabilityInput frontdoor.CheckNameAvailabilityInput) (result frontdoor.CheckNameAvailabilityOutput, err error) + CheckFrontDoorNameAvailabilityWithSubscription(ctx context.Context, checkFrontDoorNameAvailabilityInput frontdoor.CheckNameAvailabilityInput) (result frontdoor.CheckNameAvailabilityOutput, err error) +} + +var _ BaseClientAPI = (*frontdoor.BaseClient)(nil) + +// FrontDoorsClientAPI contains the set of methods on the FrontDoorsClient type. +type FrontDoorsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, frontDoorName string, frontDoorParameters frontdoor.FrontDoor) (result frontdoor.FrontDoorsCreateOrUpdateFutureType, err error) + Delete(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontDoorsDeleteFutureType, err error) + Get(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontDoor, err error) + List(ctx context.Context) (result frontdoor.ListResultPage, err error) + ListComplete(ctx context.Context) (result frontdoor.ListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result frontdoor.ListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result frontdoor.ListResultIterator, err error) + ValidateCustomDomain(ctx context.Context, resourceGroupName string, frontDoorName string, customDomainProperties frontdoor.ValidateCustomDomainInput) (result frontdoor.ValidateCustomDomainOutput, err error) +} + +var _ FrontDoorsClientAPI = (*frontdoor.FrontDoorsClient)(nil) + +// FrontendEndpointsClientAPI contains the set of methods on the FrontendEndpointsClient type. +type FrontendEndpointsClientAPI interface { + DisableHTTPS(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (result frontdoor.FrontendEndpointsDisableHTTPSFuture, err error) + EnableHTTPS(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string, customHTTPSConfiguration frontdoor.CustomHTTPSConfiguration) (result frontdoor.FrontendEndpointsEnableHTTPSFuture, err error) + Get(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (result frontdoor.FrontendEndpoint, err error) + ListByFrontDoor(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontendEndpointsListResultPage, err error) + ListByFrontDoorComplete(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontendEndpointsListResultIterator, err error) +} + +var _ FrontendEndpointsClientAPI = (*frontdoor.FrontendEndpointsClient)(nil) + +// EndpointsClientAPI contains the set of methods on the EndpointsClient type. +type EndpointsClientAPI interface { + PurgeContent(ctx context.Context, resourceGroupName string, frontDoorName string, contentFilePaths frontdoor.PurgeParameters) (result frontdoor.EndpointsPurgeContentFuture, err error) +} + +var _ EndpointsClientAPI = (*frontdoor.EndpointsClient)(nil) + +// PoliciesClientAPI contains the set of methods on the PoliciesClient type. +type PoliciesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, policyName string, parameters frontdoor.WebApplicationFirewallPolicy) (result frontdoor.PoliciesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, policyName string) (result frontdoor.PoliciesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, policyName string) (result frontdoor.WebApplicationFirewallPolicy, err error) + List(ctx context.Context, resourceGroupName string) (result frontdoor.WebApplicationFirewallPolicyListPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result frontdoor.WebApplicationFirewallPolicyListIterator, err error) +} + +var _ PoliciesClientAPI = (*frontdoor.PoliciesClient)(nil) + +// ManagedRuleSetsClientAPI contains the set of methods on the ManagedRuleSetsClient type. +type ManagedRuleSetsClientAPI interface { + List(ctx context.Context) (result frontdoor.ManagedRuleSetDefinitionListPage, err error) + ListComplete(ctx context.Context) (result frontdoor.ManagedRuleSetDefinitionListIterator, err error) +} + +var _ ManagedRuleSetsClientAPI = (*frontdoor.ManagedRuleSetsClient)(nil) diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/frontdoors.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/frontdoors.go new file mode 100644 index 000000000000..8c62d42cfafe --- /dev/null +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/frontdoors.go @@ -0,0 +1,638 @@ +package frontdoor + +// 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" +) + +// FrontDoorsClient is the frontDoor Client +type FrontDoorsClient struct { + BaseClient +} + +// NewFrontDoorsClient creates an instance of the FrontDoorsClient client. +func NewFrontDoorsClient(subscriptionID string) FrontDoorsClient { + return NewFrontDoorsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewFrontDoorsClientWithBaseURI creates an instance of the FrontDoorsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewFrontDoorsClientWithBaseURI(baseURI string, subscriptionID string) FrontDoorsClient { + return FrontDoorsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a new Front Door with a Front Door name under the specified subscription and resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +// frontDoorParameters - front Door properties needed to create a new Front Door. +func (client FrontDoorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, frontDoorName string, frontDoorParameters FrontDoor) (result FrontDoorsCreateOrUpdateFutureType, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.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: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontDoorsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, frontDoorName, frontDoorParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client FrontDoorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, frontDoorName string, frontDoorParameters FrontDoor) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}", pathParameters), + autorest.WithJSON(frontDoorParameters), + 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 FrontDoorsClient) CreateOrUpdateSender(req *http.Request) (future FrontDoorsCreateOrUpdateFutureType, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + 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 FrontDoorsClient) CreateOrUpdateResponder(resp *http.Response) (result FrontDoor, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing Front Door with the specified parameters. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +func (client FrontDoorsClient) Delete(ctx context.Context, resourceGroupName string, frontDoorName string) (result FrontDoorsDeleteFutureType, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontDoorsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, frontDoorName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client FrontDoorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, frontDoorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}", 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 FrontDoorsClient) DeleteSender(req *http.Request) (future FrontDoorsDeleteFutureType, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + 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 FrontDoorsClient) 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 a Front Door with the specified Front Door name under the specified subscription and resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +func (client FrontDoorsClient) Get(ctx context.Context, resourceGroupName string, frontDoorName string) (result FrontDoor, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontDoorsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, frontDoorName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client FrontDoorsClient) GetPreparer(ctx context.Context, resourceGroupName string, frontDoorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}", 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 FrontDoorsClient) GetSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client FrontDoorsClient) GetResponder(resp *http.Response) (result FrontDoor, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all of the Front Doors within an Azure subscription. +func (client FrontDoorsClient) List(ctx context.Context) (result ListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.List") + defer func() { + sc := -1 + if result.lr.Response.Response != nil { + sc = result.lr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", resp, "Failure sending request") + return + } + + result.lr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client FrontDoorsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client FrontDoorsClient) ListSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client FrontDoorsClient) ListResponder(resp *http.Response) (result ListResult, 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 FrontDoorsClient) listNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { + req, err := lastResults.listResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "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, "frontdoor.FrontDoorsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client FrontDoorsClient) ListComplete(ctx context.Context) (result ListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all of the Front Doors within a resource group under a subscription. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +func (client FrontDoorsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.lr.Response.Response != nil { + sc = result.lr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontDoorsClient", "ListByResourceGroup", err.Error()) + } + + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.lr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.lr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", resp, "Failure responding to request") + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client FrontDoorsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors", 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 FrontDoorsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client FrontDoorsClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, 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 FrontDoorsClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { + req, err := lastResults.listResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "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, "frontdoor.FrontDoorsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client FrontDoorsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ValidateCustomDomain validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in +// DNS. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +// customDomainProperties - custom domain to be validated. +func (client FrontDoorsClient) ValidateCustomDomain(ctx context.Context, resourceGroupName string, frontDoorName string, customDomainProperties ValidateCustomDomainInput) (result ValidateCustomDomainOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.ValidateCustomDomain") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}, + {TargetValue: customDomainProperties, + Constraints: []validation.Constraint{{Target: "customDomainProperties.HostName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontDoorsClient", "ValidateCustomDomain", err.Error()) + } + + req, err := client.ValidateCustomDomainPreparer(ctx, resourceGroupName, frontDoorName, customDomainProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", nil, "Failure preparing request") + return + } + + resp, err := client.ValidateCustomDomainSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", resp, "Failure sending request") + return + } + + result, err = client.ValidateCustomDomainResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", resp, "Failure responding to request") + } + + return +} + +// ValidateCustomDomainPreparer prepares the ValidateCustomDomain request. +func (client FrontDoorsClient) ValidateCustomDomainPreparer(ctx context.Context, resourceGroupName string, frontDoorName string, customDomainProperties ValidateCustomDomainInput) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}/validateCustomDomain", pathParameters), + autorest.WithJSON(customDomainProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ValidateCustomDomainSender sends the ValidateCustomDomain request. The method will close the +// http.Response Body if it receives an error. +func (client FrontDoorsClient) ValidateCustomDomainSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ValidateCustomDomainResponder handles the response to the ValidateCustomDomain request. The method always +// closes the http.Response Body. +func (client FrontDoorsClient) ValidateCustomDomainResponder(resp *http.Response) (result ValidateCustomDomainOutput, 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/frontdoor/mgmt/2019-10-01/frontdoor/frontendendpoints.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/frontendendpoints.go new file mode 100644 index 000000000000..f1e0d59f0b8a --- /dev/null +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/frontendendpoints.go @@ -0,0 +1,459 @@ +package frontdoor + +// 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" +) + +// FrontendEndpointsClient is the frontDoor Client +type FrontendEndpointsClient struct { + BaseClient +} + +// NewFrontendEndpointsClient creates an instance of the FrontendEndpointsClient client. +func NewFrontendEndpointsClient(subscriptionID string) FrontendEndpointsClient { + return NewFrontendEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewFrontendEndpointsClientWithBaseURI creates an instance of the FrontendEndpointsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewFrontendEndpointsClientWithBaseURI(baseURI string, subscriptionID string) FrontendEndpointsClient { + return FrontendEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// DisableHTTPS disables a frontendEndpoint for HTTPS traffic +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +// frontendEndpointName - name of the Frontend endpoint which is unique within the Front Door. +func (client FrontendEndpointsClient) DisableHTTPS(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (result FrontendEndpointsDisableHTTPSFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsClient.DisableHTTPS") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}, + {TargetValue: frontendEndpointName, + Constraints: []validation.Constraint{{Target: "frontendEndpointName", Name: validation.MaxLength, Rule: 255, Chain: nil}, + {Target: "frontendEndpointName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "frontendEndpointName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontendEndpointsClient", "DisableHTTPS", err.Error()) + } + + req, err := client.DisableHTTPSPreparer(ctx, resourceGroupName, frontDoorName, frontendEndpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "DisableHTTPS", nil, "Failure preparing request") + return + } + + result, err = client.DisableHTTPSSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "DisableHTTPS", result.Response(), "Failure sending request") + return + } + + return +} + +// DisableHTTPSPreparer prepares the DisableHTTPS request. +func (client FrontendEndpointsClient) DisableHTTPSPreparer(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "frontendEndpointName": autorest.Encode("path", frontendEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DisableHTTPSSender sends the DisableHTTPS request. The method will close the +// http.Response Body if it receives an error. +func (client FrontendEndpointsClient) DisableHTTPSSender(req *http.Request) (future FrontendEndpointsDisableHTTPSFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DisableHTTPSResponder handles the response to the DisableHTTPS request. The method always +// closes the http.Response Body. +func (client FrontendEndpointsClient) DisableHTTPSResponder(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 +} + +// EnableHTTPS enables a frontendEndpoint for HTTPS traffic +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +// frontendEndpointName - name of the Frontend endpoint which is unique within the Front Door. +// customHTTPSConfiguration - the configuration specifying how to enable HTTPS +func (client FrontendEndpointsClient) EnableHTTPS(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string, customHTTPSConfiguration CustomHTTPSConfiguration) (result FrontendEndpointsEnableHTTPSFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsClient.EnableHTTPS") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}, + {TargetValue: frontendEndpointName, + Constraints: []validation.Constraint{{Target: "frontendEndpointName", Name: validation.MaxLength, Rule: 255, Chain: nil}, + {Target: "frontendEndpointName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "frontendEndpointName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$`, Chain: nil}}}, + {TargetValue: customHTTPSConfiguration, + Constraints: []validation.Constraint{{Target: "customHTTPSConfiguration.ProtocolType", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontendEndpointsClient", "EnableHTTPS", err.Error()) + } + + req, err := client.EnableHTTPSPreparer(ctx, resourceGroupName, frontDoorName, frontendEndpointName, customHTTPSConfiguration) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "EnableHTTPS", nil, "Failure preparing request") + return + } + + result, err = client.EnableHTTPSSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "EnableHTTPS", result.Response(), "Failure sending request") + return + } + + return +} + +// EnableHTTPSPreparer prepares the EnableHTTPS request. +func (client FrontendEndpointsClient) EnableHTTPSPreparer(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string, customHTTPSConfiguration CustomHTTPSConfiguration) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "frontendEndpointName": autorest.Encode("path", frontendEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", pathParameters), + autorest.WithJSON(customHTTPSConfiguration), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// EnableHTTPSSender sends the EnableHTTPS request. The method will close the +// http.Response Body if it receives an error. +func (client FrontendEndpointsClient) EnableHTTPSSender(req *http.Request) (future FrontendEndpointsEnableHTTPSFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// EnableHTTPSResponder handles the response to the EnableHTTPS request. The method always +// closes the http.Response Body. +func (client FrontendEndpointsClient) EnableHTTPSResponder(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 gets a Frontend endpoint with the specified name within the specified Front Door. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +// frontendEndpointName - name of the Frontend endpoint which is unique within the Front Door. +func (client FrontendEndpointsClient) Get(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (result FrontendEndpoint, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}, + {TargetValue: frontendEndpointName, + Constraints: []validation.Constraint{{Target: "frontendEndpointName", Name: validation.MaxLength, Rule: 255, Chain: nil}, + {Target: "frontendEndpointName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "frontendEndpointName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontendEndpointsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, frontDoorName, frontendEndpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client FrontendEndpointsClient) GetPreparer(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "frontendEndpointName": autorest.Encode("path", frontendEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", 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 FrontendEndpointsClient) GetSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client FrontendEndpointsClient) GetResponder(resp *http.Response) (result FrontendEndpoint, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByFrontDoor lists all of the frontend endpoints within a Front Door. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +func (client FrontendEndpointsClient) ListByFrontDoor(ctx context.Context, resourceGroupName string, frontDoorName string) (result FrontendEndpointsListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsClient.ListByFrontDoor") + defer func() { + sc := -1 + if result.felr.Response.Response != nil { + sc = result.felr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontendEndpointsClient", "ListByFrontDoor", err.Error()) + } + + result.fn = client.listByFrontDoorNextResults + req, err := client.ListByFrontDoorPreparer(ctx, resourceGroupName, frontDoorName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", nil, "Failure preparing request") + return + } + + resp, err := client.ListByFrontDoorSender(req) + if err != nil { + result.felr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", resp, "Failure sending request") + return + } + + result.felr, err = client.ListByFrontDoorResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", resp, "Failure responding to request") + } + + return +} + +// ListByFrontDoorPreparer prepares the ListByFrontDoor request. +func (client FrontendEndpointsClient) ListByFrontDoorPreparer(ctx context.Context, resourceGroupName string, frontDoorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}/frontendEndpoints", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByFrontDoorSender sends the ListByFrontDoor request. The method will close the +// http.Response Body if it receives an error. +func (client FrontendEndpointsClient) ListByFrontDoorSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListByFrontDoorResponder handles the response to the ListByFrontDoor request. The method always +// closes the http.Response Body. +func (client FrontendEndpointsClient) ListByFrontDoorResponder(resp *http.Response) (result FrontendEndpointsListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByFrontDoorNextResults retrieves the next set of results, if any. +func (client FrontendEndpointsClient) listByFrontDoorNextResults(ctx context.Context, lastResults FrontendEndpointsListResult) (result FrontendEndpointsListResult, err error) { + req, err := lastResults.frontendEndpointsListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByFrontDoorSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByFrontDoorResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByFrontDoorComplete enumerates all values, automatically crossing page boundaries as required. +func (client FrontendEndpointsClient) ListByFrontDoorComplete(ctx context.Context, resourceGroupName string, frontDoorName string) (result FrontendEndpointsListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsClient.ListByFrontDoor") + 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.ListByFrontDoor(ctx, resourceGroupName, frontDoorName) + return +} diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/managedrulesets.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/managedrulesets.go new file mode 100644 index 000000000000..637e557fd374 --- /dev/null +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/managedrulesets.go @@ -0,0 +1,152 @@ +package frontdoor + +// 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" +) + +// ManagedRuleSetsClient is the frontDoor Client +type ManagedRuleSetsClient struct { + BaseClient +} + +// NewManagedRuleSetsClient creates an instance of the ManagedRuleSetsClient client. +func NewManagedRuleSetsClient(subscriptionID string) ManagedRuleSetsClient { + return NewManagedRuleSetsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewManagedRuleSetsClientWithBaseURI creates an instance of the ManagedRuleSetsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewManagedRuleSetsClientWithBaseURI(baseURI string, subscriptionID string) ManagedRuleSetsClient { + return ManagedRuleSetsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists all available managed rule sets. +func (client ManagedRuleSetsClient) List(ctx context.Context) (result ManagedRuleSetDefinitionListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRuleSetsClient.List") + defer func() { + sc := -1 + if result.mrsdl.Response.Response != nil { + sc = result.mrsdl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.mrsdl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", resp, "Failure sending request") + return + } + + result.mrsdl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client ManagedRuleSetsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-10-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ManagedRuleSetsClient) ListSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ManagedRuleSetsClient) ListResponder(resp *http.Response) (result ManagedRuleSetDefinitionList, 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 ManagedRuleSetsClient) listNextResults(ctx context.Context, lastResults ManagedRuleSetDefinitionList) (result ManagedRuleSetDefinitionList, err error) { + req, err := lastResults.managedRuleSetDefinitionListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "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, "frontdoor.ManagedRuleSetsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ManagedRuleSetsClient) ListComplete(ctx context.Context) (result ManagedRuleSetDefinitionListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRuleSetsClient.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/frontdoor/mgmt/2019-10-01/frontdoor/models.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/models.go new file mode 100644 index 000000000000..b81c730ffdbd --- /dev/null +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/models.go @@ -0,0 +1,3134 @@ +package frontdoor + +// 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/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/frontdoor/mgmt/2019-10-01/frontdoor" + +// ActionType enumerates the values for action type. +type ActionType string + +const ( + // Allow ... + Allow ActionType = "Allow" + // Block ... + Block ActionType = "Block" + // Log ... + Log ActionType = "Log" + // Redirect ... + Redirect ActionType = "Redirect" +) + +// PossibleActionTypeValues returns an array of possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{Allow, Block, Log, Redirect} +} + +// Availability enumerates the values for availability. +type Availability string + +const ( + // Available ... + Available Availability = "Available" + // Unavailable ... + Unavailable Availability = "Unavailable" +) + +// PossibleAvailabilityValues returns an array of possible values for the Availability const type. +func PossibleAvailabilityValues() []Availability { + return []Availability{Available, Unavailable} +} + +// BackendEnabledState enumerates the values for backend enabled state. +type BackendEnabledState string + +const ( + // Disabled ... + Disabled BackendEnabledState = "Disabled" + // Enabled ... + Enabled BackendEnabledState = "Enabled" +) + +// PossibleBackendEnabledStateValues returns an array of possible values for the BackendEnabledState const type. +func PossibleBackendEnabledStateValues() []BackendEnabledState { + return []BackendEnabledState{Disabled, Enabled} +} + +// CertificateSource enumerates the values for certificate source. +type CertificateSource string + +const ( + // CertificateSourceAzureKeyVault ... + CertificateSourceAzureKeyVault CertificateSource = "AzureKeyVault" + // CertificateSourceFrontDoor ... + CertificateSourceFrontDoor CertificateSource = "FrontDoor" +) + +// PossibleCertificateSourceValues returns an array of possible values for the CertificateSource const type. +func PossibleCertificateSourceValues() []CertificateSource { + return []CertificateSource{CertificateSourceAzureKeyVault, CertificateSourceFrontDoor} +} + +// CertificateType enumerates the values for certificate type. +type CertificateType string + +const ( + // Dedicated ... + Dedicated CertificateType = "Dedicated" +) + +// PossibleCertificateTypeValues returns an array of possible values for the CertificateType const type. +func PossibleCertificateTypeValues() []CertificateType { + return []CertificateType{Dedicated} +} + +// CustomHTTPSProvisioningState enumerates the values for custom https provisioning state. +type CustomHTTPSProvisioningState string + +const ( + // CustomHTTPSProvisioningStateDisabled ... + CustomHTTPSProvisioningStateDisabled CustomHTTPSProvisioningState = "Disabled" + // CustomHTTPSProvisioningStateDisabling ... + CustomHTTPSProvisioningStateDisabling CustomHTTPSProvisioningState = "Disabling" + // CustomHTTPSProvisioningStateEnabled ... + CustomHTTPSProvisioningStateEnabled CustomHTTPSProvisioningState = "Enabled" + // CustomHTTPSProvisioningStateEnabling ... + CustomHTTPSProvisioningStateEnabling CustomHTTPSProvisioningState = "Enabling" + // CustomHTTPSProvisioningStateFailed ... + CustomHTTPSProvisioningStateFailed CustomHTTPSProvisioningState = "Failed" +) + +// PossibleCustomHTTPSProvisioningStateValues returns an array of possible values for the CustomHTTPSProvisioningState const type. +func PossibleCustomHTTPSProvisioningStateValues() []CustomHTTPSProvisioningState { + return []CustomHTTPSProvisioningState{CustomHTTPSProvisioningStateDisabled, CustomHTTPSProvisioningStateDisabling, CustomHTTPSProvisioningStateEnabled, CustomHTTPSProvisioningStateEnabling, CustomHTTPSProvisioningStateFailed} +} + +// CustomHTTPSProvisioningSubstate enumerates the values for custom https provisioning substate. +type CustomHTTPSProvisioningSubstate string + +const ( + // CertificateDeleted ... + CertificateDeleted CustomHTTPSProvisioningSubstate = "CertificateDeleted" + // CertificateDeployed ... + CertificateDeployed CustomHTTPSProvisioningSubstate = "CertificateDeployed" + // DeletingCertificate ... + DeletingCertificate CustomHTTPSProvisioningSubstate = "DeletingCertificate" + // DeployingCertificate ... + DeployingCertificate CustomHTTPSProvisioningSubstate = "DeployingCertificate" + // DomainControlValidationRequestApproved ... + DomainControlValidationRequestApproved CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestApproved" + // DomainControlValidationRequestRejected ... + DomainControlValidationRequestRejected CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestRejected" + // DomainControlValidationRequestTimedOut ... + DomainControlValidationRequestTimedOut CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestTimedOut" + // IssuingCertificate ... + IssuingCertificate CustomHTTPSProvisioningSubstate = "IssuingCertificate" + // PendingDomainControlValidationREquestApproval ... + PendingDomainControlValidationREquestApproval CustomHTTPSProvisioningSubstate = "PendingDomainControlValidationREquestApproval" + // SubmittingDomainControlValidationRequest ... + SubmittingDomainControlValidationRequest CustomHTTPSProvisioningSubstate = "SubmittingDomainControlValidationRequest" +) + +// PossibleCustomHTTPSProvisioningSubstateValues returns an array of possible values for the CustomHTTPSProvisioningSubstate const type. +func PossibleCustomHTTPSProvisioningSubstateValues() []CustomHTTPSProvisioningSubstate { + return []CustomHTTPSProvisioningSubstate{CertificateDeleted, CertificateDeployed, DeletingCertificate, DeployingCertificate, DomainControlValidationRequestApproved, DomainControlValidationRequestRejected, DomainControlValidationRequestTimedOut, IssuingCertificate, PendingDomainControlValidationREquestApproval, SubmittingDomainControlValidationRequest} +} + +// CustomRuleEnabledState enumerates the values for custom rule enabled state. +type CustomRuleEnabledState string + +const ( + // CustomRuleEnabledStateDisabled ... + CustomRuleEnabledStateDisabled CustomRuleEnabledState = "Disabled" + // CustomRuleEnabledStateEnabled ... + CustomRuleEnabledStateEnabled CustomRuleEnabledState = "Enabled" +) + +// PossibleCustomRuleEnabledStateValues returns an array of possible values for the CustomRuleEnabledState const type. +func PossibleCustomRuleEnabledStateValues() []CustomRuleEnabledState { + return []CustomRuleEnabledState{CustomRuleEnabledStateDisabled, CustomRuleEnabledStateEnabled} +} + +// DynamicCompressionEnabled enumerates the values for dynamic compression enabled. +type DynamicCompressionEnabled string + +const ( + // DynamicCompressionEnabledDisabled ... + DynamicCompressionEnabledDisabled DynamicCompressionEnabled = "Disabled" + // DynamicCompressionEnabledEnabled ... + DynamicCompressionEnabledEnabled DynamicCompressionEnabled = "Enabled" +) + +// PossibleDynamicCompressionEnabledValues returns an array of possible values for the DynamicCompressionEnabled const type. +func PossibleDynamicCompressionEnabledValues() []DynamicCompressionEnabled { + return []DynamicCompressionEnabled{DynamicCompressionEnabledDisabled, DynamicCompressionEnabledEnabled} +} + +// EnabledState enumerates the values for enabled state. +type EnabledState string + +const ( + // EnabledStateDisabled ... + EnabledStateDisabled EnabledState = "Disabled" + // EnabledStateEnabled ... + EnabledStateEnabled EnabledState = "Enabled" +) + +// PossibleEnabledStateValues returns an array of possible values for the EnabledState const type. +func PossibleEnabledStateValues() []EnabledState { + return []EnabledState{EnabledStateDisabled, EnabledStateEnabled} +} + +// EnforceCertificateNameCheckEnabledState enumerates the values for enforce certificate name check enabled +// state. +type EnforceCertificateNameCheckEnabledState string + +const ( + // EnforceCertificateNameCheckEnabledStateDisabled ... + EnforceCertificateNameCheckEnabledStateDisabled EnforceCertificateNameCheckEnabledState = "Disabled" + // EnforceCertificateNameCheckEnabledStateEnabled ... + EnforceCertificateNameCheckEnabledStateEnabled EnforceCertificateNameCheckEnabledState = "Enabled" +) + +// PossibleEnforceCertificateNameCheckEnabledStateValues returns an array of possible values for the EnforceCertificateNameCheckEnabledState const type. +func PossibleEnforceCertificateNameCheckEnabledStateValues() []EnforceCertificateNameCheckEnabledState { + return []EnforceCertificateNameCheckEnabledState{EnforceCertificateNameCheckEnabledStateDisabled, EnforceCertificateNameCheckEnabledStateEnabled} +} + +// ForwardingProtocol enumerates the values for forwarding protocol. +type ForwardingProtocol string + +const ( + // HTTPOnly ... + HTTPOnly ForwardingProtocol = "HttpOnly" + // HTTPSOnly ... + HTTPSOnly ForwardingProtocol = "HttpsOnly" + // MatchRequest ... + MatchRequest ForwardingProtocol = "MatchRequest" +) + +// PossibleForwardingProtocolValues returns an array of possible values for the ForwardingProtocol const type. +func PossibleForwardingProtocolValues() []ForwardingProtocol { + return []ForwardingProtocol{HTTPOnly, HTTPSOnly, MatchRequest} +} + +// HealthProbeEnabled enumerates the values for health probe enabled. +type HealthProbeEnabled string + +const ( + // HealthProbeEnabledDisabled ... + HealthProbeEnabledDisabled HealthProbeEnabled = "Disabled" + // HealthProbeEnabledEnabled ... + HealthProbeEnabledEnabled HealthProbeEnabled = "Enabled" +) + +// PossibleHealthProbeEnabledValues returns an array of possible values for the HealthProbeEnabled const type. +func PossibleHealthProbeEnabledValues() []HealthProbeEnabled { + return []HealthProbeEnabled{HealthProbeEnabledDisabled, HealthProbeEnabledEnabled} +} + +// HealthProbeMethod enumerates the values for health probe method. +type HealthProbeMethod string + +const ( + // GET ... + GET HealthProbeMethod = "GET" + // HEAD ... + HEAD HealthProbeMethod = "HEAD" +) + +// PossibleHealthProbeMethodValues returns an array of possible values for the HealthProbeMethod const type. +func PossibleHealthProbeMethodValues() []HealthProbeMethod { + return []HealthProbeMethod{GET, HEAD} +} + +// ManagedRuleEnabledState enumerates the values for managed rule enabled state. +type ManagedRuleEnabledState string + +const ( + // ManagedRuleEnabledStateDisabled ... + ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled" + // ManagedRuleEnabledStateEnabled ... + ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = "Enabled" +) + +// PossibleManagedRuleEnabledStateValues returns an array of possible values for the ManagedRuleEnabledState const type. +func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState { + return []ManagedRuleEnabledState{ManagedRuleEnabledStateDisabled, ManagedRuleEnabledStateEnabled} +} + +// ManagedRuleExclusionMatchVariable enumerates the values for managed rule exclusion match variable. +type ManagedRuleExclusionMatchVariable string + +const ( + // QueryStringArgNames ... + QueryStringArgNames ManagedRuleExclusionMatchVariable = "QueryStringArgNames" + // RequestBodyPostArgNames ... + RequestBodyPostArgNames ManagedRuleExclusionMatchVariable = "RequestBodyPostArgNames" + // RequestCookieNames ... + RequestCookieNames ManagedRuleExclusionMatchVariable = "RequestCookieNames" + // RequestHeaderNames ... + RequestHeaderNames ManagedRuleExclusionMatchVariable = "RequestHeaderNames" +) + +// PossibleManagedRuleExclusionMatchVariableValues returns an array of possible values for the ManagedRuleExclusionMatchVariable const type. +func PossibleManagedRuleExclusionMatchVariableValues() []ManagedRuleExclusionMatchVariable { + return []ManagedRuleExclusionMatchVariable{QueryStringArgNames, RequestBodyPostArgNames, RequestCookieNames, RequestHeaderNames} +} + +// ManagedRuleExclusionSelectorMatchOperator enumerates the values for managed rule exclusion selector match +// operator. +type ManagedRuleExclusionSelectorMatchOperator string + +const ( + // Contains ... + Contains ManagedRuleExclusionSelectorMatchOperator = "Contains" + // EndsWith ... + EndsWith ManagedRuleExclusionSelectorMatchOperator = "EndsWith" + // Equals ... + Equals ManagedRuleExclusionSelectorMatchOperator = "Equals" + // EqualsAny ... + EqualsAny ManagedRuleExclusionSelectorMatchOperator = "EqualsAny" + // StartsWith ... + StartsWith ManagedRuleExclusionSelectorMatchOperator = "StartsWith" +) + +// PossibleManagedRuleExclusionSelectorMatchOperatorValues returns an array of possible values for the ManagedRuleExclusionSelectorMatchOperator const type. +func PossibleManagedRuleExclusionSelectorMatchOperatorValues() []ManagedRuleExclusionSelectorMatchOperator { + return []ManagedRuleExclusionSelectorMatchOperator{Contains, EndsWith, Equals, EqualsAny, StartsWith} +} + +// MatchVariable enumerates the values for match variable. +type MatchVariable string + +const ( + // Cookies ... + Cookies MatchVariable = "Cookies" + // PostArgs ... + PostArgs MatchVariable = "PostArgs" + // QueryString ... + QueryString MatchVariable = "QueryString" + // RemoteAddr ... + RemoteAddr MatchVariable = "RemoteAddr" + // RequestBody ... + RequestBody MatchVariable = "RequestBody" + // RequestHeader ... + RequestHeader MatchVariable = "RequestHeader" + // RequestMethod ... + RequestMethod MatchVariable = "RequestMethod" + // RequestURI ... + RequestURI MatchVariable = "RequestUri" + // SocketAddr ... + SocketAddr MatchVariable = "SocketAddr" +) + +// PossibleMatchVariableValues returns an array of possible values for the MatchVariable const type. +func PossibleMatchVariableValues() []MatchVariable { + return []MatchVariable{Cookies, PostArgs, QueryString, RemoteAddr, RequestBody, RequestHeader, RequestMethod, RequestURI, SocketAddr} +} + +// MinimumTLSVersion enumerates the values for minimum tls version. +type MinimumTLSVersion string + +const ( + // OneFullStopTwo ... + OneFullStopTwo MinimumTLSVersion = "1.2" + // OneFullStopZero ... + OneFullStopZero MinimumTLSVersion = "1.0" +) + +// PossibleMinimumTLSVersionValues returns an array of possible values for the MinimumTLSVersion const type. +func PossibleMinimumTLSVersionValues() []MinimumTLSVersion { + return []MinimumTLSVersion{OneFullStopTwo, OneFullStopZero} +} + +// NetworkOperationStatus enumerates the values for network operation status. +type NetworkOperationStatus string + +const ( + // Failed ... + Failed NetworkOperationStatus = "Failed" + // InProgress ... + InProgress NetworkOperationStatus = "InProgress" + // Succeeded ... + Succeeded NetworkOperationStatus = "Succeeded" +) + +// PossibleNetworkOperationStatusValues returns an array of possible values for the NetworkOperationStatus const type. +func PossibleNetworkOperationStatusValues() []NetworkOperationStatus { + return []NetworkOperationStatus{Failed, InProgress, Succeeded} +} + +// OdataType enumerates the values for odata type. +type OdataType string + +const ( + // OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration ... + OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration" + // OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration ... + OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration" + // OdataTypeRouteConfiguration ... + OdataTypeRouteConfiguration OdataType = "RouteConfiguration" +) + +// PossibleOdataTypeValues returns an array of possible values for the OdataType const type. +func PossibleOdataTypeValues() []OdataType { + return []OdataType{OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration, OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration, OdataTypeRouteConfiguration} +} + +// Operator enumerates the values for operator. +type Operator string + +const ( + // OperatorAny ... + OperatorAny Operator = "Any" + // OperatorBeginsWith ... + OperatorBeginsWith Operator = "BeginsWith" + // OperatorContains ... + OperatorContains Operator = "Contains" + // OperatorEndsWith ... + OperatorEndsWith Operator = "EndsWith" + // OperatorEqual ... + OperatorEqual Operator = "Equal" + // OperatorGeoMatch ... + OperatorGeoMatch Operator = "GeoMatch" + // OperatorGreaterThan ... + OperatorGreaterThan Operator = "GreaterThan" + // OperatorGreaterThanOrEqual ... + OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual" + // OperatorIPMatch ... + OperatorIPMatch Operator = "IPMatch" + // OperatorLessThan ... + OperatorLessThan Operator = "LessThan" + // OperatorLessThanOrEqual ... + OperatorLessThanOrEqual Operator = "LessThanOrEqual" + // OperatorRegEx ... + OperatorRegEx Operator = "RegEx" +) + +// PossibleOperatorValues returns an array of possible values for the Operator const type. +func PossibleOperatorValues() []Operator { + return []Operator{OperatorAny, OperatorBeginsWith, OperatorContains, OperatorEndsWith, OperatorEqual, OperatorGeoMatch, OperatorGreaterThan, OperatorGreaterThanOrEqual, OperatorIPMatch, OperatorLessThan, OperatorLessThanOrEqual, OperatorRegEx} +} + +// PolicyEnabledState enumerates the values for policy enabled state. +type PolicyEnabledState string + +const ( + // PolicyEnabledStateDisabled ... + PolicyEnabledStateDisabled PolicyEnabledState = "Disabled" + // PolicyEnabledStateEnabled ... + PolicyEnabledStateEnabled PolicyEnabledState = "Enabled" +) + +// PossiblePolicyEnabledStateValues returns an array of possible values for the PolicyEnabledState const type. +func PossiblePolicyEnabledStateValues() []PolicyEnabledState { + return []PolicyEnabledState{PolicyEnabledStateDisabled, PolicyEnabledStateEnabled} +} + +// PolicyMode enumerates the values for policy mode. +type PolicyMode string + +const ( + // Detection ... + Detection PolicyMode = "Detection" + // Prevention ... + Prevention PolicyMode = "Prevention" +) + +// PossiblePolicyModeValues returns an array of possible values for the PolicyMode const type. +func PossiblePolicyModeValues() []PolicyMode { + return []PolicyMode{Detection, Prevention} +} + +// PolicyResourceState enumerates the values for policy resource state. +type PolicyResourceState string + +const ( + // PolicyResourceStateCreating ... + PolicyResourceStateCreating PolicyResourceState = "Creating" + // PolicyResourceStateDeleting ... + PolicyResourceStateDeleting PolicyResourceState = "Deleting" + // PolicyResourceStateDisabled ... + PolicyResourceStateDisabled PolicyResourceState = "Disabled" + // PolicyResourceStateDisabling ... + PolicyResourceStateDisabling PolicyResourceState = "Disabling" + // PolicyResourceStateEnabled ... + PolicyResourceStateEnabled PolicyResourceState = "Enabled" + // PolicyResourceStateEnabling ... + PolicyResourceStateEnabling PolicyResourceState = "Enabling" +) + +// PossiblePolicyResourceStateValues returns an array of possible values for the PolicyResourceState const type. +func PossiblePolicyResourceStateValues() []PolicyResourceState { + return []PolicyResourceState{PolicyResourceStateCreating, PolicyResourceStateDeleting, PolicyResourceStateDisabled, PolicyResourceStateDisabling, PolicyResourceStateEnabled, PolicyResourceStateEnabling} +} + +// Protocol enumerates the values for protocol. +type Protocol string + +const ( + // HTTP ... + HTTP Protocol = "Http" + // HTTPS ... + HTTPS Protocol = "Https" +) + +// PossibleProtocolValues returns an array of possible values for the Protocol const type. +func PossibleProtocolValues() []Protocol { + return []Protocol{HTTP, HTTPS} +} + +// Query enumerates the values for query. +type Query string + +const ( + // StripAll ... + StripAll Query = "StripAll" + // StripNone ... + StripNone Query = "StripNone" +) + +// PossibleQueryValues returns an array of possible values for the Query const type. +func PossibleQueryValues() []Query { + return []Query{StripAll, StripNone} +} + +// RedirectProtocol enumerates the values for redirect protocol. +type RedirectProtocol string + +const ( + // RedirectProtocolHTTPOnly ... + RedirectProtocolHTTPOnly RedirectProtocol = "HttpOnly" + // RedirectProtocolHTTPSOnly ... + RedirectProtocolHTTPSOnly RedirectProtocol = "HttpsOnly" + // RedirectProtocolMatchRequest ... + RedirectProtocolMatchRequest RedirectProtocol = "MatchRequest" +) + +// PossibleRedirectProtocolValues returns an array of possible values for the RedirectProtocol const type. +func PossibleRedirectProtocolValues() []RedirectProtocol { + return []RedirectProtocol{RedirectProtocolHTTPOnly, RedirectProtocolHTTPSOnly, RedirectProtocolMatchRequest} +} + +// RedirectType enumerates the values for redirect type. +type RedirectType string + +const ( + // Found ... + Found RedirectType = "Found" + // Moved ... + Moved RedirectType = "Moved" + // PermanentRedirect ... + PermanentRedirect RedirectType = "PermanentRedirect" + // TemporaryRedirect ... + TemporaryRedirect RedirectType = "TemporaryRedirect" +) + +// PossibleRedirectTypeValues returns an array of possible values for the RedirectType const type. +func PossibleRedirectTypeValues() []RedirectType { + return []RedirectType{Found, Moved, PermanentRedirect, TemporaryRedirect} +} + +// ResourceState enumerates the values for resource state. +type ResourceState string + +const ( + // ResourceStateCreating ... + ResourceStateCreating ResourceState = "Creating" + // ResourceStateDeleting ... + ResourceStateDeleting ResourceState = "Deleting" + // ResourceStateDisabled ... + ResourceStateDisabled ResourceState = "Disabled" + // ResourceStateDisabling ... + ResourceStateDisabling ResourceState = "Disabling" + // ResourceStateEnabled ... + ResourceStateEnabled ResourceState = "Enabled" + // ResourceStateEnabling ... + ResourceStateEnabling ResourceState = "Enabling" +) + +// PossibleResourceStateValues returns an array of possible values for the ResourceState const type. +func PossibleResourceStateValues() []ResourceState { + return []ResourceState{ResourceStateCreating, ResourceStateDeleting, ResourceStateDisabled, ResourceStateDisabling, ResourceStateEnabled, ResourceStateEnabling} +} + +// ResourceType enumerates the values for resource type. +type ResourceType string + +const ( + // MicrosoftNetworkfrontDoors ... + MicrosoftNetworkfrontDoors ResourceType = "Microsoft.Network/frontDoors" + // MicrosoftNetworkfrontDoorsfrontendEndpoints ... + MicrosoftNetworkfrontDoorsfrontendEndpoints ResourceType = "Microsoft.Network/frontDoors/frontendEndpoints" +) + +// PossibleResourceTypeValues returns an array of possible values for the ResourceType const type. +func PossibleResourceTypeValues() []ResourceType { + return []ResourceType{MicrosoftNetworkfrontDoors, MicrosoftNetworkfrontDoorsfrontendEndpoints} +} + +// RoutingRuleEnabledState enumerates the values for routing rule enabled state. +type RoutingRuleEnabledState string + +const ( + // RoutingRuleEnabledStateDisabled ... + RoutingRuleEnabledStateDisabled RoutingRuleEnabledState = "Disabled" + // RoutingRuleEnabledStateEnabled ... + RoutingRuleEnabledStateEnabled RoutingRuleEnabledState = "Enabled" +) + +// PossibleRoutingRuleEnabledStateValues returns an array of possible values for the RoutingRuleEnabledState const type. +func PossibleRoutingRuleEnabledStateValues() []RoutingRuleEnabledState { + return []RoutingRuleEnabledState{RoutingRuleEnabledStateDisabled, RoutingRuleEnabledStateEnabled} +} + +// RuleType enumerates the values for rule type. +type RuleType string + +const ( + // MatchRule ... + MatchRule RuleType = "MatchRule" + // RateLimitRule ... + RateLimitRule RuleType = "RateLimitRule" +) + +// PossibleRuleTypeValues returns an array of possible values for the RuleType const type. +func PossibleRuleTypeValues() []RuleType { + return []RuleType{MatchRule, RateLimitRule} +} + +// SessionAffinityEnabledState enumerates the values for session affinity enabled state. +type SessionAffinityEnabledState string + +const ( + // SessionAffinityEnabledStateDisabled ... + SessionAffinityEnabledStateDisabled SessionAffinityEnabledState = "Disabled" + // SessionAffinityEnabledStateEnabled ... + SessionAffinityEnabledStateEnabled SessionAffinityEnabledState = "Enabled" +) + +// PossibleSessionAffinityEnabledStateValues returns an array of possible values for the SessionAffinityEnabledState const type. +func PossibleSessionAffinityEnabledStateValues() []SessionAffinityEnabledState { + return []SessionAffinityEnabledState{SessionAffinityEnabledStateDisabled, SessionAffinityEnabledStateEnabled} +} + +// TransformType enumerates the values for transform type. +type TransformType string + +const ( + // Lowercase ... + Lowercase TransformType = "Lowercase" + // RemoveNulls ... + RemoveNulls TransformType = "RemoveNulls" + // Trim ... + Trim TransformType = "Trim" + // Uppercase ... + Uppercase TransformType = "Uppercase" + // URLDecode ... + URLDecode TransformType = "UrlDecode" + // URLEncode ... + URLEncode TransformType = "UrlEncode" +) + +// PossibleTransformTypeValues returns an array of possible values for the TransformType const type. +func PossibleTransformTypeValues() []TransformType { + return []TransformType{Lowercase, RemoveNulls, Trim, Uppercase, URLDecode, URLEncode} +} + +// AzureAsyncOperationResult the response body contains the status of the specified asynchronous operation, +// indicating whether it has succeeded, is in progress, or has failed. Note that this status is distinct +// from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous +// operation succeeded, the response body includes the HTTP status code for the successful request. If the +// asynchronous operation failed, the response body includes the HTTP status code for the failed request +// and error information regarding the failure. +type AzureAsyncOperationResult struct { + // Status - Status of the Azure async operation. Possible values are: 'InProgress', 'Succeeded', and 'Failed'. Possible values include: 'InProgress', 'Succeeded', 'Failed' + Status NetworkOperationStatus `json:"status,omitempty"` + Error *Error `json:"error,omitempty"` +} + +// Backend backend address of a frontDoor load balancer. +type Backend struct { + // Address - Location of the backend (IP address or FQDN) + Address *string `json:"address,omitempty"` + // HTTPPort - The HTTP TCP port number. Must be between 1 and 65535. + HTTPPort *int32 `json:"httpPort,omitempty"` + // HTTPSPort - The HTTPS TCP port number. Must be between 1 and 65535. + HTTPSPort *int32 `json:"httpsPort,omitempty"` + // EnabledState - Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + EnabledState BackendEnabledState `json:"enabledState,omitempty"` + // Priority - Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + Priority *int32 `json:"priority,omitempty"` + // Weight - Weight of this endpoint for load balancing purposes. + Weight *int32 `json:"weight,omitempty"` + // BackendHostHeader - The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + BackendHostHeader *string `json:"backendHostHeader,omitempty"` +} + +// BackendPool a backend pool is a collection of backends that can be routed to. +type BackendPool struct { + // BackendPoolProperties - Properties of the Front Door Backend Pool + *BackendPoolProperties `json:"properties,omitempty"` + // Name - Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for BackendPool. +func (bp BackendPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bp.BackendPoolProperties != nil { + objectMap["properties"] = bp.BackendPoolProperties + } + if bp.Name != nil { + objectMap["name"] = bp.Name + } + if bp.ID != nil { + objectMap["id"] = bp.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for BackendPool struct. +func (bp *BackendPool) 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 backendPoolProperties BackendPoolProperties + err = json.Unmarshal(*v, &backendPoolProperties) + if err != nil { + return err + } + bp.BackendPoolProperties = &backendPoolProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + bp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bp.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + bp.ID = &ID + } + } + } + + return nil +} + +// BackendPoolListResult result of the request to list Backend Pools. It contains a list of Backend Pools +// objects and a URL link to get the next set of results. +type BackendPoolListResult struct { + // Value - READ-ONLY; List of Backend Pools within a Front Door. + Value *[]BackendPool `json:"value,omitempty"` + // NextLink - URL to get the next set of BackendPool objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// BackendPoolProperties the JSON object that contains the properties required to create a routing rule. +type BackendPoolProperties struct { + // ResourceState - Resource status. Possible values include: 'ResourceStateCreating', 'ResourceStateEnabling', 'ResourceStateEnabled', 'ResourceStateDisabling', 'ResourceStateDisabled', 'ResourceStateDeleting' + ResourceState ResourceState `json:"resourceState,omitempty"` + // Backends - The set of backends for this pool + Backends *[]Backend `json:"backends,omitempty"` + // LoadBalancingSettings - Load balancing settings for a backend pool + LoadBalancingSettings *SubResource `json:"loadBalancingSettings,omitempty"` + // HealthProbeSettings - L7 health probe settings for a backend pool + HealthProbeSettings *SubResource `json:"healthProbeSettings,omitempty"` +} + +// BackendPoolsSettings settings that apply to all backend pools. +type BackendPoolsSettings struct { + // EnforceCertificateNameCheck - Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. Possible values include: 'EnforceCertificateNameCheckEnabledStateEnabled', 'EnforceCertificateNameCheckEnabledStateDisabled' + EnforceCertificateNameCheck EnforceCertificateNameCheckEnabledState `json:"enforceCertificateNameCheck,omitempty"` + // SendRecvTimeoutSeconds - Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + SendRecvTimeoutSeconds *int32 `json:"sendRecvTimeoutSeconds,omitempty"` +} + +// BackendPoolUpdateParameters a collection of backends that can be routed to. +type BackendPoolUpdateParameters struct { + // Backends - The set of backends for this pool + Backends *[]Backend `json:"backends,omitempty"` + // LoadBalancingSettings - Load balancing settings for a backend pool + LoadBalancingSettings *SubResource `json:"loadBalancingSettings,omitempty"` + // HealthProbeSettings - L7 health probe settings for a backend pool + HealthProbeSettings *SubResource `json:"healthProbeSettings,omitempty"` +} + +// CacheConfiguration caching settings for a caching-type route. To disable caching, do not provide a +// cacheConfiguration object. +type CacheConfiguration struct { + // QueryParameterStripDirective - Treatment of URL query terms when forming the cache key. Possible values include: 'StripNone', 'StripAll' + QueryParameterStripDirective Query `json:"queryParameterStripDirective,omitempty"` + // DynamicCompression - Whether to use dynamic compression for cached content. Possible values include: 'DynamicCompressionEnabledEnabled', 'DynamicCompressionEnabledDisabled' + DynamicCompression DynamicCompressionEnabled `json:"dynamicCompression,omitempty"` +} + +// CertificateSourceParameters parameters required for enabling SSL with Front Door-managed certificates +type CertificateSourceParameters struct { + // CertificateType - Defines the type of the certificate used for secure connections to a frontendEndpoint. Possible values include: 'Dedicated' + CertificateType CertificateType `json:"certificateType,omitempty"` +} + +// CheckNameAvailabilityInput input of CheckNameAvailability API. +type CheckNameAvailabilityInput struct { + // Name - The resource name to validate. + Name *string `json:"name,omitempty"` + // Type - The type of the resource whose name is to be validated. Possible values include: 'MicrosoftNetworkfrontDoors', 'MicrosoftNetworkfrontDoorsfrontendEndpoints' + Type ResourceType `json:"type,omitempty"` +} + +// CheckNameAvailabilityOutput output of check name availability API. +type CheckNameAvailabilityOutput struct { + autorest.Response `json:"-"` + // NameAvailability - READ-ONLY; Indicates whether the name is available. Possible values include: 'Available', 'Unavailable' + NameAvailability Availability `json:"nameAvailability,omitempty"` + // Reason - READ-ONLY; The reason why the name is not available. + Reason *string `json:"reason,omitempty"` + // Message - READ-ONLY; The detailed error message describing why the name is not available. + Message *string `json:"message,omitempty"` +} + +// CustomHTTPSConfiguration https settings for a domain +type CustomHTTPSConfiguration struct { + // CertificateSource - Defines the source of the SSL certificate. Possible values include: 'CertificateSourceAzureKeyVault', 'CertificateSourceFrontDoor' + CertificateSource CertificateSource `json:"certificateSource,omitempty"` + // ProtocolType - Defines the TLS extension protocol that is used for secure delivery + ProtocolType *string `json:"protocolType,omitempty"` + // MinimumTLSVersion - The minimum TLS version required from the clients to establish an SSL handshake with Front Door. Possible values include: 'OneFullStopZero', 'OneFullStopTwo' + MinimumTLSVersion MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + // KeyVaultCertificateSourceParameters - KeyVault certificate source parameters (if certificateSource=AzureKeyVault) + *KeyVaultCertificateSourceParameters `json:"keyVaultCertificateSourceParameters,omitempty"` + // CertificateSourceParameters - Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor) + *CertificateSourceParameters `json:"frontDoorCertificateSourceParameters,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomHTTPSConfiguration. +func (chc CustomHTTPSConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if chc.CertificateSource != "" { + objectMap["certificateSource"] = chc.CertificateSource + } + if chc.ProtocolType != nil { + objectMap["protocolType"] = chc.ProtocolType + } + if chc.MinimumTLSVersion != "" { + objectMap["minimumTlsVersion"] = chc.MinimumTLSVersion + } + if chc.KeyVaultCertificateSourceParameters != nil { + objectMap["keyVaultCertificateSourceParameters"] = chc.KeyVaultCertificateSourceParameters + } + if chc.CertificateSourceParameters != nil { + objectMap["frontDoorCertificateSourceParameters"] = chc.CertificateSourceParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for CustomHTTPSConfiguration struct. +func (chc *CustomHTTPSConfiguration) 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 "certificateSource": + if v != nil { + var certificateSource CertificateSource + err = json.Unmarshal(*v, &certificateSource) + if err != nil { + return err + } + chc.CertificateSource = certificateSource + } + case "protocolType": + if v != nil { + var protocolType string + err = json.Unmarshal(*v, &protocolType) + if err != nil { + return err + } + chc.ProtocolType = &protocolType + } + case "minimumTlsVersion": + if v != nil { + var minimumTLSVersion MinimumTLSVersion + err = json.Unmarshal(*v, &minimumTLSVersion) + if err != nil { + return err + } + chc.MinimumTLSVersion = minimumTLSVersion + } + case "keyVaultCertificateSourceParameters": + if v != nil { + var keyVaultCertificateSourceParameters KeyVaultCertificateSourceParameters + err = json.Unmarshal(*v, &keyVaultCertificateSourceParameters) + if err != nil { + return err + } + chc.KeyVaultCertificateSourceParameters = &keyVaultCertificateSourceParameters + } + case "frontDoorCertificateSourceParameters": + if v != nil { + var certificateSourceParameters CertificateSourceParameters + err = json.Unmarshal(*v, &certificateSourceParameters) + if err != nil { + return err + } + chc.CertificateSourceParameters = &certificateSourceParameters + } + } + } + + return nil +} + +// CustomRule defines contents of a web application rule +type CustomRule struct { + // Name - Describes the name of the rule. + Name *string `json:"name,omitempty"` + // Priority - Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + Priority *int32 `json:"priority,omitempty"` + // EnabledState - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. Possible values include: 'CustomRuleEnabledStateDisabled', 'CustomRuleEnabledStateEnabled' + EnabledState CustomRuleEnabledState `json:"enabledState,omitempty"` + // RuleType - Describes type of rule. Possible values include: 'MatchRule', 'RateLimitRule' + RuleType RuleType `json:"ruleType,omitempty"` + // RateLimitDurationInMinutes - Time window for resetting the rate limit count. Default is 1 minute. + RateLimitDurationInMinutes *int32 `json:"rateLimitDurationInMinutes,omitempty"` + // RateLimitThreshold - Number of allowed requests per client within the time window. + RateLimitThreshold *int32 `json:"rateLimitThreshold,omitempty"` + // MatchConditions - List of match conditions. + MatchConditions *[]MatchCondition `json:"matchConditions,omitempty"` + // Action - Describes what action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + Action ActionType `json:"action,omitempty"` +} + +// CustomRuleList defines contents of custom rules +type CustomRuleList struct { + // Rules - List of rules + Rules *[]CustomRule `json:"rules,omitempty"` +} + +// EndpointsPurgeContentFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type EndpointsPurgeContentFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *EndpointsPurgeContentFuture) Result(client EndpointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.EndpointsPurgeContentFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.EndpointsPurgeContentFuture") + return + } + ar.Response = future.Response() + return +} + +// Error ... +type Error struct { + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Target *string `json:"target,omitempty"` + Details *[]ErrorDetails `json:"details,omitempty"` + InnerError *string `json:"innerError,omitempty"` +} + +// ErrorDetails ... +type ErrorDetails struct { + Code *string `json:"code,omitempty"` + Target *string `json:"target,omitempty"` + Message *string `json:"message,omitempty"` +} + +// ErrorResponse error response indicates Front Door service is not able to process the incoming request. +// The reason is provided in the error message. +type ErrorResponse struct { + // Code - READ-ONLY; Error code. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; Error message indicating why the operation failed. + Message *string `json:"message,omitempty"` +} + +// ForwardingConfiguration describes Forwarding Route. +type ForwardingConfiguration struct { + // CustomForwardingPath - A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. + CustomForwardingPath *string `json:"customForwardingPath,omitempty"` + // ForwardingProtocol - Protocol this rule will use when forwarding traffic to backends. Possible values include: 'HTTPOnly', 'HTTPSOnly', 'MatchRequest' + ForwardingProtocol ForwardingProtocol `json:"forwardingProtocol,omitempty"` + // CacheConfiguration - The caching configuration associated with this rule. + CacheConfiguration *CacheConfiguration `json:"cacheConfiguration,omitempty"` + // BackendPool - A reference to the BackendPool which this rule routes to. + BackendPool *SubResource `json:"backendPool,omitempty"` + // OdataType - Possible values include: 'OdataTypeRouteConfiguration', 'OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration', 'OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration' + OdataType OdataType `json:"@odata.type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ForwardingConfiguration. +func (fc ForwardingConfiguration) MarshalJSON() ([]byte, error) { + fc.OdataType = OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration + objectMap := make(map[string]interface{}) + if fc.CustomForwardingPath != nil { + objectMap["customForwardingPath"] = fc.CustomForwardingPath + } + if fc.ForwardingProtocol != "" { + objectMap["forwardingProtocol"] = fc.ForwardingProtocol + } + if fc.CacheConfiguration != nil { + objectMap["cacheConfiguration"] = fc.CacheConfiguration + } + if fc.BackendPool != nil { + objectMap["backendPool"] = fc.BackendPool + } + if fc.OdataType != "" { + objectMap["@odata.type"] = fc.OdataType + } + return json.Marshal(objectMap) +} + +// AsForwardingConfiguration is the BasicRouteConfiguration implementation for ForwardingConfiguration. +func (fc ForwardingConfiguration) AsForwardingConfiguration() (*ForwardingConfiguration, bool) { + return &fc, true +} + +// AsRedirectConfiguration is the BasicRouteConfiguration implementation for ForwardingConfiguration. +func (fc ForwardingConfiguration) AsRedirectConfiguration() (*RedirectConfiguration, bool) { + return nil, false +} + +// AsRouteConfiguration is the BasicRouteConfiguration implementation for ForwardingConfiguration. +func (fc ForwardingConfiguration) AsRouteConfiguration() (*RouteConfiguration, bool) { + return nil, false +} + +// AsBasicRouteConfiguration is the BasicRouteConfiguration implementation for ForwardingConfiguration. +func (fc ForwardingConfiguration) AsBasicRouteConfiguration() (BasicRouteConfiguration, bool) { + return &fc, true +} + +// FrontDoor front Door represents a collection of backend endpoints to route traffic to along with rules +// that specify how traffic is sent there. +type FrontDoor struct { + autorest.Response `json:"-"` + // Properties - Properties of the Front Door Load Balancer + *Properties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for FrontDoor. +func (fd FrontDoor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fd.Properties != nil { + objectMap["properties"] = fd.Properties + } + if fd.Location != nil { + objectMap["location"] = fd.Location + } + if fd.Tags != nil { + objectMap["tags"] = fd.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FrontDoor struct. +func (fd *FrontDoor) 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 properties Properties + err = json.Unmarshal(*v, &properties) + if err != nil { + return err + } + fd.Properties = &properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fd.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fd.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fd.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + fd.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + fd.Tags = tags + } + } + } + + return nil +} + +// FrontDoorsCreateOrUpdateFutureType an abstraction for monitoring and retrieving the results of a +// long-running operation. +type FrontDoorsCreateOrUpdateFutureType struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FrontDoorsCreateOrUpdateFutureType) Result(client FrontDoorsClient) (fd FrontDoor, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsCreateOrUpdateFutureType", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.FrontDoorsCreateOrUpdateFutureType") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if fd.Response.Response, err = future.GetResult(sender); err == nil && fd.Response.Response.StatusCode != http.StatusNoContent { + fd, err = client.CreateOrUpdateResponder(fd.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsCreateOrUpdateFutureType", "Result", fd.Response.Response, "Failure responding to request") + } + } + return +} + +// FrontDoorsDeleteFutureType an abstraction for monitoring and retrieving the results of a long-running +// operation. +type FrontDoorsDeleteFutureType struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FrontDoorsDeleteFutureType) Result(client FrontDoorsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsDeleteFutureType", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.FrontDoorsDeleteFutureType") + return + } + ar.Response = future.Response() + return +} + +// FrontendEndpoint a frontend endpoint used for routing. +type FrontendEndpoint struct { + autorest.Response `json:"-"` + // FrontendEndpointProperties - Properties of the Frontend endpoint + *FrontendEndpointProperties `json:"properties,omitempty"` + // Name - Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for FrontendEndpoint. +func (fe FrontendEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fe.FrontendEndpointProperties != nil { + objectMap["properties"] = fe.FrontendEndpointProperties + } + if fe.Name != nil { + objectMap["name"] = fe.Name + } + if fe.ID != nil { + objectMap["id"] = fe.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FrontendEndpoint struct. +func (fe *FrontendEndpoint) 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 frontendEndpointProperties FrontendEndpointProperties + err = json.Unmarshal(*v, &frontendEndpointProperties) + if err != nil { + return err + } + fe.FrontendEndpointProperties = &frontendEndpointProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fe.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fe.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fe.ID = &ID + } + } + } + + return nil +} + +// FrontendEndpointLink defines the Resource ID for a Frontend Endpoint. +type FrontendEndpointLink struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// FrontendEndpointProperties the JSON object that contains the properties required to create a frontend +// endpoint. +type FrontendEndpointProperties struct { + // ResourceState - Resource status. Possible values include: 'ResourceStateCreating', 'ResourceStateEnabling', 'ResourceStateEnabled', 'ResourceStateDisabling', 'ResourceStateDisabled', 'ResourceStateDeleting' + ResourceState ResourceState `json:"resourceState,omitempty"` + // CustomHTTPSProvisioningState - READ-ONLY; Provisioning status of Custom Https of the frontendEndpoint. Possible values include: 'CustomHTTPSProvisioningStateEnabling', 'CustomHTTPSProvisioningStateEnabled', 'CustomHTTPSProvisioningStateDisabling', 'CustomHTTPSProvisioningStateDisabled', 'CustomHTTPSProvisioningStateFailed' + CustomHTTPSProvisioningState CustomHTTPSProvisioningState `json:"customHttpsProvisioningState,omitempty"` + // CustomHTTPSProvisioningSubstate - READ-ONLY; Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. Possible values include: 'SubmittingDomainControlValidationRequest', 'PendingDomainControlValidationREquestApproval', 'DomainControlValidationRequestApproved', 'DomainControlValidationRequestRejected', 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', 'CertificateDeleted' + CustomHTTPSProvisioningSubstate CustomHTTPSProvisioningSubstate `json:"customHttpsProvisioningSubstate,omitempty"` + // CustomHTTPSConfiguration - READ-ONLY; The configuration specifying how to enable HTTPS + CustomHTTPSConfiguration *CustomHTTPSConfiguration `json:"customHttpsConfiguration,omitempty"` + // HostName - The host name of the frontendEndpoint. Must be a domain name. + HostName *string `json:"hostName,omitempty"` + // SessionAffinityEnabledState - Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'. Possible values include: 'SessionAffinityEnabledStateEnabled', 'SessionAffinityEnabledStateDisabled' + SessionAffinityEnabledState SessionAffinityEnabledState `json:"sessionAffinityEnabledState,omitempty"` + // SessionAffinityTTLSeconds - UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + SessionAffinityTTLSeconds *int32 `json:"sessionAffinityTtlSeconds,omitempty"` + // WebApplicationFirewallPolicyLink - Defines the Web Application Firewall policy for each host (if applicable) + WebApplicationFirewallPolicyLink *FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink `json:"webApplicationFirewallPolicyLink,omitempty"` +} + +// FrontendEndpointsDisableHTTPSFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type FrontendEndpointsDisableHTTPSFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FrontendEndpointsDisableHTTPSFuture) Result(client FrontendEndpointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsDisableHTTPSFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.FrontendEndpointsDisableHTTPSFuture") + return + } + ar.Response = future.Response() + return +} + +// FrontendEndpointsEnableHTTPSFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type FrontendEndpointsEnableHTTPSFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FrontendEndpointsEnableHTTPSFuture) Result(client FrontendEndpointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsEnableHTTPSFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.FrontendEndpointsEnableHTTPSFuture") + return + } + ar.Response = future.Response() + return +} + +// FrontendEndpointsListResult result of the request to list frontend endpoints. It contains a list of +// Frontend endpoint objects and a URL link to get the next set of results. +type FrontendEndpointsListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of Frontend endpoints within a Front Door. + Value *[]FrontendEndpoint `json:"value,omitempty"` + // NextLink - URL to get the next set of frontend endpoints if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// FrontendEndpointsListResultIterator provides access to a complete listing of FrontendEndpoint values. +type FrontendEndpointsListResultIterator struct { + i int + page FrontendEndpointsListResultPage +} + +// 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 *FrontendEndpointsListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsListResultIterator.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 *FrontendEndpointsListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter FrontendEndpointsListResultIterator) 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 FrontendEndpointsListResultIterator) Response() FrontendEndpointsListResult { + 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 FrontendEndpointsListResultIterator) Value() FrontendEndpoint { + if !iter.page.NotDone() { + return FrontendEndpoint{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the FrontendEndpointsListResultIterator type. +func NewFrontendEndpointsListResultIterator(page FrontendEndpointsListResultPage) FrontendEndpointsListResultIterator { + return FrontendEndpointsListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (felr FrontendEndpointsListResult) IsEmpty() bool { + return felr.Value == nil || len(*felr.Value) == 0 +} + +// frontendEndpointsListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (felr FrontendEndpointsListResult) frontendEndpointsListResultPreparer(ctx context.Context) (*http.Request, error) { + if felr.NextLink == nil || len(to.String(felr.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(felr.NextLink))) +} + +// FrontendEndpointsListResultPage contains a page of FrontendEndpoint values. +type FrontendEndpointsListResultPage struct { + fn func(context.Context, FrontendEndpointsListResult) (FrontendEndpointsListResult, error) + felr FrontendEndpointsListResult +} + +// 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 *FrontendEndpointsListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsListResultPage.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.felr) + if err != nil { + return err + } + page.felr = 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 *FrontendEndpointsListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page FrontendEndpointsListResultPage) NotDone() bool { + return !page.felr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page FrontendEndpointsListResultPage) Response() FrontendEndpointsListResult { + return page.felr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page FrontendEndpointsListResultPage) Values() []FrontendEndpoint { + if page.felr.IsEmpty() { + return nil + } + return *page.felr.Value +} + +// Creates a new instance of the FrontendEndpointsListResultPage type. +func NewFrontendEndpointsListResultPage(getNextPage func(context.Context, FrontendEndpointsListResult) (FrontendEndpointsListResult, error)) FrontendEndpointsListResultPage { + return FrontendEndpointsListResultPage{fn: getNextPage} +} + +// FrontendEndpointUpdateParameters frontend endpoint used in routing rule +type FrontendEndpointUpdateParameters struct { + // HostName - The host name of the frontendEndpoint. Must be a domain name. + HostName *string `json:"hostName,omitempty"` + // SessionAffinityEnabledState - Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'. Possible values include: 'SessionAffinityEnabledStateEnabled', 'SessionAffinityEnabledStateDisabled' + SessionAffinityEnabledState SessionAffinityEnabledState `json:"sessionAffinityEnabledState,omitempty"` + // SessionAffinityTTLSeconds - UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + SessionAffinityTTLSeconds *int32 `json:"sessionAffinityTtlSeconds,omitempty"` + // WebApplicationFirewallPolicyLink - Defines the Web Application Firewall policy for each host (if applicable) + WebApplicationFirewallPolicyLink *FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink `json:"webApplicationFirewallPolicyLink,omitempty"` +} + +// FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink defines the Web Application Firewall +// policy for each host (if applicable) +type FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// HealthProbeSettingsListResult result of the request to list HealthProbeSettings. It contains a list of +// HealthProbeSettings objects and a URL link to get the next set of results. +type HealthProbeSettingsListResult struct { + // Value - READ-ONLY; List of HealthProbeSettings within a Front Door. + Value *[]HealthProbeSettingsModel `json:"value,omitempty"` + // NextLink - URL to get the next set of HealthProbeSettings objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// HealthProbeSettingsModel load balancing settings for a backend pool +type HealthProbeSettingsModel struct { + // HealthProbeSettingsProperties - Properties of the health probe settings + *HealthProbeSettingsProperties `json:"properties,omitempty"` + // Name - Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for HealthProbeSettingsModel. +func (hpsm HealthProbeSettingsModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hpsm.HealthProbeSettingsProperties != nil { + objectMap["properties"] = hpsm.HealthProbeSettingsProperties + } + if hpsm.Name != nil { + objectMap["name"] = hpsm.Name + } + if hpsm.ID != nil { + objectMap["id"] = hpsm.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for HealthProbeSettingsModel struct. +func (hpsm *HealthProbeSettingsModel) 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 healthProbeSettingsProperties HealthProbeSettingsProperties + err = json.Unmarshal(*v, &healthProbeSettingsProperties) + if err != nil { + return err + } + hpsm.HealthProbeSettingsProperties = &healthProbeSettingsProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + hpsm.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hpsm.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + hpsm.ID = &ID + } + } + } + + return nil +} + +// HealthProbeSettingsProperties the JSON object that contains the properties required to create a health +// probe settings. +type HealthProbeSettingsProperties struct { + // ResourceState - Resource status. Possible values include: 'ResourceStateCreating', 'ResourceStateEnabling', 'ResourceStateEnabled', 'ResourceStateDisabling', 'ResourceStateDisabled', 'ResourceStateDeleting' + ResourceState ResourceState `json:"resourceState,omitempty"` + // Path - The path to use for the health probe. Default is / + Path *string `json:"path,omitempty"` + // Protocol - Protocol scheme to use for this probe. Possible values include: 'HTTP', 'HTTPS' + Protocol Protocol `json:"protocol,omitempty"` + // IntervalInSeconds - The number of seconds between health probes. + IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` + // HealthProbeMethod - Configures which HTTP method to use to probe the backends defined under backendPools. Possible values include: 'GET', 'HEAD' + HealthProbeMethod HealthProbeMethod `json:"healthProbeMethod,omitempty"` + // EnabledState - Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. Possible values include: 'HealthProbeEnabledEnabled', 'HealthProbeEnabledDisabled' + EnabledState HealthProbeEnabled `json:"enabledState,omitempty"` +} + +// HealthProbeSettingsUpdateParameters l7 health probe settings for a backend pool +type HealthProbeSettingsUpdateParameters struct { + // Path - The path to use for the health probe. Default is / + Path *string `json:"path,omitempty"` + // Protocol - Protocol scheme to use for this probe. Possible values include: 'HTTP', 'HTTPS' + Protocol Protocol `json:"protocol,omitempty"` + // IntervalInSeconds - The number of seconds between health probes. + IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` + // HealthProbeMethod - Configures which HTTP method to use to probe the backends defined under backendPools. Possible values include: 'GET', 'HEAD' + HealthProbeMethod HealthProbeMethod `json:"healthProbeMethod,omitempty"` + // EnabledState - Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. Possible values include: 'HealthProbeEnabledEnabled', 'HealthProbeEnabledDisabled' + EnabledState HealthProbeEnabled `json:"enabledState,omitempty"` +} + +// KeyVaultCertificateSourceParameters parameters required for bring-your-own-certification via Key Vault +type KeyVaultCertificateSourceParameters struct { + // Vault - The Key Vault containing the SSL certificate + Vault *KeyVaultCertificateSourceParametersVault `json:"vault,omitempty"` + // SecretName - The name of the Key Vault secret representing the full certificate PFX + SecretName *string `json:"secretName,omitempty"` + // SecretVersion - The version of the Key Vault secret representing the full certificate PFX + SecretVersion *string `json:"secretVersion,omitempty"` +} + +// KeyVaultCertificateSourceParametersVault the Key Vault containing the SSL certificate +type KeyVaultCertificateSourceParametersVault struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// ListResult result of the request to list Front Doors. It contains a list of Front Door objects and a URL +// link to get the next set of results. +type ListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of Front Doors within a resource group. + Value *[]FrontDoor `json:"value,omitempty"` + // NextLink - URL to get the next set of Front Door objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListResultIterator provides access to a complete listing of FrontDoor values. +type ListResultIterator struct { + i int + page ListResultPage +} + +// 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 *ListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListResultIterator.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 *ListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListResultIterator) 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 ListResultIterator) Response() ListResult { + 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 ListResultIterator) Value() FrontDoor { + if !iter.page.NotDone() { + return FrontDoor{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListResultIterator type. +func NewListResultIterator(page ListResultPage) ListResultIterator { + return ListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lr ListResult) IsEmpty() bool { + return lr.Value == nil || len(*lr.Value) == 0 +} + +// listResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lr ListResult) listResultPreparer(ctx context.Context) (*http.Request, error) { + if lr.NextLink == nil || len(to.String(lr.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lr.NextLink))) +} + +// ListResultPage contains a page of FrontDoor values. +type ListResultPage struct { + fn func(context.Context, ListResult) (ListResult, error) + lr ListResult +} + +// 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 *ListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListResultPage.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.lr) + if err != nil { + return err + } + page.lr = 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 *ListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListResultPage) NotDone() bool { + return !page.lr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListResultPage) Response() ListResult { + return page.lr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListResultPage) Values() []FrontDoor { + if page.lr.IsEmpty() { + return nil + } + return *page.lr.Value +} + +// Creates a new instance of the ListResultPage type. +func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage { + return ListResultPage{fn: getNextPage} +} + +// LoadBalancingSettingsListResult result of the request to list load balancing settings. It contains a +// list of load balancing settings objects and a URL link to get the next set of results. +type LoadBalancingSettingsListResult struct { + // Value - READ-ONLY; List of Backend Pools within a Front Door. + Value *[]LoadBalancingSettingsModel `json:"value,omitempty"` + // NextLink - URL to get the next set of LoadBalancingSettings objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// LoadBalancingSettingsModel load balancing settings for a backend pool +type LoadBalancingSettingsModel struct { + // LoadBalancingSettingsProperties - Properties of the load balancing settings + *LoadBalancingSettingsProperties `json:"properties,omitempty"` + // Name - Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancingSettingsModel. +func (lbsm LoadBalancingSettingsModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lbsm.LoadBalancingSettingsProperties != nil { + objectMap["properties"] = lbsm.LoadBalancingSettingsProperties + } + if lbsm.Name != nil { + objectMap["name"] = lbsm.Name + } + if lbsm.ID != nil { + objectMap["id"] = lbsm.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for LoadBalancingSettingsModel struct. +func (lbsm *LoadBalancingSettingsModel) 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 loadBalancingSettingsProperties LoadBalancingSettingsProperties + err = json.Unmarshal(*v, &loadBalancingSettingsProperties) + if err != nil { + return err + } + lbsm.LoadBalancingSettingsProperties = &loadBalancingSettingsProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + lbsm.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lbsm.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + lbsm.ID = &ID + } + } + } + + return nil +} + +// LoadBalancingSettingsProperties the JSON object that contains the properties required to create load +// balancing settings +type LoadBalancingSettingsProperties struct { + // ResourceState - Resource status. Possible values include: 'ResourceStateCreating', 'ResourceStateEnabling', 'ResourceStateEnabled', 'ResourceStateDisabling', 'ResourceStateDisabled', 'ResourceStateDeleting' + ResourceState ResourceState `json:"resourceState,omitempty"` + // SampleSize - The number of samples to consider for load balancing decisions + SampleSize *int32 `json:"sampleSize,omitempty"` + // SuccessfulSamplesRequired - The number of samples within the sample period that must succeed + SuccessfulSamplesRequired *int32 `json:"successfulSamplesRequired,omitempty"` + // AdditionalLatencyMilliseconds - The additional latency in milliseconds for probes to fall into the lowest latency bucket + AdditionalLatencyMilliseconds *int32 `json:"additionalLatencyMilliseconds,omitempty"` +} + +// LoadBalancingSettingsUpdateParameters round-Robin load balancing settings for a backend pool +type LoadBalancingSettingsUpdateParameters struct { + // SampleSize - The number of samples to consider for load balancing decisions + SampleSize *int32 `json:"sampleSize,omitempty"` + // SuccessfulSamplesRequired - The number of samples within the sample period that must succeed + SuccessfulSamplesRequired *int32 `json:"successfulSamplesRequired,omitempty"` + // AdditionalLatencyMilliseconds - The additional latency in milliseconds for probes to fall into the lowest latency bucket + AdditionalLatencyMilliseconds *int32 `json:"additionalLatencyMilliseconds,omitempty"` +} + +// ManagedRuleDefinition describes a managed rule definition. +type ManagedRuleDefinition struct { + // RuleID - READ-ONLY; Identifier for the managed rule. + RuleID *string `json:"ruleId,omitempty"` + // DefaultState - READ-ONLY; Describes the default state for the managed rule. Possible values include: 'ManagedRuleEnabledStateDisabled', 'ManagedRuleEnabledStateEnabled' + DefaultState ManagedRuleEnabledState `json:"defaultState,omitempty"` + // DefaultAction - READ-ONLY; Describes the default action to be applied when the managed rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + DefaultAction ActionType `json:"defaultAction,omitempty"` + // Description - READ-ONLY; Describes the functionality of the managed rule. + Description *string `json:"description,omitempty"` +} + +// ManagedRuleExclusion exclude variables from managed rule evaluation. +type ManagedRuleExclusion struct { + // MatchVariable - The variable type to be excluded. Possible values include: 'RequestHeaderNames', 'RequestCookieNames', 'QueryStringArgNames', 'RequestBodyPostArgNames' + MatchVariable ManagedRuleExclusionMatchVariable `json:"matchVariable,omitempty"` + // SelectorMatchOperator - Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. Possible values include: 'Equals', 'Contains', 'StartsWith', 'EndsWith', 'EqualsAny' + SelectorMatchOperator ManagedRuleExclusionSelectorMatchOperator `json:"selectorMatchOperator,omitempty"` + // Selector - Selector value for which elements in the collection this exclusion applies to. + Selector *string `json:"selector,omitempty"` +} + +// ManagedRuleGroupDefinition describes a managed rule group. +type ManagedRuleGroupDefinition struct { + // RuleGroupName - READ-ONLY; Name of the managed rule group. + RuleGroupName *string `json:"ruleGroupName,omitempty"` + // Description - READ-ONLY; Description of the managed rule group. + Description *string `json:"description,omitempty"` + // Rules - READ-ONLY; List of rules within the managed rule group. + Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` +} + +// ManagedRuleGroupOverride defines a managed rule group override setting. +type ManagedRuleGroupOverride struct { + // RuleGroupName - Describes the managed rule group to override. + RuleGroupName *string `json:"ruleGroupName,omitempty"` + // Exclusions - Describes the exclusions that are applied to all rules in the group. + Exclusions *[]ManagedRuleExclusion `json:"exclusions,omitempty"` + // Rules - List of rules that will be disabled. If none specified, all rules in the group will be disabled. + Rules *[]ManagedRuleOverride `json:"rules,omitempty"` +} + +// ManagedRuleOverride defines a managed rule group override setting. +type ManagedRuleOverride struct { + // RuleID - Identifier for the managed rule. + RuleID *string `json:"ruleId,omitempty"` + // EnabledState - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. Possible values include: 'ManagedRuleEnabledStateDisabled', 'ManagedRuleEnabledStateEnabled' + EnabledState ManagedRuleEnabledState `json:"enabledState,omitempty"` + // Action - Describes the override action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + Action ActionType `json:"action,omitempty"` + // Exclusions - Describes the exclusions that are applied to this specific rule. + Exclusions *[]ManagedRuleExclusion `json:"exclusions,omitempty"` +} + +// ManagedRuleSet defines a managed rule set. +type ManagedRuleSet struct { + // RuleSetType - Defines the rule set type to use. + RuleSetType *string `json:"ruleSetType,omitempty"` + // RuleSetVersion - Defines the version of the rule set to use. + RuleSetVersion *string `json:"ruleSetVersion,omitempty"` + // Exclusions - Describes the exclusions that are applied to all rules in the set. + Exclusions *[]ManagedRuleExclusion `json:"exclusions,omitempty"` + // RuleGroupOverrides - Defines the rule group overrides to apply to the rule set. + RuleGroupOverrides *[]ManagedRuleGroupOverride `json:"ruleGroupOverrides,omitempty"` +} + +// ManagedRuleSetDefinition describes the a managed rule set definition. +type ManagedRuleSetDefinition struct { + // ManagedRuleSetDefinitionProperties - Properties for a managed rule set definition. + *ManagedRuleSetDefinitionProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinition. +func (mrsd ManagedRuleSetDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mrsd.ManagedRuleSetDefinitionProperties != nil { + objectMap["properties"] = mrsd.ManagedRuleSetDefinitionProperties + } + if mrsd.Location != nil { + objectMap["location"] = mrsd.Location + } + if mrsd.Tags != nil { + objectMap["tags"] = mrsd.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ManagedRuleSetDefinition struct. +func (mrsd *ManagedRuleSetDefinition) 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 managedRuleSetDefinitionProperties ManagedRuleSetDefinitionProperties + err = json.Unmarshal(*v, &managedRuleSetDefinitionProperties) + if err != nil { + return err + } + mrsd.ManagedRuleSetDefinitionProperties = &managedRuleSetDefinitionProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + mrsd.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + mrsd.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mrsd.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + mrsd.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + mrsd.Tags = tags + } + } + } + + return nil +} + +// ManagedRuleSetDefinitionList list of managed rule set definitions available for use in a policy. +type ManagedRuleSetDefinitionList struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of managed rule set definitions. + Value *[]ManagedRuleSetDefinition `json:"value,omitempty"` + // NextLink - URL to retrieve next set of managed rule set definitions. + NextLink *string `json:"nextLink,omitempty"` +} + +// ManagedRuleSetDefinitionListIterator provides access to a complete listing of ManagedRuleSetDefinition +// values. +type ManagedRuleSetDefinitionListIterator struct { + i int + page ManagedRuleSetDefinitionListPage +} + +// 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 *ManagedRuleSetDefinitionListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRuleSetDefinitionListIterator.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 *ManagedRuleSetDefinitionListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ManagedRuleSetDefinitionListIterator) 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 ManagedRuleSetDefinitionListIterator) Response() ManagedRuleSetDefinitionList { + 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 ManagedRuleSetDefinitionListIterator) Value() ManagedRuleSetDefinition { + if !iter.page.NotDone() { + return ManagedRuleSetDefinition{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ManagedRuleSetDefinitionListIterator type. +func NewManagedRuleSetDefinitionListIterator(page ManagedRuleSetDefinitionListPage) ManagedRuleSetDefinitionListIterator { + return ManagedRuleSetDefinitionListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (mrsdl ManagedRuleSetDefinitionList) IsEmpty() bool { + return mrsdl.Value == nil || len(*mrsdl.Value) == 0 +} + +// managedRuleSetDefinitionListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (mrsdl ManagedRuleSetDefinitionList) managedRuleSetDefinitionListPreparer(ctx context.Context) (*http.Request, error) { + if mrsdl.NextLink == nil || len(to.String(mrsdl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(mrsdl.NextLink))) +} + +// ManagedRuleSetDefinitionListPage contains a page of ManagedRuleSetDefinition values. +type ManagedRuleSetDefinitionListPage struct { + fn func(context.Context, ManagedRuleSetDefinitionList) (ManagedRuleSetDefinitionList, error) + mrsdl ManagedRuleSetDefinitionList +} + +// 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 *ManagedRuleSetDefinitionListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRuleSetDefinitionListPage.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.mrsdl) + if err != nil { + return err + } + page.mrsdl = 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 *ManagedRuleSetDefinitionListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ManagedRuleSetDefinitionListPage) NotDone() bool { + return !page.mrsdl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ManagedRuleSetDefinitionListPage) Response() ManagedRuleSetDefinitionList { + return page.mrsdl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ManagedRuleSetDefinitionListPage) Values() []ManagedRuleSetDefinition { + if page.mrsdl.IsEmpty() { + return nil + } + return *page.mrsdl.Value +} + +// Creates a new instance of the ManagedRuleSetDefinitionListPage type. +func NewManagedRuleSetDefinitionListPage(getNextPage func(context.Context, ManagedRuleSetDefinitionList) (ManagedRuleSetDefinitionList, error)) ManagedRuleSetDefinitionListPage { + return ManagedRuleSetDefinitionListPage{fn: getNextPage} +} + +// ManagedRuleSetDefinitionProperties properties for a managed rule set definition. +type ManagedRuleSetDefinitionProperties struct { + // ProvisioningState - READ-ONLY; Provisioning state of the managed rule set. + ProvisioningState *string `json:"provisioningState,omitempty"` + // RuleSetType - READ-ONLY; Type of the managed rule set. + RuleSetType *string `json:"ruleSetType,omitempty"` + // RuleSetVersion - READ-ONLY; Version of the managed rule set type. + RuleSetVersion *string `json:"ruleSetVersion,omitempty"` + // RuleGroups - READ-ONLY; Rule groups of the managed rule set. + RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` +} + +// ManagedRuleSetList defines the list of managed rule sets for the policy. +type ManagedRuleSetList struct { + // ManagedRuleSets - List of rule sets. + ManagedRuleSets *[]ManagedRuleSet `json:"managedRuleSets,omitempty"` +} + +// MatchCondition define a match condition. +type MatchCondition struct { + // MatchVariable - Request variable to compare with. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestURI', 'RequestHeader', 'RequestBody', 'Cookies', 'SocketAddr' + MatchVariable MatchVariable `json:"matchVariable,omitempty"` + // Selector - Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + Selector *string `json:"selector,omitempty"` + // Operator - Comparison type to use for matching with the variable value. Possible values include: 'OperatorAny', 'OperatorIPMatch', 'OperatorGeoMatch', 'OperatorEqual', 'OperatorContains', 'OperatorLessThan', 'OperatorGreaterThan', 'OperatorLessThanOrEqual', 'OperatorGreaterThanOrEqual', 'OperatorBeginsWith', 'OperatorEndsWith', 'OperatorRegEx' + Operator Operator `json:"operator,omitempty"` + // NegateCondition - Describes if the result of this condition should be negated. + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValue - List of possible match values. + MatchValue *[]string `json:"matchValue,omitempty"` + // Transforms - List of transforms. + Transforms *[]TransformType `json:"transforms,omitempty"` +} + +// PoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PoliciesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PoliciesCreateOrUpdateFuture) Result(client PoliciesClient) (wafp WebApplicationFirewallPolicy, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.PoliciesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if wafp.Response.Response, err = future.GetResult(sender); err == nil && wafp.Response.Response.StatusCode != http.StatusNoContent { + wafp, err = client.CreateOrUpdateResponder(wafp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesCreateOrUpdateFuture", "Result", wafp.Response.Response, "Failure responding to request") + } + } + return +} + +// PoliciesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PoliciesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PoliciesDeleteFuture) Result(client PoliciesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.PoliciesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// PolicySettings defines top-level WebApplicationFirewallPolicy configuration settings. +type PolicySettings struct { + // EnabledState - Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. Possible values include: 'PolicyEnabledStateDisabled', 'PolicyEnabledStateEnabled' + EnabledState PolicyEnabledState `json:"enabledState,omitempty"` + // Mode - Describes if it is in detection mode or prevention mode at policy level. Possible values include: 'Prevention', 'Detection' + Mode PolicyMode `json:"mode,omitempty"` + // RedirectURL - If action type is redirect, this field represents redirect URL for the client. + RedirectURL *string `json:"redirectUrl,omitempty"` + // CustomBlockResponseStatusCode - If the action type is block, customer can override the response status code. + CustomBlockResponseStatusCode *int32 `json:"customBlockResponseStatusCode,omitempty"` + // CustomBlockResponseBody - If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + CustomBlockResponseBody *string `json:"customBlockResponseBody,omitempty"` +} + +// Properties the JSON object that contains the properties required to create an endpoint. +type Properties struct { + // ResourceState - Resource status of the Front Door. Possible values include: 'ResourceStateCreating', 'ResourceStateEnabling', 'ResourceStateEnabled', 'ResourceStateDisabling', 'ResourceStateDisabled', 'ResourceStateDeleting' + ResourceState ResourceState `json:"resourceState,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning state of the Front Door. + ProvisioningState *string `json:"provisioningState,omitempty"` + // Cname - READ-ONLY; The host that each frontendEndpoint must CNAME to. + Cname *string `json:"cname,omitempty"` + // FriendlyName - A friendly name for the frontDoor + FriendlyName *string `json:"friendlyName,omitempty"` + // RoutingRules - Routing rules associated with this Front Door. + RoutingRules *[]RoutingRule `json:"routingRules,omitempty"` + // LoadBalancingSettings - Load balancing settings associated with this Front Door instance. + LoadBalancingSettings *[]LoadBalancingSettingsModel `json:"loadBalancingSettings,omitempty"` + // HealthProbeSettings - Health probe settings associated with this Front Door instance. + HealthProbeSettings *[]HealthProbeSettingsModel `json:"healthProbeSettings,omitempty"` + // BackendPools - Backend pools available to routing rules. + BackendPools *[]BackendPool `json:"backendPools,omitempty"` + // FrontendEndpoints - Frontend endpoints available to routing rules. + FrontendEndpoints *[]FrontendEndpoint `json:"frontendEndpoints,omitempty"` + // BackendPoolsSettings - Settings for all backendPools + BackendPoolsSettings *BackendPoolsSettings `json:"backendPoolsSettings,omitempty"` + // EnabledState - Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled' + EnabledState EnabledState `json:"enabledState,omitempty"` +} + +// PurgeParameters parameters required for content purge. +type PurgeParameters struct { + // ContentPaths - The path to the content to be purged. Can describe a file path or a wild card directory. + ContentPaths *[]string `json:"contentPaths,omitempty"` +} + +// RedirectConfiguration describes Redirect Route. +type RedirectConfiguration struct { + // RedirectType - The redirect type the rule will use when redirecting traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect' + RedirectType RedirectType `json:"redirectType,omitempty"` + // RedirectProtocol - The protocol of the destination to where the traffic is redirected. Possible values include: 'RedirectProtocolHTTPOnly', 'RedirectProtocolHTTPSOnly', 'RedirectProtocolMatchRequest' + RedirectProtocol RedirectProtocol `json:"redirectProtocol,omitempty"` + // CustomHost - Host to redirect. Leave empty to use the incoming host as the destination host. + CustomHost *string `json:"customHost,omitempty"` + // CustomPath - The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path. + CustomPath *string `json:"customPath,omitempty"` + // CustomFragment - Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. + CustomFragment *string `json:"customFragment,omitempty"` + // CustomQueryString - The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. + CustomQueryString *string `json:"customQueryString,omitempty"` + // OdataType - Possible values include: 'OdataTypeRouteConfiguration', 'OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration', 'OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration' + OdataType OdataType `json:"@odata.type,omitempty"` +} + +// MarshalJSON is the custom marshaler for RedirectConfiguration. +func (rc RedirectConfiguration) MarshalJSON() ([]byte, error) { + rc.OdataType = OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration + objectMap := make(map[string]interface{}) + if rc.RedirectType != "" { + objectMap["redirectType"] = rc.RedirectType + } + if rc.RedirectProtocol != "" { + objectMap["redirectProtocol"] = rc.RedirectProtocol + } + if rc.CustomHost != nil { + objectMap["customHost"] = rc.CustomHost + } + if rc.CustomPath != nil { + objectMap["customPath"] = rc.CustomPath + } + if rc.CustomFragment != nil { + objectMap["customFragment"] = rc.CustomFragment + } + if rc.CustomQueryString != nil { + objectMap["customQueryString"] = rc.CustomQueryString + } + if rc.OdataType != "" { + objectMap["@odata.type"] = rc.OdataType + } + return json.Marshal(objectMap) +} + +// AsForwardingConfiguration is the BasicRouteConfiguration implementation for RedirectConfiguration. +func (rc RedirectConfiguration) AsForwardingConfiguration() (*ForwardingConfiguration, bool) { + return nil, false +} + +// AsRedirectConfiguration is the BasicRouteConfiguration implementation for RedirectConfiguration. +func (rc RedirectConfiguration) AsRedirectConfiguration() (*RedirectConfiguration, bool) { + return &rc, true +} + +// AsRouteConfiguration is the BasicRouteConfiguration implementation for RedirectConfiguration. +func (rc RedirectConfiguration) AsRouteConfiguration() (*RouteConfiguration, bool) { + return nil, false +} + +// AsBasicRouteConfiguration is the BasicRouteConfiguration implementation for RedirectConfiguration. +func (rc RedirectConfiguration) AsBasicRouteConfiguration() (BasicRouteConfiguration, bool) { + return &rc, true +} + +// Resource common resource representation. +type Resource struct { + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if r.Location != nil { + objectMap["location"] = r.Location + } + if r.Tags != nil { + objectMap["tags"] = r.Tags + } + return json.Marshal(objectMap) +} + +// BasicRouteConfiguration base class for all types of Route. +type BasicRouteConfiguration interface { + AsForwardingConfiguration() (*ForwardingConfiguration, bool) + AsRedirectConfiguration() (*RedirectConfiguration, bool) + AsRouteConfiguration() (*RouteConfiguration, bool) +} + +// RouteConfiguration base class for all types of Route. +type RouteConfiguration struct { + // OdataType - Possible values include: 'OdataTypeRouteConfiguration', 'OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration', 'OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration' + OdataType OdataType `json:"@odata.type,omitempty"` +} + +func unmarshalBasicRouteConfiguration(body []byte) (BasicRouteConfiguration, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["@odata.type"] { + case string(OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration): + var fc ForwardingConfiguration + err := json.Unmarshal(body, &fc) + return fc, err + case string(OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration): + var rc RedirectConfiguration + err := json.Unmarshal(body, &rc) + return rc, err + default: + var rc RouteConfiguration + err := json.Unmarshal(body, &rc) + return rc, err + } +} +func unmarshalBasicRouteConfigurationArray(body []byte) ([]BasicRouteConfiguration, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + rcArray := make([]BasicRouteConfiguration, len(rawMessages)) + + for index, rawMessage := range rawMessages { + rc, err := unmarshalBasicRouteConfiguration(*rawMessage) + if err != nil { + return nil, err + } + rcArray[index] = rc + } + return rcArray, nil +} + +// MarshalJSON is the custom marshaler for RouteConfiguration. +func (rc RouteConfiguration) MarshalJSON() ([]byte, error) { + rc.OdataType = OdataTypeRouteConfiguration + objectMap := make(map[string]interface{}) + if rc.OdataType != "" { + objectMap["@odata.type"] = rc.OdataType + } + return json.Marshal(objectMap) +} + +// AsForwardingConfiguration is the BasicRouteConfiguration implementation for RouteConfiguration. +func (rc RouteConfiguration) AsForwardingConfiguration() (*ForwardingConfiguration, bool) { + return nil, false +} + +// AsRedirectConfiguration is the BasicRouteConfiguration implementation for RouteConfiguration. +func (rc RouteConfiguration) AsRedirectConfiguration() (*RedirectConfiguration, bool) { + return nil, false +} + +// AsRouteConfiguration is the BasicRouteConfiguration implementation for RouteConfiguration. +func (rc RouteConfiguration) AsRouteConfiguration() (*RouteConfiguration, bool) { + return &rc, true +} + +// AsBasicRouteConfiguration is the BasicRouteConfiguration implementation for RouteConfiguration. +func (rc RouteConfiguration) AsBasicRouteConfiguration() (BasicRouteConfiguration, bool) { + return &rc, true +} + +// RoutingRule a routing rule represents a specification for traffic to treat and where to send it, along +// with health probe information. +type RoutingRule struct { + // RoutingRuleProperties - Properties of the Front Door Routing Rule + *RoutingRuleProperties `json:"properties,omitempty"` + // Name - Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for RoutingRule. +func (rr RoutingRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rr.RoutingRuleProperties != nil { + objectMap["properties"] = rr.RoutingRuleProperties + } + if rr.Name != nil { + objectMap["name"] = rr.Name + } + if rr.ID != nil { + objectMap["id"] = rr.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RoutingRule struct. +func (rr *RoutingRule) 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 routingRuleProperties RoutingRuleProperties + err = json.Unmarshal(*v, &routingRuleProperties) + if err != nil { + return err + } + rr.RoutingRuleProperties = &routingRuleProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rr.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rr.ID = &ID + } + } + } + + return nil +} + +// RoutingRuleListResult result of the request to list Routing Rules. It contains a list of Routing Rule +// objects and a URL link to get the next set of results. +type RoutingRuleListResult struct { + // Value - READ-ONLY; List of Routing Rules within a Front Door. + Value *[]RoutingRule `json:"value,omitempty"` + // NextLink - URL to get the next set of RoutingRule objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// RoutingRuleProperties the JSON object that contains the properties required to create a routing rule. +type RoutingRuleProperties struct { + // ResourceState - Resource status. Possible values include: 'ResourceStateCreating', 'ResourceStateEnabling', 'ResourceStateEnabled', 'ResourceStateDisabling', 'ResourceStateDisabled', 'ResourceStateDeleting' + ResourceState ResourceState `json:"resourceState,omitempty"` + // FrontendEndpoints - Frontend endpoints associated with this rule + FrontendEndpoints *[]SubResource `json:"frontendEndpoints,omitempty"` + // AcceptedProtocols - Protocol schemes to match for this rule + AcceptedProtocols *[]Protocol `json:"acceptedProtocols,omitempty"` + // PatternsToMatch - The route patterns of the rule. + PatternsToMatch *[]string `json:"patternsToMatch,omitempty"` + // EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'RoutingRuleEnabledStateEnabled', 'RoutingRuleEnabledStateDisabled' + EnabledState RoutingRuleEnabledState `json:"enabledState,omitempty"` + // RouteConfiguration - A reference to the routing configuration. + RouteConfiguration BasicRouteConfiguration `json:"routeConfiguration,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for RoutingRuleProperties struct. +func (rrp *RoutingRuleProperties) 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 "resourceState": + if v != nil { + var resourceState ResourceState + err = json.Unmarshal(*v, &resourceState) + if err != nil { + return err + } + rrp.ResourceState = resourceState + } + case "frontendEndpoints": + if v != nil { + var frontendEndpoints []SubResource + err = json.Unmarshal(*v, &frontendEndpoints) + if err != nil { + return err + } + rrp.FrontendEndpoints = &frontendEndpoints + } + case "acceptedProtocols": + if v != nil { + var acceptedProtocols []Protocol + err = json.Unmarshal(*v, &acceptedProtocols) + if err != nil { + return err + } + rrp.AcceptedProtocols = &acceptedProtocols + } + case "patternsToMatch": + if v != nil { + var patternsToMatch []string + err = json.Unmarshal(*v, &patternsToMatch) + if err != nil { + return err + } + rrp.PatternsToMatch = &patternsToMatch + } + case "enabledState": + if v != nil { + var enabledState RoutingRuleEnabledState + err = json.Unmarshal(*v, &enabledState) + if err != nil { + return err + } + rrp.EnabledState = enabledState + } + case "routeConfiguration": + if v != nil { + routeConfiguration, err := unmarshalBasicRouteConfiguration(*v) + if err != nil { + return err + } + rrp.RouteConfiguration = routeConfiguration + } + } + } + + return nil +} + +// RoutingRuleUpdateParameters routing rules to apply to an endpoint +type RoutingRuleUpdateParameters struct { + // FrontendEndpoints - Frontend endpoints associated with this rule + FrontendEndpoints *[]SubResource `json:"frontendEndpoints,omitempty"` + // AcceptedProtocols - Protocol schemes to match for this rule + AcceptedProtocols *[]Protocol `json:"acceptedProtocols,omitempty"` + // PatternsToMatch - The route patterns of the rule. + PatternsToMatch *[]string `json:"patternsToMatch,omitempty"` + // EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'RoutingRuleEnabledStateEnabled', 'RoutingRuleEnabledStateDisabled' + EnabledState RoutingRuleEnabledState `json:"enabledState,omitempty"` + // RouteConfiguration - A reference to the routing configuration. + RouteConfiguration BasicRouteConfiguration `json:"routeConfiguration,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for RoutingRuleUpdateParameters struct. +func (rrup *RoutingRuleUpdateParameters) 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 "frontendEndpoints": + if v != nil { + var frontendEndpoints []SubResource + err = json.Unmarshal(*v, &frontendEndpoints) + if err != nil { + return err + } + rrup.FrontendEndpoints = &frontendEndpoints + } + case "acceptedProtocols": + if v != nil { + var acceptedProtocols []Protocol + err = json.Unmarshal(*v, &acceptedProtocols) + if err != nil { + return err + } + rrup.AcceptedProtocols = &acceptedProtocols + } + case "patternsToMatch": + if v != nil { + var patternsToMatch []string + err = json.Unmarshal(*v, &patternsToMatch) + if err != nil { + return err + } + rrup.PatternsToMatch = &patternsToMatch + } + case "enabledState": + if v != nil { + var enabledState RoutingRuleEnabledState + err = json.Unmarshal(*v, &enabledState) + if err != nil { + return err + } + rrup.EnabledState = enabledState + } + case "routeConfiguration": + if v != nil { + routeConfiguration, err := unmarshalBasicRouteConfiguration(*v) + if err != nil { + return err + } + rrup.RouteConfiguration = routeConfiguration + } + } + } + + return nil +} + +// SubResource reference to another subresource. +type SubResource struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// TagsObject tags object for patch operations. +type TagsObject struct { + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for TagsObject. +func (toVar TagsObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if toVar.Tags != nil { + objectMap["tags"] = toVar.Tags + } + return json.Marshal(objectMap) +} + +// UpdateParameters the properties needed to update a Front Door +type UpdateParameters struct { + // FriendlyName - A friendly name for the frontDoor + FriendlyName *string `json:"friendlyName,omitempty"` + // RoutingRules - Routing rules associated with this Front Door. + RoutingRules *[]RoutingRule `json:"routingRules,omitempty"` + // LoadBalancingSettings - Load balancing settings associated with this Front Door instance. + LoadBalancingSettings *[]LoadBalancingSettingsModel `json:"loadBalancingSettings,omitempty"` + // HealthProbeSettings - Health probe settings associated with this Front Door instance. + HealthProbeSettings *[]HealthProbeSettingsModel `json:"healthProbeSettings,omitempty"` + // BackendPools - Backend pools available to routing rules. + BackendPools *[]BackendPool `json:"backendPools,omitempty"` + // FrontendEndpoints - Frontend endpoints available to routing rules. + FrontendEndpoints *[]FrontendEndpoint `json:"frontendEndpoints,omitempty"` + // BackendPoolsSettings - Settings for all backendPools + BackendPoolsSettings *BackendPoolsSettings `json:"backendPoolsSettings,omitempty"` + // EnabledState - Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled' + EnabledState EnabledState `json:"enabledState,omitempty"` +} + +// ValidateCustomDomainInput input of the custom domain to be validated for DNS mapping. +type ValidateCustomDomainInput struct { + // HostName - The host name of the custom domain. Must be a domain name. + HostName *string `json:"hostName,omitempty"` +} + +// ValidateCustomDomainOutput output of custom domain validation. +type ValidateCustomDomainOutput struct { + autorest.Response `json:"-"` + // CustomDomainValidated - READ-ONLY; Indicates whether the custom domain is valid or not. + CustomDomainValidated *bool `json:"customDomainValidated,omitempty"` + // Reason - READ-ONLY; The reason why the custom domain is not valid. + Reason *string `json:"reason,omitempty"` + // Message - READ-ONLY; Error message describing why the custom domain is not valid. + Message *string `json:"message,omitempty"` +} + +// WebApplicationFirewallPolicy defines web application firewall policy. +type WebApplicationFirewallPolicy struct { + autorest.Response `json:"-"` + // WebApplicationFirewallPolicyProperties - Properties of the web application firewall policy. + *WebApplicationFirewallPolicyProperties `json:"properties,omitempty"` + // Etag - Gets a unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicy. +func (wafp WebApplicationFirewallPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if wafp.WebApplicationFirewallPolicyProperties != nil { + objectMap["properties"] = wafp.WebApplicationFirewallPolicyProperties + } + if wafp.Etag != nil { + objectMap["etag"] = wafp.Etag + } + if wafp.Location != nil { + objectMap["location"] = wafp.Location + } + if wafp.Tags != nil { + objectMap["tags"] = wafp.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for WebApplicationFirewallPolicy struct. +func (wafp *WebApplicationFirewallPolicy) 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 webApplicationFirewallPolicyProperties WebApplicationFirewallPolicyProperties + err = json.Unmarshal(*v, &webApplicationFirewallPolicyProperties) + if err != nil { + return err + } + wafp.WebApplicationFirewallPolicyProperties = &webApplicationFirewallPolicyProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + wafp.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + wafp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + wafp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wafp.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + wafp.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + wafp.Tags = tags + } + } + } + + return nil +} + +// WebApplicationFirewallPolicyList defines a list of WebApplicationFirewallPolicies. It contains a list of +// WebApplicationFirewallPolicy objects and a URL link to get the next set of results. +type WebApplicationFirewallPolicyList struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of WebApplicationFirewallPolicies within a resource group. + Value *[]WebApplicationFirewallPolicy `json:"value,omitempty"` + // NextLink - URL to get the next set of WebApplicationFirewallPolicy objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// WebApplicationFirewallPolicyListIterator provides access to a complete listing of +// WebApplicationFirewallPolicy values. +type WebApplicationFirewallPolicyListIterator struct { + i int + page WebApplicationFirewallPolicyListPage +} + +// 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 *WebApplicationFirewallPolicyListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPolicyListIterator.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 *WebApplicationFirewallPolicyListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter WebApplicationFirewallPolicyListIterator) 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 WebApplicationFirewallPolicyListIterator) Response() WebApplicationFirewallPolicyList { + 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 WebApplicationFirewallPolicyListIterator) Value() WebApplicationFirewallPolicy { + if !iter.page.NotDone() { + return WebApplicationFirewallPolicy{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the WebApplicationFirewallPolicyListIterator type. +func NewWebApplicationFirewallPolicyListIterator(page WebApplicationFirewallPolicyListPage) WebApplicationFirewallPolicyListIterator { + return WebApplicationFirewallPolicyListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (wafpl WebApplicationFirewallPolicyList) IsEmpty() bool { + return wafpl.Value == nil || len(*wafpl.Value) == 0 +} + +// webApplicationFirewallPolicyListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (wafpl WebApplicationFirewallPolicyList) webApplicationFirewallPolicyListPreparer(ctx context.Context) (*http.Request, error) { + if wafpl.NextLink == nil || len(to.String(wafpl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(wafpl.NextLink))) +} + +// WebApplicationFirewallPolicyListPage contains a page of WebApplicationFirewallPolicy values. +type WebApplicationFirewallPolicyListPage struct { + fn func(context.Context, WebApplicationFirewallPolicyList) (WebApplicationFirewallPolicyList, error) + wafpl WebApplicationFirewallPolicyList +} + +// 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 *WebApplicationFirewallPolicyListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPolicyListPage.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.wafpl) + if err != nil { + return err + } + page.wafpl = 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 *WebApplicationFirewallPolicyListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page WebApplicationFirewallPolicyListPage) NotDone() bool { + return !page.wafpl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page WebApplicationFirewallPolicyListPage) Response() WebApplicationFirewallPolicyList { + return page.wafpl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page WebApplicationFirewallPolicyListPage) Values() []WebApplicationFirewallPolicy { + if page.wafpl.IsEmpty() { + return nil + } + return *page.wafpl.Value +} + +// Creates a new instance of the WebApplicationFirewallPolicyListPage type. +func NewWebApplicationFirewallPolicyListPage(getNextPage func(context.Context, WebApplicationFirewallPolicyList) (WebApplicationFirewallPolicyList, error)) WebApplicationFirewallPolicyListPage { + return WebApplicationFirewallPolicyListPage{fn: getNextPage} +} + +// WebApplicationFirewallPolicyProperties defines web application firewall policy properties. +type WebApplicationFirewallPolicyProperties struct { + // PolicySettings - Describes settings for the policy. + PolicySettings *PolicySettings `json:"policySettings,omitempty"` + // CustomRules - Describes custom rules inside the policy. + CustomRules *CustomRuleList `json:"customRules,omitempty"` + // ManagedRules - Describes managed rules inside the policy. + ManagedRules *ManagedRuleSetList `json:"managedRules,omitempty"` + // FrontendEndpointLinks - READ-ONLY; Describes Frontend Endpoints associated with this Web Application Firewall policy. + FrontendEndpointLinks *[]FrontendEndpointLink `json:"frontendEndpointLinks,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning state of the policy. + ProvisioningState *string `json:"provisioningState,omitempty"` + // ResourceState - READ-ONLY; Possible values include: 'PolicyResourceStateCreating', 'PolicyResourceStateEnabling', 'PolicyResourceStateEnabled', 'PolicyResourceStateDisabling', 'PolicyResourceStateDisabled', 'PolicyResourceStateDeleting' + ResourceState PolicyResourceState `json:"resourceState,omitempty"` +} diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/policies.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/policies.go new file mode 100644 index 000000000000..30bc6ceaf79e --- /dev/null +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/policies.go @@ -0,0 +1,434 @@ +package frontdoor + +// 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" +) + +// PoliciesClient is the frontDoor Client +type PoliciesClient struct { + BaseClient +} + +// NewPoliciesClient creates an instance of the PoliciesClient client. +func NewPoliciesClient(subscriptionID string) PoliciesClient { + return NewPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient { + return PoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or update policy with specified rule set name within a resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// policyName - the name of the Web Application Firewall Policy. +// parameters - policy to be created. +func (client PoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, policyName string, parameters WebApplicationFirewallPolicy) (result PoliciesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.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: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyProperties.PolicySettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyProperties.PolicySettings.CustomBlockResponseBody", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyProperties.PolicySettings.CustomBlockResponseBody", Name: validation.Pattern, Rule: `^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$`, Chain: nil}}}, + }}, + }}}}}); err != nil { + return result, validation.NewError("frontdoor.PoliciesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, policyName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client PoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, policyName string, parameters WebApplicationFirewallPolicy) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-10-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.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) CreateOrUpdateSender(req *http.Request) (future PoliciesCreateOrUpdateFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + 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 PoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result WebApplicationFirewallPolicy, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes Policy +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// policyName - the name of the Web Application Firewall Policy. +func (client PoliciesClient) Delete(ctx context.Context, resourceGroupName string, policyName string) (result PoliciesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.PoliciesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, policyName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, policyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-10-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.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) DeleteSender(req *http.Request) (future PoliciesDeleteFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + 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 PoliciesClient) 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 retrieve protection policy with specified name within a resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// policyName - the name of the Web Application Firewall Policy. +func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, policyName string) (result WebApplicationFirewallPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.PoliciesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, policyName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client PoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, policyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-10-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.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) GetSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PoliciesClient) GetResponder(resp *http.Response) (result WebApplicationFirewallPolicy, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all of the protection policies within a resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) (result WebApplicationFirewallPolicyListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.List") + defer func() { + sc := -1 + if result.wafpl.Response.Response != nil { + sc = result.wafpl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.PoliciesClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.wafpl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", resp, "Failure sending request") + return + } + + result.wafpl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client PoliciesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-10-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.Network/FrontDoorWebApplicationFirewallPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) ListSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PoliciesClient) ListResponder(resp *http.Response) (result WebApplicationFirewallPolicyList, 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 PoliciesClient) listNextResults(ctx context.Context, lastResults WebApplicationFirewallPolicyList) (result WebApplicationFirewallPolicyList, err error) { + req, err := lastResults.webApplicationFirewallPolicyListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PoliciesClient) ListComplete(ctx context.Context, resourceGroupName string) (result WebApplicationFirewallPolicyListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} diff --git a/services/frontdoor/mgmt/2019-10-01/frontdoor/version.go b/services/frontdoor/mgmt/2019-10-01/frontdoor/version.go new file mode 100644 index 000000000000..223e9456bd17 --- /dev/null +++ b/services/frontdoor/mgmt/2019-10-01/frontdoor/version.go @@ -0,0 +1,30 @@ +package frontdoor + +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 + " frontdoor/2019-10-01" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/client.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/client.go new file mode 100644 index 000000000000..91f605afddb9 --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/client.go @@ -0,0 +1,217 @@ +// Package frontdoor implements the Azure ARM Frontdoor service API version . +// +// FrontDoor Client +package frontdoor + +// 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" +) + +const ( + // DefaultBaseURI is the default URI used for the service Frontdoor + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Frontdoor. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} + +// CheckFrontDoorNameAvailability check the availability of a Front Door resource name. +// Parameters: +// checkFrontDoorNameAvailabilityInput - input to check. +func (client BaseClient) CheckFrontDoorNameAvailability(ctx context.Context, checkFrontDoorNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckFrontDoorNameAvailability") + 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: checkFrontDoorNameAvailabilityInput, + Constraints: []validation.Constraint{{Target: "checkFrontDoorNameAvailabilityInput.Name", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.BaseClient", "CheckFrontDoorNameAvailability", err.Error()) + } + + req, err := client.CheckFrontDoorNameAvailabilityPreparer(ctx, checkFrontDoorNameAvailabilityInput) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckFrontDoorNameAvailabilitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckFrontDoorNameAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailability", resp, "Failure responding to request") + } + + return +} + +// CheckFrontDoorNameAvailabilityPreparer prepares the CheckFrontDoorNameAvailability request. +func (client BaseClient) CheckFrontDoorNameAvailabilityPreparer(ctx context.Context, checkFrontDoorNameAvailabilityInput CheckNameAvailabilityInput) (*http.Request, error) { + const APIVersion = "2019-05-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.WithPath("/providers/Microsoft.Network/checkFrontDoorNameAvailability"), + autorest.WithJSON(checkFrontDoorNameAvailabilityInput), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckFrontDoorNameAvailabilitySender sends the CheckFrontDoorNameAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) CheckFrontDoorNameAvailabilitySender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + return autorest.SendWithSender(client, req, sd...) +} + +// CheckFrontDoorNameAvailabilityResponder handles the response to the CheckFrontDoorNameAvailability request. The method always +// closes the http.Response Body. +func (client BaseClient) CheckFrontDoorNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityOutput, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CheckFrontDoorNameAvailabilityWithSubscription check the availability of a Front Door subdomain. +// Parameters: +// checkFrontDoorNameAvailabilityInput - input to check. +func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscription(ctx context.Context, checkFrontDoorNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckFrontDoorNameAvailabilityWithSubscription") + 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: checkFrontDoorNameAvailabilityInput, + Constraints: []validation.Constraint{{Target: "checkFrontDoorNameAvailabilityInput.Name", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", err.Error()) + } + + req, err := client.CheckFrontDoorNameAvailabilityWithSubscriptionPreparer(ctx, checkFrontDoorNameAvailabilityInput) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", nil, "Failure preparing request") + return + } + + resp, err := client.CheckFrontDoorNameAvailabilityWithSubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", resp, "Failure sending request") + return + } + + result, err = client.CheckFrontDoorNameAvailabilityWithSubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.BaseClient", "CheckFrontDoorNameAvailabilityWithSubscription", resp, "Failure responding to request") + } + + return +} + +// CheckFrontDoorNameAvailabilityWithSubscriptionPreparer prepares the CheckFrontDoorNameAvailabilityWithSubscription request. +func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscriptionPreparer(ctx context.Context, checkFrontDoorNameAvailabilityInput CheckNameAvailabilityInput) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability", pathParameters), + autorest.WithJSON(checkFrontDoorNameAvailabilityInput), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckFrontDoorNameAvailabilityWithSubscriptionSender sends the CheckFrontDoorNameAvailabilityWithSubscription request. The method will close the +// http.Response Body if it receives an error. +func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscriptionSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// CheckFrontDoorNameAvailabilityWithSubscriptionResponder handles the response to the CheckFrontDoorNameAvailabilityWithSubscription request. The method always +// closes the http.Response Body. +func (client BaseClient) CheckFrontDoorNameAvailabilityWithSubscriptionResponder(resp *http.Response) (result CheckNameAvailabilityOutput, 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/frontdoor/mgmt/2019-11-01/frontdoor/endpoints.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/endpoints.go new file mode 100644 index 000000000000..edb66c36b708 --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/endpoints.go @@ -0,0 +1,138 @@ +package frontdoor + +// 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" +) + +// EndpointsClient is the frontDoor Client +type EndpointsClient struct { + BaseClient +} + +// NewEndpointsClient creates an instance of the EndpointsClient client. +func NewEndpointsClient(subscriptionID string) EndpointsClient { + return NewEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient { + return EndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// PurgeContent removes a content from Front Door. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +// contentFilePaths - the path to the content to be purged. Path can be a full URL, e.g. '/pictures/city.png' +// which removes a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders +// and files in the directory. +func (client EndpointsClient) PurgeContent(ctx context.Context, resourceGroupName string, frontDoorName string, contentFilePaths PurgeParameters) (result EndpointsPurgeContentFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EndpointsClient.PurgeContent") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}, + {TargetValue: contentFilePaths, + Constraints: []validation.Constraint{{Target: "contentFilePaths.ContentPaths", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.EndpointsClient", "PurgeContent", err.Error()) + } + + req, err := client.PurgeContentPreparer(ctx, resourceGroupName, frontDoorName, contentFilePaths) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.EndpointsClient", "PurgeContent", nil, "Failure preparing request") + return + } + + result, err = client.PurgeContentSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.EndpointsClient", "PurgeContent", result.Response(), "Failure sending request") + return + } + + return +} + +// PurgeContentPreparer prepares the PurgeContent request. +func (client EndpointsClient) PurgeContentPreparer(ctx context.Context, resourceGroupName string, frontDoorName string, contentFilePaths PurgeParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}/purge", pathParameters), + autorest.WithJSON(contentFilePaths), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PurgeContentSender sends the PurgeContent request. The method will close the +// http.Response Body if it receives an error. +func (client EndpointsClient) PurgeContentSender(req *http.Request) (future EndpointsPurgeContentFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// PurgeContentResponder handles the response to the PurgeContent request. The method always +// closes the http.Response Body. +func (client EndpointsClient) PurgeContentResponder(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/frontdoor/mgmt/2019-11-01/frontdoor/experiments.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/experiments.go new file mode 100644 index 000000000000..baa977a3bfc1 --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/experiments.go @@ -0,0 +1,537 @@ +package frontdoor + +// 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" +) + +// ExperimentsClient is the frontDoor Client +type ExperimentsClient struct { + BaseClient +} + +// NewExperimentsClient creates an instance of the ExperimentsClient client. +func NewExperimentsClient(subscriptionID string) ExperimentsClient { + return NewExperimentsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewExperimentsClientWithBaseURI creates an instance of the ExperimentsClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewExperimentsClientWithBaseURI(baseURI string, subscriptionID string) ExperimentsClient { + return ExperimentsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate sends the create or update request. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - the Profile identifier associated with the Tenant and Partner +// experimentName - the Experiment identifier associated with the Experiment +// parameters - the Experiment resource +func (client ExperimentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, profileName string, experimentName string, parameters Experiment) (result ExperimentsCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExperimentsClient.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: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: profileName, + Constraints: []validation.Constraint{{Target: "profileName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: experimentName, + Constraints: []validation.Constraint{{Target: "experimentName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.ExperimentsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, profileName, experimentName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ExperimentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, experimentName string, parameters Experiment) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "experimentName": autorest.Encode("path", experimentName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-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.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}", 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 ExperimentsClient) CreateOrUpdateSender(req *http.Request) (future ExperimentsCreateOrUpdateFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + 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 ExperimentsClient) CreateOrUpdateResponder(resp *http.Response) (result Experiment, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete sends the delete request. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - the Profile identifier associated with the Tenant and Partner +// experimentName - the Experiment identifier associated with the Experiment +func (client ExperimentsClient) Delete(ctx context.Context, resourceGroupName string, profileName string, experimentName string) (result ExperimentsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExperimentsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: profileName, + Constraints: []validation.Constraint{{Target: "profileName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: experimentName, + Constraints: []validation.Constraint{{Target: "experimentName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.ExperimentsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName, experimentName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ExperimentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string, experimentName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "experimentName": autorest.Encode("path", experimentName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-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.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}", 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 ExperimentsClient) DeleteSender(req *http.Request) (future ExperimentsDeleteFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + 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 ExperimentsClient) 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: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - the Profile identifier associated with the Tenant and Partner +// experimentName - the Experiment identifier associated with the Experiment +func (client ExperimentsClient) Get(ctx context.Context, resourceGroupName string, profileName string, experimentName string) (result Experiment, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExperimentsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: profileName, + Constraints: []validation.Constraint{{Target: "profileName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: experimentName, + Constraints: []validation.Constraint{{Target: "experimentName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.ExperimentsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName, experimentName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client ExperimentsClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string, experimentName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "experimentName": autorest.Encode("path", experimentName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-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.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}", 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 ExperimentsClient) GetSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ExperimentsClient) GetResponder(resp *http.Response) (result Experiment, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByProfile sends the list by profile request. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - the Profile identifier associated with the Tenant and Partner +func (client ExperimentsClient) ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result ExperimentListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExperimentsClient.ListByProfile") + defer func() { + sc := -1 + if result.el.Response.Response != nil { + sc = result.el.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: profileName, + Constraints: []validation.Constraint{{Target: "profileName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.ExperimentsClient", "ListByProfile", err.Error()) + } + + result.fn = client.listByProfileNextResults + req, err := client.ListByProfilePreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "ListByProfile", nil, "Failure preparing request") + return + } + + resp, err := client.ListByProfileSender(req) + if err != nil { + result.el.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "ListByProfile", resp, "Failure sending request") + return + } + + result.el, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "ListByProfile", resp, "Failure responding to request") + } + + return +} + +// ListByProfilePreparer prepares the ListByProfile request. +func (client ExperimentsClient) ListByProfilePreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-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.Network/NetworkExperimentProfiles/{profileName}/Experiments", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByProfileSender sends the ListByProfile request. The method will close the +// http.Response Body if it receives an error. +func (client ExperimentsClient) ListByProfileSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListByProfileResponder handles the response to the ListByProfile request. The method always +// closes the http.Response Body. +func (client ExperimentsClient) ListByProfileResponder(resp *http.Response) (result ExperimentList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByProfileNextResults retrieves the next set of results, if any. +func (client ExperimentsClient) listByProfileNextResults(ctx context.Context, lastResults ExperimentList) (result ExperimentList, err error) { + req, err := lastResults.experimentListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "listByProfileNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByProfileSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "listByProfileNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "listByProfileNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByProfileComplete enumerates all values, automatically crossing page boundaries as required. +func (client ExperimentsClient) ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result ExperimentListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExperimentsClient.ListByProfile") + 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.ListByProfile(ctx, resourceGroupName, profileName) + return +} + +// Update updates an Experiment +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - the Profile identifier associated with the Tenant and Partner +// experimentName - the Experiment identifier associated with the Experiment +// parameters - the Experiment Update Model +func (client ExperimentsClient) Update(ctx context.Context, resourceGroupName string, profileName string, experimentName string, parameters ExperimentUpdateModel) (result ExperimentsUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExperimentsClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: profileName, + Constraints: []validation.Constraint{{Target: "profileName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: experimentName, + Constraints: []validation.Constraint{{Target: "experimentName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.ExperimentsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, experimentName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client ExperimentsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, experimentName string, parameters ExperimentUpdateModel) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "experimentName": autorest.Encode("path", experimentName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-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.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}", 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 ExperimentsClient) UpdateSender(req *http.Request) (future ExperimentsUpdateFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client ExperimentsClient) UpdateResponder(resp *http.Response) (result Experiment, 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 +} diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoorapi/interfaces.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoorapi/interfaces.go new file mode 100644 index 000000000000..ac534e807609 --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoorapi/interfaces.go @@ -0,0 +1,125 @@ +package frontdoorapi + +// 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/frontdoor/mgmt/2019-11-01/frontdoor" + "github.com/Azure/go-autorest/autorest/date" +) + +// BaseClientAPI contains the set of methods on the BaseClient type. +type BaseClientAPI interface { + CheckFrontDoorNameAvailability(ctx context.Context, checkFrontDoorNameAvailabilityInput frontdoor.CheckNameAvailabilityInput) (result frontdoor.CheckNameAvailabilityOutput, err error) + CheckFrontDoorNameAvailabilityWithSubscription(ctx context.Context, checkFrontDoorNameAvailabilityInput frontdoor.CheckNameAvailabilityInput) (result frontdoor.CheckNameAvailabilityOutput, err error) +} + +var _ BaseClientAPI = (*frontdoor.BaseClient)(nil) + +// NetworkExperimentProfilesClientAPI contains the set of methods on the NetworkExperimentProfilesClient type. +type NetworkExperimentProfilesClientAPI interface { + CreateOrUpdate(ctx context.Context, profileName string, resourceGroupName string, parameters frontdoor.Profile) (result frontdoor.NetworkExperimentProfilesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string) (result frontdoor.NetworkExperimentProfilesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string) (result frontdoor.Profile, err error) + List(ctx context.Context) (result frontdoor.ProfileListPage, err error) + ListComplete(ctx context.Context) (result frontdoor.ProfileListIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result frontdoor.ProfileListPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result frontdoor.ProfileListIterator, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, parameters frontdoor.ProfileUpdateModel) (result frontdoor.NetworkExperimentProfilesUpdateFuture, err error) +} + +var _ NetworkExperimentProfilesClientAPI = (*frontdoor.NetworkExperimentProfilesClient)(nil) + +// PreconfiguredEndpointsClientAPI contains the set of methods on the PreconfiguredEndpointsClient type. +type PreconfiguredEndpointsClientAPI interface { + List(ctx context.Context, resourceGroupName string, profileName string) (result frontdoor.PreconfiguredEndpointListPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, profileName string) (result frontdoor.PreconfiguredEndpointListIterator, err error) +} + +var _ PreconfiguredEndpointsClientAPI = (*frontdoor.PreconfiguredEndpointsClient)(nil) + +// ExperimentsClientAPI contains the set of methods on the ExperimentsClient type. +type ExperimentsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, profileName string, experimentName string, parameters frontdoor.Experiment) (result frontdoor.ExperimentsCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, profileName string, experimentName string) (result frontdoor.ExperimentsDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, profileName string, experimentName string) (result frontdoor.Experiment, err error) + ListByProfile(ctx context.Context, resourceGroupName string, profileName string) (result frontdoor.ExperimentListPage, err error) + ListByProfileComplete(ctx context.Context, resourceGroupName string, profileName string) (result frontdoor.ExperimentListIterator, err error) + Update(ctx context.Context, resourceGroupName string, profileName string, experimentName string, parameters frontdoor.ExperimentUpdateModel) (result frontdoor.ExperimentsUpdateFuture, err error) +} + +var _ ExperimentsClientAPI = (*frontdoor.ExperimentsClient)(nil) + +// ReportsClientAPI contains the set of methods on the ReportsClient type. +type ReportsClientAPI interface { + GetLatencyScorecards(ctx context.Context, resourceGroupName string, profileName string, experimentName string, aggregationInterval frontdoor.LatencyScorecardAggregationInterval, endDateTimeUTC string, country string) (result frontdoor.LatencyScorecard, err error) + GetTimeseries(ctx context.Context, resourceGroupName string, profileName string, experimentName string, startDateTimeUTC date.Time, endDateTimeUTC date.Time, aggregationInterval frontdoor.TimeseriesAggregationInterval, timeseriesType frontdoor.TimeseriesType, endpoint string, country string) (result frontdoor.Timeseries, err error) +} + +var _ ReportsClientAPI = (*frontdoor.ReportsClient)(nil) + +// FrontDoorsClientAPI contains the set of methods on the FrontDoorsClient type. +type FrontDoorsClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, frontDoorName string, frontDoorParameters frontdoor.FrontDoor) (result frontdoor.FrontDoorsCreateOrUpdateFutureType, err error) + Delete(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontDoorsDeleteFutureType, err error) + Get(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontDoor, err error) + List(ctx context.Context) (result frontdoor.ListResultPage, err error) + ListComplete(ctx context.Context) (result frontdoor.ListResultIterator, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result frontdoor.ListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result frontdoor.ListResultIterator, err error) + ValidateCustomDomain(ctx context.Context, resourceGroupName string, frontDoorName string, customDomainProperties frontdoor.ValidateCustomDomainInput) (result frontdoor.ValidateCustomDomainOutput, err error) +} + +var _ FrontDoorsClientAPI = (*frontdoor.FrontDoorsClient)(nil) + +// FrontendEndpointsClientAPI contains the set of methods on the FrontendEndpointsClient type. +type FrontendEndpointsClientAPI interface { + DisableHTTPS(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (result frontdoor.FrontendEndpointsDisableHTTPSFuture, err error) + EnableHTTPS(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string, customHTTPSConfiguration frontdoor.CustomHTTPSConfiguration) (result frontdoor.FrontendEndpointsEnableHTTPSFuture, err error) + Get(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (result frontdoor.FrontendEndpoint, err error) + ListByFrontDoor(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontendEndpointsListResultPage, err error) + ListByFrontDoorComplete(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontendEndpointsListResultIterator, err error) +} + +var _ FrontendEndpointsClientAPI = (*frontdoor.FrontendEndpointsClient)(nil) + +// EndpointsClientAPI contains the set of methods on the EndpointsClient type. +type EndpointsClientAPI interface { + PurgeContent(ctx context.Context, resourceGroupName string, frontDoorName string, contentFilePaths frontdoor.PurgeParameters) (result frontdoor.EndpointsPurgeContentFuture, err error) +} + +var _ EndpointsClientAPI = (*frontdoor.EndpointsClient)(nil) + +// PoliciesClientAPI contains the set of methods on the PoliciesClient type. +type PoliciesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, policyName string, parameters frontdoor.WebApplicationFirewallPolicy) (result frontdoor.PoliciesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, policyName string) (result frontdoor.PoliciesDeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, policyName string) (result frontdoor.WebApplicationFirewallPolicy, err error) + List(ctx context.Context, resourceGroupName string) (result frontdoor.WebApplicationFirewallPolicyListPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result frontdoor.WebApplicationFirewallPolicyListIterator, err error) +} + +var _ PoliciesClientAPI = (*frontdoor.PoliciesClient)(nil) + +// ManagedRuleSetsClientAPI contains the set of methods on the ManagedRuleSetsClient type. +type ManagedRuleSetsClientAPI interface { + List(ctx context.Context) (result frontdoor.ManagedRuleSetDefinitionListPage, err error) + ListComplete(ctx context.Context) (result frontdoor.ManagedRuleSetDefinitionListIterator, err error) +} + +var _ ManagedRuleSetsClientAPI = (*frontdoor.ManagedRuleSetsClient)(nil) diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoors.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoors.go new file mode 100644 index 000000000000..8c62d42cfafe --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/frontdoors.go @@ -0,0 +1,638 @@ +package frontdoor + +// 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" +) + +// FrontDoorsClient is the frontDoor Client +type FrontDoorsClient struct { + BaseClient +} + +// NewFrontDoorsClient creates an instance of the FrontDoorsClient client. +func NewFrontDoorsClient(subscriptionID string) FrontDoorsClient { + return NewFrontDoorsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewFrontDoorsClientWithBaseURI creates an instance of the FrontDoorsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewFrontDoorsClientWithBaseURI(baseURI string, subscriptionID string) FrontDoorsClient { + return FrontDoorsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate creates a new Front Door with a Front Door name under the specified subscription and resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +// frontDoorParameters - front Door properties needed to create a new Front Door. +func (client FrontDoorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, frontDoorName string, frontDoorParameters FrontDoor) (result FrontDoorsCreateOrUpdateFutureType, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.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: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontDoorsClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, frontDoorName, frontDoorParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client FrontDoorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, frontDoorName string, frontDoorParameters FrontDoor) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}", pathParameters), + autorest.WithJSON(frontDoorParameters), + 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 FrontDoorsClient) CreateOrUpdateSender(req *http.Request) (future FrontDoorsCreateOrUpdateFutureType, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + 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 FrontDoorsClient) CreateOrUpdateResponder(resp *http.Response) (result FrontDoor, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing Front Door with the specified parameters. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +func (client FrontDoorsClient) Delete(ctx context.Context, resourceGroupName string, frontDoorName string) (result FrontDoorsDeleteFutureType, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontDoorsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, frontDoorName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client FrontDoorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, frontDoorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}", 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 FrontDoorsClient) DeleteSender(req *http.Request) (future FrontDoorsDeleteFutureType, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + 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 FrontDoorsClient) 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 a Front Door with the specified Front Door name under the specified subscription and resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +func (client FrontDoorsClient) Get(ctx context.Context, resourceGroupName string, frontDoorName string) (result FrontDoor, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontDoorsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, frontDoorName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client FrontDoorsClient) GetPreparer(ctx context.Context, resourceGroupName string, frontDoorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}", 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 FrontDoorsClient) GetSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client FrontDoorsClient) GetResponder(resp *http.Response) (result FrontDoor, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all of the Front Doors within an Azure subscription. +func (client FrontDoorsClient) List(ctx context.Context) (result ListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.List") + defer func() { + sc := -1 + if result.lr.Response.Response != nil { + sc = result.lr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", resp, "Failure sending request") + return + } + + result.lr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client FrontDoorsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client FrontDoorsClient) ListSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client FrontDoorsClient) ListResponder(resp *http.Response) (result ListResult, 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 FrontDoorsClient) listNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { + req, err := lastResults.listResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "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, "frontdoor.FrontDoorsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client FrontDoorsClient) ListComplete(ctx context.Context) (result ListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup lists all of the Front Doors within a resource group under a subscription. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +func (client FrontDoorsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.lr.Response.Response != nil { + sc = result.lr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontDoorsClient", "ListByResourceGroup", err.Error()) + } + + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.lr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.lr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ListByResourceGroup", resp, "Failure responding to request") + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client FrontDoorsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors", 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 FrontDoorsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client FrontDoorsClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, 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 FrontDoorsClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { + req, err := lastResults.listResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "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, "frontdoor.FrontDoorsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client FrontDoorsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ValidateCustomDomain validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in +// DNS. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +// customDomainProperties - custom domain to be validated. +func (client FrontDoorsClient) ValidateCustomDomain(ctx context.Context, resourceGroupName string, frontDoorName string, customDomainProperties ValidateCustomDomainInput) (result ValidateCustomDomainOutput, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontDoorsClient.ValidateCustomDomain") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}, + {TargetValue: customDomainProperties, + Constraints: []validation.Constraint{{Target: "customDomainProperties.HostName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontDoorsClient", "ValidateCustomDomain", err.Error()) + } + + req, err := client.ValidateCustomDomainPreparer(ctx, resourceGroupName, frontDoorName, customDomainProperties) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", nil, "Failure preparing request") + return + } + + resp, err := client.ValidateCustomDomainSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", resp, "Failure sending request") + return + } + + result, err = client.ValidateCustomDomainResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsClient", "ValidateCustomDomain", resp, "Failure responding to request") + } + + return +} + +// ValidateCustomDomainPreparer prepares the ValidateCustomDomain request. +func (client FrontDoorsClient) ValidateCustomDomainPreparer(ctx context.Context, resourceGroupName string, frontDoorName string, customDomainProperties ValidateCustomDomainInput) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}/validateCustomDomain", pathParameters), + autorest.WithJSON(customDomainProperties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ValidateCustomDomainSender sends the ValidateCustomDomain request. The method will close the +// http.Response Body if it receives an error. +func (client FrontDoorsClient) ValidateCustomDomainSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ValidateCustomDomainResponder handles the response to the ValidateCustomDomain request. The method always +// closes the http.Response Body. +func (client FrontDoorsClient) ValidateCustomDomainResponder(resp *http.Response) (result ValidateCustomDomainOutput, 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/frontdoor/mgmt/2019-11-01/frontdoor/frontendendpoints.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/frontendendpoints.go new file mode 100644 index 000000000000..f1e0d59f0b8a --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/frontendendpoints.go @@ -0,0 +1,459 @@ +package frontdoor + +// 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" +) + +// FrontendEndpointsClient is the frontDoor Client +type FrontendEndpointsClient struct { + BaseClient +} + +// NewFrontendEndpointsClient creates an instance of the FrontendEndpointsClient client. +func NewFrontendEndpointsClient(subscriptionID string) FrontendEndpointsClient { + return NewFrontendEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewFrontendEndpointsClientWithBaseURI creates an instance of the FrontendEndpointsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewFrontendEndpointsClientWithBaseURI(baseURI string, subscriptionID string) FrontendEndpointsClient { + return FrontendEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// DisableHTTPS disables a frontendEndpoint for HTTPS traffic +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +// frontendEndpointName - name of the Frontend endpoint which is unique within the Front Door. +func (client FrontendEndpointsClient) DisableHTTPS(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (result FrontendEndpointsDisableHTTPSFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsClient.DisableHTTPS") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}, + {TargetValue: frontendEndpointName, + Constraints: []validation.Constraint{{Target: "frontendEndpointName", Name: validation.MaxLength, Rule: 255, Chain: nil}, + {Target: "frontendEndpointName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "frontendEndpointName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontendEndpointsClient", "DisableHTTPS", err.Error()) + } + + req, err := client.DisableHTTPSPreparer(ctx, resourceGroupName, frontDoorName, frontendEndpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "DisableHTTPS", nil, "Failure preparing request") + return + } + + result, err = client.DisableHTTPSSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "DisableHTTPS", result.Response(), "Failure sending request") + return + } + + return +} + +// DisableHTTPSPreparer prepares the DisableHTTPS request. +func (client FrontendEndpointsClient) DisableHTTPSPreparer(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "frontendEndpointName": autorest.Encode("path", frontendEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DisableHTTPSSender sends the DisableHTTPS request. The method will close the +// http.Response Body if it receives an error. +func (client FrontendEndpointsClient) DisableHTTPSSender(req *http.Request) (future FrontendEndpointsDisableHTTPSFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DisableHTTPSResponder handles the response to the DisableHTTPS request. The method always +// closes the http.Response Body. +func (client FrontendEndpointsClient) DisableHTTPSResponder(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 +} + +// EnableHTTPS enables a frontendEndpoint for HTTPS traffic +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +// frontendEndpointName - name of the Frontend endpoint which is unique within the Front Door. +// customHTTPSConfiguration - the configuration specifying how to enable HTTPS +func (client FrontendEndpointsClient) EnableHTTPS(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string, customHTTPSConfiguration CustomHTTPSConfiguration) (result FrontendEndpointsEnableHTTPSFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsClient.EnableHTTPS") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}, + {TargetValue: frontendEndpointName, + Constraints: []validation.Constraint{{Target: "frontendEndpointName", Name: validation.MaxLength, Rule: 255, Chain: nil}, + {Target: "frontendEndpointName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "frontendEndpointName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$`, Chain: nil}}}, + {TargetValue: customHTTPSConfiguration, + Constraints: []validation.Constraint{{Target: "customHTTPSConfiguration.ProtocolType", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontendEndpointsClient", "EnableHTTPS", err.Error()) + } + + req, err := client.EnableHTTPSPreparer(ctx, resourceGroupName, frontDoorName, frontendEndpointName, customHTTPSConfiguration) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "EnableHTTPS", nil, "Failure preparing request") + return + } + + result, err = client.EnableHTTPSSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "EnableHTTPS", result.Response(), "Failure sending request") + return + } + + return +} + +// EnableHTTPSPreparer prepares the EnableHTTPS request. +func (client FrontendEndpointsClient) EnableHTTPSPreparer(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string, customHTTPSConfiguration CustomHTTPSConfiguration) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "frontendEndpointName": autorest.Encode("path", frontendEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps", pathParameters), + autorest.WithJSON(customHTTPSConfiguration), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// EnableHTTPSSender sends the EnableHTTPS request. The method will close the +// http.Response Body if it receives an error. +func (client FrontendEndpointsClient) EnableHTTPSSender(req *http.Request) (future FrontendEndpointsEnableHTTPSFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// EnableHTTPSResponder handles the response to the EnableHTTPS request. The method always +// closes the http.Response Body. +func (client FrontendEndpointsClient) EnableHTTPSResponder(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 gets a Frontend endpoint with the specified name within the specified Front Door. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +// frontendEndpointName - name of the Frontend endpoint which is unique within the Front Door. +func (client FrontendEndpointsClient) Get(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (result FrontendEndpoint, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}, + {TargetValue: frontendEndpointName, + Constraints: []validation.Constraint{{Target: "frontendEndpointName", Name: validation.MaxLength, Rule: 255, Chain: nil}, + {Target: "frontendEndpointName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "frontendEndpointName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontendEndpointsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, frontDoorName, frontendEndpointName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client FrontendEndpointsClient) GetPreparer(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "frontendEndpointName": autorest.Encode("path", frontendEndpointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}", 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 FrontendEndpointsClient) GetSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client FrontendEndpointsClient) GetResponder(resp *http.Response) (result FrontendEndpoint, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByFrontDoor lists all of the frontend endpoints within a Front Door. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// frontDoorName - name of the Front Door which is globally unique. +func (client FrontendEndpointsClient) ListByFrontDoor(ctx context.Context, resourceGroupName string, frontDoorName string) (result FrontendEndpointsListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsClient.ListByFrontDoor") + defer func() { + sc := -1 + if result.felr.Response.Response != nil { + sc = result.felr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: frontDoorName, + Constraints: []validation.Constraint{{Target: "frontDoorName", Name: validation.MaxLength, Rule: 64, Chain: nil}, + {Target: "frontDoorName", Name: validation.MinLength, Rule: 5, Chain: nil}, + {Target: "frontDoorName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.FrontendEndpointsClient", "ListByFrontDoor", err.Error()) + } + + result.fn = client.listByFrontDoorNextResults + req, err := client.ListByFrontDoorPreparer(ctx, resourceGroupName, frontDoorName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", nil, "Failure preparing request") + return + } + + resp, err := client.ListByFrontDoorSender(req) + if err != nil { + result.felr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", resp, "Failure sending request") + return + } + + result.felr, err = client.ListByFrontDoorResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "ListByFrontDoor", resp, "Failure responding to request") + } + + return +} + +// ListByFrontDoorPreparer prepares the ListByFrontDoor request. +func (client FrontendEndpointsClient) ListByFrontDoorPreparer(ctx context.Context, resourceGroupName string, frontDoorName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "frontDoorName": autorest.Encode("path", frontDoorName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-05-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.Network/frontDoors/{frontDoorName}/frontendEndpoints", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByFrontDoorSender sends the ListByFrontDoor request. The method will close the +// http.Response Body if it receives an error. +func (client FrontendEndpointsClient) ListByFrontDoorSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListByFrontDoorResponder handles the response to the ListByFrontDoor request. The method always +// closes the http.Response Body. +func (client FrontendEndpointsClient) ListByFrontDoorResponder(resp *http.Response) (result FrontendEndpointsListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByFrontDoorNextResults retrieves the next set of results, if any. +func (client FrontendEndpointsClient) listByFrontDoorNextResults(ctx context.Context, lastResults FrontendEndpointsListResult) (result FrontendEndpointsListResult, err error) { + req, err := lastResults.frontendEndpointsListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByFrontDoorSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByFrontDoorResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsClient", "listByFrontDoorNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByFrontDoorComplete enumerates all values, automatically crossing page boundaries as required. +func (client FrontendEndpointsClient) ListByFrontDoorComplete(ctx context.Context, resourceGroupName string, frontDoorName string) (result FrontendEndpointsListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsClient.ListByFrontDoor") + 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.ListByFrontDoor(ctx, resourceGroupName, frontDoorName) + return +} diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/managedrulesets.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/managedrulesets.go new file mode 100644 index 000000000000..637e557fd374 --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/managedrulesets.go @@ -0,0 +1,152 @@ +package frontdoor + +// 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" +) + +// ManagedRuleSetsClient is the frontDoor Client +type ManagedRuleSetsClient struct { + BaseClient +} + +// NewManagedRuleSetsClient creates an instance of the ManagedRuleSetsClient client. +func NewManagedRuleSetsClient(subscriptionID string) ManagedRuleSetsClient { + return NewManagedRuleSetsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewManagedRuleSetsClientWithBaseURI creates an instance of the ManagedRuleSetsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewManagedRuleSetsClientWithBaseURI(baseURI string, subscriptionID string) ManagedRuleSetsClient { + return ManagedRuleSetsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists all available managed rule sets. +func (client ManagedRuleSetsClient) List(ctx context.Context) (result ManagedRuleSetDefinitionListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRuleSetsClient.List") + defer func() { + sc := -1 + if result.mrsdl.Response.Response != nil { + sc = result.mrsdl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.mrsdl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", resp, "Failure sending request") + return + } + + result.mrsdl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client ManagedRuleSetsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-10-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ManagedRuleSetsClient) ListSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ManagedRuleSetsClient) ListResponder(resp *http.Response) (result ManagedRuleSetDefinitionList, 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 ManagedRuleSetsClient) listNextResults(ctx context.Context, lastResults ManagedRuleSetDefinitionList) (result ManagedRuleSetDefinitionList, err error) { + req, err := lastResults.managedRuleSetDefinitionListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "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, "frontdoor.ManagedRuleSetsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ManagedRuleSetsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client ManagedRuleSetsClient) ListComplete(ctx context.Context) (result ManagedRuleSetDefinitionListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRuleSetsClient.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/frontdoor/mgmt/2019-11-01/frontdoor/models.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/models.go new file mode 100644 index 000000000000..8003b5aa9343 --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/models.go @@ -0,0 +1,4616 @@ +package frontdoor + +// 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/frontdoor/mgmt/2019-11-01/frontdoor" + +// ActionType enumerates the values for action type. +type ActionType string + +const ( + // Allow ... + Allow ActionType = "Allow" + // Block ... + Block ActionType = "Block" + // Log ... + Log ActionType = "Log" + // Redirect ... + Redirect ActionType = "Redirect" +) + +// PossibleActionTypeValues returns an array of possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{Allow, Block, Log, Redirect} +} + +// AggregationInterval enumerates the values for aggregation interval. +type AggregationInterval string + +const ( + // Daily ... + Daily AggregationInterval = "Daily" + // Hourly ... + Hourly AggregationInterval = "Hourly" +) + +// PossibleAggregationIntervalValues returns an array of possible values for the AggregationInterval const type. +func PossibleAggregationIntervalValues() []AggregationInterval { + return []AggregationInterval{Daily, Hourly} +} + +// Availability enumerates the values for availability. +type Availability string + +const ( + // Available ... + Available Availability = "Available" + // Unavailable ... + Unavailable Availability = "Unavailable" +) + +// PossibleAvailabilityValues returns an array of possible values for the Availability const type. +func PossibleAvailabilityValues() []Availability { + return []Availability{Available, Unavailable} +} + +// BackendEnabledState enumerates the values for backend enabled state. +type BackendEnabledState string + +const ( + // Disabled ... + Disabled BackendEnabledState = "Disabled" + // Enabled ... + Enabled BackendEnabledState = "Enabled" +) + +// PossibleBackendEnabledStateValues returns an array of possible values for the BackendEnabledState const type. +func PossibleBackendEnabledStateValues() []BackendEnabledState { + return []BackendEnabledState{Disabled, Enabled} +} + +// CertificateSource enumerates the values for certificate source. +type CertificateSource string + +const ( + // CertificateSourceAzureKeyVault ... + CertificateSourceAzureKeyVault CertificateSource = "AzureKeyVault" + // CertificateSourceFrontDoor ... + CertificateSourceFrontDoor CertificateSource = "FrontDoor" +) + +// PossibleCertificateSourceValues returns an array of possible values for the CertificateSource const type. +func PossibleCertificateSourceValues() []CertificateSource { + return []CertificateSource{CertificateSourceAzureKeyVault, CertificateSourceFrontDoor} +} + +// CertificateType enumerates the values for certificate type. +type CertificateType string + +const ( + // Dedicated ... + Dedicated CertificateType = "Dedicated" +) + +// PossibleCertificateTypeValues returns an array of possible values for the CertificateType const type. +func PossibleCertificateTypeValues() []CertificateType { + return []CertificateType{Dedicated} +} + +// CustomHTTPSProvisioningState enumerates the values for custom https provisioning state. +type CustomHTTPSProvisioningState string + +const ( + // CustomHTTPSProvisioningStateDisabled ... + CustomHTTPSProvisioningStateDisabled CustomHTTPSProvisioningState = "Disabled" + // CustomHTTPSProvisioningStateDisabling ... + CustomHTTPSProvisioningStateDisabling CustomHTTPSProvisioningState = "Disabling" + // CustomHTTPSProvisioningStateEnabled ... + CustomHTTPSProvisioningStateEnabled CustomHTTPSProvisioningState = "Enabled" + // CustomHTTPSProvisioningStateEnabling ... + CustomHTTPSProvisioningStateEnabling CustomHTTPSProvisioningState = "Enabling" + // CustomHTTPSProvisioningStateFailed ... + CustomHTTPSProvisioningStateFailed CustomHTTPSProvisioningState = "Failed" +) + +// PossibleCustomHTTPSProvisioningStateValues returns an array of possible values for the CustomHTTPSProvisioningState const type. +func PossibleCustomHTTPSProvisioningStateValues() []CustomHTTPSProvisioningState { + return []CustomHTTPSProvisioningState{CustomHTTPSProvisioningStateDisabled, CustomHTTPSProvisioningStateDisabling, CustomHTTPSProvisioningStateEnabled, CustomHTTPSProvisioningStateEnabling, CustomHTTPSProvisioningStateFailed} +} + +// CustomHTTPSProvisioningSubstate enumerates the values for custom https provisioning substate. +type CustomHTTPSProvisioningSubstate string + +const ( + // CertificateDeleted ... + CertificateDeleted CustomHTTPSProvisioningSubstate = "CertificateDeleted" + // CertificateDeployed ... + CertificateDeployed CustomHTTPSProvisioningSubstate = "CertificateDeployed" + // DeletingCertificate ... + DeletingCertificate CustomHTTPSProvisioningSubstate = "DeletingCertificate" + // DeployingCertificate ... + DeployingCertificate CustomHTTPSProvisioningSubstate = "DeployingCertificate" + // DomainControlValidationRequestApproved ... + DomainControlValidationRequestApproved CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestApproved" + // DomainControlValidationRequestRejected ... + DomainControlValidationRequestRejected CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestRejected" + // DomainControlValidationRequestTimedOut ... + DomainControlValidationRequestTimedOut CustomHTTPSProvisioningSubstate = "DomainControlValidationRequestTimedOut" + // IssuingCertificate ... + IssuingCertificate CustomHTTPSProvisioningSubstate = "IssuingCertificate" + // PendingDomainControlValidationREquestApproval ... + PendingDomainControlValidationREquestApproval CustomHTTPSProvisioningSubstate = "PendingDomainControlValidationREquestApproval" + // SubmittingDomainControlValidationRequest ... + SubmittingDomainControlValidationRequest CustomHTTPSProvisioningSubstate = "SubmittingDomainControlValidationRequest" +) + +// PossibleCustomHTTPSProvisioningSubstateValues returns an array of possible values for the CustomHTTPSProvisioningSubstate const type. +func PossibleCustomHTTPSProvisioningSubstateValues() []CustomHTTPSProvisioningSubstate { + return []CustomHTTPSProvisioningSubstate{CertificateDeleted, CertificateDeployed, DeletingCertificate, DeployingCertificate, DomainControlValidationRequestApproved, DomainControlValidationRequestRejected, DomainControlValidationRequestTimedOut, IssuingCertificate, PendingDomainControlValidationREquestApproval, SubmittingDomainControlValidationRequest} +} + +// CustomRuleEnabledState enumerates the values for custom rule enabled state. +type CustomRuleEnabledState string + +const ( + // CustomRuleEnabledStateDisabled ... + CustomRuleEnabledStateDisabled CustomRuleEnabledState = "Disabled" + // CustomRuleEnabledStateEnabled ... + CustomRuleEnabledStateEnabled CustomRuleEnabledState = "Enabled" +) + +// PossibleCustomRuleEnabledStateValues returns an array of possible values for the CustomRuleEnabledState const type. +func PossibleCustomRuleEnabledStateValues() []CustomRuleEnabledState { + return []CustomRuleEnabledState{CustomRuleEnabledStateDisabled, CustomRuleEnabledStateEnabled} +} + +// DynamicCompressionEnabled enumerates the values for dynamic compression enabled. +type DynamicCompressionEnabled string + +const ( + // DynamicCompressionEnabledDisabled ... + DynamicCompressionEnabledDisabled DynamicCompressionEnabled = "Disabled" + // DynamicCompressionEnabledEnabled ... + DynamicCompressionEnabledEnabled DynamicCompressionEnabled = "Enabled" +) + +// PossibleDynamicCompressionEnabledValues returns an array of possible values for the DynamicCompressionEnabled const type. +func PossibleDynamicCompressionEnabledValues() []DynamicCompressionEnabled { + return []DynamicCompressionEnabled{DynamicCompressionEnabledDisabled, DynamicCompressionEnabledEnabled} +} + +// EnabledState enumerates the values for enabled state. +type EnabledState string + +const ( + // EnabledStateDisabled ... + EnabledStateDisabled EnabledState = "Disabled" + // EnabledStateEnabled ... + EnabledStateEnabled EnabledState = "Enabled" +) + +// PossibleEnabledStateValues returns an array of possible values for the EnabledState const type. +func PossibleEnabledStateValues() []EnabledState { + return []EnabledState{EnabledStateDisabled, EnabledStateEnabled} +} + +// EndpointType enumerates the values for endpoint type. +type EndpointType string + +const ( + // AFD ... + AFD EndpointType = "AFD" + // ATM ... + ATM EndpointType = "ATM" + // AzureRegion ... + AzureRegion EndpointType = "AzureRegion" + // CDN ... + CDN EndpointType = "CDN" +) + +// PossibleEndpointTypeValues returns an array of possible values for the EndpointType const type. +func PossibleEndpointTypeValues() []EndpointType { + return []EndpointType{AFD, ATM, AzureRegion, CDN} +} + +// EnforceCertificateNameCheckEnabledState enumerates the values for enforce certificate name check enabled +// state. +type EnforceCertificateNameCheckEnabledState string + +const ( + // EnforceCertificateNameCheckEnabledStateDisabled ... + EnforceCertificateNameCheckEnabledStateDisabled EnforceCertificateNameCheckEnabledState = "Disabled" + // EnforceCertificateNameCheckEnabledStateEnabled ... + EnforceCertificateNameCheckEnabledStateEnabled EnforceCertificateNameCheckEnabledState = "Enabled" +) + +// PossibleEnforceCertificateNameCheckEnabledStateValues returns an array of possible values for the EnforceCertificateNameCheckEnabledState const type. +func PossibleEnforceCertificateNameCheckEnabledStateValues() []EnforceCertificateNameCheckEnabledState { + return []EnforceCertificateNameCheckEnabledState{EnforceCertificateNameCheckEnabledStateDisabled, EnforceCertificateNameCheckEnabledStateEnabled} +} + +// ForwardingProtocol enumerates the values for forwarding protocol. +type ForwardingProtocol string + +const ( + // HTTPOnly ... + HTTPOnly ForwardingProtocol = "HttpOnly" + // HTTPSOnly ... + HTTPSOnly ForwardingProtocol = "HttpsOnly" + // MatchRequest ... + MatchRequest ForwardingProtocol = "MatchRequest" +) + +// PossibleForwardingProtocolValues returns an array of possible values for the ForwardingProtocol const type. +func PossibleForwardingProtocolValues() []ForwardingProtocol { + return []ForwardingProtocol{HTTPOnly, HTTPSOnly, MatchRequest} +} + +// HealthProbeEnabled enumerates the values for health probe enabled. +type HealthProbeEnabled string + +const ( + // HealthProbeEnabledDisabled ... + HealthProbeEnabledDisabled HealthProbeEnabled = "Disabled" + // HealthProbeEnabledEnabled ... + HealthProbeEnabledEnabled HealthProbeEnabled = "Enabled" +) + +// PossibleHealthProbeEnabledValues returns an array of possible values for the HealthProbeEnabled const type. +func PossibleHealthProbeEnabledValues() []HealthProbeEnabled { + return []HealthProbeEnabled{HealthProbeEnabledDisabled, HealthProbeEnabledEnabled} +} + +// HealthProbeMethod enumerates the values for health probe method. +type HealthProbeMethod string + +const ( + // GET ... + GET HealthProbeMethod = "GET" + // HEAD ... + HEAD HealthProbeMethod = "HEAD" +) + +// PossibleHealthProbeMethodValues returns an array of possible values for the HealthProbeMethod const type. +func PossibleHealthProbeMethodValues() []HealthProbeMethod { + return []HealthProbeMethod{GET, HEAD} +} + +// LatencyScorecardAggregationInterval enumerates the values for latency scorecard aggregation interval. +type LatencyScorecardAggregationInterval string + +const ( + // LatencyScorecardAggregationIntervalDaily ... + LatencyScorecardAggregationIntervalDaily LatencyScorecardAggregationInterval = "Daily" + // LatencyScorecardAggregationIntervalMonthly ... + LatencyScorecardAggregationIntervalMonthly LatencyScorecardAggregationInterval = "Monthly" + // LatencyScorecardAggregationIntervalWeekly ... + LatencyScorecardAggregationIntervalWeekly LatencyScorecardAggregationInterval = "Weekly" +) + +// PossibleLatencyScorecardAggregationIntervalValues returns an array of possible values for the LatencyScorecardAggregationInterval const type. +func PossibleLatencyScorecardAggregationIntervalValues() []LatencyScorecardAggregationInterval { + return []LatencyScorecardAggregationInterval{LatencyScorecardAggregationIntervalDaily, LatencyScorecardAggregationIntervalMonthly, LatencyScorecardAggregationIntervalWeekly} +} + +// ManagedRuleEnabledState enumerates the values for managed rule enabled state. +type ManagedRuleEnabledState string + +const ( + // ManagedRuleEnabledStateDisabled ... + ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled" + // ManagedRuleEnabledStateEnabled ... + ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = "Enabled" +) + +// PossibleManagedRuleEnabledStateValues returns an array of possible values for the ManagedRuleEnabledState const type. +func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState { + return []ManagedRuleEnabledState{ManagedRuleEnabledStateDisabled, ManagedRuleEnabledStateEnabled} +} + +// ManagedRuleExclusionMatchVariable enumerates the values for managed rule exclusion match variable. +type ManagedRuleExclusionMatchVariable string + +const ( + // QueryStringArgNames ... + QueryStringArgNames ManagedRuleExclusionMatchVariable = "QueryStringArgNames" + // RequestBodyPostArgNames ... + RequestBodyPostArgNames ManagedRuleExclusionMatchVariable = "RequestBodyPostArgNames" + // RequestCookieNames ... + RequestCookieNames ManagedRuleExclusionMatchVariable = "RequestCookieNames" + // RequestHeaderNames ... + RequestHeaderNames ManagedRuleExclusionMatchVariable = "RequestHeaderNames" +) + +// PossibleManagedRuleExclusionMatchVariableValues returns an array of possible values for the ManagedRuleExclusionMatchVariable const type. +func PossibleManagedRuleExclusionMatchVariableValues() []ManagedRuleExclusionMatchVariable { + return []ManagedRuleExclusionMatchVariable{QueryStringArgNames, RequestBodyPostArgNames, RequestCookieNames, RequestHeaderNames} +} + +// ManagedRuleExclusionSelectorMatchOperator enumerates the values for managed rule exclusion selector match +// operator. +type ManagedRuleExclusionSelectorMatchOperator string + +const ( + // Contains ... + Contains ManagedRuleExclusionSelectorMatchOperator = "Contains" + // EndsWith ... + EndsWith ManagedRuleExclusionSelectorMatchOperator = "EndsWith" + // Equals ... + Equals ManagedRuleExclusionSelectorMatchOperator = "Equals" + // EqualsAny ... + EqualsAny ManagedRuleExclusionSelectorMatchOperator = "EqualsAny" + // StartsWith ... + StartsWith ManagedRuleExclusionSelectorMatchOperator = "StartsWith" +) + +// PossibleManagedRuleExclusionSelectorMatchOperatorValues returns an array of possible values for the ManagedRuleExclusionSelectorMatchOperator const type. +func PossibleManagedRuleExclusionSelectorMatchOperatorValues() []ManagedRuleExclusionSelectorMatchOperator { + return []ManagedRuleExclusionSelectorMatchOperator{Contains, EndsWith, Equals, EqualsAny, StartsWith} +} + +// MatchVariable enumerates the values for match variable. +type MatchVariable string + +const ( + // Cookies ... + Cookies MatchVariable = "Cookies" + // PostArgs ... + PostArgs MatchVariable = "PostArgs" + // QueryString ... + QueryString MatchVariable = "QueryString" + // RemoteAddr ... + RemoteAddr MatchVariable = "RemoteAddr" + // RequestBody ... + RequestBody MatchVariable = "RequestBody" + // RequestHeader ... + RequestHeader MatchVariable = "RequestHeader" + // RequestMethod ... + RequestMethod MatchVariable = "RequestMethod" + // RequestURI ... + RequestURI MatchVariable = "RequestUri" + // SocketAddr ... + SocketAddr MatchVariable = "SocketAddr" +) + +// PossibleMatchVariableValues returns an array of possible values for the MatchVariable const type. +func PossibleMatchVariableValues() []MatchVariable { + return []MatchVariable{Cookies, PostArgs, QueryString, RemoteAddr, RequestBody, RequestHeader, RequestMethod, RequestURI, SocketAddr} +} + +// MinimumTLSVersion enumerates the values for minimum tls version. +type MinimumTLSVersion string + +const ( + // OneFullStopTwo ... + OneFullStopTwo MinimumTLSVersion = "1.2" + // OneFullStopZero ... + OneFullStopZero MinimumTLSVersion = "1.0" +) + +// PossibleMinimumTLSVersionValues returns an array of possible values for the MinimumTLSVersion const type. +func PossibleMinimumTLSVersionValues() []MinimumTLSVersion { + return []MinimumTLSVersion{OneFullStopTwo, OneFullStopZero} +} + +// NetworkExperimentResourceState enumerates the values for network experiment resource state. +type NetworkExperimentResourceState string + +const ( + // NetworkExperimentResourceStateCreating ... + NetworkExperimentResourceStateCreating NetworkExperimentResourceState = "Creating" + // NetworkExperimentResourceStateDeleting ... + NetworkExperimentResourceStateDeleting NetworkExperimentResourceState = "Deleting" + // NetworkExperimentResourceStateDisabled ... + NetworkExperimentResourceStateDisabled NetworkExperimentResourceState = "Disabled" + // NetworkExperimentResourceStateDisabling ... + NetworkExperimentResourceStateDisabling NetworkExperimentResourceState = "Disabling" + // NetworkExperimentResourceStateEnabled ... + NetworkExperimentResourceStateEnabled NetworkExperimentResourceState = "Enabled" + // NetworkExperimentResourceStateEnabling ... + NetworkExperimentResourceStateEnabling NetworkExperimentResourceState = "Enabling" +) + +// PossibleNetworkExperimentResourceStateValues returns an array of possible values for the NetworkExperimentResourceState const type. +func PossibleNetworkExperimentResourceStateValues() []NetworkExperimentResourceState { + return []NetworkExperimentResourceState{NetworkExperimentResourceStateCreating, NetworkExperimentResourceStateDeleting, NetworkExperimentResourceStateDisabled, NetworkExperimentResourceStateDisabling, NetworkExperimentResourceStateEnabled, NetworkExperimentResourceStateEnabling} +} + +// NetworkOperationStatus enumerates the values for network operation status. +type NetworkOperationStatus string + +const ( + // Failed ... + Failed NetworkOperationStatus = "Failed" + // InProgress ... + InProgress NetworkOperationStatus = "InProgress" + // Succeeded ... + Succeeded NetworkOperationStatus = "Succeeded" +) + +// PossibleNetworkOperationStatusValues returns an array of possible values for the NetworkOperationStatus const type. +func PossibleNetworkOperationStatusValues() []NetworkOperationStatus { + return []NetworkOperationStatus{Failed, InProgress, Succeeded} +} + +// OdataType enumerates the values for odata type. +type OdataType string + +const ( + // OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration ... + OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration" + // OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration ... + OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration OdataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration" + // OdataTypeRouteConfiguration ... + OdataTypeRouteConfiguration OdataType = "RouteConfiguration" +) + +// PossibleOdataTypeValues returns an array of possible values for the OdataType const type. +func PossibleOdataTypeValues() []OdataType { + return []OdataType{OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration, OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration, OdataTypeRouteConfiguration} +} + +// Operator enumerates the values for operator. +type Operator string + +const ( + // OperatorAny ... + OperatorAny Operator = "Any" + // OperatorBeginsWith ... + OperatorBeginsWith Operator = "BeginsWith" + // OperatorContains ... + OperatorContains Operator = "Contains" + // OperatorEndsWith ... + OperatorEndsWith Operator = "EndsWith" + // OperatorEqual ... + OperatorEqual Operator = "Equal" + // OperatorGeoMatch ... + OperatorGeoMatch Operator = "GeoMatch" + // OperatorGreaterThan ... + OperatorGreaterThan Operator = "GreaterThan" + // OperatorGreaterThanOrEqual ... + OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual" + // OperatorIPMatch ... + OperatorIPMatch Operator = "IPMatch" + // OperatorLessThan ... + OperatorLessThan Operator = "LessThan" + // OperatorLessThanOrEqual ... + OperatorLessThanOrEqual Operator = "LessThanOrEqual" + // OperatorRegEx ... + OperatorRegEx Operator = "RegEx" +) + +// PossibleOperatorValues returns an array of possible values for the Operator const type. +func PossibleOperatorValues() []Operator { + return []Operator{OperatorAny, OperatorBeginsWith, OperatorContains, OperatorEndsWith, OperatorEqual, OperatorGeoMatch, OperatorGreaterThan, OperatorGreaterThanOrEqual, OperatorIPMatch, OperatorLessThan, OperatorLessThanOrEqual, OperatorRegEx} +} + +// PolicyEnabledState enumerates the values for policy enabled state. +type PolicyEnabledState string + +const ( + // PolicyEnabledStateDisabled ... + PolicyEnabledStateDisabled PolicyEnabledState = "Disabled" + // PolicyEnabledStateEnabled ... + PolicyEnabledStateEnabled PolicyEnabledState = "Enabled" +) + +// PossiblePolicyEnabledStateValues returns an array of possible values for the PolicyEnabledState const type. +func PossiblePolicyEnabledStateValues() []PolicyEnabledState { + return []PolicyEnabledState{PolicyEnabledStateDisabled, PolicyEnabledStateEnabled} +} + +// PolicyMode enumerates the values for policy mode. +type PolicyMode string + +const ( + // Detection ... + Detection PolicyMode = "Detection" + // Prevention ... + Prevention PolicyMode = "Prevention" +) + +// PossiblePolicyModeValues returns an array of possible values for the PolicyMode const type. +func PossiblePolicyModeValues() []PolicyMode { + return []PolicyMode{Detection, Prevention} +} + +// PolicyResourceState enumerates the values for policy resource state. +type PolicyResourceState string + +const ( + // PolicyResourceStateCreating ... + PolicyResourceStateCreating PolicyResourceState = "Creating" + // PolicyResourceStateDeleting ... + PolicyResourceStateDeleting PolicyResourceState = "Deleting" + // PolicyResourceStateDisabled ... + PolicyResourceStateDisabled PolicyResourceState = "Disabled" + // PolicyResourceStateDisabling ... + PolicyResourceStateDisabling PolicyResourceState = "Disabling" + // PolicyResourceStateEnabled ... + PolicyResourceStateEnabled PolicyResourceState = "Enabled" + // PolicyResourceStateEnabling ... + PolicyResourceStateEnabling PolicyResourceState = "Enabling" +) + +// PossiblePolicyResourceStateValues returns an array of possible values for the PolicyResourceState const type. +func PossiblePolicyResourceStateValues() []PolicyResourceState { + return []PolicyResourceState{PolicyResourceStateCreating, PolicyResourceStateDeleting, PolicyResourceStateDisabled, PolicyResourceStateDisabling, PolicyResourceStateEnabled, PolicyResourceStateEnabling} +} + +// Protocol enumerates the values for protocol. +type Protocol string + +const ( + // HTTP ... + HTTP Protocol = "Http" + // HTTPS ... + HTTPS Protocol = "Https" +) + +// PossibleProtocolValues returns an array of possible values for the Protocol const type. +func PossibleProtocolValues() []Protocol { + return []Protocol{HTTP, HTTPS} +} + +// Query enumerates the values for query. +type Query string + +const ( + // StripAll ... + StripAll Query = "StripAll" + // StripNone ... + StripNone Query = "StripNone" +) + +// PossibleQueryValues returns an array of possible values for the Query const type. +func PossibleQueryValues() []Query { + return []Query{StripAll, StripNone} +} + +// RedirectProtocol enumerates the values for redirect protocol. +type RedirectProtocol string + +const ( + // RedirectProtocolHTTPOnly ... + RedirectProtocolHTTPOnly RedirectProtocol = "HttpOnly" + // RedirectProtocolHTTPSOnly ... + RedirectProtocolHTTPSOnly RedirectProtocol = "HttpsOnly" + // RedirectProtocolMatchRequest ... + RedirectProtocolMatchRequest RedirectProtocol = "MatchRequest" +) + +// PossibleRedirectProtocolValues returns an array of possible values for the RedirectProtocol const type. +func PossibleRedirectProtocolValues() []RedirectProtocol { + return []RedirectProtocol{RedirectProtocolHTTPOnly, RedirectProtocolHTTPSOnly, RedirectProtocolMatchRequest} +} + +// RedirectType enumerates the values for redirect type. +type RedirectType string + +const ( + // Found ... + Found RedirectType = "Found" + // Moved ... + Moved RedirectType = "Moved" + // PermanentRedirect ... + PermanentRedirect RedirectType = "PermanentRedirect" + // TemporaryRedirect ... + TemporaryRedirect RedirectType = "TemporaryRedirect" +) + +// PossibleRedirectTypeValues returns an array of possible values for the RedirectType const type. +func PossibleRedirectTypeValues() []RedirectType { + return []RedirectType{Found, Moved, PermanentRedirect, TemporaryRedirect} +} + +// ResourceState enumerates the values for resource state. +type ResourceState string + +const ( + // ResourceStateCreating ... + ResourceStateCreating ResourceState = "Creating" + // ResourceStateDeleting ... + ResourceStateDeleting ResourceState = "Deleting" + // ResourceStateDisabled ... + ResourceStateDisabled ResourceState = "Disabled" + // ResourceStateDisabling ... + ResourceStateDisabling ResourceState = "Disabling" + // ResourceStateEnabled ... + ResourceStateEnabled ResourceState = "Enabled" + // ResourceStateEnabling ... + ResourceStateEnabling ResourceState = "Enabling" +) + +// PossibleResourceStateValues returns an array of possible values for the ResourceState const type. +func PossibleResourceStateValues() []ResourceState { + return []ResourceState{ResourceStateCreating, ResourceStateDeleting, ResourceStateDisabled, ResourceStateDisabling, ResourceStateEnabled, ResourceStateEnabling} +} + +// ResourceType enumerates the values for resource type. +type ResourceType string + +const ( + // MicrosoftNetworkfrontDoors ... + MicrosoftNetworkfrontDoors ResourceType = "Microsoft.Network/frontDoors" + // MicrosoftNetworkfrontDoorsfrontendEndpoints ... + MicrosoftNetworkfrontDoorsfrontendEndpoints ResourceType = "Microsoft.Network/frontDoors/frontendEndpoints" +) + +// PossibleResourceTypeValues returns an array of possible values for the ResourceType const type. +func PossibleResourceTypeValues() []ResourceType { + return []ResourceType{MicrosoftNetworkfrontDoors, MicrosoftNetworkfrontDoorsfrontendEndpoints} +} + +// RoutingRuleEnabledState enumerates the values for routing rule enabled state. +type RoutingRuleEnabledState string + +const ( + // RoutingRuleEnabledStateDisabled ... + RoutingRuleEnabledStateDisabled RoutingRuleEnabledState = "Disabled" + // RoutingRuleEnabledStateEnabled ... + RoutingRuleEnabledStateEnabled RoutingRuleEnabledState = "Enabled" +) + +// PossibleRoutingRuleEnabledStateValues returns an array of possible values for the RoutingRuleEnabledState const type. +func PossibleRoutingRuleEnabledStateValues() []RoutingRuleEnabledState { + return []RoutingRuleEnabledState{RoutingRuleEnabledStateDisabled, RoutingRuleEnabledStateEnabled} +} + +// RuleType enumerates the values for rule type. +type RuleType string + +const ( + // MatchRule ... + MatchRule RuleType = "MatchRule" + // RateLimitRule ... + RateLimitRule RuleType = "RateLimitRule" +) + +// PossibleRuleTypeValues returns an array of possible values for the RuleType const type. +func PossibleRuleTypeValues() []RuleType { + return []RuleType{MatchRule, RateLimitRule} +} + +// SessionAffinityEnabledState enumerates the values for session affinity enabled state. +type SessionAffinityEnabledState string + +const ( + // SessionAffinityEnabledStateDisabled ... + SessionAffinityEnabledStateDisabled SessionAffinityEnabledState = "Disabled" + // SessionAffinityEnabledStateEnabled ... + SessionAffinityEnabledStateEnabled SessionAffinityEnabledState = "Enabled" +) + +// PossibleSessionAffinityEnabledStateValues returns an array of possible values for the SessionAffinityEnabledState const type. +func PossibleSessionAffinityEnabledStateValues() []SessionAffinityEnabledState { + return []SessionAffinityEnabledState{SessionAffinityEnabledStateDisabled, SessionAffinityEnabledStateEnabled} +} + +// State enumerates the values for state. +type State string + +const ( + // StateDisabled ... + StateDisabled State = "Disabled" + // StateEnabled ... + StateEnabled State = "Enabled" +) + +// PossibleStateValues returns an array of possible values for the State const type. +func PossibleStateValues() []State { + return []State{StateDisabled, StateEnabled} +} + +// TimeseriesAggregationInterval enumerates the values for timeseries aggregation interval. +type TimeseriesAggregationInterval string + +const ( + // TimeseriesAggregationIntervalDaily ... + TimeseriesAggregationIntervalDaily TimeseriesAggregationInterval = "Daily" + // TimeseriesAggregationIntervalHourly ... + TimeseriesAggregationIntervalHourly TimeseriesAggregationInterval = "Hourly" +) + +// PossibleTimeseriesAggregationIntervalValues returns an array of possible values for the TimeseriesAggregationInterval const type. +func PossibleTimeseriesAggregationIntervalValues() []TimeseriesAggregationInterval { + return []TimeseriesAggregationInterval{TimeseriesAggregationIntervalDaily, TimeseriesAggregationIntervalHourly} +} + +// TimeseriesType enumerates the values for timeseries type. +type TimeseriesType string + +const ( + // LatencyP50 ... + LatencyP50 TimeseriesType = "LatencyP50" + // LatencyP75 ... + LatencyP75 TimeseriesType = "LatencyP75" + // LatencyP95 ... + LatencyP95 TimeseriesType = "LatencyP95" + // MeasurementCounts ... + MeasurementCounts TimeseriesType = "MeasurementCounts" +) + +// PossibleTimeseriesTypeValues returns an array of possible values for the TimeseriesType const type. +func PossibleTimeseriesTypeValues() []TimeseriesType { + return []TimeseriesType{LatencyP50, LatencyP75, LatencyP95, MeasurementCounts} +} + +// TransformType enumerates the values for transform type. +type TransformType string + +const ( + // Lowercase ... + Lowercase TransformType = "Lowercase" + // RemoveNulls ... + RemoveNulls TransformType = "RemoveNulls" + // Trim ... + Trim TransformType = "Trim" + // Uppercase ... + Uppercase TransformType = "Uppercase" + // URLDecode ... + URLDecode TransformType = "UrlDecode" + // URLEncode ... + URLEncode TransformType = "UrlEncode" +) + +// PossibleTransformTypeValues returns an array of possible values for the TransformType const type. +func PossibleTransformTypeValues() []TransformType { + return []TransformType{Lowercase, RemoveNulls, Trim, Uppercase, URLDecode, URLEncode} +} + +// AzureAsyncOperationResult the response body contains the status of the specified asynchronous operation, +// indicating whether it has succeeded, is in progress, or has failed. Note that this status is distinct +// from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous +// operation succeeded, the response body includes the HTTP status code for the successful request. If the +// asynchronous operation failed, the response body includes the HTTP status code for the failed request +// and error information regarding the failure. +type AzureAsyncOperationResult struct { + // Status - Status of the Azure async operation. Possible values are: 'InProgress', 'Succeeded', and 'Failed'. Possible values include: 'InProgress', 'Succeeded', 'Failed' + Status NetworkOperationStatus `json:"status,omitempty"` + Error *Error `json:"error,omitempty"` +} + +// Backend backend address of a frontDoor load balancer. +type Backend struct { + // Address - Location of the backend (IP address or FQDN) + Address *string `json:"address,omitempty"` + // HTTPPort - The HTTP TCP port number. Must be between 1 and 65535. + HTTPPort *int32 `json:"httpPort,omitempty"` + // HTTPSPort - The HTTPS TCP port number. Must be between 1 and 65535. + HTTPSPort *int32 `json:"httpsPort,omitempty"` + // EnabledState - Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + EnabledState BackendEnabledState `json:"enabledState,omitempty"` + // Priority - Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. + Priority *int32 `json:"priority,omitempty"` + // Weight - Weight of this endpoint for load balancing purposes. + Weight *int32 `json:"weight,omitempty"` + // BackendHostHeader - The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host. + BackendHostHeader *string `json:"backendHostHeader,omitempty"` +} + +// BackendPool a backend pool is a collection of backends that can be routed to. +type BackendPool struct { + // BackendPoolProperties - Properties of the Front Door Backend Pool + *BackendPoolProperties `json:"properties,omitempty"` + // Name - Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for BackendPool. +func (bp BackendPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bp.BackendPoolProperties != nil { + objectMap["properties"] = bp.BackendPoolProperties + } + if bp.Name != nil { + objectMap["name"] = bp.Name + } + if bp.ID != nil { + objectMap["id"] = bp.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for BackendPool struct. +func (bp *BackendPool) 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 backendPoolProperties BackendPoolProperties + err = json.Unmarshal(*v, &backendPoolProperties) + if err != nil { + return err + } + bp.BackendPoolProperties = &backendPoolProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + bp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bp.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + bp.ID = &ID + } + } + } + + return nil +} + +// BackendPoolListResult result of the request to list Backend Pools. It contains a list of Backend Pools +// objects and a URL link to get the next set of results. +type BackendPoolListResult struct { + // Value - READ-ONLY; List of Backend Pools within a Front Door. + Value *[]BackendPool `json:"value,omitempty"` + // NextLink - URL to get the next set of BackendPool objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// BackendPoolProperties the JSON object that contains the properties required to create a routing rule. +type BackendPoolProperties struct { + // ResourceState - Resource status. Possible values include: 'ResourceStateCreating', 'ResourceStateEnabling', 'ResourceStateEnabled', 'ResourceStateDisabling', 'ResourceStateDisabled', 'ResourceStateDeleting' + ResourceState ResourceState `json:"resourceState,omitempty"` + // Backends - The set of backends for this pool + Backends *[]Backend `json:"backends,omitempty"` + // LoadBalancingSettings - Load balancing settings for a backend pool + LoadBalancingSettings *SubResource `json:"loadBalancingSettings,omitempty"` + // HealthProbeSettings - L7 health probe settings for a backend pool + HealthProbeSettings *SubResource `json:"healthProbeSettings,omitempty"` +} + +// BackendPoolsSettings settings that apply to all backend pools. +type BackendPoolsSettings struct { + // EnforceCertificateNameCheck - Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests. Possible values include: 'EnforceCertificateNameCheckEnabledStateEnabled', 'EnforceCertificateNameCheckEnabledStateDisabled' + EnforceCertificateNameCheck EnforceCertificateNameCheckEnabledState `json:"enforceCertificateNameCheck,omitempty"` + // SendRecvTimeoutSeconds - Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns. + SendRecvTimeoutSeconds *int32 `json:"sendRecvTimeoutSeconds,omitempty"` +} + +// BackendPoolUpdateParameters a collection of backends that can be routed to. +type BackendPoolUpdateParameters struct { + // Backends - The set of backends for this pool + Backends *[]Backend `json:"backends,omitempty"` + // LoadBalancingSettings - Load balancing settings for a backend pool + LoadBalancingSettings *SubResource `json:"loadBalancingSettings,omitempty"` + // HealthProbeSettings - L7 health probe settings for a backend pool + HealthProbeSettings *SubResource `json:"healthProbeSettings,omitempty"` +} + +// CacheConfiguration caching settings for a caching-type route. To disable caching, do not provide a +// cacheConfiguration object. +type CacheConfiguration struct { + // QueryParameterStripDirective - Treatment of URL query terms when forming the cache key. Possible values include: 'StripNone', 'StripAll' + QueryParameterStripDirective Query `json:"queryParameterStripDirective,omitempty"` + // DynamicCompression - Whether to use dynamic compression for cached content. Possible values include: 'DynamicCompressionEnabledEnabled', 'DynamicCompressionEnabledDisabled' + DynamicCompression DynamicCompressionEnabled `json:"dynamicCompression,omitempty"` +} + +// CertificateSourceParameters parameters required for enabling SSL with Front Door-managed certificates +type CertificateSourceParameters struct { + // CertificateType - Defines the type of the certificate used for secure connections to a frontendEndpoint. Possible values include: 'Dedicated' + CertificateType CertificateType `json:"certificateType,omitempty"` +} + +// CheckNameAvailabilityInput input of CheckNameAvailability API. +type CheckNameAvailabilityInput struct { + // Name - The resource name to validate. + Name *string `json:"name,omitempty"` + // Type - The type of the resource whose name is to be validated. Possible values include: 'MicrosoftNetworkfrontDoors', 'MicrosoftNetworkfrontDoorsfrontendEndpoints' + Type ResourceType `json:"type,omitempty"` +} + +// CheckNameAvailabilityOutput output of check name availability API. +type CheckNameAvailabilityOutput struct { + autorest.Response `json:"-"` + // NameAvailability - READ-ONLY; Indicates whether the name is available. Possible values include: 'Available', 'Unavailable' + NameAvailability Availability `json:"nameAvailability,omitempty"` + // Reason - READ-ONLY; The reason why the name is not available. + Reason *string `json:"reason,omitempty"` + // Message - READ-ONLY; The detailed error message describing why the name is not available. + Message *string `json:"message,omitempty"` +} + +// CustomHTTPSConfiguration https settings for a domain +type CustomHTTPSConfiguration struct { + // CertificateSource - Defines the source of the SSL certificate. Possible values include: 'CertificateSourceAzureKeyVault', 'CertificateSourceFrontDoor' + CertificateSource CertificateSource `json:"certificateSource,omitempty"` + // ProtocolType - Defines the TLS extension protocol that is used for secure delivery + ProtocolType *string `json:"protocolType,omitempty"` + // MinimumTLSVersion - The minimum TLS version required from the clients to establish an SSL handshake with Front Door. Possible values include: 'OneFullStopZero', 'OneFullStopTwo' + MinimumTLSVersion MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + // KeyVaultCertificateSourceParameters - KeyVault certificate source parameters (if certificateSource=AzureKeyVault) + *KeyVaultCertificateSourceParameters `json:"keyVaultCertificateSourceParameters,omitempty"` + // CertificateSourceParameters - Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor) + *CertificateSourceParameters `json:"frontDoorCertificateSourceParameters,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomHTTPSConfiguration. +func (chc CustomHTTPSConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if chc.CertificateSource != "" { + objectMap["certificateSource"] = chc.CertificateSource + } + if chc.ProtocolType != nil { + objectMap["protocolType"] = chc.ProtocolType + } + if chc.MinimumTLSVersion != "" { + objectMap["minimumTlsVersion"] = chc.MinimumTLSVersion + } + if chc.KeyVaultCertificateSourceParameters != nil { + objectMap["keyVaultCertificateSourceParameters"] = chc.KeyVaultCertificateSourceParameters + } + if chc.CertificateSourceParameters != nil { + objectMap["frontDoorCertificateSourceParameters"] = chc.CertificateSourceParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for CustomHTTPSConfiguration struct. +func (chc *CustomHTTPSConfiguration) 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 "certificateSource": + if v != nil { + var certificateSource CertificateSource + err = json.Unmarshal(*v, &certificateSource) + if err != nil { + return err + } + chc.CertificateSource = certificateSource + } + case "protocolType": + if v != nil { + var protocolType string + err = json.Unmarshal(*v, &protocolType) + if err != nil { + return err + } + chc.ProtocolType = &protocolType + } + case "minimumTlsVersion": + if v != nil { + var minimumTLSVersion MinimumTLSVersion + err = json.Unmarshal(*v, &minimumTLSVersion) + if err != nil { + return err + } + chc.MinimumTLSVersion = minimumTLSVersion + } + case "keyVaultCertificateSourceParameters": + if v != nil { + var keyVaultCertificateSourceParameters KeyVaultCertificateSourceParameters + err = json.Unmarshal(*v, &keyVaultCertificateSourceParameters) + if err != nil { + return err + } + chc.KeyVaultCertificateSourceParameters = &keyVaultCertificateSourceParameters + } + case "frontDoorCertificateSourceParameters": + if v != nil { + var certificateSourceParameters CertificateSourceParameters + err = json.Unmarshal(*v, &certificateSourceParameters) + if err != nil { + return err + } + chc.CertificateSourceParameters = &certificateSourceParameters + } + } + } + + return nil +} + +// CustomRule defines contents of a web application rule +type CustomRule struct { + // Name - Describes the name of the rule. + Name *string `json:"name,omitempty"` + // Priority - Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. + Priority *int32 `json:"priority,omitempty"` + // EnabledState - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. Possible values include: 'CustomRuleEnabledStateDisabled', 'CustomRuleEnabledStateEnabled' + EnabledState CustomRuleEnabledState `json:"enabledState,omitempty"` + // RuleType - Describes type of rule. Possible values include: 'MatchRule', 'RateLimitRule' + RuleType RuleType `json:"ruleType,omitempty"` + // RateLimitDurationInMinutes - Time window for resetting the rate limit count. Default is 1 minute. + RateLimitDurationInMinutes *int32 `json:"rateLimitDurationInMinutes,omitempty"` + // RateLimitThreshold - Number of allowed requests per client within the time window. + RateLimitThreshold *int32 `json:"rateLimitThreshold,omitempty"` + // MatchConditions - List of match conditions. + MatchConditions *[]MatchCondition `json:"matchConditions,omitempty"` + // Action - Describes what action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + Action ActionType `json:"action,omitempty"` +} + +// CustomRuleList defines contents of custom rules +type CustomRuleList struct { + // Rules - List of rules + Rules *[]CustomRule `json:"rules,omitempty"` +} + +// Endpoint defines the endpoint properties +type Endpoint struct { + // Name - The name of the endpoint + Name *string `json:"name,omitempty"` + // Endpoint - The endpoint URL + Endpoint *string `json:"endpoint,omitempty"` +} + +// EndpointsPurgeContentFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type EndpointsPurgeContentFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *EndpointsPurgeContentFuture) Result(client EndpointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.EndpointsPurgeContentFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.EndpointsPurgeContentFuture") + return + } + ar.Response = future.Response() + return +} + +// Error ... +type Error struct { + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Target *string `json:"target,omitempty"` + Details *[]ErrorDetails `json:"details,omitempty"` + InnerError *string `json:"innerError,omitempty"` +} + +// ErrorDetails ... +type ErrorDetails struct { + Code *string `json:"code,omitempty"` + Target *string `json:"target,omitempty"` + Message *string `json:"message,omitempty"` +} + +// ErrorResponse error response indicates Front Door service is not able to process the incoming request. +// The reason is provided in the error message. +type ErrorResponse struct { + // Code - READ-ONLY; Error code. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; Error message indicating why the operation failed. + Message *string `json:"message,omitempty"` +} + +// Experiment defines the properties of an Experiment +type Experiment struct { + autorest.Response `json:"-"` + // ExperimentProperties - The properties of an Experiment + *ExperimentProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for Experiment. +func (e Experiment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if e.ExperimentProperties != nil { + objectMap["properties"] = e.ExperimentProperties + } + if e.Location != nil { + objectMap["location"] = e.Location + } + if e.Tags != nil { + objectMap["tags"] = e.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Experiment struct. +func (e *Experiment) 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 experimentProperties ExperimentProperties + err = json.Unmarshal(*v, &experimentProperties) + if err != nil { + return err + } + e.ExperimentProperties = &experimentProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + e.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + e.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + e.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + e.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + e.Tags = tags + } + } + } + + return nil +} + +// ExperimentList defines a list of Experiments. It contains a list of Experiment objects and a URL link to +// get the next set of results. +type ExperimentList struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of Experiments within a resource group. + Value *[]Experiment `json:"value,omitempty"` + // NextLink - URL to get the next set of Experiment objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ExperimentListIterator provides access to a complete listing of Experiment values. +type ExperimentListIterator struct { + i int + page ExperimentListPage +} + +// 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 *ExperimentListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExperimentListIterator.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 *ExperimentListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ExperimentListIterator) 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 ExperimentListIterator) Response() ExperimentList { + 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 ExperimentListIterator) Value() Experiment { + if !iter.page.NotDone() { + return Experiment{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ExperimentListIterator type. +func NewExperimentListIterator(page ExperimentListPage) ExperimentListIterator { + return ExperimentListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (el ExperimentList) IsEmpty() bool { + return el.Value == nil || len(*el.Value) == 0 +} + +// experimentListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (el ExperimentList) experimentListPreparer(ctx context.Context) (*http.Request, error) { + if el.NextLink == nil || len(to.String(el.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(el.NextLink))) +} + +// ExperimentListPage contains a page of Experiment values. +type ExperimentListPage struct { + fn func(context.Context, ExperimentList) (ExperimentList, error) + el ExperimentList +} + +// 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 *ExperimentListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExperimentListPage.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.el) + if err != nil { + return err + } + page.el = 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 *ExperimentListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ExperimentListPage) NotDone() bool { + return !page.el.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ExperimentListPage) Response() ExperimentList { + return page.el +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ExperimentListPage) Values() []Experiment { + if page.el.IsEmpty() { + return nil + } + return *page.el.Value +} + +// Creates a new instance of the ExperimentListPage type. +func NewExperimentListPage(getNextPage func(context.Context, ExperimentList) (ExperimentList, error)) ExperimentListPage { + return ExperimentListPage{fn: getNextPage} +} + +// ExperimentProperties defines the properties of an experiment +type ExperimentProperties struct { + // Description - The description of the details or intents of the Experiment + Description *string `json:"description,omitempty"` + // EndpointA - The endpoint A of an experiment + EndpointA *Endpoint `json:"endpointA,omitempty"` + // EndpointB - The endpoint B of an experiment + EndpointB *Endpoint `json:"endpointB,omitempty"` + // EnabledState - The state of the Experiment. Possible values include: 'StateEnabled', 'StateDisabled' + EnabledState State `json:"enabledState,omitempty"` + // ResourceState - Resource status. Possible values include: 'NetworkExperimentResourceStateCreating', 'NetworkExperimentResourceStateEnabling', 'NetworkExperimentResourceStateEnabled', 'NetworkExperimentResourceStateDisabling', 'NetworkExperimentResourceStateDisabled', 'NetworkExperimentResourceStateDeleting' + ResourceState NetworkExperimentResourceState `json:"resourceState,omitempty"` + // Status - READ-ONLY; The description of Experiment status from the server side + Status *string `json:"status,omitempty"` + // ScriptFileURI - READ-ONLY; The uri to the Script used in the Experiment + ScriptFileURI *string `json:"scriptFileUri,omitempty"` +} + +// ExperimentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ExperimentsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExperimentsCreateOrUpdateFuture) Result(client ExperimentsClient) (e Experiment, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.ExperimentsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if e.Response.Response, err = future.GetResult(sender); err == nil && e.Response.Response.StatusCode != http.StatusNoContent { + e, err = client.CreateOrUpdateResponder(e.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsCreateOrUpdateFuture", "Result", e.Response.Response, "Failure responding to request") + } + } + return +} + +// ExperimentsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ExperimentsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExperimentsDeleteFuture) Result(client ExperimentsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.ExperimentsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// ExperimentsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ExperimentsUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ExperimentsUpdateFuture) Result(client ExperimentsClient) (e Experiment, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.ExperimentsUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if e.Response.Response, err = future.GetResult(sender); err == nil && e.Response.Response.StatusCode != http.StatusNoContent { + e, err = client.UpdateResponder(e.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ExperimentsUpdateFuture", "Result", e.Response.Response, "Failure responding to request") + } + } + return +} + +// ExperimentUpdateModel defines modifiable attributes of an Experiment +type ExperimentUpdateModel struct { + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ExperimentUpdateProperties - The properties of a Profile + *ExperimentUpdateProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExperimentUpdateModel. +func (eum ExperimentUpdateModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if eum.Tags != nil { + objectMap["tags"] = eum.Tags + } + if eum.ExperimentUpdateProperties != nil { + objectMap["properties"] = eum.ExperimentUpdateProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExperimentUpdateModel struct. +func (eum *ExperimentUpdateModel) 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 "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + eum.Tags = tags + } + case "properties": + if v != nil { + var experimentUpdateProperties ExperimentUpdateProperties + err = json.Unmarshal(*v, &experimentUpdateProperties) + if err != nil { + return err + } + eum.ExperimentUpdateProperties = &experimentUpdateProperties + } + } + } + + return nil +} + +// ExperimentUpdateProperties defines the properties of an experiment +type ExperimentUpdateProperties struct { + // Description - The description of the intent or details of the Experiment + Description *string `json:"description,omitempty"` + // EnabledState - The state of the Experiment. Possible values include: 'StateEnabled', 'StateDisabled' + EnabledState State `json:"enabledState,omitempty"` +} + +// ForwardingConfiguration describes Forwarding Route. +type ForwardingConfiguration struct { + // CustomForwardingPath - A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path. + CustomForwardingPath *string `json:"customForwardingPath,omitempty"` + // ForwardingProtocol - Protocol this rule will use when forwarding traffic to backends. Possible values include: 'HTTPOnly', 'HTTPSOnly', 'MatchRequest' + ForwardingProtocol ForwardingProtocol `json:"forwardingProtocol,omitempty"` + // CacheConfiguration - The caching configuration associated with this rule. + CacheConfiguration *CacheConfiguration `json:"cacheConfiguration,omitempty"` + // BackendPool - A reference to the BackendPool which this rule routes to. + BackendPool *SubResource `json:"backendPool,omitempty"` + // OdataType - Possible values include: 'OdataTypeRouteConfiguration', 'OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration', 'OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration' + OdataType OdataType `json:"@odata.type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ForwardingConfiguration. +func (fc ForwardingConfiguration) MarshalJSON() ([]byte, error) { + fc.OdataType = OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration + objectMap := make(map[string]interface{}) + if fc.CustomForwardingPath != nil { + objectMap["customForwardingPath"] = fc.CustomForwardingPath + } + if fc.ForwardingProtocol != "" { + objectMap["forwardingProtocol"] = fc.ForwardingProtocol + } + if fc.CacheConfiguration != nil { + objectMap["cacheConfiguration"] = fc.CacheConfiguration + } + if fc.BackendPool != nil { + objectMap["backendPool"] = fc.BackendPool + } + if fc.OdataType != "" { + objectMap["@odata.type"] = fc.OdataType + } + return json.Marshal(objectMap) +} + +// AsForwardingConfiguration is the BasicRouteConfiguration implementation for ForwardingConfiguration. +func (fc ForwardingConfiguration) AsForwardingConfiguration() (*ForwardingConfiguration, bool) { + return &fc, true +} + +// AsRedirectConfiguration is the BasicRouteConfiguration implementation for ForwardingConfiguration. +func (fc ForwardingConfiguration) AsRedirectConfiguration() (*RedirectConfiguration, bool) { + return nil, false +} + +// AsRouteConfiguration is the BasicRouteConfiguration implementation for ForwardingConfiguration. +func (fc ForwardingConfiguration) AsRouteConfiguration() (*RouteConfiguration, bool) { + return nil, false +} + +// AsBasicRouteConfiguration is the BasicRouteConfiguration implementation for ForwardingConfiguration. +func (fc ForwardingConfiguration) AsBasicRouteConfiguration() (BasicRouteConfiguration, bool) { + return &fc, true +} + +// FrontDoor front Door represents a collection of backend endpoints to route traffic to along with rules +// that specify how traffic is sent there. +type FrontDoor struct { + autorest.Response `json:"-"` + // Properties - Properties of the Front Door Load Balancer + *Properties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for FrontDoor. +func (fd FrontDoor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fd.Properties != nil { + objectMap["properties"] = fd.Properties + } + if fd.Location != nil { + objectMap["location"] = fd.Location + } + if fd.Tags != nil { + objectMap["tags"] = fd.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FrontDoor struct. +func (fd *FrontDoor) 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 properties Properties + err = json.Unmarshal(*v, &properties) + if err != nil { + return err + } + fd.Properties = &properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fd.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fd.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fd.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + fd.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + fd.Tags = tags + } + } + } + + return nil +} + +// FrontDoorsCreateOrUpdateFutureType an abstraction for monitoring and retrieving the results of a +// long-running operation. +type FrontDoorsCreateOrUpdateFutureType struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FrontDoorsCreateOrUpdateFutureType) Result(client FrontDoorsClient) (fd FrontDoor, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsCreateOrUpdateFutureType", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.FrontDoorsCreateOrUpdateFutureType") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if fd.Response.Response, err = future.GetResult(sender); err == nil && fd.Response.Response.StatusCode != http.StatusNoContent { + fd, err = client.CreateOrUpdateResponder(fd.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsCreateOrUpdateFutureType", "Result", fd.Response.Response, "Failure responding to request") + } + } + return +} + +// FrontDoorsDeleteFutureType an abstraction for monitoring and retrieving the results of a long-running +// operation. +type FrontDoorsDeleteFutureType struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FrontDoorsDeleteFutureType) Result(client FrontDoorsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontDoorsDeleteFutureType", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.FrontDoorsDeleteFutureType") + return + } + ar.Response = future.Response() + return +} + +// FrontendEndpoint a frontend endpoint used for routing. +type FrontendEndpoint struct { + autorest.Response `json:"-"` + // FrontendEndpointProperties - Properties of the Frontend endpoint + *FrontendEndpointProperties `json:"properties,omitempty"` + // Name - Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for FrontendEndpoint. +func (fe FrontendEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fe.FrontendEndpointProperties != nil { + objectMap["properties"] = fe.FrontendEndpointProperties + } + if fe.Name != nil { + objectMap["name"] = fe.Name + } + if fe.ID != nil { + objectMap["id"] = fe.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FrontendEndpoint struct. +func (fe *FrontendEndpoint) 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 frontendEndpointProperties FrontendEndpointProperties + err = json.Unmarshal(*v, &frontendEndpointProperties) + if err != nil { + return err + } + fe.FrontendEndpointProperties = &frontendEndpointProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fe.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fe.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fe.ID = &ID + } + } + } + + return nil +} + +// FrontendEndpointLink defines the Resource ID for a Frontend Endpoint. +type FrontendEndpointLink struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// FrontendEndpointProperties the JSON object that contains the properties required to create a frontend +// endpoint. +type FrontendEndpointProperties struct { + // ResourceState - Resource status. Possible values include: 'ResourceStateCreating', 'ResourceStateEnabling', 'ResourceStateEnabled', 'ResourceStateDisabling', 'ResourceStateDisabled', 'ResourceStateDeleting' + ResourceState ResourceState `json:"resourceState,omitempty"` + // CustomHTTPSProvisioningState - READ-ONLY; Provisioning status of Custom Https of the frontendEndpoint. Possible values include: 'CustomHTTPSProvisioningStateEnabling', 'CustomHTTPSProvisioningStateEnabled', 'CustomHTTPSProvisioningStateDisabling', 'CustomHTTPSProvisioningStateDisabled', 'CustomHTTPSProvisioningStateFailed' + CustomHTTPSProvisioningState CustomHTTPSProvisioningState `json:"customHttpsProvisioningState,omitempty"` + // CustomHTTPSProvisioningSubstate - READ-ONLY; Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. Possible values include: 'SubmittingDomainControlValidationRequest', 'PendingDomainControlValidationREquestApproval', 'DomainControlValidationRequestApproved', 'DomainControlValidationRequestRejected', 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', 'CertificateDeleted' + CustomHTTPSProvisioningSubstate CustomHTTPSProvisioningSubstate `json:"customHttpsProvisioningSubstate,omitempty"` + // CustomHTTPSConfiguration - READ-ONLY; The configuration specifying how to enable HTTPS + CustomHTTPSConfiguration *CustomHTTPSConfiguration `json:"customHttpsConfiguration,omitempty"` + // HostName - The host name of the frontendEndpoint. Must be a domain name. + HostName *string `json:"hostName,omitempty"` + // SessionAffinityEnabledState - Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'. Possible values include: 'SessionAffinityEnabledStateEnabled', 'SessionAffinityEnabledStateDisabled' + SessionAffinityEnabledState SessionAffinityEnabledState `json:"sessionAffinityEnabledState,omitempty"` + // SessionAffinityTTLSeconds - UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + SessionAffinityTTLSeconds *int32 `json:"sessionAffinityTtlSeconds,omitempty"` + // WebApplicationFirewallPolicyLink - Defines the Web Application Firewall policy for each host (if applicable) + WebApplicationFirewallPolicyLink *FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink `json:"webApplicationFirewallPolicyLink,omitempty"` +} + +// FrontendEndpointsDisableHTTPSFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type FrontendEndpointsDisableHTTPSFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FrontendEndpointsDisableHTTPSFuture) Result(client FrontendEndpointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsDisableHTTPSFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.FrontendEndpointsDisableHTTPSFuture") + return + } + ar.Response = future.Response() + return +} + +// FrontendEndpointsEnableHTTPSFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type FrontendEndpointsEnableHTTPSFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *FrontendEndpointsEnableHTTPSFuture) Result(client FrontendEndpointsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.FrontendEndpointsEnableHTTPSFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.FrontendEndpointsEnableHTTPSFuture") + return + } + ar.Response = future.Response() + return +} + +// FrontendEndpointsListResult result of the request to list frontend endpoints. It contains a list of +// Frontend endpoint objects and a URL link to get the next set of results. +type FrontendEndpointsListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of Frontend endpoints within a Front Door. + Value *[]FrontendEndpoint `json:"value,omitempty"` + // NextLink - URL to get the next set of frontend endpoints if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// FrontendEndpointsListResultIterator provides access to a complete listing of FrontendEndpoint values. +type FrontendEndpointsListResultIterator struct { + i int + page FrontendEndpointsListResultPage +} + +// 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 *FrontendEndpointsListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsListResultIterator.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 *FrontendEndpointsListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter FrontendEndpointsListResultIterator) 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 FrontendEndpointsListResultIterator) Response() FrontendEndpointsListResult { + 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 FrontendEndpointsListResultIterator) Value() FrontendEndpoint { + if !iter.page.NotDone() { + return FrontendEndpoint{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the FrontendEndpointsListResultIterator type. +func NewFrontendEndpointsListResultIterator(page FrontendEndpointsListResultPage) FrontendEndpointsListResultIterator { + return FrontendEndpointsListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (felr FrontendEndpointsListResult) IsEmpty() bool { + return felr.Value == nil || len(*felr.Value) == 0 +} + +// frontendEndpointsListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (felr FrontendEndpointsListResult) frontendEndpointsListResultPreparer(ctx context.Context) (*http.Request, error) { + if felr.NextLink == nil || len(to.String(felr.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(felr.NextLink))) +} + +// FrontendEndpointsListResultPage contains a page of FrontendEndpoint values. +type FrontendEndpointsListResultPage struct { + fn func(context.Context, FrontendEndpointsListResult) (FrontendEndpointsListResult, error) + felr FrontendEndpointsListResult +} + +// 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 *FrontendEndpointsListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FrontendEndpointsListResultPage.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.felr) + if err != nil { + return err + } + page.felr = 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 *FrontendEndpointsListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page FrontendEndpointsListResultPage) NotDone() bool { + return !page.felr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page FrontendEndpointsListResultPage) Response() FrontendEndpointsListResult { + return page.felr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page FrontendEndpointsListResultPage) Values() []FrontendEndpoint { + if page.felr.IsEmpty() { + return nil + } + return *page.felr.Value +} + +// Creates a new instance of the FrontendEndpointsListResultPage type. +func NewFrontendEndpointsListResultPage(getNextPage func(context.Context, FrontendEndpointsListResult) (FrontendEndpointsListResult, error)) FrontendEndpointsListResultPage { + return FrontendEndpointsListResultPage{fn: getNextPage} +} + +// FrontendEndpointUpdateParameters frontend endpoint used in routing rule +type FrontendEndpointUpdateParameters struct { + // HostName - The host name of the frontendEndpoint. Must be a domain name. + HostName *string `json:"hostName,omitempty"` + // SessionAffinityEnabledState - Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'. Possible values include: 'SessionAffinityEnabledStateEnabled', 'SessionAffinityEnabledStateDisabled' + SessionAffinityEnabledState SessionAffinityEnabledState `json:"sessionAffinityEnabledState,omitempty"` + // SessionAffinityTTLSeconds - UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable. + SessionAffinityTTLSeconds *int32 `json:"sessionAffinityTtlSeconds,omitempty"` + // WebApplicationFirewallPolicyLink - Defines the Web Application Firewall policy for each host (if applicable) + WebApplicationFirewallPolicyLink *FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink `json:"webApplicationFirewallPolicyLink,omitempty"` +} + +// FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink defines the Web Application Firewall +// policy for each host (if applicable) +type FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// HealthProbeSettingsListResult result of the request to list HealthProbeSettings. It contains a list of +// HealthProbeSettings objects and a URL link to get the next set of results. +type HealthProbeSettingsListResult struct { + // Value - READ-ONLY; List of HealthProbeSettings within a Front Door. + Value *[]HealthProbeSettingsModel `json:"value,omitempty"` + // NextLink - URL to get the next set of HealthProbeSettings objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// HealthProbeSettingsModel load balancing settings for a backend pool +type HealthProbeSettingsModel struct { + // HealthProbeSettingsProperties - Properties of the health probe settings + *HealthProbeSettingsProperties `json:"properties,omitempty"` + // Name - Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for HealthProbeSettingsModel. +func (hpsm HealthProbeSettingsModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hpsm.HealthProbeSettingsProperties != nil { + objectMap["properties"] = hpsm.HealthProbeSettingsProperties + } + if hpsm.Name != nil { + objectMap["name"] = hpsm.Name + } + if hpsm.ID != nil { + objectMap["id"] = hpsm.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for HealthProbeSettingsModel struct. +func (hpsm *HealthProbeSettingsModel) 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 healthProbeSettingsProperties HealthProbeSettingsProperties + err = json.Unmarshal(*v, &healthProbeSettingsProperties) + if err != nil { + return err + } + hpsm.HealthProbeSettingsProperties = &healthProbeSettingsProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + hpsm.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hpsm.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + hpsm.ID = &ID + } + } + } + + return nil +} + +// HealthProbeSettingsProperties the JSON object that contains the properties required to create a health +// probe settings. +type HealthProbeSettingsProperties struct { + // ResourceState - Resource status. Possible values include: 'ResourceStateCreating', 'ResourceStateEnabling', 'ResourceStateEnabled', 'ResourceStateDisabling', 'ResourceStateDisabled', 'ResourceStateDeleting' + ResourceState ResourceState `json:"resourceState,omitempty"` + // Path - The path to use for the health probe. Default is / + Path *string `json:"path,omitempty"` + // Protocol - Protocol scheme to use for this probe. Possible values include: 'HTTP', 'HTTPS' + Protocol Protocol `json:"protocol,omitempty"` + // IntervalInSeconds - The number of seconds between health probes. + IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` + // HealthProbeMethod - Configures which HTTP method to use to probe the backends defined under backendPools. Possible values include: 'GET', 'HEAD' + HealthProbeMethod HealthProbeMethod `json:"healthProbeMethod,omitempty"` + // EnabledState - Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. Possible values include: 'HealthProbeEnabledEnabled', 'HealthProbeEnabledDisabled' + EnabledState HealthProbeEnabled `json:"enabledState,omitempty"` +} + +// HealthProbeSettingsUpdateParameters l7 health probe settings for a backend pool +type HealthProbeSettingsUpdateParameters struct { + // Path - The path to use for the health probe. Default is / + Path *string `json:"path,omitempty"` + // Protocol - Protocol scheme to use for this probe. Possible values include: 'HTTP', 'HTTPS' + Protocol Protocol `json:"protocol,omitempty"` + // IntervalInSeconds - The number of seconds between health probes. + IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` + // HealthProbeMethod - Configures which HTTP method to use to probe the backends defined under backendPools. Possible values include: 'GET', 'HEAD' + HealthProbeMethod HealthProbeMethod `json:"healthProbeMethod,omitempty"` + // EnabledState - Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. Possible values include: 'HealthProbeEnabledEnabled', 'HealthProbeEnabledDisabled' + EnabledState HealthProbeEnabled `json:"enabledState,omitempty"` +} + +// KeyVaultCertificateSourceParameters parameters required for bring-your-own-certification via Key Vault +type KeyVaultCertificateSourceParameters struct { + // Vault - The Key Vault containing the SSL certificate + Vault *KeyVaultCertificateSourceParametersVault `json:"vault,omitempty"` + // SecretName - The name of the Key Vault secret representing the full certificate PFX + SecretName *string `json:"secretName,omitempty"` + // SecretVersion - The version of the Key Vault secret representing the full certificate PFX + SecretVersion *string `json:"secretVersion,omitempty"` +} + +// KeyVaultCertificateSourceParametersVault the Key Vault containing the SSL certificate +type KeyVaultCertificateSourceParametersVault struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// LatencyMetric defines the properties of a latency metric used in the latency scorecard +type LatencyMetric struct { + // Name - READ-ONLY; The name of the Latency Metric + Name *string `json:"name,omitempty"` + // EndDateTimeUTC - READ-ONLY; The end time of the Latency Scorecard in UTC + EndDateTimeUTC *string `json:"endDateTimeUTC,omitempty"` + // AValue - READ-ONLY; The metric value of the A endpoint + AValue *float64 `json:"aValue,omitempty"` + // BValue - READ-ONLY; The metric value of the B endpoint + BValue *float64 `json:"bValue,omitempty"` + // Delta - READ-ONLY; The difference in value between endpoint A and B + Delta *float64 `json:"delta,omitempty"` + // DeltaPercent - READ-ONLY; The percent difference between endpoint A and B + DeltaPercent *float64 `json:"deltaPercent,omitempty"` + // ACLower95CI - READ-ONLY; The lower end of the 95% confidence interval for endpoint A + ACLower95CI *float64 `json:"aCLower95CI,omitempty"` + // AHUpper95CI - READ-ONLY; The upper end of the 95% confidence interval for endpoint A + AHUpper95CI *float64 `json:"aHUpper95CI,omitempty"` + // BCLower95CI - READ-ONLY; The lower end of the 95% confidence interval for endpoint B + BCLower95CI *float64 `json:"bCLower95CI,omitempty"` + // BUpper95CI - READ-ONLY; The upper end of the 95% confidence interval for endpoint B + BUpper95CI *float64 `json:"bUpper95CI,omitempty"` +} + +// LatencyScorecard defines the LatencyScorecard +type LatencyScorecard struct { + autorest.Response `json:"-"` + // LatencyScorecardProperties - The properties of a latency scorecard + *LatencyScorecardProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for LatencyScorecard. +func (ls LatencyScorecard) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ls.LatencyScorecardProperties != nil { + objectMap["properties"] = ls.LatencyScorecardProperties + } + if ls.Location != nil { + objectMap["location"] = ls.Location + } + if ls.Tags != nil { + objectMap["tags"] = ls.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for LatencyScorecard struct. +func (ls *LatencyScorecard) 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 latencyScorecardProperties LatencyScorecardProperties + err = json.Unmarshal(*v, &latencyScorecardProperties) + if err != nil { + return err + } + ls.LatencyScorecardProperties = &latencyScorecardProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ls.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ls.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ls.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ls.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + ls.Tags = tags + } + } + } + + return nil +} + +// LatencyScorecardProperties defines a the properties of a Latency Scorecard +type LatencyScorecardProperties struct { + // ID - READ-ONLY; The unique identifier of the Latency Scorecard + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the Latency Scorecard + Name *string `json:"name,omitempty"` + // Description - READ-ONLY; The description of the Latency Scorecard + Description *string `json:"description,omitempty"` + // EndpointA - READ-ONLY; The A endpoint in the scorecard + EndpointA *string `json:"endpointA,omitempty"` + // EndpointB - READ-ONLY; The B endpoint in the scorecard + EndpointB *string `json:"endpointB,omitempty"` + // StartDateTimeUTC - READ-ONLY; The start time of the Latency Scorecard in UTC + StartDateTimeUTC *date.Time `json:"startDateTimeUTC,omitempty"` + // EndDateTimeUTC - READ-ONLY; The end time of the Latency Scorecard in UTC + EndDateTimeUTC *date.Time `json:"endDateTimeUTC,omitempty"` + // Country - READ-ONLY; The country associated with the Latency Scorecard. Values are country ISO codes as specified here- https://www.iso.org/iso-3166-country-codes.html + Country *string `json:"country,omitempty"` + // LatencyMetrics - The latency metrics of the Latency Scorecard + LatencyMetrics *[]LatencyMetric `json:"latencyMetrics,omitempty"` +} + +// ListResult result of the request to list Front Doors. It contains a list of Front Door objects and a URL +// link to get the next set of results. +type ListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of Front Doors within a resource group. + Value *[]FrontDoor `json:"value,omitempty"` + // NextLink - URL to get the next set of Front Door objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListResultIterator provides access to a complete listing of FrontDoor values. +type ListResultIterator struct { + i int + page ListResultPage +} + +// 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 *ListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListResultIterator.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 *ListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListResultIterator) 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 ListResultIterator) Response() ListResult { + 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 ListResultIterator) Value() FrontDoor { + if !iter.page.NotDone() { + return FrontDoor{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListResultIterator type. +func NewListResultIterator(page ListResultPage) ListResultIterator { + return ListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lr ListResult) IsEmpty() bool { + return lr.Value == nil || len(*lr.Value) == 0 +} + +// listResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lr ListResult) listResultPreparer(ctx context.Context) (*http.Request, error) { + if lr.NextLink == nil || len(to.String(lr.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lr.NextLink))) +} + +// ListResultPage contains a page of FrontDoor values. +type ListResultPage struct { + fn func(context.Context, ListResult) (ListResult, error) + lr ListResult +} + +// 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 *ListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListResultPage.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.lr) + if err != nil { + return err + } + page.lr = 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 *ListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListResultPage) NotDone() bool { + return !page.lr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListResultPage) Response() ListResult { + return page.lr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListResultPage) Values() []FrontDoor { + if page.lr.IsEmpty() { + return nil + } + return *page.lr.Value +} + +// Creates a new instance of the ListResultPage type. +func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage { + return ListResultPage{fn: getNextPage} +} + +// LoadBalancingSettingsListResult result of the request to list load balancing settings. It contains a +// list of load balancing settings objects and a URL link to get the next set of results. +type LoadBalancingSettingsListResult struct { + // Value - READ-ONLY; List of Backend Pools within a Front Door. + Value *[]LoadBalancingSettingsModel `json:"value,omitempty"` + // NextLink - URL to get the next set of LoadBalancingSettings objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// LoadBalancingSettingsModel load balancing settings for a backend pool +type LoadBalancingSettingsModel struct { + // LoadBalancingSettingsProperties - Properties of the load balancing settings + *LoadBalancingSettingsProperties `json:"properties,omitempty"` + // Name - Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for LoadBalancingSettingsModel. +func (lbsm LoadBalancingSettingsModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lbsm.LoadBalancingSettingsProperties != nil { + objectMap["properties"] = lbsm.LoadBalancingSettingsProperties + } + if lbsm.Name != nil { + objectMap["name"] = lbsm.Name + } + if lbsm.ID != nil { + objectMap["id"] = lbsm.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for LoadBalancingSettingsModel struct. +func (lbsm *LoadBalancingSettingsModel) 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 loadBalancingSettingsProperties LoadBalancingSettingsProperties + err = json.Unmarshal(*v, &loadBalancingSettingsProperties) + if err != nil { + return err + } + lbsm.LoadBalancingSettingsProperties = &loadBalancingSettingsProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + lbsm.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lbsm.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + lbsm.ID = &ID + } + } + } + + return nil +} + +// LoadBalancingSettingsProperties the JSON object that contains the properties required to create load +// balancing settings +type LoadBalancingSettingsProperties struct { + // ResourceState - Resource status. Possible values include: 'ResourceStateCreating', 'ResourceStateEnabling', 'ResourceStateEnabled', 'ResourceStateDisabling', 'ResourceStateDisabled', 'ResourceStateDeleting' + ResourceState ResourceState `json:"resourceState,omitempty"` + // SampleSize - The number of samples to consider for load balancing decisions + SampleSize *int32 `json:"sampleSize,omitempty"` + // SuccessfulSamplesRequired - The number of samples within the sample period that must succeed + SuccessfulSamplesRequired *int32 `json:"successfulSamplesRequired,omitempty"` + // AdditionalLatencyMilliseconds - The additional latency in milliseconds for probes to fall into the lowest latency bucket + AdditionalLatencyMilliseconds *int32 `json:"additionalLatencyMilliseconds,omitempty"` +} + +// LoadBalancingSettingsUpdateParameters round-Robin load balancing settings for a backend pool +type LoadBalancingSettingsUpdateParameters struct { + // SampleSize - The number of samples to consider for load balancing decisions + SampleSize *int32 `json:"sampleSize,omitempty"` + // SuccessfulSamplesRequired - The number of samples within the sample period that must succeed + SuccessfulSamplesRequired *int32 `json:"successfulSamplesRequired,omitempty"` + // AdditionalLatencyMilliseconds - The additional latency in milliseconds for probes to fall into the lowest latency bucket + AdditionalLatencyMilliseconds *int32 `json:"additionalLatencyMilliseconds,omitempty"` +} + +// ManagedRuleDefinition describes a managed rule definition. +type ManagedRuleDefinition struct { + // RuleID - READ-ONLY; Identifier for the managed rule. + RuleID *string `json:"ruleId,omitempty"` + // DefaultState - READ-ONLY; Describes the default state for the managed rule. Possible values include: 'ManagedRuleEnabledStateDisabled', 'ManagedRuleEnabledStateEnabled' + DefaultState ManagedRuleEnabledState `json:"defaultState,omitempty"` + // DefaultAction - READ-ONLY; Describes the default action to be applied when the managed rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + DefaultAction ActionType `json:"defaultAction,omitempty"` + // Description - READ-ONLY; Describes the functionality of the managed rule. + Description *string `json:"description,omitempty"` +} + +// ManagedRuleExclusion exclude variables from managed rule evaluation. +type ManagedRuleExclusion struct { + // MatchVariable - The variable type to be excluded. Possible values include: 'RequestHeaderNames', 'RequestCookieNames', 'QueryStringArgNames', 'RequestBodyPostArgNames' + MatchVariable ManagedRuleExclusionMatchVariable `json:"matchVariable,omitempty"` + // SelectorMatchOperator - Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. Possible values include: 'Equals', 'Contains', 'StartsWith', 'EndsWith', 'EqualsAny' + SelectorMatchOperator ManagedRuleExclusionSelectorMatchOperator `json:"selectorMatchOperator,omitempty"` + // Selector - Selector value for which elements in the collection this exclusion applies to. + Selector *string `json:"selector,omitempty"` +} + +// ManagedRuleGroupDefinition describes a managed rule group. +type ManagedRuleGroupDefinition struct { + // RuleGroupName - READ-ONLY; Name of the managed rule group. + RuleGroupName *string `json:"ruleGroupName,omitempty"` + // Description - READ-ONLY; Description of the managed rule group. + Description *string `json:"description,omitempty"` + // Rules - READ-ONLY; List of rules within the managed rule group. + Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` +} + +// ManagedRuleGroupOverride defines a managed rule group override setting. +type ManagedRuleGroupOverride struct { + // RuleGroupName - Describes the managed rule group to override. + RuleGroupName *string `json:"ruleGroupName,omitempty"` + // Exclusions - Describes the exclusions that are applied to all rules in the group. + Exclusions *[]ManagedRuleExclusion `json:"exclusions,omitempty"` + // Rules - List of rules that will be disabled. If none specified, all rules in the group will be disabled. + Rules *[]ManagedRuleOverride `json:"rules,omitempty"` +} + +// ManagedRuleOverride defines a managed rule group override setting. +type ManagedRuleOverride struct { + // RuleID - Identifier for the managed rule. + RuleID *string `json:"ruleId,omitempty"` + // EnabledState - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. Possible values include: 'ManagedRuleEnabledStateDisabled', 'ManagedRuleEnabledStateEnabled' + EnabledState ManagedRuleEnabledState `json:"enabledState,omitempty"` + // Action - Describes the override action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + Action ActionType `json:"action,omitempty"` + // Exclusions - Describes the exclusions that are applied to this specific rule. + Exclusions *[]ManagedRuleExclusion `json:"exclusions,omitempty"` +} + +// ManagedRuleSet defines a managed rule set. +type ManagedRuleSet struct { + // RuleSetType - Defines the rule set type to use. + RuleSetType *string `json:"ruleSetType,omitempty"` + // RuleSetVersion - Defines the version of the rule set to use. + RuleSetVersion *string `json:"ruleSetVersion,omitempty"` + // Exclusions - Describes the exclusions that are applied to all rules in the set. + Exclusions *[]ManagedRuleExclusion `json:"exclusions,omitempty"` + // RuleGroupOverrides - Defines the rule group overrides to apply to the rule set. + RuleGroupOverrides *[]ManagedRuleGroupOverride `json:"ruleGroupOverrides,omitempty"` +} + +// ManagedRuleSetDefinition describes the a managed rule set definition. +type ManagedRuleSetDefinition struct { + // ManagedRuleSetDefinitionProperties - Properties for a managed rule set definition. + *ManagedRuleSetDefinitionProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ManagedRuleSetDefinition. +func (mrsd ManagedRuleSetDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mrsd.ManagedRuleSetDefinitionProperties != nil { + objectMap["properties"] = mrsd.ManagedRuleSetDefinitionProperties + } + if mrsd.Location != nil { + objectMap["location"] = mrsd.Location + } + if mrsd.Tags != nil { + objectMap["tags"] = mrsd.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ManagedRuleSetDefinition struct. +func (mrsd *ManagedRuleSetDefinition) 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 managedRuleSetDefinitionProperties ManagedRuleSetDefinitionProperties + err = json.Unmarshal(*v, &managedRuleSetDefinitionProperties) + if err != nil { + return err + } + mrsd.ManagedRuleSetDefinitionProperties = &managedRuleSetDefinitionProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + mrsd.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + mrsd.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mrsd.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + mrsd.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + mrsd.Tags = tags + } + } + } + + return nil +} + +// ManagedRuleSetDefinitionList list of managed rule set definitions available for use in a policy. +type ManagedRuleSetDefinitionList struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of managed rule set definitions. + Value *[]ManagedRuleSetDefinition `json:"value,omitempty"` + // NextLink - URL to retrieve next set of managed rule set definitions. + NextLink *string `json:"nextLink,omitempty"` +} + +// ManagedRuleSetDefinitionListIterator provides access to a complete listing of ManagedRuleSetDefinition +// values. +type ManagedRuleSetDefinitionListIterator struct { + i int + page ManagedRuleSetDefinitionListPage +} + +// 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 *ManagedRuleSetDefinitionListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRuleSetDefinitionListIterator.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 *ManagedRuleSetDefinitionListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ManagedRuleSetDefinitionListIterator) 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 ManagedRuleSetDefinitionListIterator) Response() ManagedRuleSetDefinitionList { + 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 ManagedRuleSetDefinitionListIterator) Value() ManagedRuleSetDefinition { + if !iter.page.NotDone() { + return ManagedRuleSetDefinition{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ManagedRuleSetDefinitionListIterator type. +func NewManagedRuleSetDefinitionListIterator(page ManagedRuleSetDefinitionListPage) ManagedRuleSetDefinitionListIterator { + return ManagedRuleSetDefinitionListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (mrsdl ManagedRuleSetDefinitionList) IsEmpty() bool { + return mrsdl.Value == nil || len(*mrsdl.Value) == 0 +} + +// managedRuleSetDefinitionListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (mrsdl ManagedRuleSetDefinitionList) managedRuleSetDefinitionListPreparer(ctx context.Context) (*http.Request, error) { + if mrsdl.NextLink == nil || len(to.String(mrsdl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(mrsdl.NextLink))) +} + +// ManagedRuleSetDefinitionListPage contains a page of ManagedRuleSetDefinition values. +type ManagedRuleSetDefinitionListPage struct { + fn func(context.Context, ManagedRuleSetDefinitionList) (ManagedRuleSetDefinitionList, error) + mrsdl ManagedRuleSetDefinitionList +} + +// 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 *ManagedRuleSetDefinitionListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRuleSetDefinitionListPage.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.mrsdl) + if err != nil { + return err + } + page.mrsdl = 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 *ManagedRuleSetDefinitionListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ManagedRuleSetDefinitionListPage) NotDone() bool { + return !page.mrsdl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ManagedRuleSetDefinitionListPage) Response() ManagedRuleSetDefinitionList { + return page.mrsdl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ManagedRuleSetDefinitionListPage) Values() []ManagedRuleSetDefinition { + if page.mrsdl.IsEmpty() { + return nil + } + return *page.mrsdl.Value +} + +// Creates a new instance of the ManagedRuleSetDefinitionListPage type. +func NewManagedRuleSetDefinitionListPage(getNextPage func(context.Context, ManagedRuleSetDefinitionList) (ManagedRuleSetDefinitionList, error)) ManagedRuleSetDefinitionListPage { + return ManagedRuleSetDefinitionListPage{fn: getNextPage} +} + +// ManagedRuleSetDefinitionProperties properties for a managed rule set definition. +type ManagedRuleSetDefinitionProperties struct { + // ProvisioningState - READ-ONLY; Provisioning state of the managed rule set. + ProvisioningState *string `json:"provisioningState,omitempty"` + // RuleSetType - READ-ONLY; Type of the managed rule set. + RuleSetType *string `json:"ruleSetType,omitempty"` + // RuleSetVersion - READ-ONLY; Version of the managed rule set type. + RuleSetVersion *string `json:"ruleSetVersion,omitempty"` + // RuleGroups - READ-ONLY; Rule groups of the managed rule set. + RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` +} + +// ManagedRuleSetList defines the list of managed rule sets for the policy. +type ManagedRuleSetList struct { + // ManagedRuleSets - List of rule sets. + ManagedRuleSets *[]ManagedRuleSet `json:"managedRuleSets,omitempty"` +} + +// MatchCondition define a match condition. +type MatchCondition struct { + // MatchVariable - Request variable to compare with. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestURI', 'RequestHeader', 'RequestBody', 'Cookies', 'SocketAddr' + MatchVariable MatchVariable `json:"matchVariable,omitempty"` + // Selector - Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. + Selector *string `json:"selector,omitempty"` + // Operator - Comparison type to use for matching with the variable value. Possible values include: 'OperatorAny', 'OperatorIPMatch', 'OperatorGeoMatch', 'OperatorEqual', 'OperatorContains', 'OperatorLessThan', 'OperatorGreaterThan', 'OperatorLessThanOrEqual', 'OperatorGreaterThanOrEqual', 'OperatorBeginsWith', 'OperatorEndsWith', 'OperatorRegEx' + Operator Operator `json:"operator,omitempty"` + // NegateCondition - Describes if the result of this condition should be negated. + NegateCondition *bool `json:"negateCondition,omitempty"` + // MatchValue - List of possible match values. + MatchValue *[]string `json:"matchValue,omitempty"` + // Transforms - List of transforms. + Transforms *[]TransformType `json:"transforms,omitempty"` +} + +// NetworkExperimentProfilesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type NetworkExperimentProfilesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *NetworkExperimentProfilesCreateOrUpdateFuture) Result(client NetworkExperimentProfilesClient) (p Profile, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.NetworkExperimentProfilesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if p.Response.Response, err = future.GetResult(sender); err == nil && p.Response.Response.StatusCode != http.StatusNoContent { + p, err = client.CreateOrUpdateResponder(p.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesCreateOrUpdateFuture", "Result", p.Response.Response, "Failure responding to request") + } + } + return +} + +// NetworkExperimentProfilesDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type NetworkExperimentProfilesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *NetworkExperimentProfilesDeleteFuture) Result(client NetworkExperimentProfilesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.NetworkExperimentProfilesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// NetworkExperimentProfilesUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type NetworkExperimentProfilesUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *NetworkExperimentProfilesUpdateFuture) Result(client NetworkExperimentProfilesClient) (p Profile, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.NetworkExperimentProfilesUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if p.Response.Response, err = future.GetResult(sender); err == nil && p.Response.Response.StatusCode != http.StatusNoContent { + p, err = client.UpdateResponder(p.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesUpdateFuture", "Result", p.Response.Response, "Failure responding to request") + } + } + return +} + +// PoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PoliciesCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PoliciesCreateOrUpdateFuture) Result(client PoliciesClient) (wafp WebApplicationFirewallPolicy, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.PoliciesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if wafp.Response.Response, err = future.GetResult(sender); err == nil && wafp.Response.Response.StatusCode != http.StatusNoContent { + wafp, err = client.CreateOrUpdateResponder(wafp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesCreateOrUpdateFuture", "Result", wafp.Response.Response, "Failure responding to request") + } + } + return +} + +// PoliciesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type PoliciesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *PoliciesDeleteFuture) Result(client PoliciesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("frontdoor.PoliciesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// PolicySettings defines top-level WebApplicationFirewallPolicy configuration settings. +type PolicySettings struct { + // EnabledState - Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. Possible values include: 'PolicyEnabledStateDisabled', 'PolicyEnabledStateEnabled' + EnabledState PolicyEnabledState `json:"enabledState,omitempty"` + // Mode - Describes if it is in detection mode or prevention mode at policy level. Possible values include: 'Prevention', 'Detection' + Mode PolicyMode `json:"mode,omitempty"` + // RedirectURL - If action type is redirect, this field represents redirect URL for the client. + RedirectURL *string `json:"redirectUrl,omitempty"` + // CustomBlockResponseStatusCode - If the action type is block, customer can override the response status code. + CustomBlockResponseStatusCode *int32 `json:"customBlockResponseStatusCode,omitempty"` + // CustomBlockResponseBody - If the action type is block, customer can override the response body. The body must be specified in base64 encoding. + CustomBlockResponseBody *string `json:"customBlockResponseBody,omitempty"` +} + +// PreconfiguredEndpoint defines the properties of a preconfigured endpoint +type PreconfiguredEndpoint struct { + // PreconfiguredEndpointProperties - The properties of a preconfiguredEndpoint + *PreconfiguredEndpointProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for PreconfiguredEndpoint. +func (peVar PreconfiguredEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if peVar.PreconfiguredEndpointProperties != nil { + objectMap["properties"] = peVar.PreconfiguredEndpointProperties + } + if peVar.Location != nil { + objectMap["location"] = peVar.Location + } + if peVar.Tags != nil { + objectMap["tags"] = peVar.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PreconfiguredEndpoint struct. +func (peVar *PreconfiguredEndpoint) 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 preconfiguredEndpointProperties PreconfiguredEndpointProperties + err = json.Unmarshal(*v, &preconfiguredEndpointProperties) + if err != nil { + return err + } + peVar.PreconfiguredEndpointProperties = &preconfiguredEndpointProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + peVar.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + peVar.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + peVar.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + peVar.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + peVar.Tags = tags + } + } + } + + return nil +} + +// PreconfiguredEndpointList defines a list of preconfigured endpoints. +type PreconfiguredEndpointList struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of PreconfiguredEndpoints supported by NetworkExperiment. + Value *[]PreconfiguredEndpoint `json:"value,omitempty"` + // NextLink - URL to get the next set of PreconfiguredEndpoints if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// PreconfiguredEndpointListIterator provides access to a complete listing of PreconfiguredEndpoint values. +type PreconfiguredEndpointListIterator struct { + i int + page PreconfiguredEndpointListPage +} + +// 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 *PreconfiguredEndpointListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PreconfiguredEndpointListIterator.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 *PreconfiguredEndpointListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PreconfiguredEndpointListIterator) 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 PreconfiguredEndpointListIterator) Response() PreconfiguredEndpointList { + 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 PreconfiguredEndpointListIterator) Value() PreconfiguredEndpoint { + if !iter.page.NotDone() { + return PreconfiguredEndpoint{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PreconfiguredEndpointListIterator type. +func NewPreconfiguredEndpointListIterator(page PreconfiguredEndpointListPage) PreconfiguredEndpointListIterator { + return PreconfiguredEndpointListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (pel PreconfiguredEndpointList) IsEmpty() bool { + return pel.Value == nil || len(*pel.Value) == 0 +} + +// preconfiguredEndpointListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (pel PreconfiguredEndpointList) preconfiguredEndpointListPreparer(ctx context.Context) (*http.Request, error) { + if pel.NextLink == nil || len(to.String(pel.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(pel.NextLink))) +} + +// PreconfiguredEndpointListPage contains a page of PreconfiguredEndpoint values. +type PreconfiguredEndpointListPage struct { + fn func(context.Context, PreconfiguredEndpointList) (PreconfiguredEndpointList, error) + pel PreconfiguredEndpointList +} + +// 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 *PreconfiguredEndpointListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PreconfiguredEndpointListPage.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.pel) + if err != nil { + return err + } + page.pel = 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 *PreconfiguredEndpointListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PreconfiguredEndpointListPage) NotDone() bool { + return !page.pel.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PreconfiguredEndpointListPage) Response() PreconfiguredEndpointList { + return page.pel +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PreconfiguredEndpointListPage) Values() []PreconfiguredEndpoint { + if page.pel.IsEmpty() { + return nil + } + return *page.pel.Value +} + +// Creates a new instance of the PreconfiguredEndpointListPage type. +func NewPreconfiguredEndpointListPage(getNextPage func(context.Context, PreconfiguredEndpointList) (PreconfiguredEndpointList, error)) PreconfiguredEndpointListPage { + return PreconfiguredEndpointListPage{fn: getNextPage} +} + +// PreconfiguredEndpointProperties defines the properties of a preconfigured endpoint +type PreconfiguredEndpointProperties struct { + // Description - The description of the endpoint + Description *string `json:"description,omitempty"` + // Endpoint - The endpoint that is preconfigured + Endpoint *string `json:"endpoint,omitempty"` + // EndpointType - The type of endpoint. Possible values include: 'AFD', 'AzureRegion', 'CDN', 'ATM' + EndpointType EndpointType `json:"endpointType,omitempty"` + // Backend - The preconfigured endpoint backend + Backend *string `json:"backend,omitempty"` +} + +// Profile defines an Network Experiment Profile and lists of Experiments +type Profile struct { + autorest.Response `json:"-"` + // ProfileProperties - The properties of a Profile + *ProfileProperties `json:"properties,omitempty"` + // Etag - Gets a unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for Profile. +func (p Profile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if p.ProfileProperties != nil { + objectMap["properties"] = p.ProfileProperties + } + if p.Etag != nil { + objectMap["etag"] = p.Etag + } + if p.Location != nil { + objectMap["location"] = p.Location + } + if p.Tags != nil { + objectMap["tags"] = p.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Profile struct. +func (p *Profile) 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 profileProperties ProfileProperties + err = json.Unmarshal(*v, &profileProperties) + if err != nil { + return err + } + p.ProfileProperties = &profileProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + p.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + p.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + p.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + p.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + p.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + p.Tags = tags + } + } + } + + return nil +} + +// ProfileList defines a list of Profiles. It contains a list of Profile objects and a URL link to get the +// next set of results. +type ProfileList struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of Profiles within a resource group. + Value *[]Profile `json:"value,omitempty"` + // NextLink - URL to get the next set of Profile objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// ProfileListIterator provides access to a complete listing of Profile values. +type ProfileListIterator struct { + i int + page ProfileListPage +} + +// 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 *ProfileListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfileListIterator.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 *ProfileListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ProfileListIterator) 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 ProfileListIterator) Response() ProfileList { + 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 ProfileListIterator) Value() Profile { + if !iter.page.NotDone() { + return Profile{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ProfileListIterator type. +func NewProfileListIterator(page ProfileListPage) ProfileListIterator { + return ProfileListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (pl ProfileList) IsEmpty() bool { + return pl.Value == nil || len(*pl.Value) == 0 +} + +// profileListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (pl ProfileList) profileListPreparer(ctx context.Context) (*http.Request, error) { + if pl.NextLink == nil || len(to.String(pl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(pl.NextLink))) +} + +// ProfileListPage contains a page of Profile values. +type ProfileListPage struct { + fn func(context.Context, ProfileList) (ProfileList, error) + pl ProfileList +} + +// 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 *ProfileListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProfileListPage.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.pl) + if err != nil { + return err + } + page.pl = 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 *ProfileListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ProfileListPage) NotDone() bool { + return !page.pl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ProfileListPage) Response() ProfileList { + return page.pl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ProfileListPage) Values() []Profile { + if page.pl.IsEmpty() { + return nil + } + return *page.pl.Value +} + +// Creates a new instance of the ProfileListPage type. +func NewProfileListPage(getNextPage func(context.Context, ProfileList) (ProfileList, error)) ProfileListPage { + return ProfileListPage{fn: getNextPage} +} + +// ProfileProperties defines the properties of an experiment +type ProfileProperties struct { + // ResourceState - Resource status. Possible values include: 'NetworkExperimentResourceStateCreating', 'NetworkExperimentResourceStateEnabling', 'NetworkExperimentResourceStateEnabled', 'NetworkExperimentResourceStateDisabling', 'NetworkExperimentResourceStateDisabled', 'NetworkExperimentResourceStateDeleting' + ResourceState NetworkExperimentResourceState `json:"resourceState,omitempty"` + // EnabledState - The state of the Experiment. Possible values include: 'StateEnabled', 'StateDisabled' + EnabledState State `json:"enabledState,omitempty"` +} + +// ProfileUpdateModel defines modifiable attributes of a Profile +type ProfileUpdateModel struct { + // ProfileUpdateProperties - The properties of a Profile + *ProfileUpdateProperties `json:"properties,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ProfileUpdateModel. +func (pum ProfileUpdateModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pum.ProfileUpdateProperties != nil { + objectMap["properties"] = pum.ProfileUpdateProperties + } + if pum.Tags != nil { + objectMap["tags"] = pum.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ProfileUpdateModel struct. +func (pum *ProfileUpdateModel) 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 profileUpdateProperties ProfileUpdateProperties + err = json.Unmarshal(*v, &profileUpdateProperties) + if err != nil { + return err + } + pum.ProfileUpdateProperties = &profileUpdateProperties + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + pum.Tags = tags + } + } + } + + return nil +} + +// ProfileUpdateProperties defines the properties of an experiment +type ProfileUpdateProperties struct { + // EnabledState - The enabled state of the Profile. Possible values include: 'StateEnabled', 'StateDisabled' + EnabledState State `json:"enabledState,omitempty"` +} + +// Properties the JSON object that contains the properties required to create an endpoint. +type Properties struct { + // ResourceState - Resource status of the Front Door. Possible values include: 'ResourceStateCreating', 'ResourceStateEnabling', 'ResourceStateEnabled', 'ResourceStateDisabling', 'ResourceStateDisabled', 'ResourceStateDeleting' + ResourceState ResourceState `json:"resourceState,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning state of the Front Door. + ProvisioningState *string `json:"provisioningState,omitempty"` + // Cname - READ-ONLY; The host that each frontendEndpoint must CNAME to. + Cname *string `json:"cname,omitempty"` + // FriendlyName - A friendly name for the frontDoor + FriendlyName *string `json:"friendlyName,omitempty"` + // RoutingRules - Routing rules associated with this Front Door. + RoutingRules *[]RoutingRule `json:"routingRules,omitempty"` + // LoadBalancingSettings - Load balancing settings associated with this Front Door instance. + LoadBalancingSettings *[]LoadBalancingSettingsModel `json:"loadBalancingSettings,omitempty"` + // HealthProbeSettings - Health probe settings associated with this Front Door instance. + HealthProbeSettings *[]HealthProbeSettingsModel `json:"healthProbeSettings,omitempty"` + // BackendPools - Backend pools available to routing rules. + BackendPools *[]BackendPool `json:"backendPools,omitempty"` + // FrontendEndpoints - Frontend endpoints available to routing rules. + FrontendEndpoints *[]FrontendEndpoint `json:"frontendEndpoints,omitempty"` + // BackendPoolsSettings - Settings for all backendPools + BackendPoolsSettings *BackendPoolsSettings `json:"backendPoolsSettings,omitempty"` + // EnabledState - Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled' + EnabledState EnabledState `json:"enabledState,omitempty"` +} + +// PurgeParameters parameters required for content purge. +type PurgeParameters struct { + // ContentPaths - The path to the content to be purged. Can describe a file path or a wild card directory. + ContentPaths *[]string `json:"contentPaths,omitempty"` +} + +// RedirectConfiguration describes Redirect Route. +type RedirectConfiguration struct { + // RedirectType - The redirect type the rule will use when redirecting traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect' + RedirectType RedirectType `json:"redirectType,omitempty"` + // RedirectProtocol - The protocol of the destination to where the traffic is redirected. Possible values include: 'RedirectProtocolHTTPOnly', 'RedirectProtocolHTTPSOnly', 'RedirectProtocolMatchRequest' + RedirectProtocol RedirectProtocol `json:"redirectProtocol,omitempty"` + // CustomHost - Host to redirect. Leave empty to use the incoming host as the destination host. + CustomHost *string `json:"customHost,omitempty"` + // CustomPath - The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path. + CustomPath *string `json:"customPath,omitempty"` + // CustomFragment - Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. + CustomFragment *string `json:"customFragment,omitempty"` + // CustomQueryString - The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &. + CustomQueryString *string `json:"customQueryString,omitempty"` + // OdataType - Possible values include: 'OdataTypeRouteConfiguration', 'OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration', 'OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration' + OdataType OdataType `json:"@odata.type,omitempty"` +} + +// MarshalJSON is the custom marshaler for RedirectConfiguration. +func (rc RedirectConfiguration) MarshalJSON() ([]byte, error) { + rc.OdataType = OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration + objectMap := make(map[string]interface{}) + if rc.RedirectType != "" { + objectMap["redirectType"] = rc.RedirectType + } + if rc.RedirectProtocol != "" { + objectMap["redirectProtocol"] = rc.RedirectProtocol + } + if rc.CustomHost != nil { + objectMap["customHost"] = rc.CustomHost + } + if rc.CustomPath != nil { + objectMap["customPath"] = rc.CustomPath + } + if rc.CustomFragment != nil { + objectMap["customFragment"] = rc.CustomFragment + } + if rc.CustomQueryString != nil { + objectMap["customQueryString"] = rc.CustomQueryString + } + if rc.OdataType != "" { + objectMap["@odata.type"] = rc.OdataType + } + return json.Marshal(objectMap) +} + +// AsForwardingConfiguration is the BasicRouteConfiguration implementation for RedirectConfiguration. +func (rc RedirectConfiguration) AsForwardingConfiguration() (*ForwardingConfiguration, bool) { + return nil, false +} + +// AsRedirectConfiguration is the BasicRouteConfiguration implementation for RedirectConfiguration. +func (rc RedirectConfiguration) AsRedirectConfiguration() (*RedirectConfiguration, bool) { + return &rc, true +} + +// AsRouteConfiguration is the BasicRouteConfiguration implementation for RedirectConfiguration. +func (rc RedirectConfiguration) AsRouteConfiguration() (*RouteConfiguration, bool) { + return nil, false +} + +// AsBasicRouteConfiguration is the BasicRouteConfiguration implementation for RedirectConfiguration. +func (rc RedirectConfiguration) AsBasicRouteConfiguration() (BasicRouteConfiguration, bool) { + return &rc, true +} + +// Resource common resource representation. +type Resource struct { + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if r.Location != nil { + objectMap["location"] = r.Location + } + if r.Tags != nil { + objectMap["tags"] = r.Tags + } + return json.Marshal(objectMap) +} + +// BasicRouteConfiguration base class for all types of Route. +type BasicRouteConfiguration interface { + AsForwardingConfiguration() (*ForwardingConfiguration, bool) + AsRedirectConfiguration() (*RedirectConfiguration, bool) + AsRouteConfiguration() (*RouteConfiguration, bool) +} + +// RouteConfiguration base class for all types of Route. +type RouteConfiguration struct { + // OdataType - Possible values include: 'OdataTypeRouteConfiguration', 'OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration', 'OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration' + OdataType OdataType `json:"@odata.type,omitempty"` +} + +func unmarshalBasicRouteConfiguration(body []byte) (BasicRouteConfiguration, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["@odata.type"] { + case string(OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorForwardingConfiguration): + var fc ForwardingConfiguration + err := json.Unmarshal(body, &fc) + return fc, err + case string(OdataTypeMicrosoftAzureFrontDoorModelsFrontdoorRedirectConfiguration): + var rc RedirectConfiguration + err := json.Unmarshal(body, &rc) + return rc, err + default: + var rc RouteConfiguration + err := json.Unmarshal(body, &rc) + return rc, err + } +} +func unmarshalBasicRouteConfigurationArray(body []byte) ([]BasicRouteConfiguration, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + rcArray := make([]BasicRouteConfiguration, len(rawMessages)) + + for index, rawMessage := range rawMessages { + rc, err := unmarshalBasicRouteConfiguration(*rawMessage) + if err != nil { + return nil, err + } + rcArray[index] = rc + } + return rcArray, nil +} + +// MarshalJSON is the custom marshaler for RouteConfiguration. +func (rc RouteConfiguration) MarshalJSON() ([]byte, error) { + rc.OdataType = OdataTypeRouteConfiguration + objectMap := make(map[string]interface{}) + if rc.OdataType != "" { + objectMap["@odata.type"] = rc.OdataType + } + return json.Marshal(objectMap) +} + +// AsForwardingConfiguration is the BasicRouteConfiguration implementation for RouteConfiguration. +func (rc RouteConfiguration) AsForwardingConfiguration() (*ForwardingConfiguration, bool) { + return nil, false +} + +// AsRedirectConfiguration is the BasicRouteConfiguration implementation for RouteConfiguration. +func (rc RouteConfiguration) AsRedirectConfiguration() (*RedirectConfiguration, bool) { + return nil, false +} + +// AsRouteConfiguration is the BasicRouteConfiguration implementation for RouteConfiguration. +func (rc RouteConfiguration) AsRouteConfiguration() (*RouteConfiguration, bool) { + return &rc, true +} + +// AsBasicRouteConfiguration is the BasicRouteConfiguration implementation for RouteConfiguration. +func (rc RouteConfiguration) AsBasicRouteConfiguration() (BasicRouteConfiguration, bool) { + return &rc, true +} + +// RoutingRule a routing rule represents a specification for traffic to treat and where to send it, along +// with health probe information. +type RoutingRule struct { + // RoutingRuleProperties - Properties of the Front Door Routing Rule + *RoutingRuleProperties `json:"properties,omitempty"` + // Name - Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for RoutingRule. +func (rr RoutingRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rr.RoutingRuleProperties != nil { + objectMap["properties"] = rr.RoutingRuleProperties + } + if rr.Name != nil { + objectMap["name"] = rr.Name + } + if rr.ID != nil { + objectMap["id"] = rr.ID + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RoutingRule struct. +func (rr *RoutingRule) 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 routingRuleProperties RoutingRuleProperties + err = json.Unmarshal(*v, &routingRuleProperties) + if err != nil { + return err + } + rr.RoutingRuleProperties = &routingRuleProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rr.Type = &typeVar + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rr.ID = &ID + } + } + } + + return nil +} + +// RoutingRuleListResult result of the request to list Routing Rules. It contains a list of Routing Rule +// objects and a URL link to get the next set of results. +type RoutingRuleListResult struct { + // Value - READ-ONLY; List of Routing Rules within a Front Door. + Value *[]RoutingRule `json:"value,omitempty"` + // NextLink - URL to get the next set of RoutingRule objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// RoutingRuleProperties the JSON object that contains the properties required to create a routing rule. +type RoutingRuleProperties struct { + // ResourceState - Resource status. Possible values include: 'ResourceStateCreating', 'ResourceStateEnabling', 'ResourceStateEnabled', 'ResourceStateDisabling', 'ResourceStateDisabled', 'ResourceStateDeleting' + ResourceState ResourceState `json:"resourceState,omitempty"` + // FrontendEndpoints - Frontend endpoints associated with this rule + FrontendEndpoints *[]SubResource `json:"frontendEndpoints,omitempty"` + // AcceptedProtocols - Protocol schemes to match for this rule + AcceptedProtocols *[]Protocol `json:"acceptedProtocols,omitempty"` + // PatternsToMatch - The route patterns of the rule. + PatternsToMatch *[]string `json:"patternsToMatch,omitempty"` + // EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'RoutingRuleEnabledStateEnabled', 'RoutingRuleEnabledStateDisabled' + EnabledState RoutingRuleEnabledState `json:"enabledState,omitempty"` + // RouteConfiguration - A reference to the routing configuration. + RouteConfiguration BasicRouteConfiguration `json:"routeConfiguration,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for RoutingRuleProperties struct. +func (rrp *RoutingRuleProperties) 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 "resourceState": + if v != nil { + var resourceState ResourceState + err = json.Unmarshal(*v, &resourceState) + if err != nil { + return err + } + rrp.ResourceState = resourceState + } + case "frontendEndpoints": + if v != nil { + var frontendEndpoints []SubResource + err = json.Unmarshal(*v, &frontendEndpoints) + if err != nil { + return err + } + rrp.FrontendEndpoints = &frontendEndpoints + } + case "acceptedProtocols": + if v != nil { + var acceptedProtocols []Protocol + err = json.Unmarshal(*v, &acceptedProtocols) + if err != nil { + return err + } + rrp.AcceptedProtocols = &acceptedProtocols + } + case "patternsToMatch": + if v != nil { + var patternsToMatch []string + err = json.Unmarshal(*v, &patternsToMatch) + if err != nil { + return err + } + rrp.PatternsToMatch = &patternsToMatch + } + case "enabledState": + if v != nil { + var enabledState RoutingRuleEnabledState + err = json.Unmarshal(*v, &enabledState) + if err != nil { + return err + } + rrp.EnabledState = enabledState + } + case "routeConfiguration": + if v != nil { + routeConfiguration, err := unmarshalBasicRouteConfiguration(*v) + if err != nil { + return err + } + rrp.RouteConfiguration = routeConfiguration + } + } + } + + return nil +} + +// RoutingRuleUpdateParameters routing rules to apply to an endpoint +type RoutingRuleUpdateParameters struct { + // FrontendEndpoints - Frontend endpoints associated with this rule + FrontendEndpoints *[]SubResource `json:"frontendEndpoints,omitempty"` + // AcceptedProtocols - Protocol schemes to match for this rule + AcceptedProtocols *[]Protocol `json:"acceptedProtocols,omitempty"` + // PatternsToMatch - The route patterns of the rule. + PatternsToMatch *[]string `json:"patternsToMatch,omitempty"` + // EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'RoutingRuleEnabledStateEnabled', 'RoutingRuleEnabledStateDisabled' + EnabledState RoutingRuleEnabledState `json:"enabledState,omitempty"` + // RouteConfiguration - A reference to the routing configuration. + RouteConfiguration BasicRouteConfiguration `json:"routeConfiguration,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for RoutingRuleUpdateParameters struct. +func (rrup *RoutingRuleUpdateParameters) 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 "frontendEndpoints": + if v != nil { + var frontendEndpoints []SubResource + err = json.Unmarshal(*v, &frontendEndpoints) + if err != nil { + return err + } + rrup.FrontendEndpoints = &frontendEndpoints + } + case "acceptedProtocols": + if v != nil { + var acceptedProtocols []Protocol + err = json.Unmarshal(*v, &acceptedProtocols) + if err != nil { + return err + } + rrup.AcceptedProtocols = &acceptedProtocols + } + case "patternsToMatch": + if v != nil { + var patternsToMatch []string + err = json.Unmarshal(*v, &patternsToMatch) + if err != nil { + return err + } + rrup.PatternsToMatch = &patternsToMatch + } + case "enabledState": + if v != nil { + var enabledState RoutingRuleEnabledState + err = json.Unmarshal(*v, &enabledState) + if err != nil { + return err + } + rrup.EnabledState = enabledState + } + case "routeConfiguration": + if v != nil { + routeConfiguration, err := unmarshalBasicRouteConfiguration(*v) + if err != nil { + return err + } + rrup.RouteConfiguration = routeConfiguration + } + } + } + + return nil +} + +// SubResource reference to another subresource. +type SubResource struct { + // ID - Resource ID. + ID *string `json:"id,omitempty"` +} + +// TagsObject tags object for patch operations. +type TagsObject struct { + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for TagsObject. +func (toVar TagsObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if toVar.Tags != nil { + objectMap["tags"] = toVar.Tags + } + return json.Marshal(objectMap) +} + +// Timeseries defines the Timeseries +type Timeseries struct { + autorest.Response `json:"-"` + // TimeseriesProperties - The properties of a Timeseries + *TimeseriesProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for Timeseries. +func (t Timeseries) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if t.TimeseriesProperties != nil { + objectMap["properties"] = t.TimeseriesProperties + } + if t.Location != nil { + objectMap["location"] = t.Location + } + if t.Tags != nil { + objectMap["tags"] = t.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Timeseries struct. +func (t *Timeseries) 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 timeseriesProperties TimeseriesProperties + err = json.Unmarshal(*v, ×eriesProperties) + if err != nil { + return err + } + t.TimeseriesProperties = ×eriesProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + t.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + t.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + t.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + t.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + t.Tags = tags + } + } + } + + return nil +} + +// TimeseriesDataPoint defines a timeseries datapoint used in a timeseries +type TimeseriesDataPoint struct { + // DateTimeUTC - The DateTime of the Timeseries data point in UTC + DateTimeUTC *string `json:"dateTimeUTC,omitempty"` + // Value - The Value of the Timeseries data point + Value *float64 `json:"value,omitempty"` +} + +// TimeseriesProperties defines the properties of a timeseries +type TimeseriesProperties struct { + // Endpoint - The endpoint associated with the Timeseries data point + Endpoint *string `json:"endpoint,omitempty"` + // StartDateTimeUTC - The start DateTime of the Timeseries in UTC + StartDateTimeUTC *string `json:"startDateTimeUTC,omitempty"` + // EndDateTimeUTC - The end DateTime of the Timeseries in UTC + EndDateTimeUTC *string `json:"endDateTimeUTC,omitempty"` + // AggregationInterval - The aggregation interval of the Timeseries. Possible values include: 'Hourly', 'Daily' + AggregationInterval AggregationInterval `json:"aggregationInterval,omitempty"` + // TimeseriesType - The type of Timeseries. Possible values include: 'MeasurementCounts', 'LatencyP50', 'LatencyP75', 'LatencyP95' + TimeseriesType TimeseriesType `json:"timeseriesType,omitempty"` + // Country - The country associated with the Timeseries. Values are country ISO codes as specified here- https://www.iso.org/iso-3166-country-codes.html + Country *string `json:"country,omitempty"` + // TimeseriesData - The set of data points for the timeseries + TimeseriesData *[]TimeseriesDataPoint `json:"timeseriesData,omitempty"` +} + +// UpdateParameters the properties needed to update a Front Door +type UpdateParameters struct { + // FriendlyName - A friendly name for the frontDoor + FriendlyName *string `json:"friendlyName,omitempty"` + // RoutingRules - Routing rules associated with this Front Door. + RoutingRules *[]RoutingRule `json:"routingRules,omitempty"` + // LoadBalancingSettings - Load balancing settings associated with this Front Door instance. + LoadBalancingSettings *[]LoadBalancingSettingsModel `json:"loadBalancingSettings,omitempty"` + // HealthProbeSettings - Health probe settings associated with this Front Door instance. + HealthProbeSettings *[]HealthProbeSettingsModel `json:"healthProbeSettings,omitempty"` + // BackendPools - Backend pools available to routing rules. + BackendPools *[]BackendPool `json:"backendPools,omitempty"` + // FrontendEndpoints - Frontend endpoints available to routing rules. + FrontendEndpoints *[]FrontendEndpoint `json:"frontendEndpoints,omitempty"` + // BackendPoolsSettings - Settings for all backendPools + BackendPoolsSettings *BackendPoolsSettings `json:"backendPoolsSettings,omitempty"` + // EnabledState - Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'EnabledStateEnabled', 'EnabledStateDisabled' + EnabledState EnabledState `json:"enabledState,omitempty"` +} + +// ValidateCustomDomainInput input of the custom domain to be validated for DNS mapping. +type ValidateCustomDomainInput struct { + // HostName - The host name of the custom domain. Must be a domain name. + HostName *string `json:"hostName,omitempty"` +} + +// ValidateCustomDomainOutput output of custom domain validation. +type ValidateCustomDomainOutput struct { + autorest.Response `json:"-"` + // CustomDomainValidated - READ-ONLY; Indicates whether the custom domain is valid or not. + CustomDomainValidated *bool `json:"customDomainValidated,omitempty"` + // Reason - READ-ONLY; The reason why the custom domain is not valid. + Reason *string `json:"reason,omitempty"` + // Message - READ-ONLY; Error message describing why the custom domain is not valid. + Message *string `json:"message,omitempty"` +} + +// WebApplicationFirewallPolicy defines web application firewall policy. +type WebApplicationFirewallPolicy struct { + autorest.Response `json:"-"` + // WebApplicationFirewallPolicyProperties - Properties of the web application firewall policy. + *WebApplicationFirewallPolicyProperties `json:"properties,omitempty"` + // Etag - Gets a unique read-only string that changes whenever the resource is updated. + Etag *string `json:"etag,omitempty"` + // ID - READ-ONLY; Resource ID. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` + // Location - Resource location. + Location *string `json:"location,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicy. +func (wafp WebApplicationFirewallPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if wafp.WebApplicationFirewallPolicyProperties != nil { + objectMap["properties"] = wafp.WebApplicationFirewallPolicyProperties + } + if wafp.Etag != nil { + objectMap["etag"] = wafp.Etag + } + if wafp.Location != nil { + objectMap["location"] = wafp.Location + } + if wafp.Tags != nil { + objectMap["tags"] = wafp.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for WebApplicationFirewallPolicy struct. +func (wafp *WebApplicationFirewallPolicy) 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 webApplicationFirewallPolicyProperties WebApplicationFirewallPolicyProperties + err = json.Unmarshal(*v, &webApplicationFirewallPolicyProperties) + if err != nil { + return err + } + wafp.WebApplicationFirewallPolicyProperties = &webApplicationFirewallPolicyProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + wafp.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + wafp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + wafp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wafp.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + wafp.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + wafp.Tags = tags + } + } + } + + return nil +} + +// WebApplicationFirewallPolicyList defines a list of WebApplicationFirewallPolicies. It contains a list of +// WebApplicationFirewallPolicy objects and a URL link to get the next set of results. +type WebApplicationFirewallPolicyList struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of WebApplicationFirewallPolicies within a resource group. + Value *[]WebApplicationFirewallPolicy `json:"value,omitempty"` + // NextLink - URL to get the next set of WebApplicationFirewallPolicy objects if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// WebApplicationFirewallPolicyListIterator provides access to a complete listing of +// WebApplicationFirewallPolicy values. +type WebApplicationFirewallPolicyListIterator struct { + i int + page WebApplicationFirewallPolicyListPage +} + +// 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 *WebApplicationFirewallPolicyListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPolicyListIterator.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 *WebApplicationFirewallPolicyListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter WebApplicationFirewallPolicyListIterator) 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 WebApplicationFirewallPolicyListIterator) Response() WebApplicationFirewallPolicyList { + 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 WebApplicationFirewallPolicyListIterator) Value() WebApplicationFirewallPolicy { + if !iter.page.NotDone() { + return WebApplicationFirewallPolicy{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the WebApplicationFirewallPolicyListIterator type. +func NewWebApplicationFirewallPolicyListIterator(page WebApplicationFirewallPolicyListPage) WebApplicationFirewallPolicyListIterator { + return WebApplicationFirewallPolicyListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (wafpl WebApplicationFirewallPolicyList) IsEmpty() bool { + return wafpl.Value == nil || len(*wafpl.Value) == 0 +} + +// webApplicationFirewallPolicyListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (wafpl WebApplicationFirewallPolicyList) webApplicationFirewallPolicyListPreparer(ctx context.Context) (*http.Request, error) { + if wafpl.NextLink == nil || len(to.String(wafpl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(wafpl.NextLink))) +} + +// WebApplicationFirewallPolicyListPage contains a page of WebApplicationFirewallPolicy values. +type WebApplicationFirewallPolicyListPage struct { + fn func(context.Context, WebApplicationFirewallPolicyList) (WebApplicationFirewallPolicyList, error) + wafpl WebApplicationFirewallPolicyList +} + +// 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 *WebApplicationFirewallPolicyListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/WebApplicationFirewallPolicyListPage.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.wafpl) + if err != nil { + return err + } + page.wafpl = 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 *WebApplicationFirewallPolicyListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page WebApplicationFirewallPolicyListPage) NotDone() bool { + return !page.wafpl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page WebApplicationFirewallPolicyListPage) Response() WebApplicationFirewallPolicyList { + return page.wafpl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page WebApplicationFirewallPolicyListPage) Values() []WebApplicationFirewallPolicy { + if page.wafpl.IsEmpty() { + return nil + } + return *page.wafpl.Value +} + +// Creates a new instance of the WebApplicationFirewallPolicyListPage type. +func NewWebApplicationFirewallPolicyListPage(getNextPage func(context.Context, WebApplicationFirewallPolicyList) (WebApplicationFirewallPolicyList, error)) WebApplicationFirewallPolicyListPage { + return WebApplicationFirewallPolicyListPage{fn: getNextPage} +} + +// WebApplicationFirewallPolicyProperties defines web application firewall policy properties. +type WebApplicationFirewallPolicyProperties struct { + // PolicySettings - Describes settings for the policy. + PolicySettings *PolicySettings `json:"policySettings,omitempty"` + // CustomRules - Describes custom rules inside the policy. + CustomRules *CustomRuleList `json:"customRules,omitempty"` + // ManagedRules - Describes managed rules inside the policy. + ManagedRules *ManagedRuleSetList `json:"managedRules,omitempty"` + // FrontendEndpointLinks - READ-ONLY; Describes Frontend Endpoints associated with this Web Application Firewall policy. + FrontendEndpointLinks *[]FrontendEndpointLink `json:"frontendEndpointLinks,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning state of the policy. + ProvisioningState *string `json:"provisioningState,omitempty"` + // ResourceState - READ-ONLY; Possible values include: 'PolicyResourceStateCreating', 'PolicyResourceStateEnabling', 'PolicyResourceStateEnabled', 'PolicyResourceStateDisabling', 'PolicyResourceStateDisabled', 'PolicyResourceStateDeleting' + ResourceState PolicyResourceState `json:"resourceState,omitempty"` +} diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/networkexperimentprofiles.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/networkexperimentprofiles.go new file mode 100644 index 000000000000..a99a02c005a6 --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/networkexperimentprofiles.go @@ -0,0 +1,628 @@ +package frontdoor + +// 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" +) + +// NetworkExperimentProfilesClient is the frontDoor Client +type NetworkExperimentProfilesClient struct { + BaseClient +} + +// NewNetworkExperimentProfilesClient creates an instance of the NetworkExperimentProfilesClient client. +func NewNetworkExperimentProfilesClient(subscriptionID string) NetworkExperimentProfilesClient { + return NewNetworkExperimentProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewNetworkExperimentProfilesClientWithBaseURI creates an instance of the NetworkExperimentProfilesClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewNetworkExperimentProfilesClientWithBaseURI(baseURI string, subscriptionID string) NetworkExperimentProfilesClient { + return NetworkExperimentProfilesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate sends the create or update request. +// Parameters: +// profileName - the Profile identifier associated with the Tenant and Partner +// resourceGroupName - name of the Resource group within the Azure subscription. +// parameters - an Network Experiment Profile +func (client NetworkExperimentProfilesClient) CreateOrUpdate(ctx context.Context, profileName string, resourceGroupName string, parameters Profile) (result NetworkExperimentProfilesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NetworkExperimentProfilesClient.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: profileName, + Constraints: []validation.Constraint{{Target: "profileName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.NetworkExperimentProfilesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, profileName, resourceGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client NetworkExperimentProfilesClient) CreateOrUpdatePreparer(ctx context.Context, profileName string, resourceGroupName string, parameters Profile) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-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.Network/NetworkExperimentProfiles/{profileName}", 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 NetworkExperimentProfilesClient) CreateOrUpdateSender(req *http.Request) (future NetworkExperimentProfilesCreateOrUpdateFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + 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 NetworkExperimentProfilesClient) CreateOrUpdateResponder(resp *http.Response) (result Profile, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete sends the delete request. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - the Profile identifier associated with the Tenant and Partner +func (client NetworkExperimentProfilesClient) Delete(ctx context.Context, resourceGroupName string, profileName string) (result NetworkExperimentProfilesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NetworkExperimentProfilesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: profileName, + Constraints: []validation.Constraint{{Target: "profileName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.NetworkExperimentProfilesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client NetworkExperimentProfilesClient) DeletePreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-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.Network/NetworkExperimentProfiles/{profileName}", 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 NetworkExperimentProfilesClient) DeleteSender(req *http.Request) (future NetworkExperimentProfilesDeleteFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + 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 NetworkExperimentProfilesClient) 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: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - the Profile identifier associated with the Tenant and Partner +func (client NetworkExperimentProfilesClient) Get(ctx context.Context, resourceGroupName string, profileName string) (result Profile, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NetworkExperimentProfilesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: profileName, + Constraints: []validation.Constraint{{Target: "profileName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.NetworkExperimentProfilesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client NetworkExperimentProfilesClient) GetPreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-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.Network/NetworkExperimentProfiles/{profileName}", 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 NetworkExperimentProfilesClient) GetSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client NetworkExperimentProfilesClient) GetResponder(resp *http.Response) (result Profile, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List sends the list request. +func (client NetworkExperimentProfilesClient) List(ctx context.Context) (result ProfileListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NetworkExperimentProfilesClient.List") + defer func() { + sc := -1 + if result.pl.Response.Response != nil { + sc = result.pl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.pl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "List", resp, "Failure sending request") + return + } + + result.pl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client NetworkExperimentProfilesClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/NetworkExperimentProfiles", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client NetworkExperimentProfilesClient) ListSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client NetworkExperimentProfilesClient) ListResponder(resp *http.Response) (result ProfileList, 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 NetworkExperimentProfilesClient) listNextResults(ctx context.Context, lastResults ProfileList) (result ProfileList, err error) { + req, err := lastResults.profileListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "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, "frontdoor.NetworkExperimentProfilesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client NetworkExperimentProfilesClient) ListComplete(ctx context.Context) (result ProfileListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NetworkExperimentProfilesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListByResourceGroup sends the list by resource group request. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +func (client NetworkExperimentProfilesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ProfileListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NetworkExperimentProfilesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.pl.Response.Response != nil { + sc = result.pl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.NetworkExperimentProfilesClient", "ListByResourceGroup", err.Error()) + } + + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.pl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.pl, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "ListByResourceGroup", resp, "Failure responding to request") + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client NetworkExperimentProfilesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-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.Network/NetworkExperimentProfiles", 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 NetworkExperimentProfilesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client NetworkExperimentProfilesClient) ListByResourceGroupResponder(resp *http.Response) (result ProfileList, 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 NetworkExperimentProfilesClient) listByResourceGroupNextResults(ctx context.Context, lastResults ProfileList) (result ProfileList, err error) { + req, err := lastResults.profileListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "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, "frontdoor.NetworkExperimentProfilesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client NetworkExperimentProfilesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ProfileListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NetworkExperimentProfilesClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// Update updates an NetworkExperimentProfiles +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - the Profile identifier associated with the Tenant and Partner +// parameters - the Profile Update Model +func (client NetworkExperimentProfilesClient) Update(ctx context.Context, resourceGroupName string, profileName string, parameters ProfileUpdateModel) (result NetworkExperimentProfilesUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NetworkExperimentProfilesClient.Update") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: profileName, + Constraints: []validation.Constraint{{Target: "profileName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.NetworkExperimentProfilesClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, profileName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.NetworkExperimentProfilesClient", "Update", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client NetworkExperimentProfilesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, profileName string, parameters ProfileUpdateModel) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-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.Network/NetworkExperimentProfiles/{profileName}", 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 NetworkExperimentProfilesClient) UpdateSender(req *http.Request) (future NetworkExperimentProfilesUpdateFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client NetworkExperimentProfilesClient) UpdateResponder(resp *http.Response) (result Profile, 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 +} diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/policies.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/policies.go new file mode 100644 index 000000000000..30bc6ceaf79e --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/policies.go @@ -0,0 +1,434 @@ +package frontdoor + +// 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" +) + +// PoliciesClient is the frontDoor Client +type PoliciesClient struct { + BaseClient +} + +// NewPoliciesClient creates an instance of the PoliciesClient client. +func NewPoliciesClient(subscriptionID string) PoliciesClient { + return NewPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient { + return PoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or update policy with specified rule set name within a resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// policyName - the name of the Web Application Firewall Policy. +// parameters - policy to be created. +func (client PoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, policyName string, parameters WebApplicationFirewallPolicy) (result PoliciesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.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: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyProperties.PolicySettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyProperties.PolicySettings.CustomBlockResponseBody", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WebApplicationFirewallPolicyProperties.PolicySettings.CustomBlockResponseBody", Name: validation.Pattern, Rule: `^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$`, Chain: nil}}}, + }}, + }}}}}); err != nil { + return result, validation.NewError("frontdoor.PoliciesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, policyName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client PoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, policyName string, parameters WebApplicationFirewallPolicy) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-10-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.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) CreateOrUpdateSender(req *http.Request) (future PoliciesCreateOrUpdateFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + 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 PoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result WebApplicationFirewallPolicy, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes Policy +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// policyName - the name of the Web Application Firewall Policy. +func (client PoliciesClient) Delete(ctx context.Context, resourceGroupName string, policyName string) (result PoliciesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.PoliciesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, policyName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, policyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-10-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.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) DeleteSender(req *http.Request) (future PoliciesDeleteFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + 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 PoliciesClient) 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 retrieve protection policy with specified name within a resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// policyName - the name of the Web Application Firewall Policy. +func (client PoliciesClient) Get(ctx context.Context, resourceGroupName string, policyName string) (result WebApplicationFirewallPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: policyName, + Constraints: []validation.Constraint{{Target: "policyName", Name: validation.MaxLength, Rule: 128, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.PoliciesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, policyName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client PoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, policyName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "policyName": autorest.Encode("path", policyName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-10-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.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) GetSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PoliciesClient) GetResponder(resp *http.Response) (result WebApplicationFirewallPolicy, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all of the protection policies within a resource group. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +func (client PoliciesClient) List(ctx context.Context, resourceGroupName string) (result WebApplicationFirewallPolicyListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.List") + defer func() { + sc := -1 + if result.wafpl.Response.Response != nil { + sc = result.wafpl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.PoliciesClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.wafpl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", resp, "Failure sending request") + return + } + + result.wafpl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client PoliciesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-10-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.Network/FrontDoorWebApplicationFirewallPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PoliciesClient) ListSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PoliciesClient) ListResponder(resp *http.Response) (result WebApplicationFirewallPolicyList, 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 PoliciesClient) listNextResults(ctx context.Context, lastResults WebApplicationFirewallPolicyList) (result WebApplicationFirewallPolicyList, err error) { + req, err := lastResults.webApplicationFirewallPolicyListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PoliciesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PoliciesClient) ListComplete(ctx context.Context, resourceGroupName string) (result WebApplicationFirewallPolicyListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PoliciesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName) + return +} diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/preconfiguredendpoints.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/preconfiguredendpoints.go new file mode 100644 index 000000000000..4d1779ec21c1 --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/preconfiguredendpoints.go @@ -0,0 +1,169 @@ +package frontdoor + +// 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" +) + +// PreconfiguredEndpointsClient is the frontDoor Client +type PreconfiguredEndpointsClient struct { + BaseClient +} + +// NewPreconfiguredEndpointsClient creates an instance of the PreconfiguredEndpointsClient client. +func NewPreconfiguredEndpointsClient(subscriptionID string) PreconfiguredEndpointsClient { + return NewPreconfiguredEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPreconfiguredEndpointsClientWithBaseURI creates an instance of the PreconfiguredEndpointsClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewPreconfiguredEndpointsClientWithBaseURI(baseURI string, subscriptionID string) PreconfiguredEndpointsClient { + return PreconfiguredEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List sends the list request. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - the Profile identifier associated with the Tenant and Partner +func (client PreconfiguredEndpointsClient) List(ctx context.Context, resourceGroupName string, profileName string) (result PreconfiguredEndpointListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PreconfiguredEndpointsClient.List") + defer func() { + sc := -1 + if result.pel.Response.Response != nil { + sc = result.pel.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: profileName, + Constraints: []validation.Constraint{{Target: "profileName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.PreconfiguredEndpointsClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, profileName) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.pel.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "List", resp, "Failure sending request") + return + } + + result.pel, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client PreconfiguredEndpointsClient) ListPreparer(ctx context.Context, resourceGroupName string, profileName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-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.Network/NetworkExperimentProfiles/{profileName}/PreconfiguredEndpoints", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PreconfiguredEndpointsClient) ListSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PreconfiguredEndpointsClient) ListResponder(resp *http.Response) (result PreconfiguredEndpointList, 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 PreconfiguredEndpointsClient) listNextResults(ctx context.Context, lastResults PreconfiguredEndpointList) (result PreconfiguredEndpointList, err error) { + req, err := lastResults.preconfiguredEndpointListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "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, "frontdoor.PreconfiguredEndpointsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.PreconfiguredEndpointsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PreconfiguredEndpointsClient) ListComplete(ctx context.Context, resourceGroupName string, profileName string) (result PreconfiguredEndpointListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PreconfiguredEndpointsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, profileName) + return +} diff --git a/services/frontdoor/mgmt/2019-11-01/frontdoor/reports.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/reports.go new file mode 100644 index 000000000000..96081ac5c0b1 --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/reports.go @@ -0,0 +1,254 @@ +package frontdoor + +// 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/date" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ReportsClient is the frontDoor Client +type ReportsClient struct { + BaseClient +} + +// NewReportsClient creates an instance of the ReportsClient client. +func NewReportsClient(subscriptionID string) ReportsClient { + return NewReportsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewReportsClientWithBaseURI creates an instance of the ReportsClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewReportsClientWithBaseURI(baseURI string, subscriptionID string) ReportsClient { + return ReportsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// GetLatencyScorecards sends the get latency scorecards request. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - the Profile identifier associated with the Tenant and Partner +// experimentName - the Experiment identifier associated with the Experiment +// aggregationInterval - the aggregation interval of the Latency Scorecard +// endDateTimeUTC - the end DateTime of the Latency Scorecard in UTC +// country - the country associated with the Latency Scorecard. Values are country ISO codes as specified here- +// https://www.iso.org/iso-3166-country-codes.html +func (client ReportsClient) GetLatencyScorecards(ctx context.Context, resourceGroupName string, profileName string, experimentName string, aggregationInterval LatencyScorecardAggregationInterval, endDateTimeUTC string, country string) (result LatencyScorecard, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.GetLatencyScorecards") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: profileName, + Constraints: []validation.Constraint{{Target: "profileName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: experimentName, + Constraints: []validation.Constraint{{Target: "experimentName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.ReportsClient", "GetLatencyScorecards", err.Error()) + } + + req, err := client.GetLatencyScorecardsPreparer(ctx, resourceGroupName, profileName, experimentName, aggregationInterval, endDateTimeUTC, country) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetLatencyScorecards", nil, "Failure preparing request") + return + } + + resp, err := client.GetLatencyScorecardsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetLatencyScorecards", resp, "Failure sending request") + return + } + + result, err = client.GetLatencyScorecardsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetLatencyScorecards", resp, "Failure responding to request") + } + + return +} + +// GetLatencyScorecardsPreparer prepares the GetLatencyScorecards request. +func (client ReportsClient) GetLatencyScorecardsPreparer(ctx context.Context, resourceGroupName string, profileName string, experimentName string, aggregationInterval LatencyScorecardAggregationInterval, endDateTimeUTC string, country string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "experimentName": autorest.Encode("path", experimentName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-01" + queryParameters := map[string]interface{}{ + "aggregationInterval": autorest.Encode("query", aggregationInterval), + "api-version": APIVersion, + } + if len(endDateTimeUTC) > 0 { + queryParameters["endDateTimeUTC"] = autorest.Encode("query", endDateTimeUTC) + } + if len(country) > 0 { + queryParameters["country"] = autorest.Encode("query", country) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/LatencyScorecard", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetLatencyScorecardsSender sends the GetLatencyScorecards request. The method will close the +// http.Response Body if it receives an error. +func (client ReportsClient) GetLatencyScorecardsSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetLatencyScorecardsResponder handles the response to the GetLatencyScorecards request. The method always +// closes the http.Response Body. +func (client ReportsClient) GetLatencyScorecardsResponder(resp *http.Response) (result LatencyScorecard, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetTimeseries sends the get timeseries request. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// profileName - the Profile identifier associated with the Tenant and Partner +// experimentName - the Experiment identifier associated with the Experiment +// startDateTimeUTC - the start DateTime of the Timeseries in UTC +// endDateTimeUTC - the end DateTime of the Timeseries in UTC +// aggregationInterval - the aggregation interval of the Timeseries +// timeseriesType - the type of Timeseries +// endpoint - the specific endpoint +// country - the country associated with the Timeseries. Values are country ISO codes as specified here- +// https://www.iso.org/iso-3166-country-codes.html +func (client ReportsClient) GetTimeseries(ctx context.Context, resourceGroupName string, profileName string, experimentName string, startDateTimeUTC date.Time, endDateTimeUTC date.Time, aggregationInterval TimeseriesAggregationInterval, timeseriesType TimeseriesType, endpoint string, country string) (result Timeseries, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.GetTimeseries") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: profileName, + Constraints: []validation.Constraint{{Target: "profileName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}, + {TargetValue: experimentName, + Constraints: []validation.Constraint{{Target: "experimentName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_\-\(\)\.]*[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("frontdoor.ReportsClient", "GetTimeseries", err.Error()) + } + + req, err := client.GetTimeseriesPreparer(ctx, resourceGroupName, profileName, experimentName, startDateTimeUTC, endDateTimeUTC, aggregationInterval, timeseriesType, endpoint, country) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetTimeseries", nil, "Failure preparing request") + return + } + + resp, err := client.GetTimeseriesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetTimeseries", resp, "Failure sending request") + return + } + + result, err = client.GetTimeseriesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "frontdoor.ReportsClient", "GetTimeseries", resp, "Failure responding to request") + } + + return +} + +// GetTimeseriesPreparer prepares the GetTimeseries request. +func (client ReportsClient) GetTimeseriesPreparer(ctx context.Context, resourceGroupName string, profileName string, experimentName string, startDateTimeUTC date.Time, endDateTimeUTC date.Time, aggregationInterval TimeseriesAggregationInterval, timeseriesType TimeseriesType, endpoint string, country string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "experimentName": autorest.Encode("path", experimentName), + "profileName": autorest.Encode("path", profileName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-11-01" + queryParameters := map[string]interface{}{ + "aggregationInterval": autorest.Encode("query", aggregationInterval), + "api-version": APIVersion, + "endDateTimeUTC": autorest.Encode("query", endDateTimeUTC), + "startDateTimeUTC": autorest.Encode("query", startDateTimeUTC), + "timeseriesType": autorest.Encode("query", timeseriesType), + } + if len(endpoint) > 0 { + queryParameters["endpoint"] = autorest.Encode("query", endpoint) + } + if len(country) > 0 { + queryParameters["country"] = autorest.Encode("query", country) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/Timeseries", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetTimeseriesSender sends the GetTimeseries request. The method will close the +// http.Response Body if it receives an error. +func (client ReportsClient) GetTimeseriesSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetTimeseriesResponder handles the response to the GetTimeseries request. The method always +// closes the http.Response Body. +func (client ReportsClient) GetTimeseriesResponder(resp *http.Response) (result Timeseries, 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/frontdoor/mgmt/2019-11-01/frontdoor/version.go b/services/frontdoor/mgmt/2019-11-01/frontdoor/version.go new file mode 100644 index 000000000000..029b01286208 --- /dev/null +++ b/services/frontdoor/mgmt/2019-11-01/frontdoor/version.go @@ -0,0 +1,30 @@ +package frontdoor + +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 + " frontdoor/2019-11-01" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/client.go b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/client.go index fd8b2d59dc06..614fcf83ad76 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/client.go +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/client.go @@ -46,7 +46,8 @@ func New(subscriptionID string) BaseClient { return NewWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewWithBaseURI creates an instance of the BaseClient client. +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return BaseClient{ Client: autorest.NewClientWithUserAgent(UserAgent()), diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/endpoints.go b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/endpoints.go index da4d214c740a..9e2215d46574 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/endpoints.go +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/endpoints.go @@ -36,7 +36,8 @@ func NewEndpointsClient(subscriptionID string) EndpointsClient { return NewEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client. +// NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient { return EndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontdoorapi/interfaces.go b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontdoorapi/interfaces.go index c5c2c2f4be03..145e2e39009e 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontdoorapi/interfaces.go +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontdoorapi/interfaces.go @@ -36,7 +36,9 @@ type FrontDoorsClientAPI interface { Delete(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontDoorsDeleteFutureType, err error) Get(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontDoor, err error) List(ctx context.Context) (result frontdoor.ListResultPage, err error) + ListComplete(ctx context.Context) (result frontdoor.ListResultIterator, err error) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result frontdoor.ListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result frontdoor.ListResultIterator, err error) ValidateCustomDomain(ctx context.Context, resourceGroupName string, frontDoorName string, customDomainProperties frontdoor.ValidateCustomDomainInput) (result frontdoor.ValidateCustomDomainOutput, err error) } @@ -48,6 +50,7 @@ type FrontendEndpointsClientAPI interface { EnableHTTPS(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string, customHTTPSConfiguration frontdoor.CustomHTTPSConfiguration) (result frontdoor.FrontendEndpointsEnableHTTPSFuture, err error) Get(ctx context.Context, resourceGroupName string, frontDoorName string, frontendEndpointName string) (result frontdoor.FrontendEndpoint, err error) ListByFrontDoor(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontendEndpointsListResultPage, err error) + ListByFrontDoorComplete(ctx context.Context, resourceGroupName string, frontDoorName string) (result frontdoor.FrontendEndpointsListResultIterator, err error) } var _ FrontendEndpointsClientAPI = (*frontdoor.FrontendEndpointsClient)(nil) @@ -65,6 +68,7 @@ type PoliciesClientAPI interface { Delete(ctx context.Context, resourceGroupName string, policyName string) (result frontdoor.PoliciesDeleteFuture, err error) Get(ctx context.Context, resourceGroupName string, policyName string) (result frontdoor.WebApplicationFirewallPolicy1, err error) List(ctx context.Context, resourceGroupName string) (result frontdoor.WebApplicationFirewallPolicyListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string) (result frontdoor.WebApplicationFirewallPolicyListResultIterator, err error) } var _ PoliciesClientAPI = (*frontdoor.PoliciesClient)(nil) diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontdoors.go b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontdoors.go index b372223232b9..23ff5feb329f 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontdoors.go +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontdoors.go @@ -36,7 +36,8 @@ func NewFrontDoorsClient(subscriptionID string) FrontDoorsClient { return NewFrontDoorsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewFrontDoorsClientWithBaseURI creates an instance of the FrontDoorsClient client. +// NewFrontDoorsClientWithBaseURI creates an instance of the FrontDoorsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewFrontDoorsClientWithBaseURI(baseURI string, subscriptionID string) FrontDoorsClient { return FrontDoorsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontendendpoints.go b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontendendpoints.go index 227ccc3cd765..1cc84a6e1199 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontendendpoints.go +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/frontendendpoints.go @@ -36,7 +36,9 @@ func NewFrontendEndpointsClient(subscriptionID string) FrontendEndpointsClient { return NewFrontendEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewFrontendEndpointsClientWithBaseURI creates an instance of the FrontendEndpointsClient client. +// NewFrontendEndpointsClientWithBaseURI creates an instance of the FrontendEndpointsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). func NewFrontendEndpointsClientWithBaseURI(baseURI string, subscriptionID string) FrontendEndpointsClient { return FrontendEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/policies.go b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/policies.go index 252010661f5d..e1b9393430c3 100644 --- a/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/policies.go +++ b/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor/policies.go @@ -36,7 +36,8 @@ func NewPoliciesClient(subscriptionID string) PoliciesClient { return NewPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client. +// NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient { return PoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/storage/mgmt/2019-06-01/storage/accounts.go b/services/storage/mgmt/2019-06-01/storage/accounts.go index 2ac4600dc917..d34b59ad0df4 100644 --- a/services/storage/mgmt/2019-06-01/storage/accounts.go +++ b/services/storage/mgmt/2019-06-01/storage/accounts.go @@ -36,7 +36,8 @@ func NewAccountsClient(subscriptionID string) AccountsClient { return NewAccountsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewAccountsClientWithBaseURI creates an instance of the AccountsClient client. +// NewAccountsClientWithBaseURI creates an instance of the AccountsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient { return AccountsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/storage/mgmt/2019-06-01/storage/blobcontainers.go b/services/storage/mgmt/2019-06-01/storage/blobcontainers.go index 402a0135ada1..a433330b53e8 100644 --- a/services/storage/mgmt/2019-06-01/storage/blobcontainers.go +++ b/services/storage/mgmt/2019-06-01/storage/blobcontainers.go @@ -36,7 +36,8 @@ func NewBlobContainersClient(subscriptionID string) BlobContainersClient { return NewBlobContainersClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewBlobContainersClientWithBaseURI creates an instance of the BlobContainersClient client. +// NewBlobContainersClientWithBaseURI creates an instance of the BlobContainersClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewBlobContainersClientWithBaseURI(baseURI string, subscriptionID string) BlobContainersClient { return BlobContainersClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/storage/mgmt/2019-06-01/storage/blobservices.go b/services/storage/mgmt/2019-06-01/storage/blobservices.go index 955db0b72319..ff47fb3f93a8 100644 --- a/services/storage/mgmt/2019-06-01/storage/blobservices.go +++ b/services/storage/mgmt/2019-06-01/storage/blobservices.go @@ -36,7 +36,8 @@ func NewBlobServicesClient(subscriptionID string) BlobServicesClient { return NewBlobServicesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewBlobServicesClientWithBaseURI creates an instance of the BlobServicesClient client. +// NewBlobServicesClientWithBaseURI creates an instance of the BlobServicesClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewBlobServicesClientWithBaseURI(baseURI string, subscriptionID string) BlobServicesClient { return BlobServicesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/storage/mgmt/2019-06-01/storage/client.go b/services/storage/mgmt/2019-06-01/storage/client.go index 98630b5d4e18..af6ab21c698f 100644 --- a/services/storage/mgmt/2019-06-01/storage/client.go +++ b/services/storage/mgmt/2019-06-01/storage/client.go @@ -41,7 +41,8 @@ func New(subscriptionID string) BaseClient { return NewWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewWithBaseURI creates an instance of the BaseClient client. +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return BaseClient{ Client: autorest.NewClientWithUserAgent(UserAgent()), diff --git a/services/storage/mgmt/2019-06-01/storage/fileservices.go b/services/storage/mgmt/2019-06-01/storage/fileservices.go index cb5af6391b07..fca4caccf53a 100644 --- a/services/storage/mgmt/2019-06-01/storage/fileservices.go +++ b/services/storage/mgmt/2019-06-01/storage/fileservices.go @@ -36,7 +36,8 @@ func NewFileServicesClient(subscriptionID string) FileServicesClient { return NewFileServicesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewFileServicesClientWithBaseURI creates an instance of the FileServicesClient client. +// NewFileServicesClientWithBaseURI creates an instance of the FileServicesClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewFileServicesClientWithBaseURI(baseURI string, subscriptionID string) FileServicesClient { return FileServicesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/storage/mgmt/2019-06-01/storage/fileshares.go b/services/storage/mgmt/2019-06-01/storage/fileshares.go index 381e09dfeb4b..55aa2e405ae9 100644 --- a/services/storage/mgmt/2019-06-01/storage/fileshares.go +++ b/services/storage/mgmt/2019-06-01/storage/fileshares.go @@ -36,7 +36,8 @@ func NewFileSharesClient(subscriptionID string) FileSharesClient { return NewFileSharesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewFileSharesClientWithBaseURI creates an instance of the FileSharesClient client. +// NewFileSharesClientWithBaseURI creates an instance of the FileSharesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewFileSharesClientWithBaseURI(baseURI string, subscriptionID string) FileSharesClient { return FileSharesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/storage/mgmt/2019-06-01/storage/managementpolicies.go b/services/storage/mgmt/2019-06-01/storage/managementpolicies.go index c91d84c2062d..5e28106995b9 100644 --- a/services/storage/mgmt/2019-06-01/storage/managementpolicies.go +++ b/services/storage/mgmt/2019-06-01/storage/managementpolicies.go @@ -36,7 +36,9 @@ func NewManagementPoliciesClient(subscriptionID string) ManagementPoliciesClient return NewManagementPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewManagementPoliciesClientWithBaseURI creates an instance of the ManagementPoliciesClient client. +// NewManagementPoliciesClientWithBaseURI creates an instance of the ManagementPoliciesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). func NewManagementPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagementPoliciesClient { return ManagementPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/storage/mgmt/2019-06-01/storage/models.go b/services/storage/mgmt/2019-06-01/storage/models.go index 664c96e0751d..0eba8c292dde 100644 --- a/services/storage/mgmt/2019-06-01/storage/models.go +++ b/services/storage/mgmt/2019-06-01/storage/models.go @@ -253,6 +253,21 @@ func PossibleKeySourceValues() []KeySource { return []KeySource{MicrosoftKeyvault, MicrosoftStorage} } +// KeyType enumerates the values for key type. +type KeyType string + +const ( + // KeyTypeAccount ... + KeyTypeAccount KeyType = "Account" + // KeyTypeService ... + KeyTypeService KeyType = "Service" +) + +// PossibleKeyTypeValues returns an array of possible values for the KeyType const type. +func PossibleKeyTypeValues() []KeyType { + return []KeyType{KeyTypeAccount, KeyTypeService} +} + // Kind enumerates the values for kind. type Kind string @@ -1714,6 +1729,8 @@ type EncryptionService struct { Enabled *bool `json:"enabled,omitempty"` // LastEnabledTime - READ-ONLY; Gets a rough estimate of the date/time when the encryption was last enabled by the user. Only returned when encryption is enabled. There might be some unencrypted blobs which were written after this time, as it is just a rough estimate. LastEnabledTime *date.Time `json:"lastEnabledTime,omitempty"` + // KeyType - Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used. Possible values include: 'KeyTypeService', 'KeyTypeAccount' + KeyType KeyType `json:"keyType,omitempty"` } // EncryptionServices a list of services that support encryption. @@ -1722,9 +1739,9 @@ type EncryptionServices struct { Blob *EncryptionService `json:"blob,omitempty"` // File - The encryption function of the file storage service. File *EncryptionService `json:"file,omitempty"` - // Table - READ-ONLY; The encryption function of the table storage service. + // Table - The encryption function of the table storage service. Table *EncryptionService `json:"table,omitempty"` - // Queue - READ-ONLY; The encryption function of the queue storage service. + // Queue - The encryption function of the queue storage service. Queue *EncryptionService `json:"queue,omitempty"` } diff --git a/services/storage/mgmt/2019-06-01/storage/operations.go b/services/storage/mgmt/2019-06-01/storage/operations.go index cd01bf135592..78cd6907ad6b 100644 --- a/services/storage/mgmt/2019-06-01/storage/operations.go +++ b/services/storage/mgmt/2019-06-01/storage/operations.go @@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient { return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client. +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/storage/mgmt/2019-06-01/storage/privateendpointconnections.go b/services/storage/mgmt/2019-06-01/storage/privateendpointconnections.go index 4cad9cb301b5..394392418417 100644 --- a/services/storage/mgmt/2019-06-01/storage/privateendpointconnections.go +++ b/services/storage/mgmt/2019-06-01/storage/privateendpointconnections.go @@ -36,7 +36,9 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointC return NewPrivateEndpointConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client. +// NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient { return PrivateEndpointConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/storage/mgmt/2019-06-01/storage/privatelinkresources.go b/services/storage/mgmt/2019-06-01/storage/privatelinkresources.go index 369db691e305..856e0a5c0c11 100644 --- a/services/storage/mgmt/2019-06-01/storage/privatelinkresources.go +++ b/services/storage/mgmt/2019-06-01/storage/privatelinkresources.go @@ -36,7 +36,9 @@ func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesCl return NewPrivateLinkResourcesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client. +// NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient { return PrivateLinkResourcesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/storage/mgmt/2019-06-01/storage/skus.go b/services/storage/mgmt/2019-06-01/storage/skus.go index db346f8fbb59..c74e2e48de6c 100644 --- a/services/storage/mgmt/2019-06-01/storage/skus.go +++ b/services/storage/mgmt/2019-06-01/storage/skus.go @@ -36,7 +36,8 @@ func NewSkusClient(subscriptionID string) SkusClient { return NewSkusClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewSkusClientWithBaseURI creates an instance of the SkusClient client. +// NewSkusClientWithBaseURI creates an instance of the SkusClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewSkusClientWithBaseURI(baseURI string, subscriptionID string) SkusClient { return SkusClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/storage/mgmt/2019-06-01/storage/storageapi/interfaces.go b/services/storage/mgmt/2019-06-01/storage/storageapi/interfaces.go index 825b0838b687..289333a8fc05 100644 --- a/services/storage/mgmt/2019-06-01/storage/storageapi/interfaces.go +++ b/services/storage/mgmt/2019-06-01/storage/storageapi/interfaces.go @@ -45,6 +45,7 @@ type AccountsClientAPI interface { Failover(ctx context.Context, resourceGroupName string, accountName string) (result storage.AccountsFailoverFuture, err error) GetProperties(ctx context.Context, resourceGroupName string, accountName string, expand storage.AccountExpand) (result storage.Account, err error) List(ctx context.Context) (result storage.AccountListResultPage, err error) + ListComplete(ctx context.Context) (result storage.AccountListResultIterator, err error) ListAccountSAS(ctx context.Context, resourceGroupName string, accountName string, parameters storage.AccountSasParameters) (result storage.ListAccountSasResponse, err error) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result storage.AccountListResult, err error) ListKeys(ctx context.Context, resourceGroupName string, accountName string, expand storage.ListKeyExpand) (result storage.AccountListKeysResult, err error) @@ -109,6 +110,7 @@ type BlobContainersClientAPI interface { GetImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string) (result storage.ImmutabilityPolicy, err error) Lease(ctx context.Context, resourceGroupName string, accountName string, containerName string, parameters *storage.LeaseContainerRequest) (result storage.LeaseContainerResponse, err error) List(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string) (result storage.ListContainerItemsPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string) (result storage.ListContainerItemsIterator, err error) LockImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string) (result storage.ImmutabilityPolicy, err error) SetLegalHold(ctx context.Context, resourceGroupName string, accountName string, containerName string, legalHold storage.LegalHold) (result storage.LegalHold, err error) Update(ctx context.Context, resourceGroupName string, accountName string, containerName string, blobContainer storage.BlobContainer) (result storage.BlobContainer, err error) @@ -131,6 +133,7 @@ type FileSharesClientAPI interface { Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string) (result autorest.Response, err error) Get(ctx context.Context, resourceGroupName string, accountName string, shareName string) (result storage.FileShare, err error) List(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string) (result storage.FileShareItemsPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string) (result storage.FileShareItemsIterator, err error) Update(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare storage.FileShare) (result storage.FileShare, err error) } diff --git a/services/storage/mgmt/2019-06-01/storage/usages.go b/services/storage/mgmt/2019-06-01/storage/usages.go index 60d0d4bdc5d1..25425502d352 100644 --- a/services/storage/mgmt/2019-06-01/storage/usages.go +++ b/services/storage/mgmt/2019-06-01/storage/usages.go @@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient { return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client. +// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient { return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/version/version.go b/version/version.go index cde980c3ae06..2a72da3b1411 100644 --- a/version/version.go +++ b/version/version.go @@ -18,4 +18,4 @@ package version // Changes may cause incorrect behavior and will be lost if the code is regenerated. // Number contains the semantic version of this SDK. -const Number = "v38.0.0" +const Number = "v38.1.0"