Skip to content

Commit 434858f

Browse files
author
SDKAuto
committed
CodeGen from PR 16949 in Azure/azure-rest-api-specs
Merge 195ace47f3e600508b742d59b1b384bc0e129413 into 35ebd58
1 parent e16d161 commit 434858f

File tree

189 files changed

+39145
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+39145
-156
lines changed

sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "4139390cff1f11075509c99b5b044f3bdc194103",
8+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9+
"autorest_command": "autorest specification/kubernetesconfiguration/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.4.5",
10+
"readme": "specification/kubernetesconfiguration/resource-manager/readme.md"
11+
}

sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration/azure/mgmt/kubernetesconfiguration/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
# --------------------------------------------------------------------------
88

99
from ._source_control_configuration_client import SourceControlConfigurationClient
10-
from ._version import VERSION
11-
12-
__version__ = VERSION
1310
__all__ = ['SourceControlConfigurationClient']
1411

1512
try:

sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration/azure/mgmt/kubernetesconfiguration/_configuration.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
4-
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
57
# Code generated by Microsoft (R) AutoRest Code Generator.
6-
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
710
# --------------------------------------------------------------------------
8-
911
from typing import TYPE_CHECKING
1012

1113
from azure.core.configuration import Configuration
@@ -20,7 +22,6 @@
2022

2123
from azure.core.credentials import TokenCredential
2224

23-
2425
class SourceControlConfigurationClientConfiguration(Configuration):
2526
"""Configuration for SourceControlConfigurationClient.
2627
@@ -29,7 +30,7 @@ class SourceControlConfigurationClientConfiguration(Configuration):
2930
3031
:param credential: Credential needed for the client to connect to Azure.
3132
:type credential: ~azure.core.credentials.TokenCredential
32-
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
33+
:param subscription_id: The ID of the target subscription.
3334
:type subscription_id: str
3435
"""
3536

@@ -48,9 +49,8 @@ def __init__(
4849

4950
self.credential = credential
5051
self.subscription_id = subscription_id
51-
self.api_version = "2020-10-01-preview"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
53-
kwargs.setdefault('sdk_moniker', 'mgmt-kubernetesconfiguration/{}'.format(VERSION))
53+
kwargs.setdefault('sdk_moniker', 'azure-mgmt-kubernetesconfiguration/{}'.format(VERSION))
5454
self._configure(**kwargs)
5555

5656
def _configure(

sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration/azure/mgmt/kubernetesconfiguration/_source_control_configuration_client.py

Lines changed: 299 additions & 28 deletions
Large diffs are not rendered by default.

sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration/azure/mgmt/kubernetesconfiguration/aio/_configuration.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
4-
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
57
# Code generated by Microsoft (R) AutoRest Code Generator.
6-
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
710
# --------------------------------------------------------------------------
8-
911
from typing import Any, TYPE_CHECKING
1012

1113
from azure.core.configuration import Configuration
@@ -18,7 +20,6 @@
1820
# pylint: disable=unused-import,ungrouped-imports
1921
from azure.core.credentials_async import AsyncTokenCredential
2022

21-
2223
class SourceControlConfigurationClientConfiguration(Configuration):
2324
"""Configuration for SourceControlConfigurationClient.
2425
@@ -27,15 +28,15 @@ class SourceControlConfigurationClientConfiguration(Configuration):
2728
2829
:param credential: Credential needed for the client to connect to Azure.
2930
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
30-
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
31+
:param subscription_id: The ID of the target subscription.
3132
:type subscription_id: str
3233
"""
3334

3435
def __init__(
3536
self,
3637
credential: "AsyncTokenCredential",
3738
subscription_id: str,
38-
**kwargs: Any
39+
**kwargs # type: Any
3940
) -> None:
4041
if credential is None:
4142
raise ValueError("Parameter 'credential' must not be None.")
@@ -45,9 +46,8 @@ def __init__(
4546

4647
self.credential = credential
4748
self.subscription_id = subscription_id
48-
self.api_version = "2020-10-01-preview"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
50-
kwargs.setdefault('sdk_moniker', 'mgmt-kubernetesconfiguration/{}'.format(VERSION))
50+
kwargs.setdefault('sdk_moniker', 'azure-mgmt-kubernetesconfiguration/{}'.format(VERSION))
5151
self._configure(**kwargs)
5252

5353
def _configure(

0 commit comments

Comments
 (0)