Skip to content

Commit c47cdc3

Browse files
00Kai0SDKAuto
andauthored
T2 confluent 2021 01 15 (Azure#16221)
* CodeGen from PR 12362 in Azure/azure-rest-api-specs Confluent added stable version (Azure#12362) * update azure schema readme with stable version * Update go readme with stable version * Update java readme with stable version * Update readme with stable version * Update python reademe with stable version * Update ruby with stable version * created stable version confluent.json * create marketplace agreements example json * Create List Agreements json * Create Organization List Json * Create Organization example Json * Create Organization Delete Json * Create Organization Get Json * Create Organization List By resourceGroup Json * Create Organization List by subscription json * Create Organization update json * Update confluent json * update marketplace create json * Update marketplace list json * Update Operations list json * Update organization create json * Update Organization create json * test,version,CHANGELOG * fix changelog * fix * fix Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
1 parent a77b621 commit c47cdc3

15 files changed

+242
-238
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Release History
22

3+
## 1.0.0 (2021-01-18)
4+
5+
**Features**
6+
7+
- Model OperationResult has a new parameter is_data_action
8+
9+
**Breaking changes**
10+
- Operation MarketplaceAgreementsOperations.create has a new signature
11+
- Operation OrganizationOperations.update has a new signature
12+
- Model ConfluentAgreementResource has a new signature
13+
314
## 1.0.0b1 (2020-11-23)
415

516
* Initial Release

sdk/confluent/azure-mgmt-confluent/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,13 @@ section of the project.
2525

2626

2727
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-confluent%2FREADME.png)
28+
# Usage
29+
30+
31+
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
32+
33+
34+
35+
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
36+
Code samples for this package can be found at [Confluent Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
37+
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2020-03-01-preview"
51+
self.api_version = "2020-03-01"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-confluent/{}'.format(VERSION))
5454
self._configure(**kwargs)

sdk/confluent/azure-mgmt-confluent/azure/mgmt/confluent/_metadata.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
{
2-
"chosen_version": "2020-03-01-preview",
3-
"total_api_version_list": ["2020-03-01-preview"],
2+
"chosen_version": "2020-03-01",
3+
"total_api_version_list": ["2020-03-01"],
44
"client": {
55
"name": "ConfluentManagementClient",
66
"filename": "_confluent_management_client",
77
"description": "ConfluentManagementClient.",
88
"base_url": "\u0027https://management.azure.com\u0027",
99
"custom_base_url": null,
1010
"azure_arm": true,
11-
"has_lro_operations": true
11+
"has_lro_operations": true,
12+
"client_side_validation": true
1213
},
1314
"global_parameters": {
14-
"sync_method": {
15+
"sync": {
1516
"credential": {
16-
"method_signature": "credential, # type: \"TokenCredential\"",
17+
"signature": "credential, # type: \"TokenCredential\"",
1718
"description": "Credential needed for the client to connect to Azure.",
1819
"docstring_type": "~azure.core.credentials.TokenCredential",
1920
"required": true
2021
},
2122
"subscription_id": {
22-
"method_signature": "subscription_id, # type: str",
23+
"signature": "subscription_id, # type: str",
2324
"description": "Microsoft Azure subscription id.",
2425
"docstring_type": "str",
2526
"required": true
2627
}
2728
},
28-
"async_method": {
29+
"async": {
2930
"credential": {
30-
"method_signature": "credential, # type: \"AsyncTokenCredential\"",
31+
"signature": "credential, # type: \"AsyncTokenCredential\"",
3132
"description": "Credential needed for the client to connect to Azure.",
3233
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
3334
"required": true
3435
},
3536
"subscription_id": {
36-
"method_signature": "subscription_id, # type: str",
37+
"signature": "subscription_id, # type: str",
3738
"description": "Microsoft Azure subscription id.",
3839
"docstring_type": "str",
3940
"required": true

sdk/confluent/azure-mgmt-confluent/azure/mgmt/confluent/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b1"
9+
VERSION = "1.0.0"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2020-03-01-preview"
48+
self.api_version = "2020-03-01"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-confluent/{}'.format(VERSION))
5151
self._configure(**kwargs)

sdk/confluent/azure-mgmt-confluent/azure/mgmt/confluent/aio/operations/_marketplace_agreements_operations.py

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1515
from azure.mgmt.core.exceptions import ARMErrorFormat
1616

17-
from ... import models
17+
from ... import models as _models
1818

1919
T = TypeVar('T')
2020
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -33,7 +33,7 @@ class MarketplaceAgreementsOperations:
3333
:param deserializer: An object model deserializer.
3434
"""
3535

36-
models = models
36+
models = _models
3737

3838
def __init__(self, client, config, serializer, deserializer) -> None:
3939
self._client = client
@@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4444
def list(
4545
self,
4646
**kwargs
47-
) -> AsyncIterable["models.ConfluentAgreementResourceListResponse"]:
47+
) -> AsyncIterable["_models.ConfluentAgreementResourceListResponse"]:
4848
"""List Confluent marketplace agreements in the subscription.
4949
5050
List Confluent marketplace agreements in the subscription.
@@ -54,7 +54,7 @@ def list(
5454
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.confluent.models.ConfluentAgreementResourceListResponse]
5555
:raises: ~azure.core.exceptions.HttpResponseError
5656
"""
57-
cls = kwargs.pop('cls', None) # type: ClsType["models.ConfluentAgreementResourceListResponse"]
57+
cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfluentAgreementResourceListResponse"]
5858
error_map = {
5959
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6060
}
@@ -97,7 +97,7 @@ async def get_next(next_link=None):
9797
response = pipeline_response.http_response
9898

9999
if response.status_code not in [200]:
100-
error = self._deserialize(models.ResourceProviderDefaultErrorResponse, response)
100+
error = self._deserialize(_models.ResourceProviderDefaultErrorResponse, response)
101101
map_error(status_code=response.status_code, response=response, error_map=error_map)
102102
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
103103

@@ -110,27 +110,25 @@ async def get_next(next_link=None):
110110

111111
async def create(
112112
self,
113-
properties: Optional["models.ConfluentAgreementProperties"] = None,
113+
body: Optional["_models.ConfluentAgreementResource"] = None,
114114
**kwargs
115-
) -> "models.ConfluentAgreementResource":
116-
"""Create Confluent Marketplace agreement in the subscription.
115+
) -> "_models.ConfluentAgreementResource":
116+
"""Accept marketplace terms.
117117
118-
Create Confluent Marketplace agreement in the subscription.
118+
Accept marketplace terms.
119119
120-
:param properties: Represents the properties of the resource.
121-
:type properties: ~azure.mgmt.confluent.models.ConfluentAgreementProperties
120+
:param body: Confluent Agreement resource.
121+
:type body: ~azure.mgmt.confluent.models.ConfluentAgreementResource
122122
:keyword callable cls: A custom type or function that will be passed the direct response
123123
:return: ConfluentAgreementResource, or the result of cls(response)
124124
:rtype: ~azure.mgmt.confluent.models.ConfluentAgreementResource
125125
:raises: ~azure.core.exceptions.HttpResponseError
126126
"""
127-
cls = kwargs.pop('cls', None) # type: ClsType["models.ConfluentAgreementResource"]
127+
cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfluentAgreementResource"]
128128
error_map = {
129129
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
130130
}
131131
error_map.update(kwargs.pop('error_map', {}))
132-
133-
_body = models.ConfluentAgreementResource(properties=properties)
134132
content_type = kwargs.pop("content_type", "application/json")
135133
accept = "application/json"
136134

@@ -150,8 +148,8 @@ async def create(
150148
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
151149

152150
body_content_kwargs = {} # type: Dict[str, Any]
153-
if _body is not None:
154-
body_content = self._serialize.body(_body, 'ConfluentAgreementResource')
151+
if body is not None:
152+
body_content = self._serialize.body(body, 'ConfluentAgreementResource')
155153
else:
156154
body_content = None
157155
body_content_kwargs['content'] = body_content
@@ -161,7 +159,7 @@ async def create(
161159

162160
if response.status_code not in [200]:
163161
map_error(status_code=response.status_code, response=response, error_map=error_map)
164-
error = self._deserialize(models.ResourceProviderDefaultErrorResponse, response)
162+
error = self._deserialize(_models.ResourceProviderDefaultErrorResponse, response)
165163
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
166164

167165
deserialized = self._deserialize('ConfluentAgreementResource', pipeline_response)

0 commit comments

Comments
 (0)