Skip to content

Commit

Permalink
Generated from a02fd4eda769fec85566ec09937ad90b62212360 (#2939)
Browse files Browse the repository at this point in the history
add revision description
  • Loading branch information
AutorestCI authored Jul 17, 2018
1 parent 9ada872 commit 235390f
Show file tree
Hide file tree
Showing 12 changed files with 120 additions and 8 deletions.
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

0 comments on commit 235390f

Please sign in to comment.