Skip to content

Commit

Permalink
CodeGen from PR 16715 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Schema resource added in REST API Spec for api-version 2021-08-01 (Azure#16715)

* Adds base for updating Microsoft.ApiManagement from version preview/2021-01-01-preview to version 2021-04-01-preview

* Updates readme

* Updates API version in new specs and examples

* Added support for GraphQL API type (Azure#14851)

* Added support for GraphQL API type

* Added missing enum value for GraphQL APIs.

* add schema definition fix from 2021-01-01-preview (Azure#14883)

Co-authored-by: Alan Feng <[email protected]>

* Vanguard: Get Outbound Network Dependency (Azure#14900)

* outbound dependency

* fix resource

* Update backup/restore API for managed identities (Azure#14973)

* Update backup/restore API for system-assigned and user-assigned identities

* Fix formatting issue

* Rename user-assigned-msi-client-id with client-id

* SystemData implemenation on API Management Control Plane (Azure#14899)

* system-data

* fix spec

* remove unreferenced file

* APIM - Network Watcher Connectivity Check integration specs (Azure#15056)

* Connectivity Check API Specs

* Fix

* Fix errors

* style fixs

* Fix 202 code

* HTTPConnect request parameters

* Fix errors

Co-authored-by: Nicolás Barrera <[email protected]>

* Parameter examples added (Azure#14836)

* platformversion (Azure#15114)

* fix update service (Azure#15478)

* HttpConnect example (Azure#15493)

* HttpConnect example

* Prettifier fix

Co-authored-by: Nicolás Barrera <[email protected]>

* Rename from SchemaContract to ApiSchemaContract

* apimschema.json added to last apim preview version

* Completing specification for Schema resource.
Fixing changes in SchemaContract.

* Value field added to Schema resource specification.

* path fixed.
Renamed from ApiSchema to Schema.
Adding suppression rule to readme.md
Custom word added for spellcheck

* Fixing PR observations.

* Added properties of difference API spec format for "SchemaDocumentProperties" (Azure#15703)

* add schema definition fix from 2021-01-01-preview

* added properties for SchemaDocumentProperties

* updated the fix

* updated fix

* [APIM]Add private endpoint connection APIs (Azure#15115)

* Add private endpoint connection apis

* add readme

* quick fixes

* fix to PE contract

* Small fixes

* small fixes

* small fixes

* Small fixes

* small fixes

* small fix

* small fixes

* small fixes

* small fixes

* Update readme.md

* fix error

* small fix

* fix format

* address comments

* small fixes

* Change to lower case

* small fixes

Co-authored-by: msyyc <[email protected]>

* Adds base for updating Microsoft.ApiManagement from version preview/2021-04-01-preview to version 2021-08-01

* Updates readme

* Updates API version in new specs and examples

* Merge main

* Modifications to Schema definition to add "description" field.
Updating examples of Schema.

* Fixing apimanagement.json

* Prettier applied in files

* Fixing PR comments

* fixing x-ms-long-running-operation.

* x-ms-long-running-operation : true in apischema.

* Removing "Resource" type from apimanagement.json

* Apimschema.json updated to point to types.json for ErrorResponse.

* Merging from 2021-04-01-preview to 2021-08-01 stable version.

* undoing change of responseBody

* Updating ErrorResponse.

* Fixing definitions merge.

* Changing definitions to fix output of examples.

* Changes in definitions

* Updating response in some examples.

* Rolling back
ApiSchema -> Schema
Schema -> GlobalSchema

* Changes to undo apimapis.json and adding prefix for Global example Schemas.

* Setting x-ms-long-running-operation-options to location.

Co-authored-by: Samir Solanki <[email protected]>
Co-authored-by: Alexander Zaslonov <[email protected]>
Co-authored-by: DreamlessA <[email protected]>
Co-authored-by: Alan Feng <[email protected]>
Co-authored-by: Jatin Sanghvi <[email protected]>
Co-authored-by: Nicolás Barrera <[email protected]>
Co-authored-by: Nicolás Barrera <[email protected]>
Co-authored-by: VitaliyKurokhtin <[email protected]>
Co-authored-by: Christian Palomares <[email protected]>
Co-authored-by: RupengLiu <[email protected]>
Co-authored-by: msyyc <[email protected]>
  • Loading branch information
12 people committed Jan 5, 2022
1 parent 3a14782 commit 53278c6
Show file tree
Hide file tree
Showing 85 changed files with 5,172 additions and 945 deletions.
1 change: 1 addition & 0 deletions sdk/apimanagement/azure-mgmt-apimanagement/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/apimanagement/azure-mgmt-apimanagement/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "925e8285703ddd461588d8f5fbf14bd97c286fab",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/apimanagement/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",
"readme": "specification/apimanagement/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from msrest import Serializer, Deserializer

from ._configuration import ApiManagementClientConfiguration
from .operations import ApiManagementClientOperationsMixin
from .operations import ApiOperations
from .operations import ApiRevisionOperations
from .operations import ApiReleaseOperations
Expand Down Expand Up @@ -56,13 +57,15 @@
from .operations import NotificationRecipientUserOperations
from .operations import NotificationRecipientEmailOperations
from .operations import OpenIdConnectProviderOperations
from .operations import OutboundNetworkDependenciesEndpointsOperations
from .operations import PolicyOperations
from .operations import PolicyDescriptionOperations
from .operations import PortalRevisionOperations
from .operations import PortalSettingsOperations
from .operations import SignInSettingsOperations
from .operations import SignUpSettingsOperations
from .operations import DelegationSettingsOperations
from .operations import PrivateEndpointConnectionOperations
from .operations import ProductOperations
from .operations import ProductApiOperations
from .operations import ProductGroupOperations
Expand All @@ -72,6 +75,7 @@
from .operations import QuotaByPeriodKeysOperations
from .operations import RegionOperations
from .operations import ReportsOperations
from .operations import SchemaOperations
from .operations import TenantSettingsOperations
from .operations import ApiManagementSkusOperations
from .operations import SubscriptionOperations
Expand All @@ -88,7 +92,7 @@
from . import models


class ApiManagementClient(SDKClient):
class ApiManagementClient(ApiManagementClientOperationsMixin, SDKClient):
"""ApiManagement Client
:ivar config: Configuration for client.
Expand Down Expand Up @@ -180,6 +184,8 @@ class ApiManagementClient(SDKClient):
:vartype notification_recipient_email: azure.mgmt.apimanagement.operations.NotificationRecipientEmailOperations
:ivar open_id_connect_provider: OpenIdConnectProvider operations
:vartype open_id_connect_provider: azure.mgmt.apimanagement.operations.OpenIdConnectProviderOperations
:ivar outbound_network_dependencies_endpoints: OutboundNetworkDependenciesEndpoints operations
:vartype outbound_network_dependencies_endpoints: azure.mgmt.apimanagement.operations.OutboundNetworkDependenciesEndpointsOperations
:ivar policy: Policy operations
:vartype policy: azure.mgmt.apimanagement.operations.PolicyOperations
:ivar policy_description: PolicyDescription operations
Expand All @@ -194,6 +200,8 @@ class ApiManagementClient(SDKClient):
:vartype sign_up_settings: azure.mgmt.apimanagement.operations.SignUpSettingsOperations
:ivar delegation_settings: DelegationSettings operations
:vartype delegation_settings: azure.mgmt.apimanagement.operations.DelegationSettingsOperations
:ivar private_endpoint_connection: PrivateEndpointConnection operations
:vartype private_endpoint_connection: azure.mgmt.apimanagement.operations.PrivateEndpointConnectionOperations
:ivar product: Product operations
:vartype product: azure.mgmt.apimanagement.operations.ProductOperations
:ivar product_api: ProductApi operations
Expand All @@ -212,6 +220,8 @@ class ApiManagementClient(SDKClient):
:vartype region: azure.mgmt.apimanagement.operations.RegionOperations
:ivar reports: Reports operations
:vartype reports: azure.mgmt.apimanagement.operations.ReportsOperations
:ivar schema: Schema operations
:vartype schema: azure.mgmt.apimanagement.operations.SchemaOperations
:ivar tenant_settings: TenantSettings operations
:vartype tenant_settings: azure.mgmt.apimanagement.operations.TenantSettingsOperations
:ivar api_management_skus: ApiManagementSkus operations
Expand Down Expand Up @@ -256,7 +266,7 @@ def __init__(
super(ApiManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2020-12-01'
self.api_version = '2021-04-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down Expand Up @@ -346,6 +356,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.open_id_connect_provider = OpenIdConnectProviderOperations(
self._client, self.config, self._serialize, self._deserialize)
self.outbound_network_dependencies_endpoints = OutboundNetworkDependenciesEndpointsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.policy = PolicyOperations(
self._client, self.config, self._serialize, self._deserialize)
self.policy_description = PolicyDescriptionOperations(
Expand All @@ -360,6 +372,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.delegation_settings = DelegationSettingsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_endpoint_connection = PrivateEndpointConnectionOperations(
self._client, self.config, self._serialize, self._deserialize)
self.product = ProductOperations(
self._client, self.config, self._serialize, self._deserialize)
self.product_api = ProductApiOperations(
Expand All @@ -378,6 +392,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.reports = ReportsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.schema = SchemaOperations(
self._client, self.config, self._serialize, self._deserialize)
self.tenant_settings = TenantSettingsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_management_skus = ApiManagementSkusOperations(
Expand Down
Loading

0 comments on commit 53278c6

Please sign in to comment.