Skip to content

Commit

Permalink
T2 confluent 2021 01 15 (Azure#16221)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
00Kai0 and SDKAuto authored Jan 18, 2021
1 parent a77b621 commit c47cdc3
Show file tree
Hide file tree
Showing 15 changed files with 242 additions and 238 deletions.
11 changes: 11 additions & 0 deletions sdk/confluent/azure-mgmt-confluent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Release History

## 1.0.0 (2021-01-18)

**Features**

- Model OperationResult has a new parameter is_data_action

**Breaking changes**
- Operation MarketplaceAgreementsOperations.create has a new signature
- Operation OrganizationOperations.update has a new signature
- Model ConfluentAgreementResource has a new signature

## 1.0.0b1 (2020-11-23)

* Initial Release
10 changes: 10 additions & 0 deletions sdk/confluent/azure-mgmt-confluent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,13 @@ section of the project.


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-confluent%2FREADME.png)
# Usage


To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)



For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
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.
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-03-01-preview"
self.api_version = "2020-03-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-confluent/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
{
"chosen_version": "2020-03-01-preview",
"total_api_version_list": ["2020-03-01-preview"],
"chosen_version": "2020-03-01",
"total_api_version_list": ["2020-03-01"],
"client": {
"name": "ConfluentManagementClient",
"filename": "_confluent_management_client",
"description": "ConfluentManagementClient.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true
"has_lro_operations": true,
"client_side_validation": true
},
"global_parameters": {
"sync_method": {
"sync": {
"credential": {
"method_signature": "credential, # type: \"TokenCredential\"",
"signature": "credential, # type: \"TokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials.TokenCredential",
"required": true
},
"subscription_id": {
"method_signature": "subscription_id, # type: str",
"signature": "subscription_id, # type: str",
"description": "Microsoft Azure subscription id.",
"docstring_type": "str",
"required": true
}
},
"async_method": {
"async": {
"credential": {
"method_signature": "credential, # type: \"AsyncTokenCredential\"",
"signature": "credential, # type: \"AsyncTokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
"required": true
},
"subscription_id": {
"method_signature": "subscription_id, # type: str",
"signature": "subscription_id, # type: str",
"description": "Microsoft Azure subscription id.",
"docstring_type": "str",
"required": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b1"
VERSION = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-03-01-preview"
self.api_version = "2020-03-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-confluent/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core.exceptions import ARMErrorFormat

from ... import models
from ... import models as _models

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

models = models
models = _models

def __init__(self, client, config, serializer, deserializer) -> None:
self._client = client
Expand All @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
def list(
self,
**kwargs
) -> AsyncIterable["models.ConfluentAgreementResourceListResponse"]:
) -> AsyncIterable["_models.ConfluentAgreementResourceListResponse"]:
"""List Confluent marketplace agreements in the subscription.
List Confluent marketplace agreements in the subscription.
Expand All @@ -54,7 +54,7 @@ def list(
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.confluent.models.ConfluentAgreementResourceListResponse]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ConfluentAgreementResourceListResponse"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfluentAgreementResourceListResponse"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -97,7 +97,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response

if response.status_code not in [200]:
error = self._deserialize(models.ResourceProviderDefaultErrorResponse, response)
error = self._deserialize(_models.ResourceProviderDefaultErrorResponse, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

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

async def create(
self,
properties: Optional["models.ConfluentAgreementProperties"] = None,
body: Optional["_models.ConfluentAgreementResource"] = None,
**kwargs
) -> "models.ConfluentAgreementResource":
"""Create Confluent Marketplace agreement in the subscription.
) -> "_models.ConfluentAgreementResource":
"""Accept marketplace terms.
Create Confluent Marketplace agreement in the subscription.
Accept marketplace terms.
:param properties: Represents the properties of the resource.
:type properties: ~azure.mgmt.confluent.models.ConfluentAgreementProperties
:param body: Confluent Agreement resource.
:type body: ~azure.mgmt.confluent.models.ConfluentAgreementResource
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ConfluentAgreementResource, or the result of cls(response)
:rtype: ~azure.mgmt.confluent.models.ConfluentAgreementResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ConfluentAgreementResource"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfluentAgreementResource"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))

_body = models.ConfluentAgreementResource(properties=properties)
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

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

body_content_kwargs = {} # type: Dict[str, Any]
if _body is not None:
body_content = self._serialize.body(_body, 'ConfluentAgreementResource')
if body is not None:
body_content = self._serialize.body(body, 'ConfluentAgreementResource')
else:
body_content = None
body_content_kwargs['content'] = body_content
Expand All @@ -161,7 +159,7 @@ async def create(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.ResourceProviderDefaultErrorResponse, response)
error = self._deserialize(_models.ResourceProviderDefaultErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('ConfluentAgreementResource', pipeline_response)
Expand Down
Loading

0 comments on commit c47cdc3

Please sign in to comment.