original_docstring: 
          Get the list of assigned ports of specific cloud service
          Return None if failed
          :param cloud_service_name:
          :return:
          
docstring: Get the list of assigned ports of specific cloud service
  Return None if failed
docstring_tokens: Get the list of assigned ports of specific cloud service Return None if failed
code: def __get_assigned_ports(self, cloud_service_name):
          """
          Get the list of assigned ports of specific cloud service
          Return None if failed
          :param cloud_service_name:
          :return:
          """
          try:
              properties = self.sms.get_hosted_service_properties(cloud_service_name, True)
          except Exception as e:
              log.error(e)
              return None
          ports = []
          for deployment in properties.deployments.deployments:
              for role in deployment.role_list.roles:
                  for configuration_set in role.configuration_sets.configuration_sets:
                      if configuration_set.configuration_set_type == 'NetworkConfiguration':
                          if configuration_set.input_endpoints is not None:
                              for input_endpoint in configuration_set.input_endpoints.input_endpoints:
                                  ports.append(input_endpoint.port)
          return ports
code_tokens: def __get_assigned_ports ( self , cloud_service_name ) : try : properties = self . sms . get_hosted_service_properties ( cloud_service_name , True ) except Exception as e : log . error ( e ) return None ports = [ ] for deployment in properties . deployments . deployments : for role in deployment . role_list . roles : for configuration_set in role . configuration_sets . configuration_sets : if configuration_set . configuration_set_type == 'NetworkConfiguration' : if configuration_set . input_endpoints is not None : for input_endpoint in configuration_set . input_endpoints . input_endpoints : ports . append ( input_endpoint . port ) return ports
short_docstring: Get the list of assigned ports of specific cloud service
  Return None if failed
short_docstring_tokens: Get the list of assigned ports of specific cloud service Return None if failed
comment: """
          Get the list of assigned ports of specific cloud service
          Return None if failed
          :param cloud_service_name:
          :return:
          """