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] Add revision and Version Description to Contract #2939

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
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ class ApiContract(Resource):
:vartype 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.
:type api_revision_description: str
:param api_version_description: Description of the Api Version.
:type api_version_description: str
:param api_version_set_id: A resource identifier for the related
ApiVersionSet.
:type api_version_set_id: str
Expand Down Expand Up @@ -78,6 +82,8 @@ class ApiContract(Resource):
'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},
'display_name': {'max_length': 300, 'min_length': 1},
'service_url': {'max_length': 2000, 'min_length': 0},
'path': {'required': True, 'max_length': 400, 'min_length': 0},
Expand All @@ -95,6 +101,8 @@ class ApiContract(Resource):
'api_version': {'key': 'properties.apiVersion', 'type': 'str'},
'is_current': {'key': 'properties.isCurrent', 'type': 'bool'},
'is_online': {'key': 'properties.isOnline', 'type': 'bool'},
'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'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
'service_url': {'key': 'properties.serviceUrl', 'type': 'str'},
Expand All @@ -113,6 +121,8 @@ def __init__(self, **kwargs):
self.api_version = kwargs.get('api_version', None)
self.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.display_name = kwargs.get('display_name', None)
self.service_url = kwargs.get('service_url', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ class ApiContractProperties(ApiEntityBaseContract):
:vartype 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.
:type api_revision_description: str
:param api_version_description: Description of the Api Version.
:type api_version_description: str
:param api_version_set_id: A resource identifier for the related
ApiVersionSet.
:type api_version_set_id: str
Expand All @@ -69,6 +73,8 @@ class ApiContractProperties(ApiEntityBaseContract):
'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},
'display_name': {'max_length': 300, 'min_length': 1},
'service_url': {'max_length': 2000, 'min_length': 0},
'path': {'required': True, 'max_length': 400, 'min_length': 0},
Expand All @@ -83,6 +89,8 @@ class ApiContractProperties(ApiEntityBaseContract):
'api_version': {'key': 'apiVersion', 'type': 'str'},
'is_current': {'key': 'isCurrent', 'type': 'bool'},
'is_online': {'key': 'isOnline', 'type': 'bool'},
'api_revision_description': {'key': 'apiRevisionDescription', 'type': 'str'},
'api_version_description': {'key': 'apiVersionDescription', 'type': 'str'},
'api_version_set_id': {'key': 'apiVersionSetId', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'service_url': {'key': 'serviceUrl', 'type': 'str'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ class ApiContractProperties(ApiEntityBaseContract):
:vartype 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.
:type api_revision_description: str
:param api_version_description: Description of the Api Version.
:type api_version_description: str
:param api_version_set_id: A resource identifier for the related
ApiVersionSet.
:type api_version_set_id: str
Expand All @@ -69,6 +73,8 @@ class ApiContractProperties(ApiEntityBaseContract):
'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},
'display_name': {'max_length': 300, 'min_length': 1},
'service_url': {'max_length': 2000, 'min_length': 0},
'path': {'required': True, 'max_length': 400, 'min_length': 0},
Expand All @@ -83,6 +89,8 @@ class ApiContractProperties(ApiEntityBaseContract):
'api_version': {'key': 'apiVersion', 'type': 'str'},
'is_current': {'key': 'isCurrent', 'type': 'bool'},
'is_online': {'key': 'isOnline', 'type': 'bool'},
'api_revision_description': {'key': 'apiRevisionDescription', 'type': 'str'},
'api_version_description': {'key': 'apiVersionDescription', 'type': 'str'},
'api_version_set_id': {'key': 'apiVersionSetId', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'service_url': {'key': 'serviceUrl', 'type': 'str'},
Expand All @@ -91,8 +99,8 @@ class ApiContractProperties(ApiEntityBaseContract):
'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_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_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, 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)
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 @@ -49,6 +49,10 @@ class ApiContract(Resource):
:vartype 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.
:type api_revision_description: str
:param api_version_description: Description of the Api Version.
:type api_version_description: str
:param api_version_set_id: A resource identifier for the related
ApiVersionSet.
:type api_version_set_id: str
Expand Down Expand Up @@ -78,6 +82,8 @@ class ApiContract(Resource):
'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},
'display_name': {'max_length': 300, 'min_length': 1},
'service_url': {'max_length': 2000, 'min_length': 0},
'path': {'required': True, 'max_length': 400, 'min_length': 0},
Expand All @@ -95,6 +101,8 @@ class ApiContract(Resource):
'api_version': {'key': 'properties.apiVersion', 'type': 'str'},
'is_current': {'key': 'properties.isCurrent', 'type': 'bool'},
'is_online': {'key': 'properties.isOnline', 'type': 'bool'},
'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'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
'service_url': {'key': 'properties.serviceUrl', 'type': 'str'},
Expand All @@ -103,7 +111,7 @@ class ApiContract(Resource):
'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_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, 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(ApiContract, self).__init__(**kwargs)
self.description = description
self.authentication_settings = authentication_settings
Expand All @@ -113,6 +121,8 @@ def __init__(self, *, path: str, description: str=None, authentication_settings=
self.api_version = api_version
self.is_current = None
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.display_name = display_name
self.service_url = service_url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ class ApiCreateOrUpdateParameter(Model):
:vartype 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.
:type api_revision_description: str
:param api_version_description: Description of the Api Version.
:type api_version_description: str
:param api_version_set_id: A resource identifier for the related
ApiVersionSet.
:type api_version_set_id: str
Expand Down Expand Up @@ -85,6 +89,8 @@ class ApiCreateOrUpdateParameter(Model):
'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},
'display_name': {'max_length': 300, 'min_length': 1},
'service_url': {'max_length': 2000, 'min_length': 0},
'path': {'required': True, 'max_length': 400, 'min_length': 0},
Expand All @@ -99,6 +105,8 @@ class ApiCreateOrUpdateParameter(Model):
'api_version': {'key': 'properties.apiVersion', 'type': 'str'},
'is_current': {'key': 'properties.isCurrent', 'type': 'bool'},
'is_online': {'key': 'properties.isOnline', 'type': 'bool'},
'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'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
'service_url': {'key': 'properties.serviceUrl', 'type': 'str'},
Expand All @@ -121,6 +129,8 @@ def __init__(self, **kwargs):
self.api_version = kwargs.get('api_version', None)
self.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.display_name = kwargs.get('display_name', None)
self.service_url = kwargs.get('service_url', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ class ApiCreateOrUpdateParameter(Model):
:vartype 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.
:type api_revision_description: str
:param api_version_description: Description of the Api Version.
:type api_version_description: str
:param api_version_set_id: A resource identifier for the related
ApiVersionSet.
:type api_version_set_id: str
Expand Down Expand Up @@ -85,6 +89,8 @@ class ApiCreateOrUpdateParameter(Model):
'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},
'display_name': {'max_length': 300, 'min_length': 1},
'service_url': {'max_length': 2000, 'min_length': 0},
'path': {'required': True, 'max_length': 400, 'min_length': 0},
Expand All @@ -99,6 +105,8 @@ class ApiCreateOrUpdateParameter(Model):
'api_version': {'key': 'properties.apiVersion', 'type': 'str'},
'is_current': {'key': 'properties.isCurrent', 'type': 'bool'},
'is_online': {'key': 'properties.isOnline', 'type': 'bool'},
'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'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
'service_url': {'key': 'properties.serviceUrl', 'type': 'str'},
Expand All @@ -111,7 +119,7 @@ class ApiCreateOrUpdateParameter(Model):
'soap_api_type': {'key': 'properties.apiType', 'type': 'str'},
}

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_version_set_id: str=None, display_name: str=None, service_url: str=None, protocols=None, api_version_set=None, content_value: str=None, content_format=None, wsdl_selector=None, soap_api_type=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, 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, content_value: str=None, content_format=None, wsdl_selector=None, soap_api_type=None, **kwargs) -> None:
super(ApiCreateOrUpdateParameter, self).__init__(**kwargs)
self.description = description
self.authentication_settings = authentication_settings
Expand All @@ -121,6 +129,8 @@ def __init__(self, *, path: str, description: str=None, authentication_settings=
self.api_version = api_version
self.is_current = None
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.display_name = display_name
self.service_url = service_url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ class ApiEntityBaseContract(Model):
:vartype 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.
:type api_revision_description: str
:param api_version_description: Description of the Api Version.
:type api_version_description: str
:param api_version_set_id: A resource identifier for the related
ApiVersionSet.
:type api_version_set_id: str
Expand All @@ -51,6 +55,8 @@ class ApiEntityBaseContract(Model):
'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},
}

_attribute_map = {
Expand All @@ -62,6 +68,8 @@ class ApiEntityBaseContract(Model):
'api_version': {'key': 'apiVersion', 'type': 'str'},
'is_current': {'key': 'isCurrent', 'type': 'bool'},
'is_online': {'key': 'isOnline', 'type': 'bool'},
'api_revision_description': {'key': 'apiRevisionDescription', 'type': 'str'},
'api_version_description': {'key': 'apiVersionDescription', 'type': 'str'},
'api_version_set_id': {'key': 'apiVersionSetId', 'type': 'str'},
}

Expand All @@ -75,4 +83,6 @@ def __init__(self, **kwargs):
self.api_version = kwargs.get('api_version', None)
self.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)
Loading