public CMAAsset publish ( CMAAsset asset ) { assertNotNull ( asset , "asset" ) ; final String assetId = getResourceIdOrThrow ( asset , "asset" ) ; final String spaceId = getSpaceIdOrThrow ( asset , "asset" ) ; final String environmentId = asset . getEnvironmentId ( ) ; return service . publish ( asset . getSystem ( ) . getVersion ( ) , spaceId , environmentId , assetId ) . blockingFirst ( ) ; }
Publish an Asset .