zz_generated.model.go 109 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122
  1. // Licensed under the Apache License, Version 2.0 (the "License");
  2. // you may not use this file except in compliance with the License.
  3. // You may obtain a copy of the License at
  4. //
  5. // http://www.apache.org/licenses/LICENSE-2.0
  6. //
  7. // Unless required by applicable law or agreed to in writing, software
  8. // distributed under the License is distributed on an "AS IS" BASIS,
  9. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. // See the License for the specific language governing permissions and
  11. // limitations under the License.
  12. // Code generated by model-api-gen. DO NOT EDIT.
  13. package compute
  14. import (
  15. time "time"
  16. jsonutils "yunion.io/x/jsonutils"
  17. "yunion.io/x/onecloud/pkg/apis"
  18. "yunion.io/x/onecloud/pkg/apis/cloudprovider"
  19. )
  20. // SAccessGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAccessGroup.
  21. type SAccessGroup struct {
  22. apis.SStatusInfrasResourceBase
  23. apis.SExternalizedResourceBase
  24. SCloudregionResourceBase
  25. SManagedResourceBase
  26. // 已关联的挂载点数量
  27. MountTargetCount int `json:"mount_target_count"`
  28. FileSystemType string `json:"file_system_type"`
  29. NetworkType string `json:"network_type"`
  30. }
  31. // SAccessGroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAccessGroupResourceBase.
  32. type SAccessGroupResourceBase struct {
  33. // 权限组Id
  34. AccessGroupId string `json:"access_group_id"`
  35. }
  36. // SAccessGroupRule is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAccessGroupRule.
  37. type SAccessGroupRule struct {
  38. apis.SStandaloneAnonResourceBase
  39. apis.SStatusResourceBase
  40. SAccessGroupResourceBase
  41. // 云上Id, 对应云上资源自身Id
  42. ExternalId string `json:"external_id"`
  43. Priority int `json:"priority"`
  44. Source string `json:"source"`
  45. RWAccessType string `json:"rw_access_type"`
  46. UserAccessType string `json:"user_access_type"`
  47. }
  48. // SAiGateway is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAiGateway.
  49. type SAiGateway struct {
  50. apis.SVirtualResourceBase
  51. apis.SExternalizedResourceBase
  52. SManagedResourceBase
  53. Authentication bool `json:"authentication"`
  54. CacheInvalidateOnUpdate bool `json:"cache_invalidate_on_update"`
  55. CacheTTL int `json:"cache_ttl"`
  56. CollectLogs bool `json:"collect_logs"`
  57. RateLimitingInterval int `json:"rate_limiting_interval"`
  58. RateLimitingLimit int `json:"rate_limiting_limit"`
  59. RateLimitingTechnique string `json:"rate_limiting_technique"`
  60. }
  61. // SApp is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SApp.
  62. type SApp struct {
  63. apis.SVirtualResourceBase
  64. apis.SExternalizedResourceBase
  65. apis.SEnabledResourceBase
  66. SManagedResourceBase
  67. SCloudregionResourceBase
  68. SNetworkResourceBase
  69. TechStack string `json:"tech_stack"`
  70. OsType string `json:"os_type"`
  71. IpAddr string `json:"ip_addr"`
  72. Hostname string `json:"hostname"`
  73. ServerFarm string `json:"server_farm"`
  74. PublicNetworkAccess string `json:"public_network_access"`
  75. }
  76. // SAppEnvironment is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAppEnvironment.
  77. type SAppEnvironment struct {
  78. apis.SVirtualResourceBase
  79. apis.SExternalizedResourceBase
  80. AppId string `json:"app_id"`
  81. }
  82. // SBackupDiskConfig is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBackupDiskConfig.
  83. type SBackupDiskConfig struct {
  84. DiskConfig
  85. Name string `json:"name"`
  86. BackupAsTar *DiskBackupAsTarInput `json:"backup_as_tar"`
  87. }
  88. // SBackupStorage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBackupStorage.
  89. type SBackupStorage struct {
  90. apis.SEnabledStatusInfrasResourceBase
  91. AccessInfo *SBackupStorageAccessInfo `json:"access_info"`
  92. StorageType string `json:"storage_type"`
  93. CapacityMb int `json:"capacity_mb"`
  94. }
  95. // SBaremetalagent is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBaremetalagent.
  96. type SBaremetalagent struct {
  97. apis.SStandaloneResourceBase
  98. SZoneResourceBase
  99. Status string `json:"status"`
  100. AccessIp string `json:"access_ip"`
  101. ManagerUri string `json:"manager_uri"`
  102. AgentType string `json:"agent_type"`
  103. Version string `json:"version"`
  104. StoragecacheId string `json:"storagecache_id"`
  105. DisableImageCache bool `json:"disable_image_cache"`
  106. }
  107. // SBillingChargeTypeBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBillingChargeTypeBase.
  108. type SBillingChargeTypeBase struct {
  109. // 计费类型: 流量、带宽
  110. // example: bandwidth
  111. ChargeType string `json:"charge_type"`
  112. }
  113. // SBillingResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBillingResourceBase.
  114. type SBillingResourceBase struct {
  115. SBillingTypeBase
  116. // 包年包月到期时间
  117. ExpiredAt time.Time `json:"expired_at"`
  118. // 到期释放时间
  119. ReleaseAt time.Time `json:"release_at"`
  120. // 计费周期
  121. BillingCycle string `json:"billing_cycle"`
  122. // 是否自动续费
  123. AutoRenew bool `json:"auto_renew"`
  124. }
  125. // SBillingResourceCheck is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBillingResourceCheck.
  126. type SBillingResourceCheck struct {
  127. apis.SVirtualResourceBase
  128. SBillingResourceBase
  129. ResourceType string `json:"resource_type"`
  130. }
  131. // SBillingTypeBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBillingTypeBase.
  132. type SBillingTypeBase struct {
  133. // 计费类型, 按量、包年包月
  134. // example: prepaid, postpaid
  135. BillingType string `json:"billing_type"`
  136. }
  137. // SBucket is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBucket.
  138. type SBucket struct {
  139. apis.SSharableVirtualResourceBase
  140. apis.SExternalizedResourceBase
  141. SCloudregionResourceBase
  142. SManagedResourceBase
  143. StorageClass string `json:"storage_class"`
  144. Location string `json:"location"`
  145. Acl string `json:"acl"`
  146. SizeBytes int64 `json:"size_bytes"`
  147. ObjectCnt int `json:"object_cnt"`
  148. SizeBytesLimit int64 `json:"size_bytes_limit"`
  149. ObjectCntLimit int `json:"object_cnt_limit"`
  150. AccessUrls jsonutils.JSONObject `json:"access_urls"`
  151. EnablePerfMon bool `json:"enable_perf_mon"`
  152. }
  153. // SCDNDomain is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCDNDomain.
  154. type SCDNDomain struct {
  155. apis.SVirtualResourceBase
  156. apis.SEnabledResourceBase
  157. apis.SExternalizedResourceBase
  158. SDeletePreventableResourceBase
  159. SManagedResourceBase
  160. Cname string `json:"cname"`
  161. // 源站信息
  162. Origins *cloudprovider.SCdnOrigins `json:"origins"`
  163. // 服务类别
  164. ServiceType string `json:"service_type"`
  165. // 加速区域
  166. Area string `json:"area"`
  167. // 是否忽略参数
  168. CacheKeys *cloudprovider.SCDNCacheKeys `json:"cache_keys"`
  169. // 是否分片回源
  170. RangeOriginPull *cloudprovider.SCDNRangeOriginPull `json:"range_origin_pull"`
  171. // 缓存配置
  172. Cache *cloudprovider.SCDNCache `json:"cache"`
  173. // https配置
  174. HTTPS *cloudprovider.SCDNHttps `json:"https"`
  175. // 强制跳转
  176. ForceRedirect *cloudprovider.SCDNForceRedirect `json:"force_redirect"`
  177. // 防盗链配置
  178. Referer *cloudprovider.SCDNReferer `json:"referer"`
  179. // 浏览器缓存配置
  180. MaxAge *cloudprovider.SCDNMaxAge `json:"max_age"`
  181. // 是否启用DNSSEC
  182. DNSSECEnabled bool `json:"dnssec_enabled"`
  183. // SSL加密模式
  184. SSLSetting string `json:"ssl_setting"`
  185. // 是否启用HTTPS重写
  186. HTTPSRewrites bool `json:"https_rewrites"`
  187. // 缓存级别
  188. CacheLevel string `json:"cache_level"`
  189. // 浏览器缓存TTL
  190. BrowserCacheTTL int `json:"browser_cache_ttl"`
  191. }
  192. // SCachedimage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCachedimage.
  193. type SCachedimage struct {
  194. apis.SSharableVirtualResourceBase
  195. apis.SExternalizedResourceBase
  196. // 镜像大小单位: Byte
  197. // example: 53687091200
  198. Size int64 `json:"size"`
  199. // 镜像详情信息
  200. // example: {"deleted":false,"disk_format":"qcow2","id":"img-a6uucnfl","is_public":true,"min_disk":51200,"min_ram":0,"name":"FreeBSD 11.1 64bit","properties":{"os_arch":"x86_64","os_distribution":"FreeBSD","os_type":"FreeBSD","os_version":"11"},"protected":true,"size":53687091200,"status":"active"}
  201. Info jsonutils.JSONObject `json:"info"`
  202. // 上此同步时间
  203. // example: 2020-01-17T05:28:54.000000Z
  204. LastSync time.Time `json:"last_sync"`
  205. // 最近一次缓存引用时间
  206. // 2020-01-17T05:20:54.000000Z
  207. LastRef time.Time `json:"last_ref"`
  208. // 引用次数
  209. // example: 0
  210. RefCount int `json:"ref_count"`
  211. // 是否支持UEFI
  212. // example: false
  213. UEFI *bool `json:"uefi,omitempty"`
  214. // 镜像类型, system: 公有云镜像, customized: 自定义镜像
  215. // example: system
  216. ImageType string `json:"image_type"`
  217. }
  218. // SCloudaccount is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudaccount.
  219. type SCloudaccount struct {
  220. apis.SEnabledStatusInfrasResourceBase
  221. SSyncableBaseResource
  222. // 项目Id
  223. ProjectId string `json:"tenant_id"`
  224. // 云环境连接地址
  225. AccessUrl string `json:"access_url"`
  226. // 云账号
  227. Account string `json:"account"`
  228. // 云账号密码
  229. Secret string `json:"secret"`
  230. // 云环境唯一标识
  231. AccountId string `json:"account_id"`
  232. // 是否是公有云账号
  233. // example: true
  234. IsPublicCloud *bool `json:"is_public_cloud,omitempty"`
  235. // 是否是本地IDC账号
  236. // example: false
  237. IsOnPremise bool `json:"is_on_premise"`
  238. // 云平台类型
  239. // example: google
  240. Provider string `json:"provider"`
  241. // 账户余额
  242. // example: 124.2
  243. Balance float64 `json:"balance"`
  244. // 账户余额货币类型
  245. // enmu: CNY, USD
  246. Currency string `json:"currency"`
  247. // 上次账号探测时间
  248. ProbeAt time.Time `json:"probe_at"`
  249. // 账号健康状态
  250. // example: normal
  251. HealthStatus string `json:"health_status"`
  252. // 账号探测异常错误次数
  253. ErrorCount int `json:"error_count"`
  254. // 是否根据云上项目自动在本地创建对应项目
  255. // example: false
  256. AutoCreateProject bool `json:"auto_create_project"`
  257. // 是否根据云订阅自动在本地创建对应项目
  258. // example: false
  259. AutoCreateProjectForProvider bool `json:"auto_create_project_for_provider"`
  260. // 云API版本
  261. Version string `json:"version"`
  262. // 云系统信息
  263. Sysinfo jsonutils.JSONObject `json:"sysinfo"`
  264. // 品牌信息, 一般和provider相同
  265. Brand string `json:"brand"`
  266. // 额外信息
  267. Options *jsonutils.JSONDict `json:"options"`
  268. // for backward compatiblity, keep is_public field, but not usable
  269. // IsPublic bool `default:"false" nullable:"false"`
  270. // add share_mode field to indicate the share range of this account
  271. ShareMode string `json:"share_mode"`
  272. // 默认值proxyapi.ProxySettingId_DIRECT
  273. ProxySettingId string `json:"proxy_setting_id"`
  274. // 公有云子账号登录地址
  275. IamLoginUrl string `json:"iam_login_url"`
  276. SAMLAuth *bool `json:"saml_auth,omitempty"`
  277. SProjectMappingResourceBase
  278. ReadOnly bool `json:"read_only"`
  279. // 设置允许同步的账号及订阅
  280. SubAccounts *cloudprovider.SubAccounts `json:"sub_accounts"`
  281. // 缺失的权限,云账号操作资源时自动更新
  282. LakeOfPermissions *SAccountPermissions `json:"lake_of_permissions"`
  283. // 跳过部分资源同步
  284. SkipSyncResources *SkipSyncResources `json:"skip_sync_resources"`
  285. EnableAutoSyncResource *bool `json:"enable_auto_sync_resource,omitempty"`
  286. // 云平台默认区域id
  287. RegionId string `json:"region_id"`
  288. }
  289. // SCloudprovider is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudprovider.
  290. type SCloudprovider struct {
  291. apis.SEnabledStatusStandaloneResourceBase
  292. apis.SProjectizedResourceBase
  293. apis.SExternalizedResourceBase
  294. SSyncableBaseResource
  295. // 云端服务健康状态。例如欠费、项目冻结都属于不健康状态。
  296. // | HealthStatus | 说明 |
  297. // |---------------|----------------------|
  298. // | normal | 远端处于健康状态 |
  299. // | insufficient | 不足按需资源余额 |
  300. // | suspended | 远端处于冻结状态 |
  301. // | arrears | 远端处于欠费状态 |
  302. // | unknown | 未知状态,查询失败 |
  303. // | no permission | 没有权限获取账单信息 |
  304. HealthStatus string `json:"health_status"`
  305. AccessUrl string `json:"access_url"`
  306. // 云账号的用户信息,例如用户名,access key等
  307. Account string `json:"account"`
  308. // 云账号的密码信息,例如密码,access key secret等。该字段在数据库加密存储。Google需要存储秘钥证书,需要此字段比较长
  309. Secret string `json:"secret"`
  310. // 归属云账号ID
  311. CloudaccountId string `json:"cloudaccount_id"`
  312. // 云账号的平台信息
  313. Provider string `json:"provider"`
  314. // 云上同步资源是否在本地被更改过配置, local: 更改过, cloud: 未更改过
  315. // example: local
  316. ProjectSrc string `json:"project_src"`
  317. SProjectMappingResourceBase
  318. }
  319. // SCloudproviderResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudproviderResourceBase.
  320. type SCloudproviderResourceBase struct {
  321. CloudproviderId string `json:"cloudprovider_id"`
  322. }
  323. // SCloudproviderregion is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudproviderregion.
  324. type SCloudproviderregion struct {
  325. apis.SJointResourceBase
  326. SSyncableBaseResource
  327. SCloudregionResourceBase
  328. // 云订阅ID
  329. CloudproviderId string `json:"cloudprovider_id"`
  330. Enabled bool `json:"enabled"`
  331. // SyncIntervalSeconds int `list:"domain"`
  332. SyncResults jsonutils.JSONObject `json:"sync_results"`
  333. LastDeepSyncAt time.Time `json:"last_deep_sync_at"`
  334. LastAutoSyncAt time.Time `json:"last_auto_sync_at"`
  335. }
  336. // SCloudregion is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudregion.
  337. type SCloudregion struct {
  338. apis.SEnabledStatusStandaloneResourceBase
  339. SI18nResourceBase
  340. apis.SExternalizedResourceBase
  341. cloudprovider.SGeographicInfo
  342. // 云环境
  343. // example: ChinaCloud
  344. Environment string `json:"environment"`
  345. // 云平台
  346. // example: Huawei
  347. Provider string `json:"provider"`
  348. }
  349. // SCloudregionResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudregionResourceBase.
  350. type SCloudregionResourceBase struct {
  351. // 归属区域ID
  352. CloudregionId string `json:"cloudregion_id"`
  353. }
  354. // SContainer is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SContainer.
  355. type SContainer struct {
  356. apis.SVirtualResourceBase
  357. apis.SExternalizedResourceBase
  358. // GuestId is also the pod id
  359. GuestId string `json:"guest_id"`
  360. // Spec stores all container running options
  361. Spec *ContainerSpec `json:"spec"`
  362. // 启动时间
  363. StartedAt time.Time `json:"started_at"`
  364. // 上次退出时间
  365. LastFinishedAt time.Time `json:"last_finished_at"`
  366. // 重启次数
  367. RestartCount int `json:"restart_count"`
  368. }
  369. // SDBInstance is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstance.
  370. type SDBInstance struct {
  371. apis.SVirtualResourceBase
  372. apis.SExternalizedResourceBase
  373. SManagedResourceBase
  374. SBillingResourceBase
  375. SCloudregionResourceBase
  376. SDeletePreventableResourceBase
  377. // 主实例Id
  378. MasterInstanceId string `json:"master_instance_id"`
  379. // CPU数量
  380. // example: 1
  381. VcpuCount int `json:"vcpu_count"`
  382. // 内存大小
  383. // example: 1024
  384. VmemSizeMb int `json:"vmem_size_mb"`
  385. // 存储类型
  386. // example: local_ssd
  387. StorageType string `json:"storage_type"`
  388. // 存储大小
  389. // example: 10240
  390. DiskSizeGB int `json:"disk_size_gb"`
  391. // 已使用的存储大小
  392. DiskSizeUsedMB int `json:"disk_size_used_mb"`
  393. // 端口
  394. // example: 3306
  395. Port int `json:"port"`
  396. // 实例类型
  397. // example: ha
  398. Category string `json:"category"`
  399. // 最大连接数
  400. Iops int `json:"iops"`
  401. // 引擎
  402. // example: MySQL
  403. Engine string `json:"engine"`
  404. // 引擎版本
  405. // example: 5.7
  406. EngineVersion string `json:"engine_version"`
  407. // 套餐名称
  408. // example: mysql.x4.large.2c
  409. InstanceType string `json:"instance_type"`
  410. // 维护时间
  411. MaintainTime string `json:"maintain_time"`
  412. // 虚拟私有网络Id
  413. // example: ed20d84e-3158-41b1-870c-1725e412e8b6
  414. VpcId string `json:"vpc_id"`
  415. // 外部连接地址
  416. ConnectionStr string `json:"connection_str"`
  417. // 内部连接地址
  418. InternalConnectionStr string `json:"internal_connection_str"`
  419. // 可用区1
  420. Zone1 string `json:"zone1"`
  421. // 可用区2
  422. Zone2 string `json:"zone2"`
  423. // 可用区3
  424. Zone3 string `json:"zone3"`
  425. // 从备份创建新实例
  426. DBInstancebackupId string `json:"dbinstancebackup_id"`
  427. }
  428. // SDBInstanceAccount is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceAccount.
  429. type SDBInstanceAccount struct {
  430. apis.SStatusStandaloneResourceBase
  431. Host string `json:"host"`
  432. SDBInstanceResourceBase
  433. // 数据库密码
  434. Secret string `json:"secret"`
  435. }
  436. // SDBInstanceBackup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceBackup.
  437. type SDBInstanceBackup struct {
  438. apis.SVirtualResourceBase
  439. SCloudregionResourceBase
  440. SManagedResourceBase
  441. apis.SExternalizedResourceBase
  442. SDBInstanceResourceBase
  443. // RDS引擎
  444. // example: MySQL
  445. Engine string `json:"engine"`
  446. // RDS引擎版本
  447. // example: 5.7
  448. EngineVersion string `json:"engine_version"`
  449. // 备份开始时间
  450. StartTime time.Time `json:"start_time"`
  451. // 备份结束时间
  452. EndTime time.Time `json:"end_time"`
  453. // 备份模式
  454. BackupMode string `json:"backup_mode"`
  455. // 备份数据库名称
  456. DBNames string `json:"db_names"`
  457. // 备份大小
  458. // example: 32
  459. BackupSizeMb int `json:"backup_size_mb"`
  460. // 备份方式 Logical|Physical
  461. BackupMethod string `json:"backup_method"`
  462. }
  463. // SDBInstanceDatabase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceDatabase.
  464. type SDBInstanceDatabase struct {
  465. apis.SStatusStandaloneResourceBase
  466. apis.SExternalizedResourceBase
  467. SDBInstanceResourceBase
  468. // 字符集
  469. // example: utf-8
  470. CharacterSet string `json:"character_set"`
  471. }
  472. // SDBInstanceParameter is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceParameter.
  473. type SDBInstanceParameter struct {
  474. apis.SStandaloneResourceBase
  475. apis.SExternalizedResourceBase
  476. SDBInstanceResourceBase
  477. // 数据库参数名称
  478. Key string `json:"key"`
  479. // 数据库参数值
  480. Value string `json:"value"`
  481. }
  482. // SDBInstancePrivilege is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstancePrivilege.
  483. type SDBInstancePrivilege struct {
  484. apis.SResourceBase
  485. apis.SExternalizedResourceBase
  486. Id string `json:"id"`
  487. Privilege string `json:"privilege"`
  488. DBInstanceaccountId string `json:"dbinstanceaccount_id"`
  489. DBInstancedatabaseId string `json:"dbinstancedatabase_id"`
  490. }
  491. // SDBInstanceResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceResourceBase.
  492. type SDBInstanceResourceBase struct {
  493. DBInstanceId string `json:"dbinstance_id"`
  494. }
  495. // SDBInstanceSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceSku.
  496. type SDBInstanceSku struct {
  497. apis.SEnabledStatusStandaloneResourceBase
  498. apis.SExternalizedResourceBase
  499. SCloudregionResourceBase
  500. Provider string `json:"provider"`
  501. StorageType string `json:"storage_type"`
  502. DiskSizeStep int `json:"disk_size_step"`
  503. // 步长
  504. MaxDiskSizeGb int `json:"max_disk_size_gb"`
  505. MinDiskSizeGb int `json:"min_disk_size_gb"`
  506. IOPS int `json:"iops"`
  507. TPS int `json:"tps"`
  508. QPS int `json:"qps"`
  509. MaxConnections int `json:"max_connections"`
  510. VcpuCount int `json:"vcpu_count"`
  511. VmemSizeMb int `json:"vmem_size_mb"`
  512. Category string `json:"category"`
  513. Engine string `json:"engine"`
  514. EngineVersion string `json:"engine_version"`
  515. Zone1 string `json:"zone1"`
  516. Zone2 string `json:"zone2"`
  517. Zone3 string `json:"zone3"`
  518. ZoneId string `json:"zone_id"`
  519. MultiAZ *bool `json:"multi_az,omitempty"`
  520. }
  521. // SDeletePreventableResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDeletePreventableResourceBase.
  522. type SDeletePreventableResourceBase struct {
  523. // 是否开启删除保护
  524. // example: true
  525. DisableDelete *bool `json:"disable_delete,omitempty"`
  526. }
  527. // SDisk is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDisk.
  528. type SDisk struct {
  529. apis.SVirtualResourceBase
  530. apis.SExternalizedResourceBase
  531. SBillingResourceBase
  532. SStorageResourceBase
  533. apis.SMultiArchResourceBase
  534. apis.SAutoDeleteResourceBase
  535. apis.SEncryptedResource
  536. // 磁盘存储类型
  537. // example: qcow2
  538. DiskFormat string `json:"disk_format"`
  539. // 磁盘大小, 单位Mb
  540. // example: 10240
  541. DiskSize int `json:"disk_size"`
  542. // 磁盘路径
  543. AccessPath string `json:"access_path"`
  544. PCIPath string `json:"pci_path"`
  545. // 备份磁盘实例的存储ID
  546. BackupStorageId string `json:"backup_storage_id"`
  547. // 镜像Id
  548. TemplateId string `json:"template_id"`
  549. // 快照Id
  550. SnapshotId string `json:"snapshot_id"`
  551. // 备份Id
  552. BackupId string `json:"backup_id"`
  553. // 设备名称
  554. Device string `json:"device"`
  555. // 文件系统
  556. FsFormat string `json:"fs_format"`
  557. // 文件系统特性
  558. FsFeatures *DiskFsFeatures `json:"fs_features"`
  559. // 磁盘类型
  560. // sys: 系统盘
  561. // data: 数据盘
  562. // swap: 交换盘
  563. // example: sys
  564. DiskType string `json:"disk_type"`
  565. // 预分配策略
  566. // off: 关闭预分配,默认关闭
  567. // metadata: 精简制备
  568. // falloc: 厚制制备延迟置零
  569. // full: 厚制备快速置零
  570. Preallocation string `json:"preallocation"`
  571. // # is persistent
  572. Nonpersistent bool `json:"nonpersistent"`
  573. // auto reset disk after guest shutdown
  574. AutoReset bool `json:"auto_reset"`
  575. // 是否标记为SSD磁盘
  576. IsSsd bool `json:"is_ssd"`
  577. // 最大连接数
  578. Iops int `json:"iops"`
  579. // 磁盘吞吐量
  580. Throughput int `json:"throughput"`
  581. }
  582. // SDiskBackup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDiskBackup.
  583. type SDiskBackup struct {
  584. apis.SVirtualResourceBase
  585. SManagedResourceBase
  586. SCloudregionResourceBase
  587. apis.SMultiArchResourceBase
  588. apis.SEncryptedResource
  589. DiskId string `json:"disk_id"`
  590. BackupStorageId string `json:"backup_storage_id"`
  591. StorageId string `json:"storage_id"`
  592. // 备份大小
  593. SizeMb int `json:"size_mb"`
  594. DiskSizeMb int `json:"disk_size_mb"`
  595. DiskType string `json:"disk_type"`
  596. // 操作系统类型
  597. OsType string `json:"os_type"`
  598. DiskConfig *SBackupDiskConfig `json:"disk_config"`
  599. }
  600. // SDiskResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDiskResourceBase.
  601. type SDiskResourceBase struct {
  602. DiskId string `json:"disk_id"`
  603. }
  604. // SDnsRecord is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsRecord.
  605. type SDnsRecord struct {
  606. apis.SEnabledStatusStandaloneResourceBase
  607. apis.SExternalizedResourceBase
  608. SDnsZoneResourceBase
  609. DnsType string `json:"dns_type"`
  610. DnsValue string `json:"dns_value"`
  611. TTL int64 `json:"ttl"`
  612. MxPriority int64 `json:"mx_priority"`
  613. // cloudflare 特有
  614. Proxied *bool `json:"proxied,omitempty"`
  615. // 解析线路类型
  616. PolicyType string `json:"policy_type"`
  617. // 解析线路
  618. PolicyValue string `json:"policy_value"`
  619. // 目前存储阿里云GTM设置地址及AWS TrafficPolicy端点地址, 仅支持同步
  620. ExtraAddresses []string `json:"extra_addresses"`
  621. }
  622. // SDnsZone is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsZone.
  623. type SDnsZone struct {
  624. apis.SSharableVirtualResourceBase
  625. apis.SEnabledResourceBase
  626. apis.SExternalizedResourceBase
  627. SManagedResourceBase
  628. NameServers *SNameServers `json:"name_servers"`
  629. OriginalNameServers *SNameServers `json:"original_name_servers"`
  630. ZoneType string `json:"zone_type"`
  631. Registrar string `json:"registrar"`
  632. ProductType string `json:"product_type"`
  633. }
  634. // SDnsZoneResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsZoneResourceBase.
  635. type SDnsZoneResourceBase struct {
  636. DnsZoneId string `json:"dns_zone_id"`
  637. }
  638. // SDynamicschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDynamicschedtag.
  639. type SDynamicschedtag struct {
  640. apis.SStandaloneResourceBase
  641. SSchedtagResourceBase
  642. // 动态调度标间的匹配条件
  643. // example: host.sys_load > 1.5 || host.mem_used_percent > 0.7 => "high_load"
  644. Condition string `json:"condition"`
  645. Enabled *bool `json:"enabled,omitempty"`
  646. }
  647. // SElasticSearch is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticSearch.
  648. type SElasticSearch struct {
  649. apis.SVirtualResourceBase
  650. apis.SExternalizedResourceBase
  651. SManagedResourceBase
  652. SBillingResourceBase
  653. SCloudregionResourceBase
  654. SDeletePreventableResourceBase
  655. // 版本
  656. Version string `json:"version"`
  657. // 套餐名称
  658. // example: elasticsearch.sn2ne.xlarge
  659. InstanceType string `json:"instance_type"`
  660. // CPU数量
  661. // example: 1
  662. VcpuCount int `json:"vcpu_count"`
  663. // 内存大小
  664. // example: 1024
  665. VmemSizeGb int `json:"vmem_size_gb"`
  666. // 存储类型
  667. // example: local_ssd
  668. StorageType string `json:"storage_type"`
  669. // 存储大小
  670. // example: 1024
  671. DiskSizeGb int `json:"disk_size_gb"`
  672. // 实例类型
  673. // example: ha
  674. Category string `json:"category"`
  675. VpcId string `json:"vpc_id"`
  676. NetworkId string `json:"network_id"`
  677. // 可用区Id
  678. ZoneId string `json:"zone_id"`
  679. // 是否是多可用区部署
  680. IsMultiAz bool `json:"is_multi_az"`
  681. }
  682. // SElasticcache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcache.
  683. type SElasticcache struct {
  684. apis.SVirtualResourceBase
  685. apis.SExternalizedResourceBase
  686. SCloudregionResourceBase
  687. SManagedResourceBase
  688. SBillingResourceBase
  689. SDeletePreventableResourceBase
  690. SZoneResourceBase
  691. VpcId string `json:"vpc_id"`
  692. // 备可用区
  693. SlaveZones string `json:"slave_zones"`
  694. // 实例规格
  695. // example: redis.master.micro.default
  696. InstanceType string `json:"instance_type"`
  697. // 容量
  698. // example: 1024
  699. CapacityMB int `json:"capacity_mb"`
  700. // 对应Sku
  701. LocalCategory string `json:"local_category"`
  702. // 类型
  703. // single(单副本) | double(双副本) | readone (单可读) | readthree (3可读) | readfive(5只读)
  704. NodeType string `json:"node_type"`
  705. // 后端存储引擎
  706. // Redis | Memcache
  707. // example: redis
  708. Engine string `json:"engine"`
  709. // 后端存储引擎版本
  710. // example: 4.0
  711. EngineVersion string `json:"engine_version"`
  712. // 网络类型, CLASSIC(经典网络) VPC(专有网络)
  713. // example: CLASSIC
  714. NetworkType string `json:"network_type"`
  715. // 所属网络ID
  716. NetworkId string `json:"network_id"`
  717. // 带宽
  718. Bandwidth int `json:"bandwidth"`
  719. // 内网DNS
  720. PrivateDNS string `json:"private_dns"`
  721. // 内网IP地址
  722. PrivateIpAddr string `json:"private_ip_addr"`
  723. // 内网访问端口
  724. PrivateConnectPort int `json:"private_connect_port"`
  725. // 公网DNS
  726. PublicDNS string `json:"public_dns"`
  727. // 公网IP地址
  728. PublicIpAddr string `json:"public_ip_addr"`
  729. // 外网访问端口
  730. PublicConnectPort int `json:"public_connect_port"`
  731. // 维护开始时间,格式为HH:mmZ
  732. // example: 02:00Z
  733. MaintainStartTime string `json:"maintain_start_time"`
  734. // 维护结束时间
  735. MaintainEndTime string `json:"maintain_end_time"`
  736. // 访问密码? on (开启密码)|off (免密码访问)
  737. AuthMode string `json:"auth_mode"`
  738. // 最大连接数
  739. Connections int `json:"connections"`
  740. }
  741. // SElasticcacheAccount is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheAccount.
  742. type SElasticcacheAccount struct {
  743. apis.SStatusStandaloneResourceBase
  744. apis.SExternalizedResourceBase
  745. SElasticcacheResourceBase
  746. AccountType string `json:"account_type"`
  747. // 账号类型 normal |admin
  748. AccountPrivilege string `json:"account_privilege"`
  749. // 账号权限 read | write | repl(复制, 复制权限支持读写,且开放SYNC/PSYNC命令)
  750. Password string `json:"password"`
  751. }
  752. // SElasticcacheAcl is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheAcl.
  753. type SElasticcacheAcl struct {
  754. apis.SStatusStandaloneResourceBase
  755. apis.SExternalizedResourceBase
  756. SElasticcacheResourceBase
  757. // Ip地址白名单列表
  758. IpList string `json:"ip_list"`
  759. }
  760. // SElasticcacheBackup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheBackup.
  761. type SElasticcacheBackup struct {
  762. apis.SStatusStandaloneResourceBase
  763. apis.SExternalizedResourceBase
  764. SElasticcacheResourceBase
  765. // 备份大小
  766. BackupSizeMb int `json:"backup_size_mb"`
  767. // 备份类型, 全量|增量额
  768. BackupType string `json:"backup_type"`
  769. // 备份模式,自动|手动
  770. BackupMode string `json:"backup_mode"`
  771. // 下载地址
  772. DownloadURL string `json:"download_url"`
  773. // 开始备份时间
  774. StartTime time.Time `json:"start_time"`
  775. // 结束备份时间
  776. EndTime time.Time `json:"end_time"`
  777. }
  778. // SElasticcacheJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheJointsBase.
  779. type SElasticcacheJointsBase struct {
  780. apis.SVirtualJointResourceBase
  781. SElasticcacheResourceBase
  782. }
  783. // SElasticcacheParameter is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheParameter.
  784. type SElasticcacheParameter struct {
  785. apis.SStatusStandaloneResourceBase
  786. apis.SExternalizedResourceBase
  787. SElasticcacheResourceBase
  788. // Parameter KEY
  789. Key string `json:"key"`
  790. // Parameter Value
  791. Value string `json:"value"`
  792. // 校验代码,参数的可选范围。
  793. ValueRange string `json:"value_range"`
  794. // True(可修改) False(不可修改)
  795. Modifiable bool `json:"modifiable"`
  796. // True(重启生效) False(无需重启,提交后即生效)
  797. ForceRestart bool `json:"force_restart"`
  798. }
  799. // SElasticcacheResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheResourceBase.
  800. type SElasticcacheResourceBase struct {
  801. // 弹性缓存ID
  802. ElasticcacheId string `json:"elasticcache_id"`
  803. }
  804. // SElasticcacheSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheSku.
  805. type SElasticcacheSku struct {
  806. apis.SStatusStandaloneResourceBase
  807. apis.SExternalizedResourceBase
  808. SCloudregionResourceBase
  809. // 区域
  810. SZoneResourceBase
  811. SlaveZoneId string `json:"slave_zone_id"`
  812. InstanceSpec string `json:"instance_spec"`
  813. EngineArch string `json:"engine_arch"`
  814. LocalCategory string `json:"local_category"`
  815. PrepaidStatus string `json:"prepaid_status"`
  816. PostpaidStatus string `json:"postpaid_status"`
  817. // 引擎 redis|memcached
  818. Engine string `json:"engine"`
  819. // 引擎版本 3.0
  820. EngineVersion string `json:"engine_version"`
  821. // CPU 架构 x86|ARM
  822. CpuArch string `json:"cpu_arch"`
  823. // 存储类型 DRAM|SCM
  824. StorageType string `json:"storage_type"`
  825. // standrad|enhanced
  826. PerformanceType string `json:"performance_type"`
  827. // single(单副本) | double(双副本) | readone (单可读) | readthree (3可读) | readfive(5只读)
  828. NodeType string `json:"node_type"`
  829. // 内存容量
  830. MemorySizeMB int `json:"memory_size_mb"`
  831. // 套餐附带硬盘容量
  832. DiskSizeGB int `json:"disk_size_gb"`
  833. // 最小分片数量
  834. ShardNum int `json:"shard_num"`
  835. // 最大分片数量
  836. MaxShardNum int `json:"max_shard_num"`
  837. // 最小副本数量
  838. ReplicasNum int `json:"replicas_num"`
  839. // 最大副本数量
  840. MaxReplicasNum int `json:"max_replicas_num"`
  841. // 最大客户端数
  842. MaxClients int `json:"max_clients"`
  843. // 最大连接数
  844. MaxConnections int `json:"max_connections"`
  845. // 最大内网带宽
  846. MaxInBandwidthMb int `json:"max_in_bandwidth_mb"`
  847. // 实际可使用的最大内存
  848. MaxMemoryMB int `json:"max_memory_mb"`
  849. // QPS参考值
  850. QPS int `json:"qps"`
  851. // 公有云厂商 Aliyun/Azure/AWS/Qcloud/...
  852. Provider string `json:"provider"`
  853. }
  854. // SElasticcachesecgroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcachesecgroup.
  855. type SElasticcachesecgroup struct {
  856. SElasticcacheJointsBase
  857. SSecurityGroupResourceBase
  858. }
  859. // SElasticip is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticip.
  860. type SElasticip struct {
  861. apis.SVirtualResourceBase
  862. apis.SExternalizedResourceBase
  863. SManagedResourceBase
  864. SCloudregionResourceBase
  865. SBillingResourceBase
  866. // IP子网Id, 仅私有云不为空
  867. NetworkId string `json:"network_id"`
  868. // 标识弹性或非弹性
  869. // | Mode | 说明 |
  870. // |------------|------------|
  871. // | public_ip | 公网IP |
  872. // | elastic_ip | 弹性公网IP |
  873. // example: elastic_ip
  874. Mode string `json:"mode"`
  875. // IP地址
  876. IpAddr string `json:"ip_addr"`
  877. // 绑定资源类型
  878. AssociateType string `json:"associate_type"`
  879. // 绑定资源Id
  880. AssociateId string `json:"associate_id"`
  881. // 带宽大小
  882. Bandwidth int `json:"bandwidth"`
  883. SBillingChargeTypeBase
  884. // 计费类型: 流量、带宽
  885. // example: bandwidth
  886. // ChargeType billing_api.TNetChargeType `width:"64" name:"charge_type" list:"user" create:"required"`
  887. // 线路类型
  888. BgpType string `json:"bgp_type"`
  889. // 是否跟随主机删除而自动释放
  890. AutoDellocate *bool `json:"auto_dellocate,omitempty"`
  891. }
  892. // SExternalProject is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SExternalProject.
  893. type SExternalProject struct {
  894. apis.SVirtualResourceBase
  895. apis.SExternalizedResourceBase
  896. SManagedResourceBase
  897. // 优先级,同一个本地项目映射多个云上项目,优先级高的优先选择
  898. // 数值越高,优先级越大
  899. Priority int `json:"priority"`
  900. // swagger: ignore
  901. // 将在3.12之后版本移除
  902. CloudaccountId string `json:"cloudaccount_id"`
  903. }
  904. // SFileSystem is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SFileSystem.
  905. type SFileSystem struct {
  906. apis.SSharableVirtualResourceBase
  907. apis.SExternalizedResourceBase
  908. SManagedResourceBase
  909. SBillingResourceBase
  910. SCloudregionResourceBase
  911. SZoneResourceBase
  912. SDeletePreventableResourceBase
  913. // 文件系统类型
  914. // enmu: extreme, standard, cpfs
  915. FileSystemType string `json:"file_system_type"`
  916. // 存储类型
  917. // enmu: performance, capacity, standard, advance, advance_100, advance_200
  918. StorageType string `json:"storage_type"`
  919. // 协议类型
  920. // enum: ["NFS", "SMB", "cpfs"]
  921. Protocol string `json:"protocol"`
  922. // 容量, 单位Gb
  923. Capacity int64 `json:"capacity"`
  924. // 已使用容量, 单位Gb
  925. UsedCapacity int64 `json:"used_capacity"`
  926. // 最多支持挂载点数量, -1代表无限制
  927. MountTargetCountLimit int `json:"mount_target_count_limit"`
  928. }
  929. // SGlobalVpc is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGlobalVpc.
  930. type SGlobalVpc struct {
  931. apis.SEnabledStatusInfrasResourceBase
  932. apis.SExternalizedResourceBase
  933. SManagedResourceBase
  934. }
  935. // SGlobalVpcResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGlobalVpcResourceBase.
  936. type SGlobalVpcResourceBase struct {
  937. GlobalvpcId string `json:"globalvpc_id"`
  938. }
  939. // SGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGroup.
  940. type SGroup struct {
  941. apis.SVirtualResourceBase
  942. SZoneResourceBase
  943. apis.SEnabledResourceBase
  944. // 服务类型
  945. ServiceType string `json:"service_type"`
  946. ParentId string `json:"parent_id"`
  947. // 调度策略
  948. SchedStrategy string `json:"sched_strategy"`
  949. // the upper limit number of guests with this group in a host
  950. Granularity int `json:"granularity"`
  951. ForceDispersion *bool `json:"force_dispersion,omitempty"`
  952. }
  953. // SGroupJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGroupJointsBase.
  954. type SGroupJointsBase struct {
  955. apis.SVirtualJointResourceBase
  956. GroupId string `json:"group_id"`
  957. }
  958. // SGroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGroupResourceBase.
  959. type SGroupResourceBase struct {
  960. // 实例组ID
  961. GroupId string `json:"group_id"`
  962. }
  963. // SGroupguest is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGroupguest.
  964. type SGroupguest struct {
  965. SGroupJointsBase
  966. Tag string `json:"tag"`
  967. GuestId string `json:"guest_id"`
  968. GuestStatus string `json:"guest_status"`
  969. }
  970. // SGroupnetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGroupnetwork.
  971. type SGroupnetwork struct {
  972. SGroupJointsBase
  973. NetworkId string `json:"network_id"`
  974. // IPv4地址
  975. IpAddr string `json:"ip_addr"`
  976. // IPv6地址
  977. Ip6Addr string `json:"ip6_addr"`
  978. Index byte `json:"index"`
  979. EipId string `json:"eip_id"`
  980. }
  981. // SGuest is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuest.
  982. type SGuest struct {
  983. apis.SVirtualResourceBase
  984. apis.SExternalizedResourceBase
  985. SBillingResourceBase
  986. SDeletePreventableResourceBase
  987. apis.SMultiArchResourceBase
  988. apis.SRecordChecksumResourceBase
  989. SHostnameResourceBase
  990. SHostResourceBase
  991. apis.SEncryptedResource
  992. // CPU插槽(socket)的数量
  993. CpuSockets int `json:"cpu_sockets"`
  994. // CPU核(core)的数量, VcpuCount = CpuSockets * (cores per socket),例如 2颗CPU,每颗CPU8核,则 VcpuCount=2*8=16
  995. VcpuCount int `json:"vcpu_count"`
  996. // 内存大小, 单位MB
  997. VmemSize int `json:"vmem_size"`
  998. // CPU 内存绑定信息
  999. CpuNumaPin jsonutils.JSONObject `json:"cpu_numa_pin"`
  1000. // 额外分配的 CPU 数量
  1001. ExtraCpuCount int `json:"extra_cpu_count"`
  1002. // 启动顺序
  1003. BootOrder string `json:"boot_order"`
  1004. // 关机操作类型
  1005. // example: stop
  1006. ShutdownBehavior string `json:"shutdown_behavior"`
  1007. // 关机收费模式
  1008. // example: keep_charging, stop_charging
  1009. ShutdownMode string `json:"shutdown_mode"`
  1010. // 秘钥对Id
  1011. KeypairId string `json:"keypair_id"`
  1012. // 备份机所在宿主机Id
  1013. BackupHostId string `json:"backup_host_id"`
  1014. BackupGuestStatus string `json:"backup_guest_status"`
  1015. // 迁移或克隆的速度
  1016. ProgressMbps float64 `json:"progress_mbps"`
  1017. Vga string `json:"vga"`
  1018. Vdi string `json:"vdi"`
  1019. Machine string `json:"machine"`
  1020. Bios string `json:"bios"`
  1021. // 操作系统类型
  1022. OsType string `json:"os_type"`
  1023. FlavorId string `json:"flavor_id"`
  1024. // 安全组Id
  1025. // example: default
  1026. SecgrpId string `json:"secgrp_id"`
  1027. // 管理员可见安全组Id
  1028. AdminSecgrpId string `json:"admin_secgrp_id"`
  1029. SrcIpCheck *bool `json:"src_ip_check,omitempty"`
  1030. SrcMacCheck *bool `json:"src_mac_check,omitempty"`
  1031. // 虚拟化技术
  1032. // example: kvm
  1033. Hypervisor string `json:"hypervisor"`
  1034. // 套餐名称
  1035. InstanceType string `json:"instance_type"`
  1036. SshableLastState *bool `json:"sshable_last_state,omitempty"`
  1037. IsDaemon *bool `json:"is_daemon,omitempty"`
  1038. // 最大内网带宽
  1039. InternetMaxBandwidthOut int `json:"internet_max_bandwidth_out"`
  1040. // 磁盘吞吐量
  1041. Throughput int `json:"throughput"`
  1042. QgaStatus string `json:"qga_status"`
  1043. // power_states limit in [on, off, unknown]
  1044. PowerStates string `json:"power_states"`
  1045. // 健康状态, 仅开机中火运行中有效, 目前只支持阿里云
  1046. HealthStatus string `json:"health_status"`
  1047. // Used for guest rescue
  1048. RescueMode bool `json:"rescue_mode"`
  1049. // 上次开机时间
  1050. LastStartAt time.Time `json:"last_start_at"`
  1051. // 资源池,仅vmware指定调度标签时内部使用
  1052. ResourcePool string `json:"resource_pool"`
  1053. }
  1054. // SGuestJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestJointsBase.
  1055. type SGuestJointsBase struct {
  1056. apis.SVirtualJointResourceBase
  1057. GuestId string `json:"guest_id"`
  1058. }
  1059. // SGuestNetworkTrafficLog is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestNetworkTrafficLog.
  1060. type SGuestNetworkTrafficLog struct {
  1061. apis.SLogBase
  1062. apis.SProjectizedResourceBase
  1063. SGuestResourceBase
  1064. SNetworkResourceBase
  1065. // MAC地址
  1066. Mac string `json:"mac"`
  1067. // IPv4地址
  1068. IpAddr string `json:"ip_addr"`
  1069. // IPv6地址
  1070. Ip6Addr string `json:"ip6_addr"`
  1071. // 下行流量,单位 bytes
  1072. RxBytes int64 `json:"rx_bytes"`
  1073. // 上行流量,单位 bytes
  1074. TxBytes int64 `json:"tx_bytes"`
  1075. ReportAt time.Time `json:"report_at"`
  1076. State string `json:"state"`
  1077. }
  1078. // SGuestResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestResourceBase.
  1079. type SGuestResourceBase struct {
  1080. GuestId string `json:"guest_id"`
  1081. }
  1082. // SGuestScreenDump is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestScreenDump.
  1083. type SGuestScreenDump struct {
  1084. apis.SResourceBase
  1085. RowId int64 `json:"row_id"`
  1086. GuestId string `json:"guest_id"`
  1087. Name string `json:"name"`
  1088. // s3 config
  1089. S3AccessKey string `json:"s3_access_key"`
  1090. S3SecretKey string `json:"s3_secret_key"`
  1091. S3Endpoint string `json:"s3_endpoint"`
  1092. S3BucketName string `json:"s3_bucket_name"`
  1093. S3UseSsl bool `json:"s3_use_ssl"`
  1094. }
  1095. // SGuestTemplate is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestTemplate.
  1096. type SGuestTemplate struct {
  1097. apis.SSharableVirtualResourceBase
  1098. SCloudregionResourceBase
  1099. SVpcResourceBase
  1100. // 虚拟机CPU数量
  1101. VcpuCount int `json:"vcpu_count"`
  1102. // 虚拟机内存大小(MB)
  1103. VmemSize int `json:"vmem_size"`
  1104. // 虚拟机操作系统类型
  1105. // pattern:Linux|Windows|VMWare
  1106. OsType string `json:"os_type"`
  1107. // 镜像类型
  1108. ImageType string `json:"image_type"`
  1109. // 镜像ID
  1110. ImageId string `json:"image_id"`
  1111. // 虚拟机技术
  1112. Hypervisor string `json:"hypervisor"`
  1113. // 计费方式
  1114. BillingType string `json:"billing_type"`
  1115. // 其他配置信息
  1116. Content jsonutils.JSONObject `json:"content"`
  1117. }
  1118. // SGuestTemplateResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestTemplateResourceBase.
  1119. type SGuestTemplateResourceBase struct {
  1120. // 主机模板ID
  1121. GuestTemplateId string `json:"guest_template_id"`
  1122. }
  1123. // SGuestdisk is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestdisk.
  1124. type SGuestdisk struct {
  1125. SGuestJointsBase
  1126. SDiskResourceBase
  1127. ImagePath string `json:"image_path"`
  1128. Driver string `json:"driver"`
  1129. // Column(VARCHAR(32, charset='ascii'), nullable=True)
  1130. CacheMode string `json:"cache_mode"`
  1131. // Column(VARCHAR(32, charset='ascii'), nullable=True)
  1132. AioMode string `json:"aio_mode"`
  1133. // Column(VARCHAR(32, charset='ascii'), nullable=True)
  1134. Iops int `json:"iops"`
  1135. Bps int `json:"bps"`
  1136. Mountpoint string `json:"mountpoint"`
  1137. Index byte `json:"index"`
  1138. // Column(TINYINT(4), nullable=False, default=0)
  1139. BootIndex byte `json:"boot_index"`
  1140. }
  1141. // SGuestnetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestnetwork.
  1142. type SGuestnetwork struct {
  1143. SGuestJointsBase
  1144. NetworkId string `json:"network_id"`
  1145. // MAC地址
  1146. MacAddr string `json:"mac_addr"`
  1147. // IPv4地址
  1148. IpAddr string `json:"ip_addr"`
  1149. // IPv6地址
  1150. Ip6Addr string `json:"ip6_addr"`
  1151. // 虚拟网卡驱动
  1152. Driver string `json:"driver"`
  1153. // 网卡队列数
  1154. NumQueues int `json:"num_queues"`
  1155. // 带宽限制,单位mbps
  1156. BwLimit int `json:"bw_limit"`
  1157. // 下行流量限制,单位 bytes
  1158. RxTrafficLimit int64 `json:"rx_traffic_limit"`
  1159. RxTrafficUsed int64 `json:"rx_traffic_used"`
  1160. // 上行流量限制,单位 bytes
  1161. TxTrafficLimit int64 `json:"tx_traffic_limit"`
  1162. TxTrafficUsed int64 `json:"tx_traffic_used"`
  1163. // 网卡序号
  1164. Index int `json:"index"`
  1165. // 是否为虚拟接口(无IP)
  1166. Virtual bool `json:"virtual"`
  1167. // 虚拟网卡设备名称
  1168. Ifname string `json:"ifname"`
  1169. // bind配对网卡MAC地址
  1170. TeamWith string `json:"team_with"`
  1171. // IPv4映射地址,当子网属于私有云vpc的时候分配,用于访问外网
  1172. MappedIpAddr string `json:"mapped_ip_addr"`
  1173. // IPv6映射地址,当子网属于私有云vpc的时候分配,用于访问外网
  1174. MappedIp6Addr string `json:"mapped_ip6_addr"`
  1175. // 网卡关联的Eip实例
  1176. EipId string `json:"eip_id"`
  1177. // 是否为缺省路由
  1178. IsDefault bool `json:"is_default"`
  1179. // 端口映射
  1180. PortMappings []*GuestPortMapping `json:"port_mappings"`
  1181. SBillingTypeBase
  1182. SBillingChargeTypeBase
  1183. }
  1184. // SGuestnetworksecgroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestnetworksecgroup.
  1185. type SGuestnetworksecgroup struct {
  1186. apis.SResourceBase
  1187. RowId int64 `json:"row_id"`
  1188. GuestId string `json:"guest_id"`
  1189. SSecurityGroupResourceBase
  1190. NetworkIndex int `json:"network_index"`
  1191. Admin bool `json:"admin"`
  1192. }
  1193. // SGuestsecgroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestsecgroup.
  1194. type SGuestsecgroup struct {
  1195. SGuestJointsBase
  1196. SSecurityGroupResourceBase
  1197. }
  1198. // SHost is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHost.
  1199. type SHost struct {
  1200. apis.SEnabledStatusInfrasResourceBase
  1201. apis.SExternalizedResourceBase
  1202. SZoneResourceBase
  1203. SManagedResourceBase
  1204. SBillingResourceBase
  1205. SHostnameResourceBase
  1206. // 机架
  1207. Rack string `json:"rack"`
  1208. // 机位
  1209. Slots string `json:"slots"`
  1210. // 管理口MAC
  1211. AccessMac string `json:"access_mac"`
  1212. // 管理口Ip地址
  1213. AccessIp string `json:"access_ip"`
  1214. // 管理地址
  1215. ManagerUri string `json:"manager_uri"`
  1216. // 系统信息
  1217. SysInfo jsonutils.JSONObject `json:"sys_info"`
  1218. // 物理机序列号信息
  1219. SN string `json:"sn"`
  1220. // CPU核数
  1221. CpuCount int `json:"cpu_count"`
  1222. // 物理CPU颗数
  1223. NodeCount byte `json:"node_count"`
  1224. // CPU描述信息
  1225. CpuDesc string `json:"cpu_desc"`
  1226. // CPU频率
  1227. CpuMhz int `json:"cpu_mhz"`
  1228. // CPU缓存大小,单位KB
  1229. CpuCache int `json:"cpu_cache"`
  1230. // 预留CPU大小
  1231. CpuReserved int `json:"cpu_reserved"`
  1232. // CPU超分比
  1233. CpuCmtbound float32 `json:"cpu_cmtbound"`
  1234. // CPUMicrocode
  1235. CpuMicrocode string `json:"cpu_microcode"`
  1236. // CPU架构
  1237. CpuArchitecture string `json:"cpu_architecture"`
  1238. // KVM CAP VCPU MAX
  1239. KvmCapMaxVcpu int `json:"kvm_cap_max_vcpu"`
  1240. // 内存大小,单位Mb
  1241. MemSize int `json:"mem_size"`
  1242. // 预留内存大小
  1243. MemReserved int `json:"mem_reserved"`
  1244. // 内存超分比
  1245. MemCmtbound float32 `json:"mem_cmtbound"`
  1246. // 页大小
  1247. PageSizeKB int `json:"page_size_kb"`
  1248. // scheduler cpu-node/numa allocate
  1249. EnableNumaAllocate bool `json:"enable_numa_allocate"`
  1250. // 存储大小,单位Mb
  1251. StorageSize int64 `json:"storage_size"`
  1252. // 存储类型
  1253. StorageType string `json:"storage_type"`
  1254. // 存储驱动类型
  1255. StorageDriver string `json:"storage_driver"`
  1256. // 存储详情
  1257. StorageInfo jsonutils.JSONObject `json:"storage_info"`
  1258. RootPartitionUsedCapacityMb int `json:"root_partition_used_capacity_mb"`
  1259. MemoryUsedMb int `json:"memory_used_mb"`
  1260. CpuUsagePercent float64 `json:"cpu_usage_percent"`
  1261. // IPMI地址
  1262. IpmiIp string `json:"ipmi_ip"`
  1263. // IPMI详情
  1264. IpmiInfo jsonutils.JSONObject `json:"ipmi_info"`
  1265. // 宿主机状态
  1266. // example: online
  1267. HostStatus string `json:"host_status"`
  1268. // 宿主机类型
  1269. HostType string `json:"host_type"`
  1270. // host服务软件版本
  1271. Version string `json:"version"`
  1272. // OVN软件版本
  1273. OvnVersion string `json:"ovn_version"`
  1274. IsBaremetal bool `json:"is_baremetal"`
  1275. // 是否处于维护状态
  1276. IsMaintenance bool `json:"is_maintenance"`
  1277. // health check enabled by host agent online
  1278. EnableHealthCheck bool `json:"enable_health_check"`
  1279. ResourceType string `json:"resource_type"`
  1280. RealExternalId string `json:"real_external_id"`
  1281. // 是否为导入的宿主机
  1282. IsImport bool `json:"is_import"`
  1283. // 是否允许PXE启动
  1284. EnablePxeBoot *bool `json:"enable_pxe_boot,omitempty"`
  1285. // 主机UUID
  1286. Uuid string `json:"uuid"`
  1287. // 主机启动模式, 可能值为PXE和ISO
  1288. BootMode string `json:"boot_mode"`
  1289. // IPv4地址,作为私有云vpc访问外网时的网关
  1290. OvnMappedIpAddr string `json:"ovn_mapped_ip_addr"`
  1291. // IPv6地址,作为私有云vpc访问外网时的网关
  1292. OvnMappedIp6Addr string `json:"ovn_mapped_ip6_addr"`
  1293. // UEFI详情
  1294. UefiInfo jsonutils.JSONObject `json:"uefi_info"`
  1295. // 公网Ip地址
  1296. PublicIp string `json:"public_ip"`
  1297. }
  1298. // SHostBackupstorage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostBackupstorage.
  1299. type SHostBackupstorage struct {
  1300. SHostJointsBase
  1301. // 宿主机Id
  1302. HostId string `json:"host_id"`
  1303. // 存储Id
  1304. BackupstorageId string `json:"backupstorage_id"`
  1305. }
  1306. // SHostDmesgLog is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostDmesgLog.
  1307. type SHostDmesgLog struct {
  1308. apis.SOpsLog
  1309. LogLevel string `json:"log_level"`
  1310. }
  1311. // SHostFile is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostFile.
  1312. type SHostFile struct {
  1313. apis.SInfrasResourceBase
  1314. Type string `json:"type"`
  1315. Path string `json:"path"`
  1316. Content string `json:"content"`
  1317. }
  1318. // SHostFileJoint is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostFileJoint.
  1319. type SHostFileJoint struct {
  1320. HostId string `json:"host_id"`
  1321. HostFileId string `json:"host_file_id"`
  1322. Deleted bool `json:"deleted"`
  1323. }
  1324. // SHostJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostJointsBase.
  1325. type SHostJointsBase struct {
  1326. apis.SJointResourceBase
  1327. }
  1328. // SHostResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostResourceBase.
  1329. type SHostResourceBase struct {
  1330. HostId string `json:"host_id"`
  1331. }
  1332. // SHostnameResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostnameResourceBase.
  1333. type SHostnameResourceBase struct {
  1334. Hostname string `json:"hostname"`
  1335. }
  1336. // SHostnetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostnetwork.
  1337. type SHostnetwork struct {
  1338. SHostJointsBase
  1339. // 宿主机ID
  1340. BaremetalId string `json:"baremetal_id"`
  1341. // 网络ID
  1342. NetworkId string `json:"network_id"`
  1343. // IP地址
  1344. IpAddr string `json:"ip_addr"`
  1345. // IPv6地址
  1346. Ip6Addr string `json:"ip6_addr"`
  1347. // MAC地址
  1348. MacAddr string `json:"mac_addr"`
  1349. // VLAN
  1350. VlanId int `json:"vlan_id"`
  1351. }
  1352. // SHostschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostschedtag.
  1353. type SHostschedtag struct {
  1354. SSchedtagJointsBase
  1355. HostId string `json:"host_id"`
  1356. }
  1357. // SHoststorage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHoststorage.
  1358. type SHoststorage struct {
  1359. SHostJointsBase
  1360. // 宿主机Id
  1361. HostId string `json:"host_id"`
  1362. // 存储Id
  1363. StorageId string `json:"storage_id"`
  1364. // 挂载点
  1365. // nvme pci address
  1366. MountPoint string `json:"mount_point"`
  1367. // 是否是根分区
  1368. IsRootPartition bool `json:"is_root_partition"`
  1369. // 配置信息
  1370. Config *jsonutils.JSONArray `json:"config"`
  1371. // 真实容量大小
  1372. RealCapacity int64 `json:"real_capacity"`
  1373. }
  1374. // SHostwireDeprecated is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostwireDeprecated.
  1375. type SHostwireDeprecated struct {
  1376. SHostJointsBase
  1377. Bridge string `json:"bridge"`
  1378. // 接口名称
  1379. Interface string `json:"interface"`
  1380. // 是否是主地址
  1381. IsMaster bool `json:"is_master"`
  1382. // MAC地址
  1383. MacAddr string `json:"mac_addr"`
  1384. // 宿主机Id
  1385. HostId string `json:"host_id"`
  1386. // 二层网络Id
  1387. WireId string `json:"wire_id"`
  1388. }
  1389. // SI18nResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SI18nResourceBase.
  1390. type SI18nResourceBase struct {
  1391. }
  1392. // SIPv6Gateway is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SIPv6Gateway.
  1393. type SIPv6Gateway struct {
  1394. apis.SSharableVirtualResourceBase
  1395. apis.SExternalizedResourceBase
  1396. SVpcResourceBase
  1397. InstanceType string `json:"instance_type"`
  1398. }
  1399. // SInstanceBackup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SInstanceBackup.
  1400. type SInstanceBackup struct {
  1401. apis.SVirtualResourceBase
  1402. SManagedResourceBase
  1403. SCloudregionResourceBase
  1404. apis.SMultiArchResourceBase
  1405. apis.SEncryptedResource
  1406. BackupStorageId string `json:"backup_storage_id"`
  1407. GuestId string `json:"guest_id"`
  1408. // 云主机配置 corresponds to api.ServerCreateInput
  1409. ServerConfig jsonutils.JSONObject `json:"server_config"`
  1410. // 云主机标签
  1411. ServerMetadata jsonutils.JSONObject `json:"server_metadata"`
  1412. // 安全组
  1413. SecGroups jsonutils.JSONObject `json:"sec_groups"`
  1414. // 秘钥Id
  1415. KeypairId string `json:"keypair_id"`
  1416. // 操作系统类型
  1417. OsType string `json:"os_type"`
  1418. // 套餐名称
  1419. InstanceType string `json:"instance_type"`
  1420. // 主机备份容量和
  1421. SizeMb int `json:"size_mb"`
  1422. }
  1423. // SInstanceSnapshot is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SInstanceSnapshot.
  1424. type SInstanceSnapshot struct {
  1425. apis.SVirtualResourceBase
  1426. apis.SExternalizedResourceBase
  1427. SManagedResourceBase
  1428. SCloudregionResourceBase
  1429. apis.SMultiArchResourceBase
  1430. apis.SEncryptedResource
  1431. // 云主机Id
  1432. GuestId string `json:"guest_id"`
  1433. // 云主机配置
  1434. ServerConfig jsonutils.JSONObject `json:"server_config"`
  1435. // 云主机标签
  1436. ServerMetadata jsonutils.JSONObject `json:"server_metadata"`
  1437. // 是否自动删除
  1438. AutoDelete bool `json:"auto_delete"`
  1439. // 引用次数
  1440. RefCount int `json:"ref_count"`
  1441. // 安全组
  1442. SecGroups jsonutils.JSONObject `json:"sec_groups"`
  1443. // 秘钥Id
  1444. KeypairId string `json:"keypair_id"`
  1445. // 操作系统类型
  1446. OsType string `json:"os_type"`
  1447. // 套餐名称
  1448. InstanceType string `json:"instance_type"`
  1449. // 主机快照磁盘容量和
  1450. SizeMb int `json:"size_mb"`
  1451. // 镜像ID
  1452. ImageId string `json:"image_id"`
  1453. // 是否保存内存
  1454. WithMemory bool `json:"with_memory"`
  1455. // 内存文件大小
  1456. MemorySizeKB int `json:"memory_size_kb"`
  1457. // 内存文件所在宿主机
  1458. MemoryFileHostId string `json:"memory_file_host_id"`
  1459. // 内存文件路径
  1460. MemoryFilePath string `json:"memory_file_path"`
  1461. // 内存文件校验和
  1462. MemoryFileChecksum string `json:"memory_file_checksum"`
  1463. }
  1464. // SInterVpcNetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SInterVpcNetwork.
  1465. type SInterVpcNetwork struct {
  1466. apis.SEnabledStatusInfrasResourceBase
  1467. apis.SExternalizedResourceBase
  1468. SManagedResourceBase
  1469. }
  1470. // SInterVpcNetworkResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SInterVpcNetworkResourceBase.
  1471. type SInterVpcNetworkResourceBase struct {
  1472. InterVpcNetworkId string `json:"inter_vpc_network_id"`
  1473. }
  1474. // SInterVpcNetworkRouteSet is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SInterVpcNetworkRouteSet.
  1475. type SInterVpcNetworkRouteSet struct {
  1476. apis.SEnabledStatusStandaloneResourceBase
  1477. apis.SExternalizedResourceBase
  1478. SVpcResourceBase
  1479. InterVpcNetworkId string `json:"inter_vpc_network_id"`
  1480. Cidr string `json:"cidr"`
  1481. ExtInstanceId string `json:"ext_instance_id"`
  1482. ExtInstanceType string `json:"ext_instance_type"`
  1483. ExtInstanceRegionId string `json:"ext_instance_region_id"`
  1484. }
  1485. // SInterVpcNetworkVpc is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SInterVpcNetworkVpc.
  1486. type SInterVpcNetworkVpc struct {
  1487. apis.SJointResourceBase
  1488. SInterVpcNetworkResourceBase
  1489. VpcId string `json:"vpc_id"`
  1490. }
  1491. // SIsolatedDevice is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SIsolatedDevice.
  1492. type SIsolatedDevice struct {
  1493. apis.SStandaloneResourceBase
  1494. apis.SExternalizedResourceBase
  1495. apis.SSharableBaseResource
  1496. SHostResourceBase
  1497. // # PCI / GPU-HPC / GPU-VGA / USB / NIC
  1498. // 设备类型
  1499. DevType string `json:"dev_type"`
  1500. // # Specific device name read from lspci command, e.g. `Tesla K40m` ...
  1501. Model string `json:"model"`
  1502. // 云主机Id
  1503. GuestId string `json:"guest_id"`
  1504. // guest network index
  1505. NetworkIndex int `json:"network_index"`
  1506. // Nic wire id
  1507. WireId string `json:"wire_id"`
  1508. // Offload interface name
  1509. OvsOffloadInterface string `json:"ovs_offload_interface"`
  1510. // Is infiniband nic
  1511. IsInfinibandNic bool `json:"is_infiniband_nic"`
  1512. // NVME disk size
  1513. NvmeSizeMB int `json:"nvme_size_mb"`
  1514. // guest disk index
  1515. DiskIndex byte `json:"disk_index"`
  1516. // # pci address of `Bus:Device.Function` format, or usb bus address of `bus.addr`
  1517. Addr string `json:"addr"`
  1518. DevicePath string `json:"device_path"`
  1519. // GPU card path, like /dev/dri/cardX
  1520. CardPath string `json:"card_path"`
  1521. // GPU render path, like /dev/dri/renderDX
  1522. RenderPath string `json:"render_path"`
  1523. // Nvidia GPU index
  1524. Index int `json:"index"`
  1525. // Nvidia GPU minor number, parsing from /proc/driver/nvidia/gpus/*/information
  1526. DeviceMinor int `json:"device_minor"`
  1527. // Is vgpu physical funcion, That means it cannot be attached to guest
  1528. // VGPUPhysicalFunction bool `nullable:"true" default:"false" list:"domain" create:"domain_optional"`
  1529. // nvidia vgpu config
  1530. // vgpu uuid generated on create
  1531. MdevId string `json:"mdev_id"`
  1532. // The frame rate limiter (FRL) configuration in frames per second
  1533. FRL string `json:"frl"`
  1534. // The frame buffer size in Mbytes
  1535. Framebuffer string `json:"framebuffer"`
  1536. // The maximum resolution per display head, eg: 5120x2880
  1537. MaxResolution string `json:"max_resolution"`
  1538. // The maximum number of virtual display heads that the vGPU type supports
  1539. // In computer graphics and display technology, the term "head" is commonly used to
  1540. // describe the physical interface of a display device or display output.
  1541. // It refers to a connection point on the monitor, such as HDMI, DisplayPort, or VGA interface.
  1542. NumHeads string `json:"num_heads"`
  1543. // The maximum number of vGPU instances per physical GPU
  1544. MaxInstance string `json:"max_instance"`
  1545. // MPS perdevice memory limit MB
  1546. MpsMemoryLimit int `json:"mps_memory_limit"`
  1547. // MPS device memory total MB
  1548. MpsMemoryTotal int `json:"mps_memory_total"`
  1549. // MPS device thread percentage
  1550. MpsThreadPercentage int `json:"mps_thread_percentage"`
  1551. VendorDeviceId string `json:"vendor_device_id"`
  1552. // reserved memory size for isolated device
  1553. ReservedMemory int `json:"reserved_memory"`
  1554. // reserved cpu count for isolated device
  1555. ReservedCpu int `json:"reserved_cpu"`
  1556. // reserved storage size for isolated device
  1557. ReservedStorage int `json:"reserved_storage"`
  1558. // PciInfo stores extra PCIE information
  1559. PcieInfo *IsolatedDevicePCIEInfo `json:"pcie_info"`
  1560. // device numa node
  1561. NumaNode byte `json:"numa_node"`
  1562. }
  1563. // SIsolatedDeviceModel is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SIsolatedDeviceModel.
  1564. type SIsolatedDeviceModel struct {
  1565. apis.SStandaloneAnonResourceBase
  1566. Model string `json:"model"`
  1567. VendorId string `json:"vendor_id"`
  1568. DeviceId string `json:"device_id"`
  1569. DevType string `json:"dev_type"`
  1570. HotPluggable *bool `json:"hot_pluggable,omitempty"`
  1571. // Disable auto detect isolated devices on host
  1572. DisableAutoDetect *bool `json:"disable_auto_detect,omitempty"`
  1573. }
  1574. // SKafka is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SKafka.
  1575. type SKafka struct {
  1576. apis.SVirtualResourceBase
  1577. apis.SExternalizedResourceBase
  1578. SManagedResourceBase
  1579. SBillingResourceBase
  1580. SCloudregionResourceBase
  1581. SDeletePreventableResourceBase
  1582. // 版本
  1583. Version string `json:"version"`
  1584. // 套餐名称
  1585. // example: elasticsearch.sn2ne.xlarge
  1586. InstanceType string `json:"instance_type"`
  1587. // 存储类型
  1588. // example: local_ssd
  1589. StorageType string `json:"storage_type"`
  1590. // 存储大小
  1591. // example: 1024
  1592. DiskSizeGb int `json:"disk_size_gb"`
  1593. // 带宽峰值
  1594. // example: 1024
  1595. BandwidthMb int `json:"bandwidth_mb"`
  1596. // 消息保留时长
  1597. MsgRetentionMinute int `json:"msg_retention_minute"`
  1598. // 连接端点
  1599. Endpoint string `json:"endpoint"`
  1600. VpcId string `json:"vpc_id"`
  1601. NetworkId string `json:"network_id"`
  1602. // 可用区Id
  1603. ZoneId string `json:"zone_id"`
  1604. // 是否是多可用区部署
  1605. IsMultiAz bool `json:"is_multi_az"`
  1606. }
  1607. // SKeypair is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SKeypair.
  1608. type SKeypair struct {
  1609. apis.SUserResourceBase
  1610. apis.SSharableBaseResource
  1611. // 加密类型
  1612. // example: RSA
  1613. Scheme string `json:"scheme"`
  1614. // 指纹信息
  1615. // example: 1d:3a:83:4a:a1:f3:75:97:ec:d1:ef:f8:3f:a7:5d:9e
  1616. Fingerprint string `json:"fingerprint"`
  1617. // 私钥
  1618. PrivateKey string `json:"private_key"`
  1619. // 公钥
  1620. PublicKey string `json:"public_key"`
  1621. }
  1622. // SKubeCluster is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SKubeCluster.
  1623. type SKubeCluster struct {
  1624. apis.SEnabledStatusInfrasResourceBase
  1625. apis.SExternalizedResourceBase
  1626. SManagedResourceBase
  1627. SVpcResourceBase
  1628. SCloudregionResourceBase
  1629. Version string `json:"version"`
  1630. // 本地KubeserverId
  1631. ExternalClusterId string `json:"external_cluster_id"`
  1632. NetworkIds *SKubeNetworkIds `json:"network_ids"`
  1633. }
  1634. // SKubeNode is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SKubeNode.
  1635. type SKubeNode struct {
  1636. apis.SStatusStandaloneResourceBase
  1637. apis.SExternalizedResourceBase
  1638. CloudKubeNodePoolId string `json:"cloud_kube_node_pool_id"`
  1639. CloudKubeClusterId string `json:"cloud_kube_cluster_id"`
  1640. }
  1641. // SKubeNodePool is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SKubeNodePool.
  1642. type SKubeNodePool struct {
  1643. apis.SStatusStandaloneResourceBase
  1644. apis.SExternalizedResourceBase
  1645. NetworkIds *SKubeNetworkIds `json:"network_ids"`
  1646. InstanceTypes *SInstanceTypes `json:"instance_types"`
  1647. MinInstanceCount int `json:"min_instance_count"`
  1648. MaxInstanceCount int `json:"max_instance_count"`
  1649. DesiredInstanceCount int `json:"desired_instance_count"`
  1650. RootDiskSizeGb int `json:"root_disk_size_gb"`
  1651. CloudKubeClusterId string `json:"cloud_kube_cluster_id"`
  1652. }
  1653. // SLoadbalancer is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancer.
  1654. type SLoadbalancer struct {
  1655. apis.SVirtualResourceBase
  1656. apis.SExternalizedResourceBase
  1657. SBillingResourceBase
  1658. SManagedResourceBase
  1659. SCloudregionResourceBase
  1660. SDeletePreventableResourceBase
  1661. // LB might optionally be in a VPC, vpc_id, manager_id, cloudregion_id
  1662. SVpcResourceBase
  1663. // zone_id
  1664. SZoneResourceBase
  1665. // optional network_id
  1666. SNetworkResourceBase
  1667. SLoadbalancerRateLimiter
  1668. // 备可用区
  1669. Zone1 string `json:"zone_1"`
  1670. // IP地址
  1671. Address string `json:"address"`
  1672. // 地址类型
  1673. AddressType string `json:"address_type"`
  1674. // 网络类型
  1675. NetworkType string `json:"network_type"`
  1676. SLoadbalancerClusterResourceBase
  1677. // 计费类型
  1678. SBillingChargeTypeBase
  1679. // 套餐名称
  1680. LoadbalancerSpec string `json:"loadbalancer_spec"`
  1681. // 默认后端服务器组Id
  1682. BackendGroupId string `json:"backend_group_id"`
  1683. }
  1684. // SLoadbalancerAcl is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAcl.
  1685. type SLoadbalancerAcl struct {
  1686. apis.SSharableVirtualResourceBase
  1687. apis.SExternalizedResourceBase
  1688. SManagedResourceBase
  1689. SCloudregionResourceBase
  1690. AclEntries *SAclEntries `json:"acl_entries"`
  1691. }
  1692. // SLoadbalancerAclResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAclResourceBase.
  1693. type SLoadbalancerAclResourceBase struct {
  1694. // 本地Acl ID
  1695. AclId string `json:"acl_id"`
  1696. }
  1697. // SLoadbalancerAgent is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAgent.
  1698. type SLoadbalancerAgent struct {
  1699. apis.SStandaloneResourceBase
  1700. SLoadbalancerClusterResourceBase
  1701. Version string `json:"version"`
  1702. IP string `json:"ip"`
  1703. Interface string `json:"interface"`
  1704. Priority int `json:"priority"`
  1705. HaState string `json:"ha_state"`
  1706. // LB_HA_STATE_UNKNOWN
  1707. HbLastSeen time.Time `json:"hb_last_seen"`
  1708. HbTimeout int `json:"hb_timeout"`
  1709. Params *SLoadbalancerAgentParams `json:"params"`
  1710. Networks time.Time `json:"networks"`
  1711. LoadbalancerNetworks time.Time `json:"loadbalancer_networks"`
  1712. Loadbalancers time.Time `json:"loadbalancers"`
  1713. LoadbalancerListeners time.Time `json:"loadbalancer_listeners"`
  1714. LoadbalancerListenerRules time.Time `json:"loadbalancer_listener_rules"`
  1715. LoadbalancerBackendGroups time.Time `json:"loadbalancer_backend_groups"`
  1716. LoadbalancerBackends time.Time `json:"loadbalancer_backends"`
  1717. LoadbalancerAcls time.Time `json:"loadbalancer_acls"`
  1718. LoadbalancerCertificates time.Time `json:"loadbalancer_certificates"`
  1719. Deployment *SLoadbalancerAgentDeployment `json:"deployment"`
  1720. }
  1721. // SLoadbalancerAgentDeployment is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAgentDeployment.
  1722. type SLoadbalancerAgentDeployment struct {
  1723. Host string `json:"host"`
  1724. AnsiblePlaybook string `json:"ansible_playbook"`
  1725. AnsiblePlaybookUndeployment string `json:"ansible_playbook_undeployment"`
  1726. }
  1727. // SLoadbalancerAgentParams is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAgentParams.
  1728. type SLoadbalancerAgentParams struct {
  1729. KeepalivedConfTmpl string `json:"keepalived_conf_tmpl"`
  1730. HaproxyConfTmpl string `json:"haproxy_conf_tmpl"`
  1731. TelegrafConfTmpl string `json:"telegraf_conf_tmpl"`
  1732. Vrrp SLoadbalancerAgentParamsVrrp `json:"vrrp"`
  1733. Haproxy SLoadbalancerAgentParamsHaproxy `json:"haproxy"`
  1734. Telegraf SLoadbalancerAgentParamsTelegraf `json:"telegraf"`
  1735. }
  1736. // SLoadbalancerAgentParamsHaproxy is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAgentParamsHaproxy.
  1737. type SLoadbalancerAgentParamsHaproxy struct {
  1738. GlobalLog string `json:"global_log"`
  1739. GlobalNbthread int `json:"global_nbthread"`
  1740. LogHttp bool `json:"log_http"`
  1741. LogTcp bool `json:"log_tcp"`
  1742. LogNormal bool `json:"log_normal"`
  1743. TuneHttpMaxhdr int `json:"tune_http_maxhdr"`
  1744. }
  1745. // SLoadbalancerAgentParamsTelegraf is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAgentParamsTelegraf.
  1746. type SLoadbalancerAgentParamsTelegraf struct {
  1747. InfluxDbOutputUrl string `json:"influx_db_output_url"`
  1748. InfluxDbOutputName string `json:"influx_db_output_name"`
  1749. InfluxDbOutputUnsafeSsl bool `json:"influx_db_output_unsafe_ssl"`
  1750. HaproxyInputInterval int `json:"haproxy_input_interval"`
  1751. }
  1752. // SLoadbalancerAgentParamsVrrp is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAgentParamsVrrp.
  1753. type SLoadbalancerAgentParamsVrrp struct {
  1754. SLoadbalancerClusterParams
  1755. Priority int `json:"priority"`
  1756. Interface string `json:"interface"`
  1757. }
  1758. // SLoadbalancerBackend is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerBackend.
  1759. type SLoadbalancerBackend struct {
  1760. apis.SStatusStandaloneResourceBase
  1761. apis.SExternalizedResourceBase
  1762. SLoadbalancerBackendgroupResourceBase
  1763. BackendId string `json:"backend_id"`
  1764. BackendType string `json:"backend_type"`
  1765. BackendRole string `json:"backend_role"`
  1766. Weight int `json:"weight"`
  1767. Address string `json:"address"`
  1768. Port int `json:"port"`
  1769. SendProxy string `json:"send_proxy"`
  1770. Ssl string `json:"ssl"`
  1771. }
  1772. // SLoadbalancerBackendGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerBackendGroup.
  1773. type SLoadbalancerBackendGroup struct {
  1774. apis.SStatusStandaloneResourceBase
  1775. apis.SExternalizedResourceBase
  1776. SLoadbalancerResourceBase
  1777. LoadbalancerHealthCheckId string `json:"loadbalancer_health_check_id"`
  1778. Scheduler string `json:"scheduler"`
  1779. Type string `json:"type"`
  1780. }
  1781. // SLoadbalancerBackendgroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerBackendgroupResourceBase.
  1782. type SLoadbalancerBackendgroupResourceBase struct {
  1783. // 负载均衡后端组ID
  1784. BackendGroupId string `json:"backend_group_id"`
  1785. }
  1786. // SLoadbalancerCertificate is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerCertificate.
  1787. type SLoadbalancerCertificate struct {
  1788. apis.SSharableVirtualResourceBase
  1789. apis.SExternalizedResourceBase
  1790. SManagedResourceBase
  1791. SCloudregionResourceBase
  1792. apis.SCertificateResourceBase
  1793. }
  1794. // SLoadbalancerCertificateResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerCertificateResourceBase.
  1795. type SLoadbalancerCertificateResourceBase struct {
  1796. // 本地负载均衡证书ID
  1797. CertificateId string `json:"certificate_id"`
  1798. }
  1799. // SLoadbalancerCluster is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerCluster.
  1800. type SLoadbalancerCluster struct {
  1801. apis.SStandaloneResourceBase
  1802. SZoneResourceBase
  1803. SWireResourceBase
  1804. Params *SLoadbalancerClusterParams `json:"params"`
  1805. }
  1806. // SLoadbalancerClusterParams is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerClusterParams.
  1807. type SLoadbalancerClusterParams struct {
  1808. VirtualRouterId int `json:"virtual_router_id"`
  1809. Preempt bool `json:"preempt"`
  1810. AdvertInt int `json:"advert_int"`
  1811. Pass string `json:"pass"`
  1812. GarpMasterRefresh int `json:"garp_master_refresh"`
  1813. }
  1814. // SLoadbalancerClusterResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerClusterResourceBase.
  1815. type SLoadbalancerClusterResourceBase struct {
  1816. // 归属LB集群
  1817. ClusterId string `json:"cluster_id"`
  1818. }
  1819. // SLoadbalancerHTTPListener is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerHTTPListener.
  1820. type SLoadbalancerHTTPListener struct {
  1821. // 会话保持开启状态 on|off
  1822. StickySession string `json:"sticky_session"`
  1823. // Cookie处理方式 insert(植入cookie)|server(重写cookie)
  1824. StickySessionType string `json:"sticky_session_type"`
  1825. // Cookie名称
  1826. StickySessionCookie string `json:"sticky_session_cookie"`
  1827. // 会话超时时间
  1828. StickySessionCookieTimeout int `json:"sticky_session_cookie_timeout"`
  1829. // 获取客户端真实IP
  1830. XForwardedFor bool `json:"xforwarded_for"`
  1831. // Gzip数据压缩
  1832. Gzip bool `json:"gzip"`
  1833. }
  1834. // SLoadbalancerHTTPRateLimiter is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerHTTPRateLimiter.
  1835. type SLoadbalancerHTTPRateLimiter struct {
  1836. // 限定监听接收请示速率
  1837. HTTPRequestRate int `json:"http_request_rate"`
  1838. // 源IP监听请求最大速率
  1839. HTTPRequestRatePerSrc int `json:"http_request_rate_per_src"`
  1840. }
  1841. // SLoadbalancerHTTPRedirect is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerHTTPRedirect.
  1842. type SLoadbalancerHTTPRedirect struct {
  1843. // 跳转类型
  1844. Redirect string `json:"redirect"`
  1845. // 跳转HTTP code
  1846. RedirectCode int `json:"redirect_code"`
  1847. // 跳转uri scheme
  1848. RedirectScheme string `json:"redirect_scheme"`
  1849. // 跳转时变更Host
  1850. RedirectHost string `json:"redirect_host"`
  1851. // 跳转时变更Path
  1852. RedirectPath string `json:"redirect_path"`
  1853. }
  1854. // SLoadbalancerHTTPSListener is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerHTTPSListener.
  1855. type SLoadbalancerHTTPSListener struct {
  1856. SLoadbalancerCertificateResourceBase
  1857. TLSCipherPolicy string `json:"tls_cipher_policy"`
  1858. EnableHttp2 bool `json:"enable_http2"`
  1859. }
  1860. // SLoadbalancerHealthCheck is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerHealthCheck.
  1861. type SLoadbalancerHealthCheck struct {
  1862. apis.SVirtualResourceBase
  1863. apis.SExternalizedResourceBase
  1864. SManagedResourceBase
  1865. SCloudregionResourceBase
  1866. SLoadbalancerHealthChecker
  1867. }
  1868. // SLoadbalancerHealthChecker is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerHealthChecker.
  1869. type SLoadbalancerHealthChecker struct {
  1870. // 健康检查开启状态 on|off
  1871. HealthCheck string `json:"health_check"`
  1872. // 健康检查协议 HTTP|TCP
  1873. HealthCheckType string `json:"health_check_type"`
  1874. // 健康检查域名 yunion.cn
  1875. HealthCheckDomain string `json:"health_check_domain"`
  1876. // 健康检查路径 /
  1877. HealthCheckURI string `json:"health_check_uri"`
  1878. // HTTP正常状态码 http_2xx,http_3xx
  1879. HealthCheckHttpCode string `json:"health_check_http_code"`
  1880. // 健康检查方法 GET|POST|HEAD
  1881. HealthCheckMethod string `json:"health_check_method"`
  1882. // 健康检查端口 80
  1883. HealthCheckPort int `json:"health_check_port"`
  1884. // 健康检查健康阈值 3秒
  1885. HealthCheckRise int `json:"health_check_rise"`
  1886. // 健康检查不健康阈值 15秒
  1887. HealthCheckFall int `json:"health_check_fall"`
  1888. // 健康检查超时时间 10秒
  1889. HealthCheckTimeout int `json:"health_check_timeout"`
  1890. // 健康检查间隔时间 5秒
  1891. HealthCheckInterval int `json:"health_check_interval"`
  1892. // UDP监听健康检查的请求串
  1893. HealthCheckReq string `json:"health_check_req"`
  1894. // UDP监听健康检查的响应串
  1895. HealthCheckExp string `json:"health_check_exp"`
  1896. }
  1897. // SLoadbalancerListener is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerListener.
  1898. type SLoadbalancerListener struct {
  1899. apis.SStatusStandaloneResourceBase
  1900. apis.SExternalizedResourceBase
  1901. SLoadbalancerResourceBase
  1902. ListenerType string `json:"listener_type"`
  1903. ListenerPort int `json:"listener_port"`
  1904. BackendGroupId string `json:"backend_group_id"`
  1905. BackendServerPort int `json:"backend_server_port"`
  1906. Scheduler string `json:"scheduler"`
  1907. SendProxy string `json:"send_proxy"`
  1908. // 连接请求超时时间
  1909. ClientRequestTimeout int `json:"client_request_timeout"`
  1910. // 连接空闲超时时间
  1911. ClientIdleTimeout int `json:"client_idle_timeout"`
  1912. // 后端连接超时时间
  1913. BackendConnectTimeout int `json:"backend_connect_timeout"`
  1914. // 后端连接空闲时间
  1915. BackendIdleTimeout int `json:"backend_idle_timeout"`
  1916. AclStatus string `json:"acl_status"`
  1917. AclType string `json:"acl_type"`
  1918. SLoadbalancerAclResourceBase
  1919. SLoadbalancerRateLimiter
  1920. SLoadbalancerTCPListener
  1921. SLoadbalancerUDPListener
  1922. SLoadbalancerHTTPListener
  1923. SLoadbalancerHTTPSListener
  1924. SLoadbalancerHealthChecker
  1925. SLoadbalancerHTTPRateLimiter
  1926. SLoadbalancerHTTPRedirect
  1927. }
  1928. // SLoadbalancerListenerResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerListenerResourceBase.
  1929. type SLoadbalancerListenerResourceBase struct {
  1930. // 负载均衡监听器ID
  1931. ListenerId string `json:"listener_id"`
  1932. }
  1933. // SLoadbalancerListenerRule is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerListenerRule.
  1934. type SLoadbalancerListenerRule struct {
  1935. apis.SStatusStandaloneResourceBase
  1936. apis.SExternalizedResourceBase
  1937. SLoadbalancerCertificateResourceBase
  1938. SLoadbalancerListenerResourceBase
  1939. // 默认转发策略,目前只有aws用到其它云都是false
  1940. IsDefault bool `json:"is_default"`
  1941. // 默认后端服务器组
  1942. BackendGroupId string `json:"backend_group_id"`
  1943. // 后端服务器组列表
  1944. BackendGroups *ListenerRuleBackendGroups `json:"backend_groups"`
  1945. // 域名
  1946. Domain string `json:"domain"`
  1947. Path string `json:"path"`
  1948. Condition string `json:"condition"`
  1949. RedirectPool *ListenerRuleRedirectPool `json:"redirect_pool"`
  1950. SLoadbalancerHealthChecker
  1951. // 目前只有腾讯云HTTP、HTTPS类型的健康检查是和规则绑定的。
  1952. SLoadbalancerHTTPRateLimiter
  1953. SLoadbalancerHTTPRedirect
  1954. }
  1955. // SLoadbalancerNetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerNetwork.
  1956. type SLoadbalancerNetwork struct {
  1957. apis.SVirtualJointResourceBase
  1958. LoadbalancerId string `json:"loadbalancer_id"`
  1959. NetworkId string `json:"network_id"`
  1960. IpAddr string `json:"ip_addr"`
  1961. MacAddr string `json:"mac_addr"`
  1962. }
  1963. // SLoadbalancerRateLimiter is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerRateLimiter.
  1964. type SLoadbalancerRateLimiter struct {
  1965. EgressMbps int `json:"egress_mbps"`
  1966. }
  1967. // SLoadbalancerResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerResourceBase.
  1968. type SLoadbalancerResourceBase struct {
  1969. // 负载均衡ID
  1970. LoadbalancerId string `json:"loadbalancer_id"`
  1971. }
  1972. // SLoadbalancerSecurityGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerSecurityGroup.
  1973. type SLoadbalancerSecurityGroup struct {
  1974. apis.SJointResourceBase
  1975. LoadbalancerId string `json:"loadbalancer_id"`
  1976. SSecurityGroupResourceBase
  1977. }
  1978. // SLoadbalancerTCPListener is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerTCPListener.
  1979. type SLoadbalancerTCPListener struct {
  1980. }
  1981. // SLoadbalancerUDPListener is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerUDPListener.
  1982. type SLoadbalancerUDPListener struct {
  1983. }
  1984. // SManagedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SManagedResourceBase.
  1985. type SManagedResourceBase struct {
  1986. // 云订阅ID
  1987. ManagerId string `json:"manager_id"`
  1988. }
  1989. // SMiscResource is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SMiscResource.
  1990. type SMiscResource struct {
  1991. apis.SVirtualResourceBase
  1992. apis.SExternalizedResourceBase
  1993. SManagedResourceBase
  1994. SCloudregionResourceBase
  1995. ResourceType string `json:"resource_type"`
  1996. MiscConf jsonutils.JSONObject `json:"misc_conf"`
  1997. }
  1998. // SModelartsPool is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SModelartsPool.
  1999. type SModelartsPool struct {
  2000. apis.SVirtualResourceBase
  2001. apis.SExternalizedResourceBase
  2002. SManagedResourceBase
  2003. SBillingResourceBase
  2004. SCloudregionResourceBase
  2005. SDeletePreventableResourceBase
  2006. InstanceType string `json:"instance_type"`
  2007. NodeCount int `json:"node_count"`
  2008. WorkType string `json:"work_type"`
  2009. // CPU 架构 x86|xarm
  2010. CpuArch string `json:"cpu_arch"`
  2011. Cidr string `json:"cidr"`
  2012. }
  2013. // SModelartsPoolSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SModelartsPoolSku.
  2014. type SModelartsPoolSku struct {
  2015. apis.SEnabledStatusStandaloneResourceBase
  2016. apis.SExternalizedResourceBase
  2017. SCloudregionResourceBase
  2018. Type string `json:"type"`
  2019. // CPU 架构 x86|xarm
  2020. CpuArch string `json:"cpu_arch"`
  2021. // CPU核心数量
  2022. CpuCount int `json:"cpu_count"`
  2023. // GPU卡类型
  2024. GpuType string `json:"gpu_type"`
  2025. // GPU卡数量
  2026. GpuSize int `json:"gpu_size"`
  2027. // NPU卡类型
  2028. NpuType string `json:"npu_type"`
  2029. // NPU卡数量
  2030. NpuSize int `json:"npu_size"`
  2031. // 内存
  2032. Memory int `json:"memory"`
  2033. // 处理器类型
  2034. ProcessorType string `json:"processor_type"`
  2035. }
  2036. // SMongoDB is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SMongoDB.
  2037. type SMongoDB struct {
  2038. apis.SVirtualResourceBase
  2039. apis.SExternalizedResourceBase
  2040. SManagedResourceBase
  2041. SBillingResourceBase
  2042. SCloudregionResourceBase
  2043. SZoneResourceBase
  2044. SDeletePreventableResourceBase
  2045. // CPU数量
  2046. // example: 1
  2047. VcpuCount int `json:"vcpu_count"`
  2048. // 内存大小
  2049. // example: 1024
  2050. VmemSizeMb int `json:"vmem_size_mb"`
  2051. // 存储大小, 单位Mb
  2052. // example: 10240
  2053. DiskSizeMb int `json:"disk_size_mb"`
  2054. // 端口
  2055. // example: 3306
  2056. Port int `json:"port"`
  2057. // 实例类型
  2058. // example: ha
  2059. Category string `json:"category"`
  2060. // 分片数量
  2061. // example: 3
  2062. ReplicationNum int `json:"replication_num"`
  2063. // 最大连接数
  2064. MaxConnections int `json:"max_connections"`
  2065. Iops int `json:"iops"`
  2066. // 实例IP地址
  2067. IpAddr string `json:"ip_addr"`
  2068. // 引擎
  2069. // example: MySQL
  2070. Engine string `json:"engine"`
  2071. // 引擎版本
  2072. // example: 5.7
  2073. EngineVersion string `json:"engine_version"`
  2074. // 套餐名称
  2075. // example: mysql.x4.large.2c
  2076. InstanceType string `json:"instance_type"`
  2077. // 维护时间
  2078. MaintainTime string `json:"maintain_time"`
  2079. // 虚拟私有网络Id
  2080. // example: ed20d84e-3158-41b1-870c-1725e412e8b6
  2081. VpcId string `json:"vpc_id"`
  2082. // 所属网络ID
  2083. NetworkId string `json:"network_id"`
  2084. // 连接地址
  2085. NetworkAddress string `json:"network_address"`
  2086. }
  2087. // SMountTarget is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SMountTarget.
  2088. type SMountTarget struct {
  2089. apis.SStatusStandaloneResourceBase
  2090. apis.SExternalizedResourceBase
  2091. SVpcResourceBase
  2092. SNetworkResourceBase
  2093. SAccessGroupResourceBase
  2094. NetworkType string `json:"network_type"`
  2095. DomainName string `json:"domain_name"`
  2096. FileSystemId string `json:"file_system_id"`
  2097. }
  2098. // SNasSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNasSku.
  2099. type SNasSku struct {
  2100. apis.SEnabledStatusStandaloneResourceBase
  2101. apis.SExternalizedResourceBase
  2102. SCloudregionResourceBase
  2103. PrepaidStatus string `json:"prepaid_status"`
  2104. // 预付费资源状态 available|soldout
  2105. PostpaidStatus string `json:"postpaid_status"`
  2106. StorageType string `json:"storage_type"`
  2107. DiskSizeStep int `json:"disk_size_step"`
  2108. // 步长
  2109. MaxDiskSizeGb int `json:"max_disk_size_gb"`
  2110. MinDiskSizeGb int `json:"min_disk_size_gb"`
  2111. NetworkTypes string `json:"network_types"`
  2112. FileSystemType string `json:"file_system_type"`
  2113. Protocol string `json:"protocol"`
  2114. Provider string `json:"provider"`
  2115. ZoneIds string `json:"zone_ids"`
  2116. }
  2117. // SNatDEntry is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNatDEntry.
  2118. type SNatDEntry struct {
  2119. SNatEntry
  2120. ExternalIP string `json:"external_ip"`
  2121. ExternalPort int `json:"external_port"`
  2122. InternalIP string `json:"internal_ip"`
  2123. InternalPort int `json:"internal_port"`
  2124. IpProtocol string `json:"ip_protocol"`
  2125. }
  2126. // SNatEntry is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNatEntry.
  2127. type SNatEntry struct {
  2128. apis.SStatusInfrasResourceBase
  2129. apis.SExternalizedResourceBase
  2130. SNatgatewayResourceBase
  2131. }
  2132. // SNatGateway is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNatGateway.
  2133. type SNatGateway struct {
  2134. apis.SStatusInfrasResourceBase
  2135. apis.SExternalizedResourceBase
  2136. SBillingResourceBase
  2137. SVpcResourceBase
  2138. SDeletePreventableResourceBase
  2139. NetworkId string `json:"network_id"`
  2140. NetworkType string `json:"network_type"`
  2141. IpAddr string `json:"ip_addr"`
  2142. BandwidthMb int `json:"bandwidth_mb"`
  2143. NatSpec string `json:"nat_spec"`
  2144. }
  2145. // SNatSEntry is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNatSEntry.
  2146. type SNatSEntry struct {
  2147. SNatEntry
  2148. SNetworkResourceBase
  2149. IP string `json:"ip"`
  2150. SourceCIDR string `json:"source_cidr"`
  2151. }
  2152. // SNatSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNatSku.
  2153. type SNatSku struct {
  2154. apis.SEnabledStatusStandaloneResourceBase
  2155. apis.SExternalizedResourceBase
  2156. SCloudregionResourceBase
  2157. PrepaidStatus string `json:"prepaid_status"`
  2158. // 预付费资源状态 available|soldout
  2159. PostpaidStatus string `json:"postpaid_status"`
  2160. Provider string `json:"provider"`
  2161. ZoneIds string `json:"zone_ids"`
  2162. }
  2163. // SNatgatewayResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNatgatewayResourceBase.
  2164. type SNatgatewayResourceBase struct {
  2165. NatgatewayId string `json:"natgateway_id"`
  2166. }
  2167. // SNetTapFlow is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetTapFlow.
  2168. type SNetTapFlow struct {
  2169. apis.SEnabledStatusStandaloneResourceBase
  2170. TapId string `json:"tap_id"`
  2171. Type string `json:"type"`
  2172. SourceId string `json:"source_id"`
  2173. NetId string `json:"net_id"`
  2174. MacAddr string `json:"mac_addr"`
  2175. VlanId int `json:"vlan_id"`
  2176. Direction string `json:"direction"`
  2177. FlowId uint16 `json:"flow_id"`
  2178. }
  2179. // SNetTapService is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetTapService.
  2180. type SNetTapService struct {
  2181. apis.SEnabledStatusStandaloneResourceBase
  2182. // 流量采集端类型,虚拟机(guest)还是宿主机(host)
  2183. Type string `json:"type"`
  2184. // 接受流量的目标ID,如果type=host,是hostId,如果type=guest,是guestId
  2185. TargetId string `json:"target_id"`
  2186. // 接受流量的Mac地址
  2187. MacAddr string `json:"mac_addr"`
  2188. // 网卡名称
  2189. Ifname string `json:"ifname"`
  2190. }
  2191. // SNetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetwork.
  2192. type SNetwork struct {
  2193. apis.SSharableVirtualResourceBase
  2194. apis.SExternalizedResourceBase
  2195. SWireResourceBase
  2196. IfnameHint string `json:"ifname_hint"`
  2197. // 起始IP地址
  2198. GuestIpStart string `json:"guest_ip_start"`
  2199. // 结束IP地址
  2200. GuestIpEnd string `json:"guest_ip_end"`
  2201. // 掩码
  2202. GuestIpMask byte `json:"guest_ip_mask"`
  2203. // 网关地址
  2204. GuestGateway string `json:"guest_gateway"`
  2205. // DNS, allow multiple dns, seperated by ","
  2206. GuestDns string `json:"guest_dns"`
  2207. // allow multiple dhcp, seperated by ","
  2208. GuestDhcp string `json:"guest_dhcp"`
  2209. // allow mutiple ntp, seperated by ","
  2210. GuestNtp string `json:"guest_ntp"`
  2211. // search domain
  2212. GuestDomain string `json:"guest_domain"`
  2213. // 起始IPv6地址
  2214. GuestIp6Start string `json:"guest_ip6_start"`
  2215. // 结束IPv6地址
  2216. GuestIp6End string `json:"guest_ip6_end"`
  2217. // IPv6子网掩码
  2218. GuestIp6Mask byte `json:"guest_ip6_mask"`
  2219. // IPv6网关
  2220. GuestGateway6 string `json:"guest_gateway6"`
  2221. VlanId int `json:"vlan_id"`
  2222. // 服务器类型
  2223. // example: server
  2224. ServerType string `json:"server_type"`
  2225. // 分配策略
  2226. AllocPolicy string `json:"alloc_policy"`
  2227. AllocTimoutSeconds int `json:"alloc_timout_seconds"`
  2228. // 该网段是否用于自动分配IP地址,如果为false,则用户需要明确选择该网段,才会使用该网段分配IP,
  2229. // 如果为true,则用户不指定网段时,则自动从该值为true的网络中选择一个分配地址
  2230. IsAutoAlloc *bool `json:"is_auto_alloc,omitempty"`
  2231. // 线路类型
  2232. BgpType string `json:"bgp_type"`
  2233. }
  2234. // SNetworkAdditionalWire is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetworkAdditionalWire.
  2235. type SNetworkAdditionalWire struct {
  2236. NetworkId string `json:"network_id"`
  2237. WireId string `json:"wire_id"`
  2238. Synced *bool `json:"synced"`
  2239. Marked *bool `json:"marked"`
  2240. }
  2241. // SNetworkAddress is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetworkAddress.
  2242. type SNetworkAddress struct {
  2243. apis.SStandaloneAnonResourceBase
  2244. Type string `json:"type"`
  2245. ParentType string `json:"parent_type"`
  2246. ParentId string `json:"parent_id"`
  2247. SNetworkResourceBase
  2248. IpAddr string `json:"ip_addr"`
  2249. SubCtrVid int `json:"sub_ctr_vid"`
  2250. }
  2251. // SNetworkInterface is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetworkInterface.
  2252. type SNetworkInterface struct {
  2253. apis.SStatusInfrasResourceBase
  2254. apis.SExternalizedResourceBase
  2255. SManagedResourceBase
  2256. SCloudregionResourceBase
  2257. // MAC地址
  2258. Mac string `json:"mac"`
  2259. // 绑定资源类型
  2260. AssociateType string `json:"associate_type"`
  2261. // 绑定资源Id
  2262. AssociateId string `json:"associate_id"`
  2263. }
  2264. // SNetworkIpMac is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetworkIpMac.
  2265. type SNetworkIpMac struct {
  2266. apis.SStandaloneAnonResourceBase
  2267. NetworkId string `json:"network_id"`
  2268. // MAC地址
  2269. MacAddr string `json:"mac_addr"`
  2270. // IPv4地址
  2271. IpAddr string `json:"ip_addr"`
  2272. }
  2273. // SNetworkResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetworkResourceBase.
  2274. type SNetworkResourceBase struct {
  2275. NetworkId string `json:"network_id"`
  2276. }
  2277. // SNetworkinterfacenetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetworkinterfacenetwork.
  2278. type SNetworkinterfacenetwork struct {
  2279. apis.SJointResourceBase
  2280. Primary bool `json:"primary"`
  2281. IpAddr string `json:"ip_addr"`
  2282. NetworkinterfaceId string `json:"networkinterface_id"`
  2283. // Column(VARCHAR(36, charset='ascii'), nullable=False)
  2284. NetworkId string `json:"network_id"`
  2285. }
  2286. // SNetworkschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetworkschedtag.
  2287. type SNetworkschedtag struct {
  2288. SSchedtagJointsBase
  2289. NetworkId string `json:"network_id"`
  2290. }
  2291. // SPolicyAssignment is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SPolicyAssignment.
  2292. type SPolicyAssignment struct {
  2293. apis.SDomainLevelResourceBase
  2294. SPolicyDefinitionResourceBase
  2295. }
  2296. // SPolicyDefinition is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SPolicyDefinition.
  2297. type SPolicyDefinition struct {
  2298. apis.SStatusStandaloneResourceBase
  2299. apis.SExternalizedResourceBase
  2300. // 参数
  2301. Parameters *jsonutils.JSONDict `json:"parameters"`
  2302. // 条件
  2303. Condition string `json:"condition"`
  2304. // 类别
  2305. Category string `json:"category"`
  2306. }
  2307. // SPolicyDefinitionResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SPolicyDefinitionResourceBase.
  2308. type SPolicyDefinitionResourceBase struct {
  2309. // 策略Id
  2310. PolicydefinitionId string `json:"policydefinition_id"`
  2311. }
  2312. // SProjectMapping is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SProjectMapping.
  2313. type SProjectMapping struct {
  2314. apis.SEnabledStatusInfrasResourceBase
  2315. Rules *MappingRules `json:"rules"`
  2316. }
  2317. // SProjectMappingResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SProjectMappingResourceBase.
  2318. type SProjectMappingResourceBase struct {
  2319. ProjectMappingId string `json:"project_mapping_id"`
  2320. EnableProjectSync *bool `json:"enable_project_sync,omitempty"`
  2321. EnableResourceSync *bool `json:"enable_resource_sync,omitempty"`
  2322. }
  2323. // SReservedip is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SReservedip.
  2324. type SReservedip struct {
  2325. apis.SResourceBase
  2326. SNetworkResourceBase
  2327. // 自增Id
  2328. Id int64 `json:"id"`
  2329. // IP地址
  2330. IpAddr string `json:"ip_addr"`
  2331. // IPv6地址
  2332. Ip6Addr string `json:"ip6_addr"`
  2333. // 预留原因或描述
  2334. Notes string `json:"notes"`
  2335. // 过期时间
  2336. ExpiredAt time.Time `json:"expired_at"`
  2337. // 状态
  2338. Status string `json:"status"`
  2339. }
  2340. // SRouteTable is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SRouteTable.
  2341. type SRouteTable struct {
  2342. apis.SStatusInfrasResourceBase
  2343. apis.SExternalizedResourceBase
  2344. SVpcResourceBase
  2345. Type string `json:"type"`
  2346. Routes *SRoutes `json:"routes"`
  2347. }
  2348. // SRouteTableAssociation is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SRouteTableAssociation.
  2349. type SRouteTableAssociation struct {
  2350. apis.SStatusStandaloneResourceBase
  2351. apis.SExternalizedResourceBase
  2352. SRouteTableResourceBase
  2353. AssociationType string `json:"association_type"`
  2354. AssociatedResourceId string `json:"associated_resource_id"`
  2355. ExtAssociatedResourceId string `json:"ext_associated_resource_id"`
  2356. }
  2357. // SRouteTableResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SRouteTableResourceBase.
  2358. type SRouteTableResourceBase struct {
  2359. RouteTableId string `json:"route_table_id"`
  2360. }
  2361. // SRouteTableRouteSet is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SRouteTableRouteSet.
  2362. type SRouteTableRouteSet struct {
  2363. apis.SStatusStandaloneResourceBase
  2364. apis.SExternalizedResourceBase
  2365. SRouteTableResourceBase
  2366. Type string `json:"type"`
  2367. Cidr string `json:"cidr"`
  2368. NextHopType string `json:"next_hop_type"`
  2369. NextHopId string `json:"next_hop_id"`
  2370. ExtNextHopId string `json:"ext_next_hop_id"`
  2371. }
  2372. // SSSLCertificate is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSSLCertificate.
  2373. type SSSLCertificate struct {
  2374. apis.SVirtualResourceBase
  2375. apis.SExternalizedResourceBase
  2376. SManagedResourceBase
  2377. SDnsZoneResourceBase
  2378. SDeletePreventableResourceBase
  2379. Sans string `json:"sans"`
  2380. StartDate time.Time `json:"start_date"`
  2381. Province string `json:"province"`
  2382. Common string `json:"common"`
  2383. Country string `json:"country"`
  2384. Issuer string `json:"issuer"`
  2385. IsUpload bool `json:"is_upload"`
  2386. EndDate time.Time `json:"end_date"`
  2387. Fingerprint string `json:"fingerprint"`
  2388. City string `json:"city"`
  2389. OrgName string `json:"org_name"`
  2390. Certificate string `json:"certificate"`
  2391. PrivateKey string `json:"private_key"`
  2392. }
  2393. // SScalingActivity is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingActivity.
  2394. type SScalingActivity struct {
  2395. apis.SStatusStandaloneResourceBase
  2396. SScalingGroupResourceBase
  2397. InstanceNumber int `json:"instance_number"`
  2398. // 起因描述
  2399. TriggerDesc string `json:"trigger_desc"`
  2400. // 行为描述
  2401. ActionDesc string `json:"action_desc"`
  2402. StartTime time.Time `json:"start_time"`
  2403. EndTime time.Time `json:"end_time"`
  2404. Reason string `json:"reason"`
  2405. }
  2406. // SScalingAlarm is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingAlarm.
  2407. type SScalingAlarm struct {
  2408. apis.SStandaloneResourceBase
  2409. SScalingPolicyBase
  2410. // ID of alarm config in alarm service
  2411. AlarmId string `json:"alarm_id"`
  2412. // Trigger when the cumulative count is reached
  2413. Cumulate int `json:"cumulate"`
  2414. Cycle int `json:"cycle"`
  2415. Indicator string `json:"indicator"`
  2416. // Wrapper instruct how to calculate collective data based on individual data
  2417. Wrapper string `json:"wrapper"`
  2418. Operator string `json:"operator"`
  2419. Value float64 `json:"value"`
  2420. // Real-time cumulate number
  2421. RealCumulate int `json:"real_cumulate"`
  2422. }
  2423. // SScalingGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingGroup.
  2424. type SScalingGroup struct {
  2425. apis.SVirtualResourceBase
  2426. SCloudregionResourceBase
  2427. SVpcResourceBase
  2428. SLoadbalancerBackendgroupResourceBase
  2429. // GuestGroupId represent the guest gropu related to this scaling group.
  2430. // Every scaling group will have only one guest group related to itself.
  2431. SGroupResourceBase
  2432. SGuestTemplateResourceBase
  2433. apis.SEnabledResourceBase
  2434. Hypervisor string `json:"hypervisor"`
  2435. MinInstanceNumber int `json:"min_instance_number"`
  2436. MaxInstanceNumber int `json:"max_instance_number"`
  2437. // DesireInstanceNumber represent the number of instances that should exist in the scaling group.
  2438. // Scaling controller will monitor and ensure this in real time.
  2439. // Scaling activities triggered by various policies will also modify this value.
  2440. // This value should between MinInstanceNumber and MaxInstanceNumber
  2441. DesireInstanceNumber int `json:"desire_instance_number"`
  2442. // ExpansionPrinciple represent the principle when creating new instance to join in.
  2443. ExpansionPrinciple string `json:"expansion_principle"`
  2444. // ShrinkPrinciple represent the principle when removing instance from scaling group.
  2445. ShrinkPrinciple string `json:"shrink_principle"`
  2446. HealthCheckMode string `json:"health_check_mode"`
  2447. HealthCheckCycle int `json:"health_check_cycle"`
  2448. HealthCheckGov int `json:"health_check_gov"`
  2449. LoadbalancerBackendPort int `json:"loadbalancer_backend_port"`
  2450. LoadbalancerBackendWeight int `json:"loadbalancer_backend_weight"`
  2451. }
  2452. // SScalingGroupGuest is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingGroupGuest.
  2453. type SScalingGroupGuest struct {
  2454. SGuestJointsBase
  2455. ScalingGroupId string `json:"scaling_group_id"`
  2456. GuestStatus string `json:"guest_status"`
  2457. Manual *bool `json:"manual,omitempty"`
  2458. }
  2459. // SScalingGroupNetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingGroupNetwork.
  2460. type SScalingGroupNetwork struct {
  2461. apis.SVirtualJointResourceBase
  2462. ScalingGroupId string `json:"scaling_group_id"`
  2463. NetworkId string `json:"network_id"`
  2464. }
  2465. // SScalingGroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingGroupResourceBase.
  2466. type SScalingGroupResourceBase struct {
  2467. // ScalingGroupId
  2468. ScalingGroupId string `json:"scaling_group_id"`
  2469. }
  2470. // SScalingPolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingPolicy.
  2471. type SScalingPolicy struct {
  2472. apis.SVirtualResourceBase
  2473. SScalingGroupResourceBase
  2474. apis.SEnabledResourceBase
  2475. TriggerType string `json:"trigger_type"`
  2476. TriggerId string `json:"trigger_id"`
  2477. // Action of scaling activity
  2478. Action string `json:"action"`
  2479. Number int `json:"number"`
  2480. // Unit of Number
  2481. Unit string `json:"unit"`
  2482. // Scaling activity triggered by alarms will be rejected during this period about CoolingTime
  2483. CoolingTime int `json:"cooling_time"`
  2484. }
  2485. // SScalingPolicyBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingPolicyBase.
  2486. type SScalingPolicyBase struct {
  2487. ScalingPolicyId string `json:"scaling_policy_id"`
  2488. }
  2489. // SScalingTimer is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingTimer.
  2490. type SScalingTimer struct {
  2491. apis.SStandaloneResourceBase
  2492. SScalingPolicyBase
  2493. STimer
  2494. }
  2495. // SSchedpolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSchedpolicy.
  2496. type SSchedpolicy struct {
  2497. apis.SStandaloneResourceBase
  2498. SSchedtagResourceBase
  2499. Condition string `json:"condition"`
  2500. Strategy string `json:"strategy"`
  2501. Enabled *bool `json:"enabled,omitempty"`
  2502. }
  2503. // SSchedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSchedtag.
  2504. type SSchedtag struct {
  2505. apis.SStandaloneResourceBase
  2506. apis.SScopedResourceBase
  2507. DefaultStrategy string `json:"default_strategy"`
  2508. // Column(VARCHAR(16, charset='ascii'), nullable=True, default=”)
  2509. ResourceType string `json:"resource_type"`
  2510. }
  2511. // SSchedtagJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSchedtagJointsBase.
  2512. type SSchedtagJointsBase struct {
  2513. apis.SJointResourceBase
  2514. SchedtagId string `json:"schedtag_id"`
  2515. }
  2516. // SSchedtagResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSchedtagResourceBase.
  2517. type SSchedtagResourceBase struct {
  2518. // 归属调度标签ID
  2519. SchedtagId string `json:"schedtag_id"`
  2520. }
  2521. // SSecurityGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSecurityGroup.
  2522. type SSecurityGroup struct {
  2523. apis.SSharableVirtualResourceBase
  2524. apis.SExternalizedResourceBase
  2525. IsDirty bool `json:"is_dirty"`
  2526. SManagedResourceBase
  2527. SCloudregionResourceBase
  2528. SGlobalVpcResourceBase
  2529. SVpcResourceBase
  2530. }
  2531. // SSecurityGroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSecurityGroupResourceBase.
  2532. type SSecurityGroupResourceBase struct {
  2533. // 本地安全组ID
  2534. SecgroupId string `json:"secgroup_id"`
  2535. }
  2536. // SSecurityGroupRule is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSecurityGroupRule.
  2537. type SSecurityGroupRule struct {
  2538. apis.SResourceBase
  2539. apis.SStatusResourceBase
  2540. apis.SExternalizedResourceBase
  2541. SSecurityGroupResourceBase
  2542. Id string `json:"id"`
  2543. Priority int `json:"priority"`
  2544. Protocol string `json:"protocol"`
  2545. Ports string `json:"ports"`
  2546. Direction string `json:"direction"`
  2547. CIDR string `json:"cidr"`
  2548. Action string `json:"action"`
  2549. Description string `json:"description"`
  2550. }
  2551. // SServerSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SServerSku.
  2552. type SServerSku struct {
  2553. apis.SEnabledStatusStandaloneResourceBase
  2554. apis.SExternalizedResourceBase
  2555. SCloudregionResourceBase
  2556. SZoneResourceBase
  2557. // SkuId string `width:"64" charset:"ascii" nullable:"false" list:"user" create:"admin_required"` // x2.large
  2558. InstanceTypeFamily string `json:"instance_type_family"`
  2559. // x2
  2560. InstanceTypeCategory string `json:"instance_type_category"`
  2561. // 通用型
  2562. LocalCategory string `json:"local_category"`
  2563. PrepaidStatus string `json:"prepaid_status"`
  2564. // 预付费资源状态 available|soldout
  2565. PostpaidStatus string `json:"postpaid_status"`
  2566. CpuArch string `json:"cpu_arch"`
  2567. // CPU 架构 x86|xarm
  2568. CpuCoreCount int `json:"cpu_core_count"`
  2569. MemorySizeMB int `json:"memory_size_mb"`
  2570. OsName string `json:"os_name"`
  2571. SysDiskResizable *bool `json:"sys_disk_resizable,omitempty"`
  2572. SysDiskType string `json:"sys_disk_type"`
  2573. SysDiskMinSizeGB int `json:"sys_disk_min_size_gb"`
  2574. // not required。 windows比较新的版本都是50G左右。
  2575. SysDiskMaxSizeGB int `json:"sys_disk_max_size_gb"`
  2576. AttachedDiskType string `json:"attached_disk_type"`
  2577. AttachedDiskSizeGB int `json:"attached_disk_size_gb"`
  2578. AttachedDiskCount int `json:"attached_disk_count"`
  2579. DataDiskTypes string `json:"data_disk_types"`
  2580. DataDiskMaxCount int `json:"data_disk_max_count"`
  2581. NicType string `json:"nic_type"`
  2582. NicMaxCount int `json:"nic_max_count"`
  2583. GpuAttachable *bool `json:"gpu_attachable,omitempty"`
  2584. GpuSpec string `json:"gpu_spec"`
  2585. GpuCount string `json:"gpu_count"`
  2586. GpuMaxCount int `json:"gpu_max_count"`
  2587. Provider string `json:"provider"`
  2588. Md5 string `json:"md5"`
  2589. }
  2590. // SServiceCatalog is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SServiceCatalog.
  2591. type SServiceCatalog struct {
  2592. apis.SSharableVirtualResourceBase
  2593. IconUrl string `json:"icon_url"`
  2594. GuestTemplateID string `json:"guest_template_id"`
  2595. }
  2596. // SSnapshot is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSnapshot.
  2597. type SSnapshot struct {
  2598. apis.SVirtualResourceBase
  2599. apis.SExternalizedResourceBase
  2600. SManagedResourceBase
  2601. SCloudregionResourceBase
  2602. apis.SMultiArchResourceBase
  2603. apis.SEncryptedResource
  2604. // 磁盘Id
  2605. DiskId string `json:"disk_id"`
  2606. // Only onecloud has StorageId
  2607. StorageId string `json:"storage_id"`
  2608. CreatedBy string `json:"created_by"`
  2609. Location string `json:"location"`
  2610. // 快照大小,单位Mb
  2611. Size int `json:"size"`
  2612. // Virtual size, for kvm is origin disk size
  2613. VirtualSize int `json:"virtual_size"`
  2614. OutOfChain bool `json:"out_of_chain"`
  2615. FakeDeleted bool `json:"fake_deleted"`
  2616. DiskType string `json:"disk_type"`
  2617. // 操作系统类型
  2618. OsType string `json:"os_type"`
  2619. // create disk from snapshot, snapshot as disk backing file
  2620. RefCount int `json:"ref_count"`
  2621. BackingDiskId string `json:"backing_disk_id"`
  2622. DiskBackupId string `json:"disk_backup_id"`
  2623. ExpiredAt time.Time `json:"expired_at"`
  2624. }
  2625. // SSnapshotPolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSnapshotPolicy.
  2626. type SSnapshotPolicy struct {
  2627. apis.SVirtualResourceBase
  2628. apis.SExternalizedResourceBase
  2629. SManagedResourceBase
  2630. SCloudregionResourceBase
  2631. // 快照保留天数, -1: 表示永久保留
  2632. RetentionDays int `json:"retention_days"`
  2633. // 快照保留数量, 优先级高于 RetentionDays, 且仅对本地IDC资源有效
  2634. RetentionCount int `json:"retention_count"`
  2635. // 快照类型, 目前支持 disk, server
  2636. // disk: 自动磁盘快照策略, 只能关联磁盘
  2637. // server: 自动主机快照策略, 只能关联主机
  2638. Type string `json:"type"`
  2639. // 1~7, 1 is Monday, 7 is Sunday
  2640. RepeatWeekdays []int `json:"repeat_weekdays"`
  2641. // 0~23, 每小时
  2642. // 创建自动快照策略的时间必须与 RepeatWeekdays 对应的创建周期相一致
  2643. TimePoints []int `json:"time_points"`
  2644. }
  2645. // SSnapshotPolicyDisk is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSnapshotPolicyDisk.
  2646. type SSnapshotPolicyDisk struct {
  2647. apis.SVirtualJointResourceBase
  2648. SnapshotpolicyId string `json:"snapshotpolicy_id"`
  2649. SDiskResourceBase
  2650. }
  2651. // SSnapshotPolicyResource is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSnapshotPolicyResource.
  2652. type SSnapshotPolicyResource struct {
  2653. apis.SResourceBase
  2654. SnapshotpolicyId string `json:"snapshotpolicy_id"`
  2655. ResourceId string `json:"resource_id"`
  2656. ResourceType string `json:"resource_type"`
  2657. }
  2658. // SStorage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SStorage.
  2659. type SStorage struct {
  2660. apis.SEnabledStatusInfrasResourceBase
  2661. apis.SExternalizedResourceBase
  2662. SManagedResourceBase
  2663. SZoneResourceBase
  2664. // 容量大小,单位Mb
  2665. Capacity int64 `json:"capacity"`
  2666. // 实际容量大小,单位Mb
  2667. // we always expect actual capacity great or equal than zero, otherwise something wrong
  2668. ActualCapacityUsed int64 `json:"actual_capacity_used"`
  2669. // 预留容量大小
  2670. Reserved int64 `json:"reserved"`
  2671. // 存储类型
  2672. // example: local
  2673. StorageType string `json:"storage_type"`
  2674. // 介质类型
  2675. // example: ssd
  2676. MediumType string `json:"medium_type"`
  2677. // 超售比
  2678. Cmtbound float32 `json:"cmtbound"`
  2679. // 存储配置信息
  2680. StorageConf jsonutils.JSONObject `json:"storage_conf"`
  2681. // 存储缓存Id
  2682. StoragecacheId string `json:"storagecache_id"`
  2683. // master host id
  2684. MasterHost string `json:"master_host"`
  2685. // indicating whether system disk can be allocated in this storage
  2686. // 是否可以用作系统盘存储
  2687. // example: true
  2688. IsSysDiskStore *bool `json:"is_sys_disk_store,omitempty"`
  2689. }
  2690. // SStorageResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SStorageResourceBase.
  2691. type SStorageResourceBase struct {
  2692. StorageId string `json:"storage_id"`
  2693. }
  2694. // SStoragecache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SStoragecache.
  2695. type SStoragecache struct {
  2696. apis.SStandaloneResourceBase
  2697. apis.SExternalizedResourceBase
  2698. SManagedResourceBase
  2699. // 镜像存储地址
  2700. Path string `json:"path"`
  2701. // master host id
  2702. MasterHost string `json:"master_host"`
  2703. }
  2704. // SStoragecacheResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SStoragecacheResourceBase.
  2705. type SStoragecacheResourceBase struct {
  2706. // 存储缓存Id
  2707. StoragecacheId string `json:"storagecache_id"`
  2708. }
  2709. // SStoragecachedimage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SStoragecachedimage.
  2710. type SStoragecachedimage struct {
  2711. apis.SJointResourceBase
  2712. apis.SExternalizedResourceBase
  2713. SStoragecacheResourceBase
  2714. // 镜像缓存Id
  2715. CachedimageId string `json:"cachedimage_id"`
  2716. // 镜像状态
  2717. Status string `json:"status"`
  2718. Path string `json:"path"`
  2719. // 上次下载时间
  2720. LastDownload time.Time `json:"last_download"`
  2721. // 下载引用次数
  2722. DownloadRefcnt int `json:"download_refcnt"`
  2723. }
  2724. // SStorageschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SStorageschedtag.
  2725. type SStorageschedtag struct {
  2726. SSchedtagJointsBase
  2727. StorageId string `json:"storage_id"`
  2728. }
  2729. // SSyncableBaseResource is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSyncableBaseResource.
  2730. type SSyncableBaseResource struct {
  2731. SyncStatus string `json:"sync_status"`
  2732. LastSync time.Time `json:"last_sync"`
  2733. // = Column(DateTime, nullable=True)
  2734. LastSyncEndAt time.Time `json:"last_sync_end_at"`
  2735. }
  2736. // STablestore is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.STablestore.
  2737. type STablestore struct {
  2738. apis.SVirtualResourceBase
  2739. apis.SExternalizedResourceBase
  2740. SCloudregionResourceBase
  2741. SManagedResourceBase
  2742. }
  2743. // STimer is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.STimer.
  2744. type STimer struct {
  2745. // Cycle type
  2746. Type string `json:"type"`
  2747. // 0-59
  2748. Minute int `json:"minute"`
  2749. // 0-23
  2750. Hour int `json:"hour"`
  2751. // 0-7 1 is Monday 0 is unlimited
  2752. WeekDays byte `json:"week_days"`
  2753. // 0-31 0 is unlimited
  2754. MonthDays uint32 `json:"month_days"`
  2755. // StartTime represent the start time of this timer
  2756. StartTime time.Time `json:"start_time"`
  2757. // EndTime represent deadline of this timer
  2758. EndTime time.Time `json:"end_time"`
  2759. // NextTime represent the time timer should bell
  2760. NextTime time.Time `json:"next_time"`
  2761. IsExpired bool `json:"is_expired"`
  2762. }
  2763. // SVpc is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SVpc.
  2764. type SVpc struct {
  2765. apis.SEnabledStatusInfrasResourceBase
  2766. apis.SExternalizedResourceBase
  2767. SManagedResourceBase
  2768. SCloudregionResourceBase
  2769. SGlobalVpcResourceBase
  2770. // 是否是默认VPC
  2771. // example: true
  2772. IsDefault bool `json:"is_default"`
  2773. // CIDR地址段
  2774. // example: 192.168.222.0/24
  2775. CidrBlock string `json:"cidr_block"`
  2776. // CIDR for IPv6
  2777. CidrBlock6 string `json:"cidr_block6"`
  2778. // Vpc外网访问模式
  2779. ExternalAccessMode string `json:"external_access_mode"`
  2780. // Can it be connected directly
  2781. Direct bool `json:"direct"`
  2782. }
  2783. // SVpcPeeringConnection is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SVpcPeeringConnection.
  2784. type SVpcPeeringConnection struct {
  2785. apis.SEnabledStatusInfrasResourceBase
  2786. apis.SExternalizedResourceBase
  2787. SVpcResourceBase
  2788. ExtPeerVpcId string `json:"ext_peer_vpc_id"`
  2789. ExtPeerAccountId string `json:"ext_peer_account_id"`
  2790. PeerVpcId string `json:"peer_vpc_id"`
  2791. PeerAccountId string `json:"peer_account_id"`
  2792. Bandwidth int `json:"bandwidth"`
  2793. }
  2794. // SVpcResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SVpcResourceBase.
  2795. type SVpcResourceBase struct {
  2796. VpcId string `json:"vpc_id"`
  2797. }
  2798. // SWafIPSet is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafIPSet.
  2799. type SWafIPSet struct {
  2800. apis.SStatusInfrasResourceBase
  2801. apis.SExternalizedResourceBase
  2802. SManagedResourceBase
  2803. SCloudregionResourceBase
  2804. Type string `json:"type"`
  2805. Addresses *cloudprovider.WafAddresses `json:"addresses"`
  2806. }
  2807. // SWafInstance is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafInstance.
  2808. type SWafInstance struct {
  2809. apis.SEnabledStatusInfrasResourceBase
  2810. apis.SExternalizedResourceBase
  2811. SManagedResourceBase
  2812. SCloudregionResourceBase
  2813. Type string `json:"type"`
  2814. DefaultAction *cloudprovider.DefaultAction `json:"default_action"`
  2815. Cname string `json:"cname"`
  2816. // 前面是否有代理服务
  2817. IsAccessProduct bool `json:"is_access_product"`
  2818. AccessHeaders []string `json:"access_headers"`
  2819. // 源站地址
  2820. SourceIps []string `json:"source_ips"`
  2821. // 回源地址
  2822. CcList []string `json:"cc_list"`
  2823. HttpPorts []int `json:"http_ports"`
  2824. HttpsPorts []int `json:"https_ports"`
  2825. UpstreamScheme string `json:"upstream_scheme"`
  2826. UpstreamPort int `json:"upstream_port"`
  2827. CertId string `json:"cert_id"`
  2828. CertName string `json:"cert_name"`
  2829. }
  2830. // SWafRegexSet is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafRegexSet.
  2831. type SWafRegexSet struct {
  2832. apis.SStatusInfrasResourceBase
  2833. apis.SExternalizedResourceBase
  2834. SManagedResourceBase
  2835. SCloudregionResourceBase
  2836. RegexPatterns *cloudprovider.WafRegexPatterns `json:"regex_patterns"`
  2837. Type string `json:"type"`
  2838. }
  2839. // SWafRule is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafRule.
  2840. type SWafRule struct {
  2841. apis.SEnabledStatusStandaloneResourceBase
  2842. apis.SExternalizedResourceBase
  2843. // 规则优先级
  2844. Priority int `json:"priority"`
  2845. // 规则默认行为
  2846. Action *cloudprovider.DefaultAction `json:"action"`
  2847. // 条件
  2848. StatementConditon string `json:"statement_conditon"`
  2849. // 条件表达式
  2850. Expression string `json:"expression"`
  2851. // 规则类型
  2852. Type string `json:"type"`
  2853. // 规则配置
  2854. Config jsonutils.JSONObject `json:"config"`
  2855. // 规则组的id
  2856. WafRuleGroupId string `json:"waf_rule_group_id"`
  2857. // 所属waf实例id
  2858. WafInstanceId string `json:"waf_instance_id"`
  2859. }
  2860. // SWafRuleGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafRuleGroup.
  2861. type SWafRuleGroup struct {
  2862. apis.SStatusInfrasResourceBase
  2863. apis.SExternalizedResourceBase
  2864. SManagedResourceBase
  2865. SCloudregionResourceBase
  2866. WafType string `json:"waf_type"`
  2867. }
  2868. // SWafRuleStatement is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafRuleStatement.
  2869. type SWafRuleStatement struct {
  2870. apis.SResourceBase
  2871. Id string `json:"id"`
  2872. cloudprovider.SWafStatement
  2873. WafRuleId string `json:"waf_rule_id"`
  2874. }
  2875. // SWire is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWire.
  2876. type SWire struct {
  2877. apis.SStatusInfrasResourceBase
  2878. apis.SExternalizedResourceBase
  2879. SManagedResourceBase
  2880. SVpcResourceBase
  2881. SZoneResourceBase
  2882. // 带宽大小, 单位Mbps
  2883. // example: 1000
  2884. Bandwidth int `json:"bandwidth"`
  2885. // MTU
  2886. // example: 1500
  2887. Mtu int `json:"mtu"`
  2888. // swagger:ignore
  2889. ScheduleRank int `json:"schedule_rank"`
  2890. }
  2891. // SWireResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWireResourceBase.
  2892. type SWireResourceBase struct {
  2893. // 二层网络ID
  2894. WireId string `json:"wire_id"`
  2895. }
  2896. // SZone is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SZone.
  2897. type SZone struct {
  2898. apis.SStatusStandaloneResourceBase
  2899. apis.SExternalizedResourceBase
  2900. SI18nResourceBase
  2901. SCloudregionResourceBase
  2902. Location string `json:"location"`
  2903. Contacts string `json:"contacts"`
  2904. NameCn string `json:"name_cn"`
  2905. ManagerUri string `json:"manager_uri"`
  2906. }
  2907. // SZoneResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SZoneResourceBase.
  2908. type SZoneResourceBase struct {
  2909. ZoneId string `json:"zone_id"`
  2910. }