model.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. package models
  2. import (
  3. "io"
  4. "github.com/alibabacloud-go/tea/dara"
  5. credential "github.com/aliyun/credentials-go/credentials"
  6. )
  7. // Description:
  8. //
  9. // This is for OpenApi Util
  10. type iGlobalParameters interface {
  11. dara.Model
  12. String() string
  13. GoString() string
  14. SetHeaders(v map[string]*string) *GlobalParameters
  15. GetHeaders() map[string]*string
  16. SetQueries(v map[string]*string) *GlobalParameters
  17. GetQueries() map[string]*string
  18. }
  19. type GlobalParameters struct {
  20. dara.Model
  21. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  22. Queries map[string]*string `json:"queries,omitempty" xml:"queries,omitempty"`
  23. }
  24. func (s GlobalParameters) String() string {
  25. return dara.Prettify(s)
  26. }
  27. func (s GlobalParameters) GoString() string {
  28. return s.String()
  29. }
  30. func (s *GlobalParameters) GetHeaders() map[string]*string {
  31. return s.Headers
  32. }
  33. func (s *GlobalParameters) GetQueries() map[string]*string {
  34. return s.Queries
  35. }
  36. func (s *GlobalParameters) SetHeaders(v map[string]*string) *GlobalParameters {
  37. s.Headers = v
  38. return s
  39. }
  40. func (s *GlobalParameters) SetQueries(v map[string]*string) *GlobalParameters {
  41. s.Queries = v
  42. return s
  43. }
  44. type iConfig interface {
  45. dara.Model
  46. String() string
  47. GoString() string
  48. SetAccessKeyId(v string) *Config
  49. GetAccessKeyId() *string
  50. SetAccessKeySecret(v string) *Config
  51. GetAccessKeySecret() *string
  52. SetSecurityToken(v string) *Config
  53. GetSecurityToken() *string
  54. SetBearerToken(v string) *Config
  55. GetBearerToken() *string
  56. SetProtocol(v string) *Config
  57. GetProtocol() *string
  58. SetMethod(v string) *Config
  59. GetMethod() *string
  60. SetRegionId(v string) *Config
  61. GetRegionId() *string
  62. SetReadTimeout(v int) *Config
  63. GetReadTimeout() *int
  64. SetIdleTimeout(v int) *Config
  65. GetIdleTimeout() *int
  66. SetConnectTimeout(v int) *Config
  67. GetConnectTimeout() *int
  68. SetHttpProxy(v string) *Config
  69. GetHttpProxy() *string
  70. SetHttpsProxy(v string) *Config
  71. GetHttpsProxy() *string
  72. SetCredential(v credential.Credential) *Config
  73. GetCredential() credential.Credential
  74. SetEndpoint(v string) *Config
  75. GetEndpoint() *string
  76. SetNoProxy(v string) *Config
  77. GetNoProxy() *string
  78. SetMaxIdleConns(v int) *Config
  79. GetMaxIdleConns() *int
  80. SetNetwork(v string) *Config
  81. GetNetwork() *string
  82. SetUserAgent(v string) *Config
  83. GetUserAgent() *string
  84. SetSuffix(v string) *Config
  85. GetSuffix() *string
  86. SetSocks5Proxy(v string) *Config
  87. GetSocks5Proxy() *string
  88. SetSocks5NetWork(v string) *Config
  89. GetSocks5NetWork() *string
  90. SetEndpointType(v string) *Config
  91. GetEndpointType() *string
  92. SetOpenPlatformEndpoint(v string) *Config
  93. GetOpenPlatformEndpoint() *string
  94. SetType(v string) *Config
  95. GetType() *string
  96. SetSignatureVersion(v string) *Config
  97. GetSignatureVersion() *string
  98. SetSignatureAlgorithm(v string) *Config
  99. GetSignatureAlgorithm() *string
  100. SetGlobalParameters(v *GlobalParameters) *Config
  101. GetGlobalParameters() *GlobalParameters
  102. SetKey(v string) *Config
  103. GetKey() *string
  104. SetCert(v string) *Config
  105. GetCert() *string
  106. SetCa(v string) *Config
  107. GetCa() *string
  108. SetDisableHttp2(v bool) *Config
  109. GetDisableHttp2() *bool
  110. SetRetryOptions(v *dara.RetryOptions) *Config
  111. GetRetryOptions() *dara.RetryOptions
  112. GetTlsMinVersion() *string
  113. SetTlsMinVersion(v string) *Config
  114. }
  115. // Description:
  116. //
  117. // Model for initing client
  118. type Config struct {
  119. dara.Model
  120. // accesskey id
  121. AccessKeyId *string `json:"accessKeyId,omitempty" xml:"accessKeyId,omitempty"`
  122. // accesskey secret
  123. AccessKeySecret *string `json:"accessKeySecret,omitempty" xml:"accessKeySecret,omitempty"`
  124. // security token
  125. SecurityToken *string `json:"securityToken,omitempty" xml:"securityToken,omitempty"`
  126. // bearer token
  127. //
  128. // example:
  129. //
  130. // the-bearer-token
  131. BearerToken *string `json:"bearerToken,omitempty" xml:"bearerToken,omitempty"`
  132. // http protocol
  133. //
  134. // example:
  135. //
  136. // http
  137. Protocol *string `json:"protocol,omitempty" xml:"protocol,omitempty"`
  138. // http method
  139. //
  140. // example:
  141. //
  142. // GET
  143. Method *string `json:"method,omitempty" xml:"method,omitempty"`
  144. // region id
  145. //
  146. // example:
  147. //
  148. // cn-hangzhou
  149. RegionId *string `json:"regionId,omitempty" xml:"regionId,omitempty"`
  150. // read timeout
  151. //
  152. // example:
  153. //
  154. // 10
  155. ReadTimeout *int `json:"readTimeout,omitempty" xml:"readTimeout,omitempty"`
  156. // connect timeout
  157. //
  158. // example:
  159. //
  160. // 10
  161. ConnectTimeout *int `json:"connectTimeout,omitempty" xml:"connectTimeout,omitempty"`
  162. // idle timeout
  163. //
  164. // example:
  165. //
  166. // 30
  167. IdleTimeout *int `json:"idleTimeout,omitempty" xml:"idleTimeout,omitempty"`
  168. // http proxy
  169. //
  170. // example:
  171. //
  172. // http://localhost
  173. HttpProxy *string `json:"httpProxy,omitempty" xml:"httpProxy,omitempty"`
  174. // https proxy
  175. //
  176. // example:
  177. //
  178. // https://localhost
  179. HttpsProxy *string `json:"httpsProxy,omitempty" xml:"httpsProxy,omitempty"`
  180. // credential
  181. Credential credential.Credential `json:"credential,omitempty" xml:"credential,omitempty"`
  182. // endpoint
  183. //
  184. // example:
  185. //
  186. // cs.aliyuncs.com
  187. Endpoint *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"`
  188. // proxy white list
  189. //
  190. // example:
  191. //
  192. // http://localhost
  193. NoProxy *string `json:"noProxy,omitempty" xml:"noProxy,omitempty"`
  194. // max idle conns
  195. //
  196. // example:
  197. //
  198. // 3
  199. MaxIdleConns *int `json:"maxIdleConns,omitempty" xml:"maxIdleConns,omitempty"`
  200. // network for endpoint
  201. //
  202. // example:
  203. //
  204. // public
  205. Network *string `json:"network,omitempty" xml:"network,omitempty"`
  206. // user agent
  207. //
  208. // example:
  209. //
  210. // Alibabacloud/1
  211. UserAgent *string `json:"userAgent,omitempty" xml:"userAgent,omitempty"`
  212. // suffix for endpoint
  213. //
  214. // example:
  215. //
  216. // aliyun
  217. Suffix *string `json:"suffix,omitempty" xml:"suffix,omitempty"`
  218. // socks5 proxy
  219. Socks5Proxy *string `json:"socks5Proxy,omitempty" xml:"socks5Proxy,omitempty"`
  220. // socks5 network
  221. //
  222. // example:
  223. //
  224. // TCP
  225. Socks5NetWork *string `json:"socks5NetWork,omitempty" xml:"socks5NetWork,omitempty"`
  226. // endpoint type
  227. //
  228. // example:
  229. //
  230. // internal
  231. EndpointType *string `json:"endpointType,omitempty" xml:"endpointType,omitempty"`
  232. // OpenPlatform endpoint
  233. //
  234. // example:
  235. //
  236. // openplatform.aliyuncs.com
  237. OpenPlatformEndpoint *string `json:"openPlatformEndpoint,omitempty" xml:"openPlatformEndpoint,omitempty"`
  238. // Deprecated
  239. //
  240. // credential type
  241. //
  242. // example:
  243. //
  244. // access_key
  245. Type *string `json:"type,omitempty" xml:"type,omitempty"`
  246. // Signature Version
  247. //
  248. // example:
  249. //
  250. // v1
  251. SignatureVersion *string `json:"signatureVersion,omitempty" xml:"signatureVersion,omitempty"`
  252. // Signature Algorithm
  253. //
  254. // example:
  255. //
  256. // ACS3-HMAC-SHA256
  257. SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty" xml:"signatureAlgorithm,omitempty"`
  258. // Global Parameters
  259. GlobalParameters *GlobalParameters `json:"globalParameters,omitempty" xml:"globalParameters,omitempty"`
  260. // privite key for client certificate
  261. //
  262. // example:
  263. //
  264. // MIIEvQ
  265. Key *string `json:"key,omitempty" xml:"key,omitempty"`
  266. // client certificate
  267. //
  268. // example:
  269. //
  270. // -----BEGIN CERTIFICATE-----
  271. //
  272. // xxx-----END CERTIFICATE-----
  273. Cert *string `json:"cert,omitempty" xml:"cert,omitempty"`
  274. // server certificate
  275. //
  276. // example:
  277. //
  278. // -----BEGIN CERTIFICATE-----
  279. //
  280. // xxx-----END CERTIFICATE-----
  281. Ca *string `json:"ca,omitempty" xml:"ca,omitempty"`
  282. // disable HTTP/2
  283. //
  284. // example:
  285. //
  286. // false
  287. DisableHttp2 *bool `json:"disableHttp2,omitempty" xml:"disableHttp2,omitempty"`
  288. // retry options
  289. RetryOptions *dara.RetryOptions `json:"retryOptions,omitempty" xml:"retryOptions,omitempty"`
  290. // http client
  291. HttpClient dara.HttpClient `json:"httpClient,omitempty" xml:"httpClient,omitempty"`
  292. TlsMinVersion *string `json:"tlsMinVersion,omitempty" xml:"tlsMinVersion,omitempty"`
  293. }
  294. func (s Config) String() string {
  295. return dara.Prettify(s)
  296. }
  297. func (s Config) GoString() string {
  298. return s.String()
  299. }
  300. func (s *Config) GetAccessKeyId() *string {
  301. return s.AccessKeyId
  302. }
  303. func (s *Config) GetAccessKeySecret() *string {
  304. return s.AccessKeySecret
  305. }
  306. func (s *Config) GetSecurityToken() *string {
  307. return s.SecurityToken
  308. }
  309. func (s *Config) GetBearerToken() *string {
  310. return s.BearerToken
  311. }
  312. func (s *Config) GetProtocol() *string {
  313. return s.Protocol
  314. }
  315. func (s *Config) GetMethod() *string {
  316. return s.Method
  317. }
  318. func (s *Config) GetRegionId() *string {
  319. return s.RegionId
  320. }
  321. func (s *Config) GetReadTimeout() *int {
  322. return s.ReadTimeout
  323. }
  324. func (s *Config) GetConnectTimeout() *int {
  325. return s.ConnectTimeout
  326. }
  327. func (s *Config) GetIdleTimeout() *int {
  328. return s.IdleTimeout
  329. }
  330. func (s *Config) GetHttpProxy() *string {
  331. return s.HttpProxy
  332. }
  333. func (s *Config) GetHttpsProxy() *string {
  334. return s.HttpsProxy
  335. }
  336. func (s *Config) GetCredential() credential.Credential {
  337. return s.Credential
  338. }
  339. func (s *Config) GetEndpoint() *string {
  340. return s.Endpoint
  341. }
  342. func (s *Config) GetNoProxy() *string {
  343. return s.NoProxy
  344. }
  345. func (s *Config) GetMaxIdleConns() *int {
  346. return s.MaxIdleConns
  347. }
  348. func (s *Config) GetNetwork() *string {
  349. return s.Network
  350. }
  351. func (s *Config) GetUserAgent() *string {
  352. return s.UserAgent
  353. }
  354. func (s *Config) GetSuffix() *string {
  355. return s.Suffix
  356. }
  357. func (s *Config) GetSocks5Proxy() *string {
  358. return s.Socks5Proxy
  359. }
  360. func (s *Config) GetSocks5NetWork() *string {
  361. return s.Socks5NetWork
  362. }
  363. func (s *Config) GetEndpointType() *string {
  364. return s.EndpointType
  365. }
  366. func (s *Config) GetOpenPlatformEndpoint() *string {
  367. return s.OpenPlatformEndpoint
  368. }
  369. func (s *Config) GetType() *string {
  370. return s.Type
  371. }
  372. func (s *Config) GetSignatureVersion() *string {
  373. return s.SignatureVersion
  374. }
  375. func (s *Config) GetSignatureAlgorithm() *string {
  376. return s.SignatureAlgorithm
  377. }
  378. func (s *Config) GetGlobalParameters() *GlobalParameters {
  379. return s.GlobalParameters
  380. }
  381. func (s *Config) GetKey() *string {
  382. return s.Key
  383. }
  384. func (s *Config) GetCert() *string {
  385. return s.Cert
  386. }
  387. func (s *Config) GetCa() *string {
  388. return s.Ca
  389. }
  390. func (s *Config) GetDisableHttp2() *bool {
  391. return s.DisableHttp2
  392. }
  393. func (s *Config) GetRetryOptions() *dara.RetryOptions {
  394. return s.RetryOptions
  395. }
  396. func (s *Config) GetHttpClient() dara.HttpClient {
  397. return s.HttpClient
  398. }
  399. func (s *Config) SetAccessKeyId(v string) *Config {
  400. s.AccessKeyId = &v
  401. return s
  402. }
  403. func (s *Config) SetAccessKeySecret(v string) *Config {
  404. s.AccessKeySecret = &v
  405. return s
  406. }
  407. func (s *Config) SetSecurityToken(v string) *Config {
  408. s.SecurityToken = &v
  409. return s
  410. }
  411. func (s *Config) SetBearerToken(v string) *Config {
  412. s.BearerToken = &v
  413. return s
  414. }
  415. func (s *Config) SetProtocol(v string) *Config {
  416. s.Protocol = &v
  417. return s
  418. }
  419. func (s *Config) SetMethod(v string) *Config {
  420. s.Method = &v
  421. return s
  422. }
  423. func (s *Config) SetRegionId(v string) *Config {
  424. s.RegionId = &v
  425. return s
  426. }
  427. func (s *Config) SetReadTimeout(v int) *Config {
  428. s.ReadTimeout = &v
  429. return s
  430. }
  431. func (s *Config) SetConnectTimeout(v int) *Config {
  432. s.ConnectTimeout = &v
  433. return s
  434. }
  435. func (s *Config) SetIdleTimeout(v int) *Config {
  436. s.IdleTimeout = &v
  437. return s
  438. }
  439. func (s *Config) SetHttpProxy(v string) *Config {
  440. s.HttpProxy = &v
  441. return s
  442. }
  443. func (s *Config) SetHttpsProxy(v string) *Config {
  444. s.HttpsProxy = &v
  445. return s
  446. }
  447. func (s *Config) SetCredential(v credential.Credential) *Config {
  448. s.Credential = v
  449. return s
  450. }
  451. func (s *Config) SetEndpoint(v string) *Config {
  452. s.Endpoint = &v
  453. return s
  454. }
  455. func (s *Config) SetNoProxy(v string) *Config {
  456. s.NoProxy = &v
  457. return s
  458. }
  459. func (s *Config) SetMaxIdleConns(v int) *Config {
  460. s.MaxIdleConns = &v
  461. return s
  462. }
  463. func (s *Config) SetNetwork(v string) *Config {
  464. s.Network = &v
  465. return s
  466. }
  467. func (s *Config) SetUserAgent(v string) *Config {
  468. s.UserAgent = &v
  469. return s
  470. }
  471. func (s *Config) SetSuffix(v string) *Config {
  472. s.Suffix = &v
  473. return s
  474. }
  475. func (s *Config) SetSocks5Proxy(v string) *Config {
  476. s.Socks5Proxy = &v
  477. return s
  478. }
  479. func (s *Config) SetSocks5NetWork(v string) *Config {
  480. s.Socks5NetWork = &v
  481. return s
  482. }
  483. func (s *Config) SetEndpointType(v string) *Config {
  484. s.EndpointType = &v
  485. return s
  486. }
  487. func (s *Config) SetOpenPlatformEndpoint(v string) *Config {
  488. s.OpenPlatformEndpoint = &v
  489. return s
  490. }
  491. func (s *Config) SetType(v string) *Config {
  492. s.Type = &v
  493. return s
  494. }
  495. func (s *Config) SetSignatureVersion(v string) *Config {
  496. s.SignatureVersion = &v
  497. return s
  498. }
  499. func (s *Config) SetSignatureAlgorithm(v string) *Config {
  500. s.SignatureAlgorithm = &v
  501. return s
  502. }
  503. func (s *Config) SetGlobalParameters(v *GlobalParameters) *Config {
  504. s.GlobalParameters = v
  505. return s
  506. }
  507. func (s *Config) SetKey(v string) *Config {
  508. s.Key = &v
  509. return s
  510. }
  511. func (s *Config) SetCert(v string) *Config {
  512. s.Cert = &v
  513. return s
  514. }
  515. func (s *Config) SetCa(v string) *Config {
  516. s.Ca = &v
  517. return s
  518. }
  519. func (s *Config) SetDisableHttp2(v bool) *Config {
  520. s.DisableHttp2 = &v
  521. return s
  522. }
  523. func (s *Config) SetRetryOptions(v *dara.RetryOptions) *Config {
  524. s.RetryOptions = v
  525. return s
  526. }
  527. func (s *Config) SetHttpClient(v dara.HttpClient) *Config {
  528. s.HttpClient = v
  529. return s
  530. }
  531. type iParams interface {
  532. dara.Model
  533. String() string
  534. GoString() string
  535. SetAction(v string) *Params
  536. GetAction() *string
  537. SetVersion(v string) *Params
  538. GetVersion() *string
  539. SetProtocol(v string) *Params
  540. GetProtocol() *string
  541. SetPathname(v string) *Params
  542. GetPathname() *string
  543. SetMethod(v string) *Params
  544. GetMethod() *string
  545. SetAuthType(v string) *Params
  546. GetAuthType() *string
  547. SetBodyType(v string) *Params
  548. GetBodyType() *string
  549. SetReqBodyType(v string) *Params
  550. GetReqBodyType() *string
  551. SetStyle(v string) *Params
  552. GetStyle() *string
  553. }
  554. type Params struct {
  555. dara.Model
  556. Action *string `json:"action,omitempty" xml:"action,omitempty" require:"true"`
  557. Version *string `json:"version,omitempty" xml:"version,omitempty" require:"true"`
  558. Protocol *string `json:"protocol,omitempty" xml:"protocol,omitempty" require:"true"`
  559. Pathname *string `json:"pathname,omitempty" xml:"pathname,omitempty" require:"true"`
  560. Method *string `json:"method,omitempty" xml:"method,omitempty" require:"true"`
  561. AuthType *string `json:"authType,omitempty" xml:"authType,omitempty" require:"true"`
  562. BodyType *string `json:"bodyType,omitempty" xml:"bodyType,omitempty" require:"true"`
  563. ReqBodyType *string `json:"reqBodyType,omitempty" xml:"reqBodyType,omitempty" require:"true"`
  564. Style *string `json:"style,omitempty" xml:"style,omitempty"`
  565. }
  566. func (s Params) String() string {
  567. return dara.Prettify(s)
  568. }
  569. func (s Params) GoString() string {
  570. return s.String()
  571. }
  572. func (s *Params) GetAction() *string {
  573. return s.Action
  574. }
  575. func (s *Params) GetVersion() *string {
  576. return s.Version
  577. }
  578. func (s *Params) GetProtocol() *string {
  579. return s.Protocol
  580. }
  581. func (s *Params) GetPathname() *string {
  582. return s.Pathname
  583. }
  584. func (s *Params) GetMethod() *string {
  585. return s.Method
  586. }
  587. func (s *Params) GetAuthType() *string {
  588. return s.AuthType
  589. }
  590. func (s *Params) GetBodyType() *string {
  591. return s.BodyType
  592. }
  593. func (s *Params) GetReqBodyType() *string {
  594. return s.ReqBodyType
  595. }
  596. func (s *Params) GetStyle() *string {
  597. return s.Style
  598. }
  599. func (s *Params) SetAction(v string) *Params {
  600. s.Action = &v
  601. return s
  602. }
  603. func (s *Params) SetVersion(v string) *Params {
  604. s.Version = &v
  605. return s
  606. }
  607. func (s *Params) SetProtocol(v string) *Params {
  608. s.Protocol = &v
  609. return s
  610. }
  611. func (s *Params) SetPathname(v string) *Params {
  612. s.Pathname = &v
  613. return s
  614. }
  615. func (s *Params) SetMethod(v string) *Params {
  616. s.Method = &v
  617. return s
  618. }
  619. func (s *Params) SetAuthType(v string) *Params {
  620. s.AuthType = &v
  621. return s
  622. }
  623. func (s *Params) SetBodyType(v string) *Params {
  624. s.BodyType = &v
  625. return s
  626. }
  627. func (s *Params) SetReqBodyType(v string) *Params {
  628. s.ReqBodyType = &v
  629. return s
  630. }
  631. func (s *Params) SetStyle(v string) *Params {
  632. s.Style = &v
  633. return s
  634. }
  635. type iOpenApiRequest interface {
  636. dara.Model
  637. String() string
  638. GoString() string
  639. SetHeaders(v map[string]*string) *OpenApiRequest
  640. GetHeaders() map[string]*string
  641. SetQuery(v map[string]*string) *OpenApiRequest
  642. GetQuery() map[string]*string
  643. SetBody(v interface{}) *OpenApiRequest
  644. GetBody() interface{}
  645. SetStream(v io.Reader) *OpenApiRequest
  646. GetStream() io.Reader
  647. SetHostMap(v map[string]*string) *OpenApiRequest
  648. GetHostMap() map[string]*string
  649. SetEndpointOverride(v string) *OpenApiRequest
  650. GetEndpointOverride() *string
  651. }
  652. type OpenApiRequest struct {
  653. dara.Model
  654. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  655. Query map[string]*string `json:"query,omitempty" xml:"query,omitempty"`
  656. Body interface{} `json:"body,omitempty" xml:"body,omitempty"`
  657. Stream io.Reader `json:"stream,omitempty" xml:"stream,omitempty"`
  658. HostMap map[string]*string `json:"hostMap,omitempty" xml:"hostMap,omitempty"`
  659. EndpointOverride *string `json:"endpointOverride,omitempty" xml:"endpointOverride,omitempty"`
  660. }
  661. func (s OpenApiRequest) String() string {
  662. return dara.Prettify(s)
  663. }
  664. func (s OpenApiRequest) GoString() string {
  665. return s.String()
  666. }
  667. func (s *OpenApiRequest) GetHeaders() map[string]*string {
  668. return s.Headers
  669. }
  670. func (s *OpenApiRequest) GetQuery() map[string]*string {
  671. return s.Query
  672. }
  673. func (s *OpenApiRequest) GetBody() interface{} {
  674. return s.Body
  675. }
  676. func (s *OpenApiRequest) GetStream() io.Reader {
  677. return s.Stream
  678. }
  679. func (s *OpenApiRequest) GetHostMap() map[string]*string {
  680. return s.HostMap
  681. }
  682. func (s *OpenApiRequest) GetEndpointOverride() *string {
  683. return s.EndpointOverride
  684. }
  685. func (s *OpenApiRequest) SetHeaders(v map[string]*string) *OpenApiRequest {
  686. s.Headers = v
  687. return s
  688. }
  689. func (s *OpenApiRequest) SetQuery(v map[string]*string) *OpenApiRequest {
  690. s.Query = v
  691. return s
  692. }
  693. func (s *OpenApiRequest) SetBody(v interface{}) *OpenApiRequest {
  694. s.Body = v
  695. return s
  696. }
  697. func (s *OpenApiRequest) SetStream(v io.Reader) *OpenApiRequest {
  698. s.Stream = v
  699. return s
  700. }
  701. func (s *OpenApiRequest) SetHostMap(v map[string]*string) *OpenApiRequest {
  702. s.HostMap = v
  703. return s
  704. }
  705. func (s *OpenApiRequest) SetEndpointOverride(v string) *OpenApiRequest {
  706. s.EndpointOverride = &v
  707. return s
  708. }