diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/_meta.json b/sdk/digitaltwins/azure-mgmt-digitaltwins/_meta.json index 67148f41650d..6a62c0601f4a 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/_meta.json +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/_meta.json @@ -1,11 +1,11 @@ { - "commit": "51d4c24a011e300b9713179e0515fef35bf3f678", + "commit": "2835339ae556902400c4d56b3ba77cc2edc1c87d", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.9.2", "use": [ "@autorest/python@6.4.0", "@autorest/modelerfour@4.24.3" ], - "autorest_command": "autorest specification/digitaltwins/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.4.0 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", + "autorest_command": "autorest specification/digitaltwins/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.4.0 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", "readme": "specification/digitaltwins/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/_version.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/_version.py index a33a2c9a173f..a30a458f8b5b 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/_version.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/_version.py @@ -3,11 +3,6 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. # -------------------------------------------------------------------------- -VERSION = "6.4.0b1" - +VERSION = "0.1.0" \ No newline at end of file diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/_patch.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/_patch.py index f99e77fef986..f7dd32510333 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/_patch.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/_patch.py @@ -1,31 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# -# Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# -# -------------------------------------------------------------------------- +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/_version.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/_version.py index 9b88116a69e6..e5754a47ce68 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/_version.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "6.4.0b1" +VERSION = "1.0.0b1" diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/aio/_patch.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/aio/_patch.py index f99e77fef986..f7dd32510333 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/aio/_patch.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/aio/_patch.py @@ -1,31 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# -# Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# -# -------------------------------------------------------------------------- +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/_patch.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/_patch.py index f99e77fef986..f7dd32510333 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/_patch.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/_patch.py @@ -1,31 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# -# Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# -# -------------------------------------------------------------------------- +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/_version.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/_version.py index 9b88116a69e6..e5754a47ce68 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/_version.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "6.4.0b1" +VERSION = "1.0.0b1" diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/aio/_patch.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/aio/_patch.py index f99e77fef986..f7dd32510333 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/aio/_patch.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/aio/_patch.py @@ -1,31 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# -# Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# -# -------------------------------------------------------------------------- +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/_patch.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/_patch.py index f99e77fef986..f7dd32510333 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/_patch.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/_patch.py @@ -1,31 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# -# Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# -# -------------------------------------------------------------------------- +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/_version.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/_version.py index 9b88116a69e6..e5754a47ce68 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/_version.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "6.4.0b1" +VERSION = "1.0.0b1" diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/aio/_patch.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/aio/_patch.py index f99e77fef986..f7dd32510333 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/aio/_patch.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/aio/_patch.py @@ -1,31 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# -# Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# -# -------------------------------------------------------------------------- +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/_patch.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/_patch.py index f99e77fef986..f7dd32510333 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/_patch.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/_patch.py @@ -1,31 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# -# Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# -# -------------------------------------------------------------------------- +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/_version.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/_version.py index 9b88116a69e6..e5754a47ce68 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/_version.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "6.4.0b1" +VERSION = "1.0.0b1" diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/aio/_patch.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/aio/_patch.py index f99e77fef986..f7dd32510333 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/aio/_patch.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/aio/_patch.py @@ -1,31 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# -# Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# -# -------------------------------------------------------------------------- +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/_patch.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/_patch.py index f99e77fef986..f7dd32510333 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/_patch.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/_patch.py @@ -1,31 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# -# Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# -# -------------------------------------------------------------------------- +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/_version.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/_version.py index 9b88116a69e6..e5754a47ce68 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/_version.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "6.4.0b1" +VERSION = "1.0.0b1" diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/aio/_patch.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/aio/_patch.py index f99e77fef986..f7dd32510333 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/aio/_patch.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/aio/_patch.py @@ -1,31 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# -# Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# -# -------------------------------------------------------------------------- +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_10_31/_version.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_10_31/_version.py index 9b88116a69e6..e5754a47ce68 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_10_31/_version.py +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_10_31/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "6.4.0b1" +VERSION = "1.0.0b1" diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_check_name_availability_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_check_name_availability_example.py deleted file mode 100644 index 619e91cb3d9e..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_check_name_availability_example.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_check_name_availability_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.check_name_availability( - location="WestUS2", - digital_twins_instance_check_name={ - "name": "myadtinstance", - "type": "Microsoft.DigitalTwins/digitalTwinsInstances", - }, - ) - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsCheckNameAvailability_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_delete_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_delete_example.py deleted file mode 100644 index 04c35176712e..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_delete_example.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_delete_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.begin_delete( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsDelete_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_delete_with_identity_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_delete_with_identity_example.py deleted file mode 100644 index f67ca783738d..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_delete_with_identity_example.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_delete_with_identity_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.begin_delete( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsDelete_WithIdentity_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_delete_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_delete_example.py deleted file mode 100644 index a297966dbed5..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_delete_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_endpoint_delete_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins_endpoint.begin_delete( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - endpoint_name="myendpoint", - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointDelete_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_delete_with_identity_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_delete_with_identity_example.py deleted file mode 100644 index 9d141160c8f2..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_delete_with_identity_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_endpoint_delete_with_identity_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins_endpoint.begin_delete( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - endpoint_name="myendpoint", - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_get_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_get_example.py deleted file mode 100644 index 8dc59c7a11f2..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_get_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_endpoint_get_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins_endpoint.get( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - endpoint_name="myServiceBus", - ) - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointGet_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_get_with_identity_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_get_with_identity_example.py deleted file mode 100644 index 685cc8917f7d..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_get_with_identity_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_endpoint_get_with_identity_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins_endpoint.get( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - endpoint_name="myServiceBus", - ) - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointGet_WithIdentity_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_put_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_put_example.py deleted file mode 100644 index 5e2a82adb363..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_put_example.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_endpoint_put_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins_endpoint.begin_create_or_update( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - endpoint_name="myServiceBus", - endpoint_description={ - "properties": { - "authenticationType": "KeyBased", - "endpointType": "ServiceBus", - "primaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=xyzxyzoX4=;EntityPath=abcabc", - "secondaryConnectionString": "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=xyzxyzoX4=;EntityPath=abcabc", - } - }, - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_put_with_identity_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_put_with_identity_example.py deleted file mode 100644 index 7c68da1361eb..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_put_with_identity_example.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_endpoint_put_with_identity_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins_endpoint.begin_create_or_update( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - endpoint_name="myServiceBus", - endpoint_description={ - "properties": { - "authenticationType": "IdentityBased", - "endpointType": "ServiceBus", - "endpointUri": "sb://mysb.servicebus.windows.net/", - "entityPath": "mysbtopic", - } - }, - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_WithIdentity_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_put_with_user_identity_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_put_with_user_identity_example.py deleted file mode 100644 index 08df93422e70..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoint_put_with_user_identity_example.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_endpoint_put_with_user_identity_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins_endpoint.begin_create_or_update( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - endpoint_name="myServiceBus", - endpoint_description={ - "properties": { - "authenticationType": "IdentityBased", - "endpointType": "ServiceBus", - "endpointUri": "sb://mysb.servicebus.windows.net/", - "entityPath": "mysbtopic", - "identity": { - "type": "UserAssigned", - "userAssignedIdentity": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity", - }, - } - }, - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointPut_WithUserIdentity_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoints_get_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoints_get_example.py deleted file mode 100644 index 9c83ad4acf7c..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoints_get_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_endpoints_get_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins_endpoint.list( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - ) - for item in response: - print(item) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointsGet_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoints_get_with_identity_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoints_get_with_identity_example.py deleted file mode 100644 index 5a124ca63f86..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_endpoints_get_with_identity_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_endpoints_get_with_identity_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins_endpoint.list( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - ) - for item in response: - print(item) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_get_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_get_example.py deleted file mode 100644 index eee7483fbbce..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_get_example.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_get_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.get( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - ) - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_get_with_identity_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_get_with_identity_example.py deleted file mode 100644 index e075bcd3c378..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_get_with_identity_example.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_get_with_identity_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.get( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - ) - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithIdentity_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_get_with_private_endpoint_connection_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_get_with_private_endpoint_connection_example.py deleted file mode 100644 index cdc5adb37e01..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_get_with_private_endpoint_connection_example.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_get_with_private_endpoint_connection_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.get( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - ) - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_list_by_resource_group_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_list_by_resource_group_example.py deleted file mode 100644 index b3b7d6e2530a..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_list_by_resource_group_example.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_list_by_resource_group_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.list_by_resource_group( - resource_group_name="resRg", - ) - for item in response: - print(item) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsListByResourceGroup_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_list_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_list_example.py deleted file mode 100644 index 74ce35210db2..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_list_example.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_list_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.list() - for item in response: - print(item) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsList_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_operations_list_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_operations_list_example.py deleted file mode 100644 index ac7283123257..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_operations_list_example.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_operations_list_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="SUBSCRIPTION_ID", - ) - - response = client.operations.list() - for item in response: - print(item) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsOperationsList_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_patch_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_patch_example.py deleted file mode 100644 index 0a3b7ebd3650..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_patch_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_patch_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.begin_update( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - digital_twins_patch_description={"tags": {"purpose": "dev"}}, - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_patch_with_identity_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_patch_with_identity_example.py deleted file mode 100644 index 81315ae4b9ee..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_patch_with_identity_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_patch_with_identity_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.begin_update( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - digital_twins_patch_description={"identity": {"type": "None"}}, - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_WithIdentity_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_patch_with_public_network_access.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_patch_with_public_network_access.py deleted file mode 100644 index 1e7171407e03..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_patch_with_public_network_access.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_patch_with_public_network_access.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.begin_update( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - digital_twins_patch_description={"properties": {"publicNetworkAccess": "Disabled"}}, - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_put_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_put_example.py deleted file mode 100644 index d9ef9b221efd..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_put_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_put_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.begin_create_or_update( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - digital_twins_create={"location": "WestUS2"}, - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_put_with_identity_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_put_with_identity_example.py deleted file mode 100644 index e4396f44c570..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_put_with_identity_example.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_put_with_identity_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.begin_create_or_update( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - digital_twins_create={ - "identity": { - "type": "SystemAssigned,UserAssigned", - "userAssignedIdentities": { - "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity": {} - }, - }, - "location": "WestUS2", - }, - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithIdentity_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_put_with_public_network_access.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_put_with_public_network_access.py deleted file mode 100644 index e067f8691acb..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_put_with_public_network_access.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python digital_twins_put_with_public_network_access.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.digital_twins.begin_create_or_update( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - digital_twins_create={"location": "WestUS2", "properties": {"publicNetworkAccess": "Enabled"}}, - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/DigitalTwinsPut_WithPublicNetworkAccess.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_endpoint_connection_by_connection_name_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_endpoint_connection_by_connection_name_example.py deleted file mode 100644 index 5b8de9cddbb9..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_endpoint_connection_by_connection_name_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python private_endpoint_connection_by_connection_name_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.private_endpoint_connections.get( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - private_endpoint_connection_name="myPrivateConnection", - ) - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionByConnectionName_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_endpoint_connection_delete_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_endpoint_connection_delete_example.py deleted file mode 100644 index b1ecaac985e2..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_endpoint_connection_delete_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python private_endpoint_connection_delete_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.private_endpoint_connections.begin_delete( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - private_endpoint_connection_name="myPrivateConnection", - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionDelete_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_endpoint_connection_put_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_endpoint_connection_put_example.py deleted file mode 100644 index 132e08964911..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_endpoint_connection_put_example.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python private_endpoint_connection_put_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.private_endpoint_connections.begin_create_or_update( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - private_endpoint_connection_name="myPrivateConnection", - private_endpoint_connection={ - "properties": { - "privateLinkServiceConnectionState": { - "description": "Approved by johndoe@company.com.", - "status": "Approved", - } - } - }, - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionPut_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_endpoint_connections_list_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_endpoint_connections_list_example.py deleted file mode 100644 index 81bdf8f705eb..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_endpoint_connections_list_example.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python private_endpoint_connections_list_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.private_endpoint_connections.list( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - ) - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateEndpointConnectionsList_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_link_resources_by_group_id_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_link_resources_by_group_id_example.py deleted file mode 100644 index 8c7b8c983ff1..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_link_resources_by_group_id_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python private_link_resources_by_group_id_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.private_link_resources.get( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - resource_id="subResource", - ) - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateLinkResourcesByGroupId_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_link_resources_list_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_link_resources_list_example.py deleted file mode 100644 index 1bf84a0dbd4b..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/private_link_resources_list_example.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python private_link_resources_list_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.private_link_resources.list( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - ) - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/PrivateLinkResourcesList_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_delete_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_delete_example.py deleted file mode 100644 index 0df6cedcb0b8..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_delete_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python time_series_database_connections_delete_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.time_series_database_connections.begin_delete( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - time_series_database_connection_name="myConnection", - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsDelete_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_get_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_get_example.py deleted file mode 100644 index b2092049624e..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_get_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python time_series_database_connections_get_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.time_series_database_connections.get( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - time_series_database_connection_name="myConnection", - ) - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsGet_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_list_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_list_example.py deleted file mode 100644 index 07ac0100918a..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_list_example.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python time_series_database_connections_list_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.time_series_database_connections.list( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - ) - for item in response: - print(item) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsList_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_put_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_put_example.py deleted file mode 100644 index 8aee6f517b4a..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_put_example.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python time_series_database_connections_put_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.time_series_database_connections.begin_create_or_update( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - time_series_database_connection_name="myConnection", - time_series_database_connection_description={ - "properties": { - "adxDatabaseName": "myDatabase", - "adxEndpointUri": "https://mycluster.kusto.windows.net", - "adxResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.Kusto/clusters/mycluster", - "adxTableName": "myTable", - "connectionType": "AzureDataExplorer", - "eventHubEndpointUri": "sb://myeh.servicebus.windows.net/", - "eventHubEntityPath": "myeh", - "eventHubNamespaceResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/myeh", - } - }, - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsPut_example.json -if __name__ == "__main__": - main() diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_put_with_user_identity_example.py b/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_put_with_user_identity_example.py deleted file mode 100644 index 24380df4a51d..000000000000 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/time_series_database_connections_put_with_user_identity_example.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-digitaltwins -# USAGE - python time_series_database_connections_put_with_user_identity_example.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AzureDigitalTwinsManagementClient( - credential=DefaultAzureCredential(), - subscription_id="50016170-c839-41ba-a724-51e9df440b9e", - ) - - response = client.time_series_database_connections.begin_create_or_update( - resource_group_name="resRg", - resource_name="myDigitalTwinsService", - time_series_database_connection_name="myConnection", - time_series_database_connection_description={ - "properties": { - "adxDatabaseName": "myDatabase", - "adxEndpointUri": "https://mycluster.kusto.windows.net", - "adxResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.Kusto/clusters/mycluster", - "adxTableName": "myTable", - "connectionType": "AzureDataExplorer", - "eventHubEndpointUri": "sb://myeh.servicebus.windows.net/", - "eventHubEntityPath": "myeh", - "eventHubNamespaceResourceId": "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/myeh", - "identity": { - "type": "UserAssigned", - "userAssignedIdentity": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity", - }, - } - }, - ).result() - print(response) - - -# x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-10-31/examples/TimeSeriesDatabaseConnectionsPut_WithUserIdentity_example.json -if __name__ == "__main__": - main()