AppLCM_Templates.ttcn 3.67 KB
Newer Older
Elian Kraja's avatar
Elian Kraja committed
module AppLCM_Templates {
  
  // JSON
  import from JSON all;
  
  // LibCommon
  import from LibCommon_BasicTypesAndValues all;
  
  import from AppLCM_TypesAndValues all;
  import from AppLCM_Pixits all;
  

  template (present) CreateAppInstanceRequest m_lifecycle_management_create (
  	in template (present) String p_appDId := ?
  ) := {
Elian Kraja's avatar
Elian Kraja committed
  } 
  
  template (present) CreateAppInstanceRequestWithError m_lifecycle_management_create_with_error (
  	in template (present) String p_appDIdWithError := ?
  ) := {
	appDIdWithError := p_appDIdWithError    
  } 
  
  template (present) AppInstanceInfo mw_lcm_instance_info (
  	in template (present) String p_app_instance_id := ?,
  	in template (present) String p_app_d_id := ?,
  	in template (present) InstantiationState p_instantiation_state := ?
  ) := {
    appInstanceId := p_app_instance_id,
    appDId := p_app_d_id,
    instantiationState := p_instantiation_state
  }
  
  template (present) InstantiateAppRequest m_lifecycle_management_instantiate (
  	in template (present) String p_app_instance_id
  ) := {
    appInstanceId := p_app_instance_id
  }
  
  template (present) InstantiateAppRequestWithError m_lifecycle_management_instantiate_with_error (
  	in template (present) String p_app_instance_id
  ) := {
    appId := p_app_instance_id
  }
  
  template (present) TerminateAppRequest m_lifecycle_management_terminate (
  	in template (present) TerminationType p_termination_type
  ) := {
    terminationType := p_termination_type
  }
  
  template (present) TerminateAppRequestWithError m_lifecycle_management_terminate_with_error (
  	in template (present) TerminationTypeWithError p_termination_type_with_error
  ) := {
    terminationTypeWithError := p_termination_type_with_error
  }
  
  template (present) OperateAppRequest m_lifecycle_management_operate (
  	in template (present) OperationType p_change_state_to_type
  ) := {
    changeStateTo := p_change_state_to_type
  }
  
  template (present) OperateAppRequestWithError m_lifecycle_management_operate_with_error (
  	in template (present) OperationTypeWithError p_change_state_to_type_with_error
  ) := {
    changeStateToWithError := p_change_state_to_type_with_error
  }
  
  template (present) AppInstanceLcmOpOcc mw_lifecycle_management_op_occ (
  	in template (present) JSON.String p_app_lcm_op_occ_id  := ?
  ) := {
    appLcmOpOccId := p_app_lcm_op_occ_id
  }
  
  
  template (present) SubscriptionRequest m_app_lcm_subscribe_request (
  	in template (present) SubscriptionType p_subscription_type,
  	in template (present) AnyURI p_callback_uri
  ) := {
    subscriptionType := p_subscription_type,
    callbackUri := p_callback_uri
  }  
  
  
  template (present) SubscriptionRequestWithError m_app_lcm_subscribe_request_with_error (
  	in template (present) SubscriptionType p_subscription_type,
  	in template (present) AnyURI p_callback_uri_with_error
  ) := {
    subscriptionType := p_subscription_type,
    callbackUriWithError := p_callback_uri_with_error
  }
  
  template (present) SubscriptionInfo mw_app_lcm_subscription_info (
  	in template (present) String p_subscription_id := ?,
  	in template (present) SubscriptionType p_subscription_type := ?,
  	in template (present) AnyURI p_callback_uri  := ?
  ) := {
    subscriptionId := p_subscription_id,
    subscriptionType := p_subscription_type,
    callbackUri := p_callback_uri
  }
  
  template (present) Notification mw_app_lcm_notification (
    in template (present) String p_notification_id := ?,
    in template (present) NotificationType p_notification_type := ?,
    in template (present) String p_subscription_id := ?
  ) := {
    notificationId := p_notification_id,
    notificationType := p_notification_type
  }
  
}