Skip to content

Commit 7165253

Browse files
author
SDKAuto
committed
CodeGen from PR 16870 in Azure/azure-rest-api-specs
Track2 modify readme.go.md (Azure#16870)
1 parent 3a14782 commit 7165253

23 files changed

+2248
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Release History
2+
3+
## 0.1.0 (1970-01-01)
4+
5+
* Initial Release
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include _meta.json
2+
recursive-include tests *.py *.yaml
3+
include *.md
4+
include azure/__init__.py
5+
include azure/mgmt/__init__.py
6+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure MyService Management Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
6+
7+
8+
# Usage
9+
10+
11+
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
12+
13+
14+
15+
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
16+
Code samples for this package can be found at [MyService Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
17+
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
18+
19+
20+
# Provide Feedback
21+
22+
If you encounter any bugs or have suggestions, please file an issue in the
23+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
24+
section of the project.
25+
26+
27+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-confidentialledger%2FREADME.png)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "754938e4cb9416358b02dcc11f444adf14b3b7b6",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/confidentialledger/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
7+
"readme": "specification/confidentialledger/resource-manager/readme.md"
8+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from ._configuration import ConfidentialLedgerConfiguration
13+
from ._confidential_ledger import ConfidentialLedger
14+
__all__ = ['ConfidentialLedger', 'ConfidentialLedgerConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
15+
from ._configuration import ConfidentialLedgerConfiguration
16+
from .operations import ConfidentialLedgerOperationsMixin
17+
from .operations import Operations
18+
from .operations import LedgerOperations
19+
from . import models
20+
21+
22+
class ConfidentialLedger(ConfidentialLedgerOperationsMixin, SDKClient):
23+
"""Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview.
24+
25+
:ivar config: Configuration for client.
26+
:vartype config: ConfidentialLedgerConfiguration
27+
28+
:ivar operations: Operations operations
29+
:vartype operations: microsoft.confidentialledger.operations.Operations
30+
:ivar ledger: Ledger operations
31+
:vartype ledger: microsoft.confidentialledger.operations.LedgerOperations
32+
33+
:param credentials: Credentials needed for the client to connect to Azure.
34+
:type credentials: :mod:`A msrestazure Credentials
35+
object<msrestazure.azure_active_directory>`
36+
:param subscription_id: The Azure subscription ID. This is a
37+
GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
38+
:type subscription_id: str
39+
:param str base_url: Service URL
40+
"""
41+
42+
def __init__(
43+
self, credentials, subscription_id, base_url=None):
44+
45+
self.config = ConfidentialLedgerConfiguration(credentials, subscription_id, base_url)
46+
super(ConfidentialLedger, self).__init__(self.config.credentials, self.config)
47+
48+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
49+
self.api_version = '2021-05-13-preview'
50+
self._serialize = Serializer(client_models)
51+
self._deserialize = Deserializer(client_models)
52+
53+
self.operations = Operations(
54+
self._client, self.config, self._serialize, self._deserialize)
55+
self.ledger = LedgerOperations(
56+
self._client, self.config, self._serialize, self._deserialize)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class ConfidentialLedgerConfiguration(AzureConfiguration):
17+
"""Configuration for ConfidentialLedger
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The Azure subscription ID. This is a
25+
GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
26+
:type subscription_id: str
27+
:param str base_url: Service URL
28+
"""
29+
30+
def __init__(
31+
self, credentials, subscription_id, base_url=None):
32+
33+
if credentials is None:
34+
raise ValueError("Parameter 'credentials' must not be None.")
35+
if subscription_id is None:
36+
raise ValueError("Parameter 'subscription_id' must not be None.")
37+
if not base_url:
38+
base_url = 'https://management.azure.com'
39+
40+
super(ConfidentialLedgerConfiguration, self).__init__(base_url)
41+
42+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
43+
self.keep_alive = True
44+
45+
self.add_user_agent('azure-mgmt-confidentialledger/{}'.format(VERSION))
46+
self.add_user_agent('Azure-SDK-For-Python')
47+
48+
self.credentials = credentials
49+
self.subscription_id = subscription_id
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
try:
13+
from ._models_py3 import AADBasedSecurityPrincipal
14+
from ._models_py3 import CertBasedSecurityPrincipal
15+
from ._models_py3 import CheckNameAvailabilityRequest
16+
from ._models_py3 import CheckNameAvailabilityResponse
17+
from ._models_py3 import ConfidentialLedgerModel
18+
from ._models_py3 import ErrorAdditionalInfo
19+
from ._models_py3 import ErrorDetail
20+
from ._models_py3 import ErrorResponse, ErrorResponseException
21+
from ._models_py3 import LedgerProperties
22+
from ._models_py3 import Location
23+
from ._models_py3 import Resource
24+
from ._models_py3 import ResourceProviderOperationDefinition
25+
from ._models_py3 import ResourceProviderOperationDisplay
26+
from ._models_py3 import SystemData
27+
from ._models_py3 import Tags
28+
except (SyntaxError, ImportError):
29+
from ._models import AADBasedSecurityPrincipal
30+
from ._models import CertBasedSecurityPrincipal
31+
from ._models import CheckNameAvailabilityRequest
32+
from ._models import CheckNameAvailabilityResponse
33+
from ._models import ConfidentialLedgerModel
34+
from ._models import ErrorAdditionalInfo
35+
from ._models import ErrorDetail
36+
from ._models import ErrorResponse, ErrorResponseException
37+
from ._models import LedgerProperties
38+
from ._models import Location
39+
from ._models import Resource
40+
from ._models import ResourceProviderOperationDefinition
41+
from ._models import ResourceProviderOperationDisplay
42+
from ._models import SystemData
43+
from ._models import Tags
44+
from ._paged_models import ConfidentialLedgerModelPaged
45+
from ._paged_models import ResourceProviderOperationDefinitionPaged
46+
from ._confidential_ledger_enums import (
47+
CreatedByType,
48+
LedgerType,
49+
ProvisioningState,
50+
LedgerRoleName,
51+
CheckNameAvailabilityReason,
52+
)
53+
54+
__all__ = [
55+
'AADBasedSecurityPrincipal',
56+
'CertBasedSecurityPrincipal',
57+
'CheckNameAvailabilityRequest',
58+
'CheckNameAvailabilityResponse',
59+
'ConfidentialLedgerModel',
60+
'ErrorAdditionalInfo',
61+
'ErrorDetail',
62+
'ErrorResponse', 'ErrorResponseException',
63+
'LedgerProperties',
64+
'Location',
65+
'Resource',
66+
'ResourceProviderOperationDefinition',
67+
'ResourceProviderOperationDisplay',
68+
'SystemData',
69+
'Tags',
70+
'ResourceProviderOperationDefinitionPaged',
71+
'ConfidentialLedgerModelPaged',
72+
'CreatedByType',
73+
'LedgerType',
74+
'ProvisioningState',
75+
'LedgerRoleName',
76+
'CheckNameAvailabilityReason',
77+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from enum import Enum
13+
14+
15+
class CreatedByType(str, Enum):
16+
17+
user = "User"
18+
application = "Application"
19+
managed_identity = "ManagedIdentity"
20+
key = "Key"
21+
22+
23+
class LedgerType(str, Enum):
24+
25+
unknown = "Unknown"
26+
public = "Public"
27+
private = "Private"
28+
29+
30+
class ProvisioningState(str, Enum):
31+
32+
unknown = "Unknown"
33+
succeeded = "Succeeded"
34+
failed = "Failed"
35+
canceled = "Canceled"
36+
creating = "Creating"
37+
deleting = "Deleting"
38+
updating = "Updating"
39+
40+
41+
class LedgerRoleName(str, Enum):
42+
43+
reader = "Reader"
44+
contributor = "Contributor"
45+
administrator = "Administrator"
46+
47+
48+
class CheckNameAvailabilityReason(str, Enum):
49+
50+
invalid = "Invalid"
51+
already_exists = "AlreadyExists"

0 commit comments

Comments
 (0)