module ApplicationPackageLifecycleAndOperationGrantingAPI_Templates { // JSON import from JSON all; // LibMec_ApplicationPackageLifecycleAndOperationGrantingAPI import from ApplicationPackageLifecycleAndOperationGrantingAPI_TypesAndValues all; import from ApplicationPackageLifecycleAndOperationGrantingAPI_Pixits all; group granting { template (value) GrantRequest m_grant_request( in String p_app_instance_id := PX_APP_INSTANCE_ID, in String p_appLcmOpOccId := PX_APP_LCM_OP_OCC_ID, in String p_appDId := PX_APP_ID, in OperationType p_operation := PX_APP_OPERATION, in template (value) GrantRequest_Link p_links ) := { appInstanceId := p_app_instance_id, appLcmOpOccId := p_appLcmOpOccId, appDId := p_appDId, operation := p_operation, addResources := omit, tempResources := omit, updateResources := omit, additionalParams := omit, links := p_links } // End of template m_grant_request template (present) GrantRequest mw_grant_request( template (present) String p_app_instance_id := ?, template (present) String p_appLcmOpOccId := ?, template (present) String p_appDId := ?, template (present) OperationType p_operation := ?, template (present) GrantRequest_Link p_links := ? ) := { appInstanceId := p_app_instance_id, appLcmOpOccId := p_appLcmOpOccId, appDId := p_appDId, operation := p_operation, addResources := *, tempResources := *, updateResources := *, additionalParams := *, links := p_links } // End of template mw_grant_request template (present) Grant mw_grant( template (present) String p_id := ?, template (present) String p_app_instance_id := PX_APP_INSTANCE_ID, template (present) String p_appLcmOpOccId := ?, template (present) Grant_Link p_links := ? ) := { id := p_id, appInstanceId := p_app_instance_id, appLcmOpOccId := p_appLcmOpOccId, vimConnections := *, zones := *, zoneGroups := *, addResources := *, tempResources := *, removeResources := *, updateResources := *, vimAssets := *, extVirtualLinks := *, additionalParams := *, links := p_links } // End of template mw_grant template (value) GrantRequest_Link m_grant_request_link( in template (value) LinkType p_appLcmOpOcc, in template (value) LinkType p_appInstance ) := { appLcmOpOcc := p_appLcmOpOcc, appInstance := p_appInstance } // End of template m_grant_request_link template (present) GrantRequest_Link mw_grant_request_link( template (present) LinkType p_appLcmOpOcc := ?, template (present) LinkType p_appInstance := ? ) := { appLcmOpOcc := p_appLcmOpOcc, appInstance := p_appInstance } // End of template mw_grant_request_link template (value) LinkType m_link_type( in template (value) JSON.AnyURI p_href ) := { href := p_href } // End of template m_link_type template (present) LinkType mw_link_type( template (present) JSON.AnyURI p_href := ? ) := { href := p_href } // End of template mw_link_type } // End of group granting group pkgmgt { template (value) CreateAppPkg m_create_package_management( in String p_appPkgName, in String p_appPkgVersion, in template (value) Checksum p_checksum, in AnyURI p_appPkgPath ) := { appPkgName := p_appPkgName, appPkgVersion := p_appPkgVersion, appProvider := omit, checksum := p_checksum, userDefinedData := omit, appPkgPath := p_appPkgPath } // End of template m_create_package_management template (present) CreateAppPkg mw_create_package_management( template (present) String p_appPkgName := ?, template (present) String p_appPkgVersion := ?, template (present) Checksum p_checksum := ?, template (present) AnyURI p_appPkgPath := ? ) := { appPkgName := p_appPkgName, appPkgVersion := p_appPkgVersion, appProvider := *, checksum := p_checksum, userDefinedData := *, appPkgPath := p_appPkgPath } // End of template mw_create_package_management template (present) AppPkgInfo mw_app_pkg_info( template (present) JSON.String p_id:= ?, template (present) JSON.String p_appDId:= ?, template (present) JSON.String p_appName:= ?, template (present) JSON.String p_appSoftwareVersion:= ?, template (present) JSON.String p_appDVersion:= ?, template (present) Checksum p_checksum:= ?, template (present) AppPkgSWImageInfo p_softwareImages:= ?, template (present) OnboardingState p_onboardingState:= ?, template (present) AppPkgInfo_OperationalState p_operationalState:= ?, template (present) UsageState p_usageState:= ?, template (present) AppPkgInfo_MecInfo p_mecInfo:= ?, template (present) AppPkgInfo_Links p_links := ? ) := { id := p_id, appDId := p_appDId, appProvider := *, appName := p_appName, appSoftwareVersion := p_appSoftwareVersion, appDVersion := p_appDVersion, checksum := p_checksum, signingCertificate := *, softwareImages := p_softwareImages, additionalArtifacts := *, onboardingState := p_onboardingState, operationalState := p_operationalState, usageState := p_usageState, mecInfo := p_mecInfo, userDefinedData := *, onboardingFailureDetails := *, links := p_links } // End of template mw_app_pkg_info template (value) Checksum m_checksum( in JSON.String p_algorithm := "SHA256", in JSON.String p_hash ) := { algorithm := p_algorithm, hash := p_hash } // End of template m_checksum template (present) Checksum mw_checksum( template (present) JSON.String p_algorithm := ?, template (present) JSON.String p_hash := ? ) := { algorithm := p_algorithm, hash := p_hash } // End of template mw_checksum template (value) AppPkgInfoModifications m_app_pkg_info_modification( in AppPkgInfo_OperationalState p_operationalState ) := { operationalState := p_operationalState } // End of template m_app_pkg_info_modification template (present) AppPkgInfoModifications mw_app_pkg_info_modification( template (present) AppPkgInfo_OperationalState p_operationalState := ? ) := { operationalState := p_operationalState } // End of template mw_app_pkg_info_modification template (omit) AppPkgSubscription m_app_pkg_info_subscription( in template (value) JSON.AnyURI p_callbackUri, in template (value) AppPkgSubscriptionType p_subscriptionType := "AppPackageOnBoardingSubscription", in template (omit) AppPkgFilter p_appPkgFilter := omit ) := { callbackUri := p_callbackUri, subscriptionType := p_subscriptionType, appPkgFilter := p_appPkgFilter } // End of template m_app_pkg_info_subscription template (value) AppPkgSubscriptionInfo m_app_pkg_subscription_info( in template (value) JSON.String p_id, in template (value) AppPkgSubscriptionType p_subscriptionType := "AppPackageOnBoardingSubscription", in template (value) JSON.AnyURI p_callbackUri, in template (value) AppPkgSubscriptionInfo_Link p_links ):= { id := p_id, subscriptionType := p_subscriptionType, callbackUri := p_callbackUri, links := p_links } // End of template m_app_pkg_subscription_info template (present) AppPkgSubscriptionInfo mw_app_pkg_subscription_info( template (present) JSON.String p_id := ?, template (present) AppPkgSubscriptionType p_subscriptionType := "AppPackageOnBoardingSubscription", template (present) JSON.AnyURI p_callbackUri := ?, template (present) AppPkgSubscriptionInfo_Link p_links := ? ):= { id := p_id, subscriptionType := p_subscriptionType, callbackUri := p_callbackUri, links := p_links } // End of template mw_app_pkg_subscription_info template (present) AppPkgNotification mw_app_pkg_notification( template (present) JSON.String p_id := ?, template (present) JSON.String p_notificationType := ?, template (present) JSON.String p_subscriptionId := ?, template (present) TimeStamp p_timeStamp := ?, template (present) JSON.String p_appPkgId := ?, template (present) JSON.String p_appDId := ?, template (present) AppPkgInfo_OperationalState p_operationalState := ?, template (present) AppPkgNotification_Link p_links := ? ) := { id := p_id, notificationType := p_notificationType, subscriptionId := p_subscriptionId, timeStamp := p_timeStamp, appPkgId := p_appPkgId, appDId := p_appDId, operationalState := p_operationalState, links := p_links } // End of template mw_app_pkg_notification template (value) AppPkgSubscriptionInfo_Link m_app_pkg_link( in JSON.AnyURI p_href ) := { self_ := { href := p_href } } // End of template m_app_pkg_link template (present) AppPkgSubscriptionInfo_Link mw_app_pkg_link( template (present) JSON.AnyURI p_href := ? ) := { self_ := { href := p_href } } // End of template mw_app_pkg_link } // End of group pkgmgt } // End of module ApplicationPackageLifecycleAndOperationGrantingAPI_Templates