Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR apimanagement/resource-manager] [Hub Generated] Review request for Microsoft.ApiManagement to add version stable/2019-01-01 #4795

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions azure-mgmt-apimanagement/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
3 changes: 3 additions & 0 deletions azure-mgmt-apimanagement/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-apimanagement%2FREADME.png

Large diffs are not rendered by default.

540 changes: 276 additions & 264 deletions azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/__init__.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AccessInformationContract(Model):
:type primary_key: str
:param secondary_key: Secondary access key.
:type secondary_key: str
:param enabled: Tenant access information of the API Management service.
:param enabled: Determines whether direct access is enabled.
:type enabled: bool
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AccessInformationContract(Model):
:type primary_key: str
:param secondary_key: Secondary access key.
:type secondary_key: str
:param enabled: Tenant access information of the API Management service.
:param enabled: Determines whether direct access is enabled.
:type enabled: bool
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class AccessInformationUpdateParameters(Model):
"""Tenant access information update parameters of the API Management service.

:param enabled: Tenant access information of the API Management service.
:param enabled: Determines whether direct access is enabled.
:type enabled: bool
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class AccessInformationUpdateParameters(Model):
"""Tenant access information update parameters of the API Management service.

:param enabled: Tenant access information of the API Management service.
:param enabled: Determines whether direct access is enabled.
:type enabled: bool
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class ApiContract(Resource):
"""API details.
"""Api details.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -45,8 +45,8 @@ class ApiContract(Resource):
:param api_version: Indicates the Version identifier of the API if the API
is versioned
:type api_version: str
:ivar is_current: Indicates if API revision is current api revision.
:vartype is_current: bool
:param is_current: Indicates if API revision is current api revision.
:type is_current: bool
:ivar is_online: Indicates if API revision is accessible via the gateway.
:vartype is_online: bool
:param api_revision_description: Description of the Api Revision.
Expand All @@ -56,10 +56,15 @@ class ApiContract(Resource):
:param api_version_set_id: A resource identifier for the related
ApiVersionSet.
:type api_version_set_id: str
:param display_name: API name.
:param subscription_required: Specifies whether an API or Product
subscription is required for accessing the API.
:type subscription_required: bool
:param source_api_id: API identifier of the source API.
:type source_api_id: str
:param display_name: API name. Must be 1 to 300 characters long.
:type display_name: str
:param service_url: Absolute URL of the backend service implementing this
API.
API. Cannot be more than 2000 characters long.
:type service_url: str
:param path: Required. Relative URL uniquely identifying this API and all
of its resource paths within the API Management service instance. It is
Expand All @@ -69,7 +74,7 @@ class ApiContract(Resource):
:param protocols: Describes on which protocols the operations in this API
can be invoked.
:type protocols: list[str or ~azure.mgmt.apimanagement.models.Protocol]
:param api_version_set:
:param api_version_set: Version set details
:type api_version_set:
~azure.mgmt.apimanagement.models.ApiVersionSetContractDetails
"""
Expand All @@ -80,7 +85,6 @@ class ApiContract(Resource):
'type': {'readonly': True},
'api_revision': {'max_length': 100, 'min_length': 1},
'api_version': {'max_length': 100},
'is_current': {'readonly': True},
'is_online': {'readonly': True},
'api_revision_description': {'max_length': 256},
'api_version_description': {'max_length': 256},
Expand All @@ -104,6 +108,8 @@ class ApiContract(Resource):
'api_revision_description': {'key': 'properties.apiRevisionDescription', 'type': 'str'},
'api_version_description': {'key': 'properties.apiVersionDescription', 'type': 'str'},
'api_version_set_id': {'key': 'properties.apiVersionSetId', 'type': 'str'},
'subscription_required': {'key': 'properties.subscriptionRequired', 'type': 'bool'},
'source_api_id': {'key': 'properties.sourceApiId', 'type': 'str'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
'service_url': {'key': 'properties.serviceUrl', 'type': 'str'},
'path': {'key': 'properties.path', 'type': 'str'},
Expand All @@ -119,11 +125,13 @@ def __init__(self, **kwargs):
self.api_type = kwargs.get('api_type', None)
self.api_revision = kwargs.get('api_revision', None)
self.api_version = kwargs.get('api_version', None)
self.is_current = None
self.is_current = kwargs.get('is_current', None)
self.is_online = None
self.api_revision_description = kwargs.get('api_revision_description', None)
self.api_version_description = kwargs.get('api_version_description', None)
self.api_version_set_id = kwargs.get('api_version_set_id', None)
self.subscription_required = kwargs.get('subscription_required', None)
self.source_api_id = kwargs.get('source_api_id', None)
self.display_name = kwargs.get('display_name', None)
self.service_url = kwargs.get('service_url', None)
self.path = kwargs.get('path', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class ApiContractProperties(ApiEntityBaseContract):
:param api_version: Indicates the Version identifier of the API if the API
is versioned
:type api_version: str
:ivar is_current: Indicates if API revision is current api revision.
:vartype is_current: bool
:param is_current: Indicates if API revision is current api revision.
:type is_current: bool
:ivar is_online: Indicates if API revision is accessible via the gateway.
:vartype is_online: bool
:param api_revision_description: Description of the Api Revision.
Expand All @@ -50,10 +50,15 @@ class ApiContractProperties(ApiEntityBaseContract):
:param api_version_set_id: A resource identifier for the related
ApiVersionSet.
:type api_version_set_id: str
:param display_name: API name.
:param subscription_required: Specifies whether an API or Product
subscription is required for accessing the API.
:type subscription_required: bool
:param source_api_id: API identifier of the source API.
:type source_api_id: str
:param display_name: API name. Must be 1 to 300 characters long.
:type display_name: str
:param service_url: Absolute URL of the backend service implementing this
API.
API. Cannot be more than 2000 characters long.
:type service_url: str
:param path: Required. Relative URL uniquely identifying this API and all
of its resource paths within the API Management service instance. It is
Expand All @@ -63,15 +68,14 @@ class ApiContractProperties(ApiEntityBaseContract):
:param protocols: Describes on which protocols the operations in this API
can be invoked.
:type protocols: list[str or ~azure.mgmt.apimanagement.models.Protocol]
:param api_version_set:
:param api_version_set: Version set details
:type api_version_set:
~azure.mgmt.apimanagement.models.ApiVersionSetContractDetails
"""

