package Ġcom . do it intl . bl aster . de le ters Ċ Ċ import Ġcom . do it intl . bl aster . de leter . Base De leter Ċ import Ġcom . do it intl . bl aster . shared . Constants . CLOUD _ BL ASTER Ċ import Ġcom . do it intl . bl aster . shared . Constants . ID Ċ import Ġcom . do it intl . bl aster . shared . Constants . LOCATION Ċ import Ġcom . do it intl . bl aster . shared . Constants . PROJECT Ċ import Ġcom . google . api . client . googleapis . jav an et . Google Net Http Transport Ċ import Ġcom . google . api . client . http . HttpRequest Initializer Ċ import Ġcom . google . api . client . json . jackson 2 . Jack son Factory Ċ import Ġcom . google . api . services . run . v 1 . Cloud Run Ċ import Ġcom . google . auth . http . Http Credentials Adapter Ċ import Ġcom . google . auth . oauth 2 . Google Credentials Ċ Ċ class ĠCloud Run Service De leter Ġ: ĠBase De leter () Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġpath Patterns : ĠArray < String > ĊĠĠĠĠĠĠĠ Ġget () Ġ= ĠarrayOf ("// run . googleapis . com / projects /{ PROJECT }/ locations /{ LOCATION }/ services /{ ID }") ĊĊĊĠĠĠ Ġoverride Ġfun Ġdo Delete ( p : ĠMap < String , ĠString >) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcredentials Ġ= ĠGoogle Credentials . getApplication Default () ĊĠĠĠĠĠĠĠ Ġval Ġrequest Initializer : ĠHttpRequest Initializer Ġ= ĠHttp Credentials Adapter ( credentials ) ĊĠĠĠĠĠĠĠ Ġval Ġrun Ġ= ĠCloud Run . Builder ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠGoogle Net Http Transport . new Trusted Transport (), ĠJack son Factory (), Ġrequest Initializer ĊĠĠĠĠĠĠĠ Ġ). set Application Name ( CLOUD _ BL ASTER ). build () ĊĠĠĠĠĠĠĠ Ġval Ġservices Ġ= Ġrun . projects (). Locations (). services () ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġservices . delete (" projects /${ p [ PROJECT ] }/ locations /${ p [ LOCATION ] }/ services /${ p [ ID ]} "). execute () ĊĠĠĠ Ġ} Ċ }