_validation = {
'api_revision': {'max_length': 100, 'min_length': 1},
'api_version': {'max_length': 100},
'is_current': {'readonly': True},
'is_online': {'readonly': True},
'api_revision_description': {'max_length': 256},
'api_version_description': {'max_length': 256},
Expand All @@ -92,6 +96,8 @@ class ApiContractProperties(ApiEntityBaseContract):
'api_revision_description': {'key': 'apiRevisionDescription', 'type': 'str'},
'api_version_description': {'key': 'apiVersionDescription', 'type': 'str'},
'api_version_set_id': {'key': 'apiVersionSetId', 'type': 'str'},
'subscription_required': {'key': 'subscriptionRequired', 'type': 'bool'},
'source_api_id': {'key': 'sourceApiId', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'service_url': {'key': 'serviceUrl', 'type': 'str'},
'path': {'key': 'path', 'type': 'str'},
Expand All @@ -101,6 +107,7 @@ class ApiContractProperties(ApiEntityBaseContract):

def __init__(self, **kwargs):
super(ApiContractProperties, self).__init__(**kwargs)
self.source_api_id = kwargs.get('source_api_id', None)
self.display_name = kwargs.get('display_name', None)
self.service_url = kwargs.get('service_url', None)
self.path = kwargs.get('path', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class ApiContractProperties(ApiEntityBaseContract):
:param api_version: Indicates the Version identifier of the API if the API
is versioned
:type api_version: str
:ivar is_current: Indicates if API revision is current api revision.
:vartype is_current: bool
:param is_current: Indicates if API revision is current api revision.
:type is_current: bool
:ivar is_online: Indicates if API revision is accessible via the gateway.
:vartype is_online: bool
:param api_revision_description: Description of the Api Revision.
Expand All @@ -50,10 +50,15 @@ class ApiContractProperties(ApiEntityBaseContract):
:param api_version_set_id: A resource identifier for the related
ApiVersionSet.
:type api_version_set_id: str
:param display_name: API name.
:param subscription_required: Specifies whether an API or Product
subscription is required for accessing the API.
:type subscription_required: bool
:param source_api_id: API identifier of the source API.
:type source_api_id: str
:param display_name: API name. Must be 1 to 300 characters long.
:type display_name: str
:param service_url: Absolute URL of the backend service implementing this
API.
API. Cannot be more than 2000 characters long.
:type service_url: str
:param path: Required. Relative URL uniquely identifying this API and all
of its resource paths within the API Management service instance. It is
Expand All @@ -63,15 +68,14 @@ class ApiContractProperties(ApiEntityBaseContract):
:param protocols: Describes on which protocols the operations in this API
can be invoked.
:type protocols: list[str or ~azure.mgmt.apimanagement.models.Protocol]
:param api_version_set:
:param api_version_set: Version set details
:type api_version_set:
~azure.mgmt.apimanagement.models.ApiVersionSetContractDetails
"""

_validation = {
'api_revision': {'max_length': 100, 'min_length': 1},
'api_version': {'max_length': 100},
'is_current': {'readonly': True},
'is_online': {'readonly': True},
'api_revision_description': {'max_length': 256},
'api_version_description': {'max_length': 256},
Expand All @@ -92,15 +96,18 @@ class ApiContractProperties(ApiEntityBaseContract):
'api_revision_description': {'key': 'apiRevisionDescription', 'type': 'str'},
'api_version_description': {'key': 'apiVersionDescription', 'type': 'str'},
'api_version_set_id': {'key': 'apiVersionSetId', 'type': 'str'},
'subscription_required': {'key': 'subscriptionRequired', 'type': 'bool'},
'source_api_id': {'key': 'sourceApiId', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'service_url': {'key': 'serviceUrl', 'type': 'str'},
'path': {'key': 'path', 'type': 'str'},
'protocols': {'key': 'protocols', 'type': '[Protocol]'},
'api_version_set': {'key': 'apiVersionSet', 'type': 'ApiVersionSetContractDetails'},
}

def __init__(self, *, path: str, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, display_name: str=None, service_url: str=None, protocols=None, api_version_set=None, **kwargs) -> None:
super(ApiContractProperties, self).__init__(description=description, authentication_settings=authentication_settings, subscription_key_parameter_names=subscription_key_parameter_names, api_type=api_type, api_revision=api_revision, api_version=api_version, api_revision_description=api_revision_description, api_version_description=api_version_description, api_version_set_id=api_version_set_id, **kwargs)
def __init__(self, *, path: str, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, source_api_id: str=None, display_name: str=None, service_url: str=None, protocols=None, api_version_set=None, **kwargs) -> None:
super(ApiContractProperties, self).__init__(description=description, authentication_settings=authentication_settings, subscription_key_parameter_names=subscription_key_parameter_names, api_type=api_type, api_revision=api_revision, api_version=api_version, is_current=is_current, api_revision_description=api_revision_description, api_version_description=api_version_description, api_version_set_id=api_version_set_id, subscription_required=subscription_required, **kwargs)
self.source_api_id = source_api_id
self.display_name = display_name
self.service_url = service_url
self.path = path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class ApiContract(Resource):
"""API details.
"""Api details.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -45,8 +45,8 @@ class ApiContract(Resource):
:param api_version: Indicates the Version identifier of the API if the API
is versioned
:type api_version: str
:ivar is_current: Indicates if API revision is current api revision.
:vartype is_current: bool
:param is_current: Indicates if API revision is current api revision.
:type is_current: bool
:ivar is_online: Indicates if API revision is accessible via the gateway.
:vartype is_online: bool
:param api_revision_description: Description of the Api Revision.
Expand All @@ -56,10 +56,15 @@ class ApiContract(Resource):
:param api_version_set_id: A resource identifier for the related
ApiVersionSet.
:type api_version_set_id: str
:param display_name: API name.
:param subscription_required: Specifies whether an API or Product
subscription is required for accessing the API.
:type subscription_required: bool
:param source_api_id: API identifier of the source API.
:type source_api_id: str
:param display_name: API name. Must be 1 to 300 characters long.
:type display_name: str
:param service_url: Absolute URL of the backend service implementing this
API.
API. Cannot be more than 2000 characters long.
:type service_url: str
:param path: Required. Relative URL uniquely identifying this API and all
of its resource paths within the API Management service instance. It is
Expand All @@ -69,7 +74,7 @@ class ApiContract(Resource):
:param protocols: Describes on which protocols the operations in this API
can be invoked.
:type protocols: list[str or ~azure.mgmt.apimanagement.models.Protocol]
:param api_version_set:
:param api_version_set: Version set details
:type api_version_set:
~azure.mgmt.apimanagement.models.ApiVersionSetContractDetails
"""
Expand All @@ -80,7 +85,6 @@ class ApiContract(Resource):
'type': {'readonly': True},
'api_revision': {'max_length': 100, 'min_length': 1},
'api_version': {'max_length': 100},
'is_current': {'readonly': True},
'is_online': {'readonly': True},
'api_revision_description': {'max_length': 256},
'api_version_description': {'max_length': 256},
Expand All @@ -104,26 +108,30 @@ class ApiContract(Resource):
'api_revision_description': {'key': 'properties.apiRevisionDescription', 'type': 'str'},
'api_version_description': {'key': 'properties.apiVersionDescription', 'type': 'str'},
'api_version_set_id': {'key': 'properties.apiVersionSetId', 'type': 'str'},
'subscription_required': {'key': 'properties.subscriptionRequired', 'type': 'bool'},
'source_api_id': {'key': 'properties.sourceApiId', 'type': 'str'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
'service_url': {'key': 'properties.serviceUrl', 'type': 'str'},
'path': {'key': 'properties.path', 'type': 'str'},
'protocols': {'key': 'properties.protocols', 'type': '[Protocol]'},
'api_version_set': {'key': 'properties.apiVersionSet', 'type': 'ApiVersionSetContractDetails'},
}

def __init__(self, *, path: str, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, display_name: str=None, service_url: str=None, protocols=None, api_version_set=None, **kwargs) -> None:
def __init__(self, *, path: str, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, source_api_id: str=None, display_name: str=None, service_url: str=None, protocols=None, api_version_set=None, **kwargs) -> None:
super(ApiContract, self).__init__(**kwargs)
self.description = description
self.authentication_settings = authentication_settings
self.subscription_key_parameter_names = subscription_key_parameter_names
self.api_type = api_type
self.api_revision = api_revision
self.api_version = api_version
self.is_current = None
self.is_current = is_current
self.is_online = None
self.api_revision_description = api_revision_description
self.api_version_description = api_version_description
self.api_version_set_id = api_version_set_id
self.subscription_required = subscription_required
self.source_api_id = source_api_id
self.display_name = display_name
self.service_url = service_url
self.path = path
Expand Down
Loading