zone_grpc.pb.go 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.4.0
  4. // - protoc v3.20.1
  5. // source: zone.proto
  6. package zone
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.62.0 or later.
  16. const _ = grpc.SupportPackageIsVersion8
  17. const (
  18. ZoneCloudflare_ZoneIDByNameCloudflare_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ZoneIDByNameCloudflare"
  19. ZoneCloudflare_ZoneDetails_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ZoneDetails"
  20. ZoneCloudflare_GetZones_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/GetZones"
  21. ZoneCloudflare_EditZone_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/EditZone"
  22. ZoneCloudflare_DeleteZone_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/DeleteZone"
  23. ZoneCloudflare_ListZones_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ListZones"
  24. ZoneCloudflare_ListZonesByAccountId_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ListZonesByAccountId"
  25. ZoneCloudflare_ActivationCheck_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ActivationCheck"
  26. ZoneCloudflare_CreateZone_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/CreateZone"
  27. ZoneCloudflare_SetZonePlan_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/SetZonePlan"
  28. ZoneCloudflare_ListPageRule_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ListPageRule"
  29. ZoneCloudflare_CreatePageRule_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/CreatePageRule"
  30. ZoneCloudflare_UpdatePageRule_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRule"
  31. ZoneCloudflare_DeletePageRule_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/DeletePageRule"
  32. ZoneCloudflare_UpdatePageRulesPriorities_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRulesPriorities"
  33. ZoneCloudflare_UpdateRuleSet_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/UpdateRuleSet"
  34. ZoneCloudflare_GetRuleSet_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/GetRuleSet"
  35. ZoneCloudflare_ListZoneRuleSets_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ListZoneRuleSets"
  36. ZoneCloudflare_CreateZoneRuleSet_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/CreateZoneRuleSet"
  37. ZoneCloudflare_DeleteZoneRuleSet_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/DeleteZoneRuleSet"
  38. ZoneCloudflare_UpdateArgoSetting_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/UpdateArgoSetting"
  39. ZoneCloudflare_GetArgoSetting_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/GetArgoSetting"
  40. ZoneCloudflare_GetArgoSettingSubscription_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/GetArgoSettingSubscription"
  41. ZoneCloudflare_CreateArgoSettingSubscription_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/CreateArgoSettingSubscription"
  42. ZoneCloudflare_SetSmartTieredCache_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/SetSmartTieredCache"
  43. ZoneCloudflare_UpdateAlwaysUseHttps_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/UpdateAlwaysUseHttps"
  44. )
  45. // ZoneCloudflareClient is the client API for ZoneCloudflare service.
  46. //
  47. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  48. type ZoneCloudflareClient interface {
  49. // Zone CURD
  50. ZoneIDByNameCloudflare(ctx context.Context, in *ZoneIDByNameRequestCloudflare, opts ...grpc.CallOption) (*ZoneIDByNameReplyCloudflare, error)
  51. ZoneDetails(ctx context.Context, in *ZoneDetailsRequestCloudflare, opts ...grpc.CallOption) (*ZoneDetailsReplyCloudflare, error)
  52. GetZones(ctx context.Context, in *GetZonesRequestCloudflare, opts ...grpc.CallOption) (*GetZonesReplyCloudflare, error)
  53. EditZone(ctx context.Context, in *EditZoneRequestCloudflare, opts ...grpc.CallOption) (*EditZoneReplyCloudflare, error)
  54. DeleteZone(ctx context.Context, in *DeleteZoneRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneReplyCloudflare, error)
  55. ListZones(ctx context.Context, in *ListZonesRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error)
  56. ListZonesByAccountId(ctx context.Context, in *ListZonesByAccountIdRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error)
  57. ActivationCheck(ctx context.Context, in *ActivationCheckRequestCloudflare, opts ...grpc.CallOption) (*ActivationCheckReplyCloudflare, error)
  58. CreateZone(ctx context.Context, in *CreateZoneRequestCloudflare, opts ...grpc.CallOption) (*CreateZoneReplyCloudflare, error)
  59. SetZonePlan(ctx context.Context, in *SetZonePlanRequestCloudflare, opts ...grpc.CallOption) (*SetZonePlanReplyCloudflare, error)
  60. // PageRule CURD
  61. ListPageRule(ctx context.Context, in *ListPageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error)
  62. CreatePageRule(ctx context.Context, in *CreatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error)
  63. UpdatePageRule(ctx context.Context, in *UpdatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error)
  64. DeletePageRule(ctx context.Context, in *DeletePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error)
  65. UpdatePageRulesPriorities(ctx context.Context, in *UpdatePageRulesPrioritiesRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error)
  66. // RuleSet UR
  67. UpdateRuleSet(ctx context.Context, in *UpdateRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error)
  68. GetRuleSet(ctx context.Context, in *GetRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error)
  69. ListZoneRuleSets(ctx context.Context, in *ListZoneRuleSetsRequestCloudflare, opts ...grpc.CallOption) (*RuleSetList, error)
  70. CreateZoneRuleSet(ctx context.Context, in *CreateZoneRuleSetRequestCloudflare, opts ...grpc.CallOption) (*CreateZoneRuleSetReplyCloudflare, error)
  71. DeleteZoneRuleSet(ctx context.Context, in *DeleteZoneRuleSetRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneRuleSetReplyCloudflare, error)
  72. // Argo Smart Routing Setting UR
  73. UpdateArgoSetting(ctx context.Context, in *UpdateArgoRequestCloudflare, opts ...grpc.CallOption) (*ArgoSetting, error)
  74. GetArgoSetting(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error)
  75. GetArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error)
  76. CreateArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error)
  77. SetSmartTieredCache(ctx context.Context, in *SetSmartTieredCacheRequestCloudflare, opts ...grpc.CallOption) (*SetSmartTieredCacheReplyCloudflare, error)
  78. UpdateAlwaysUseHttps(ctx context.Context, in *UpdateAlwaysUseHttpsRequestCloudflare, opts ...grpc.CallOption) (*UpdateAlwaysUseHttpsReplyCloudflare, error)
  79. }
  80. type zoneCloudflareClient struct {
  81. cc grpc.ClientConnInterface
  82. }
  83. func NewZoneCloudflareClient(cc grpc.ClientConnInterface) ZoneCloudflareClient {
  84. return &zoneCloudflareClient{cc}
  85. }
  86. func (c *zoneCloudflareClient) ZoneIDByNameCloudflare(ctx context.Context, in *ZoneIDByNameRequestCloudflare, opts ...grpc.CallOption) (*ZoneIDByNameReplyCloudflare, error) {
  87. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  88. out := new(ZoneIDByNameReplyCloudflare)
  89. err := c.cc.Invoke(ctx, ZoneCloudflare_ZoneIDByNameCloudflare_FullMethodName, in, out, cOpts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return out, nil
  94. }
  95. func (c *zoneCloudflareClient) ZoneDetails(ctx context.Context, in *ZoneDetailsRequestCloudflare, opts ...grpc.CallOption) (*ZoneDetailsReplyCloudflare, error) {
  96. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  97. out := new(ZoneDetailsReplyCloudflare)
  98. err := c.cc.Invoke(ctx, ZoneCloudflare_ZoneDetails_FullMethodName, in, out, cOpts...)
  99. if err != nil {
  100. return nil, err
  101. }
  102. return out, nil
  103. }
  104. func (c *zoneCloudflareClient) GetZones(ctx context.Context, in *GetZonesRequestCloudflare, opts ...grpc.CallOption) (*GetZonesReplyCloudflare, error) {
  105. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  106. out := new(GetZonesReplyCloudflare)
  107. err := c.cc.Invoke(ctx, ZoneCloudflare_GetZones_FullMethodName, in, out, cOpts...)
  108. if err != nil {
  109. return nil, err
  110. }
  111. return out, nil
  112. }
  113. func (c *zoneCloudflareClient) EditZone(ctx context.Context, in *EditZoneRequestCloudflare, opts ...grpc.CallOption) (*EditZoneReplyCloudflare, error) {
  114. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  115. out := new(EditZoneReplyCloudflare)
  116. err := c.cc.Invoke(ctx, ZoneCloudflare_EditZone_FullMethodName, in, out, cOpts...)
  117. if err != nil {
  118. return nil, err
  119. }
  120. return out, nil
  121. }
  122. func (c *zoneCloudflareClient) DeleteZone(ctx context.Context, in *DeleteZoneRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneReplyCloudflare, error) {
  123. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  124. out := new(DeleteZoneReplyCloudflare)
  125. err := c.cc.Invoke(ctx, ZoneCloudflare_DeleteZone_FullMethodName, in, out, cOpts...)
  126. if err != nil {
  127. return nil, err
  128. }
  129. return out, nil
  130. }
  131. func (c *zoneCloudflareClient) ListZones(ctx context.Context, in *ListZonesRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error) {
  132. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  133. out := new(ZonesList)
  134. err := c.cc.Invoke(ctx, ZoneCloudflare_ListZones_FullMethodName, in, out, cOpts...)
  135. if err != nil {
  136. return nil, err
  137. }
  138. return out, nil
  139. }
  140. func (c *zoneCloudflareClient) ListZonesByAccountId(ctx context.Context, in *ListZonesByAccountIdRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error) {
  141. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  142. out := new(ZonesList)
  143. err := c.cc.Invoke(ctx, ZoneCloudflare_ListZonesByAccountId_FullMethodName, in, out, cOpts...)
  144. if err != nil {
  145. return nil, err
  146. }
  147. return out, nil
  148. }
  149. func (c *zoneCloudflareClient) ActivationCheck(ctx context.Context, in *ActivationCheckRequestCloudflare, opts ...grpc.CallOption) (*ActivationCheckReplyCloudflare, error) {
  150. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  151. out := new(ActivationCheckReplyCloudflare)
  152. err := c.cc.Invoke(ctx, ZoneCloudflare_ActivationCheck_FullMethodName, in, out, cOpts...)
  153. if err != nil {
  154. return nil, err
  155. }
  156. return out, nil
  157. }
  158. func (c *zoneCloudflareClient) CreateZone(ctx context.Context, in *CreateZoneRequestCloudflare, opts ...grpc.CallOption) (*CreateZoneReplyCloudflare, error) {
  159. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  160. out := new(CreateZoneReplyCloudflare)
  161. err := c.cc.Invoke(ctx, ZoneCloudflare_CreateZone_FullMethodName, in, out, cOpts...)
  162. if err != nil {
  163. return nil, err
  164. }
  165. return out, nil
  166. }
  167. func (c *zoneCloudflareClient) SetZonePlan(ctx context.Context, in *SetZonePlanRequestCloudflare, opts ...grpc.CallOption) (*SetZonePlanReplyCloudflare, error) {
  168. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  169. out := new(SetZonePlanReplyCloudflare)
  170. err := c.cc.Invoke(ctx, ZoneCloudflare_SetZonePlan_FullMethodName, in, out, cOpts...)
  171. if err != nil {
  172. return nil, err
  173. }
  174. return out, nil
  175. }
  176. func (c *zoneCloudflareClient) ListPageRule(ctx context.Context, in *ListPageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error) {
  177. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  178. out := new(PageRuleList)
  179. err := c.cc.Invoke(ctx, ZoneCloudflare_ListPageRule_FullMethodName, in, out, cOpts...)
  180. if err != nil {
  181. return nil, err
  182. }
  183. return out, nil
  184. }
  185. func (c *zoneCloudflareClient) CreatePageRule(ctx context.Context, in *CreatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) {
  186. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  187. out := new(PageRule)
  188. err := c.cc.Invoke(ctx, ZoneCloudflare_CreatePageRule_FullMethodName, in, out, cOpts...)
  189. if err != nil {
  190. return nil, err
  191. }
  192. return out, nil
  193. }
  194. func (c *zoneCloudflareClient) UpdatePageRule(ctx context.Context, in *UpdatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) {
  195. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  196. out := new(PageRule)
  197. err := c.cc.Invoke(ctx, ZoneCloudflare_UpdatePageRule_FullMethodName, in, out, cOpts...)
  198. if err != nil {
  199. return nil, err
  200. }
  201. return out, nil
  202. }
  203. func (c *zoneCloudflareClient) DeletePageRule(ctx context.Context, in *DeletePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) {
  204. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  205. out := new(PageRule)
  206. err := c.cc.Invoke(ctx, ZoneCloudflare_DeletePageRule_FullMethodName, in, out, cOpts...)
  207. if err != nil {
  208. return nil, err
  209. }
  210. return out, nil
  211. }
  212. func (c *zoneCloudflareClient) UpdatePageRulesPriorities(ctx context.Context, in *UpdatePageRulesPrioritiesRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error) {
  213. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  214. out := new(PageRuleList)
  215. err := c.cc.Invoke(ctx, ZoneCloudflare_UpdatePageRulesPriorities_FullMethodName, in, out, cOpts...)
  216. if err != nil {
  217. return nil, err
  218. }
  219. return out, nil
  220. }
  221. func (c *zoneCloudflareClient) UpdateRuleSet(ctx context.Context, in *UpdateRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error) {
  222. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  223. out := new(RuleList)
  224. err := c.cc.Invoke(ctx, ZoneCloudflare_UpdateRuleSet_FullMethodName, in, out, cOpts...)
  225. if err != nil {
  226. return nil, err
  227. }
  228. return out, nil
  229. }
  230. func (c *zoneCloudflareClient) GetRuleSet(ctx context.Context, in *GetRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error) {
  231. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  232. out := new(RuleList)
  233. err := c.cc.Invoke(ctx, ZoneCloudflare_GetRuleSet_FullMethodName, in, out, cOpts...)
  234. if err != nil {
  235. return nil, err
  236. }
  237. return out, nil
  238. }
  239. func (c *zoneCloudflareClient) ListZoneRuleSets(ctx context.Context, in *ListZoneRuleSetsRequestCloudflare, opts ...grpc.CallOption) (*RuleSetList, error) {
  240. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  241. out := new(RuleSetList)
  242. err := c.cc.Invoke(ctx, ZoneCloudflare_ListZoneRuleSets_FullMethodName, in, out, cOpts...)
  243. if err != nil {
  244. return nil, err
  245. }
  246. return out, nil
  247. }
  248. func (c *zoneCloudflareClient) CreateZoneRuleSet(ctx context.Context, in *CreateZoneRuleSetRequestCloudflare, opts ...grpc.CallOption) (*CreateZoneRuleSetReplyCloudflare, error) {
  249. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  250. out := new(CreateZoneRuleSetReplyCloudflare)
  251. err := c.cc.Invoke(ctx, ZoneCloudflare_CreateZoneRuleSet_FullMethodName, in, out, cOpts...)
  252. if err != nil {
  253. return nil, err
  254. }
  255. return out, nil
  256. }
  257. func (c *zoneCloudflareClient) DeleteZoneRuleSet(ctx context.Context, in *DeleteZoneRuleSetRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneRuleSetReplyCloudflare, error) {
  258. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  259. out := new(DeleteZoneRuleSetReplyCloudflare)
  260. err := c.cc.Invoke(ctx, ZoneCloudflare_DeleteZoneRuleSet_FullMethodName, in, out, cOpts...)
  261. if err != nil {
  262. return nil, err
  263. }
  264. return out, nil
  265. }
  266. func (c *zoneCloudflareClient) UpdateArgoSetting(ctx context.Context, in *UpdateArgoRequestCloudflare, opts ...grpc.CallOption) (*ArgoSetting, error) {
  267. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  268. out := new(ArgoSetting)
  269. err := c.cc.Invoke(ctx, ZoneCloudflare_UpdateArgoSetting_FullMethodName, in, out, cOpts...)
  270. if err != nil {
  271. return nil, err
  272. }
  273. return out, nil
  274. }
  275. func (c *zoneCloudflareClient) GetArgoSetting(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error) {
  276. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  277. out := new(ArgoSetting)
  278. err := c.cc.Invoke(ctx, ZoneCloudflare_GetArgoSetting_FullMethodName, in, out, cOpts...)
  279. if err != nil {
  280. return nil, err
  281. }
  282. return out, nil
  283. }
  284. func (c *zoneCloudflareClient) GetArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error) {
  285. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  286. out := new(ArgoSetting)
  287. err := c.cc.Invoke(ctx, ZoneCloudflare_GetArgoSettingSubscription_FullMethodName, in, out, cOpts...)
  288. if err != nil {
  289. return nil, err
  290. }
  291. return out, nil
  292. }
  293. func (c *zoneCloudflareClient) CreateArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error) {
  294. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  295. out := new(ArgoSetting)
  296. err := c.cc.Invoke(ctx, ZoneCloudflare_CreateArgoSettingSubscription_FullMethodName, in, out, cOpts...)
  297. if err != nil {
  298. return nil, err
  299. }
  300. return out, nil
  301. }
  302. func (c *zoneCloudflareClient) SetSmartTieredCache(ctx context.Context, in *SetSmartTieredCacheRequestCloudflare, opts ...grpc.CallOption) (*SetSmartTieredCacheReplyCloudflare, error) {
  303. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  304. out := new(SetSmartTieredCacheReplyCloudflare)
  305. err := c.cc.Invoke(ctx, ZoneCloudflare_SetSmartTieredCache_FullMethodName, in, out, cOpts...)
  306. if err != nil {
  307. return nil, err
  308. }
  309. return out, nil
  310. }
  311. func (c *zoneCloudflareClient) UpdateAlwaysUseHttps(ctx context.Context, in *UpdateAlwaysUseHttpsRequestCloudflare, opts ...grpc.CallOption) (*UpdateAlwaysUseHttpsReplyCloudflare, error) {
  312. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  313. out := new(UpdateAlwaysUseHttpsReplyCloudflare)
  314. err := c.cc.Invoke(ctx, ZoneCloudflare_UpdateAlwaysUseHttps_FullMethodName, in, out, cOpts...)
  315. if err != nil {
  316. return nil, err
  317. }
  318. return out, nil
  319. }
  320. // ZoneCloudflareServer is the server API for ZoneCloudflare service.
  321. // All implementations must embed UnimplementedZoneCloudflareServer
  322. // for forward compatibility
  323. type ZoneCloudflareServer interface {
  324. // Zone CURD
  325. ZoneIDByNameCloudflare(context.Context, *ZoneIDByNameRequestCloudflare) (*ZoneIDByNameReplyCloudflare, error)
  326. ZoneDetails(context.Context, *ZoneDetailsRequestCloudflare) (*ZoneDetailsReplyCloudflare, error)
  327. GetZones(context.Context, *GetZonesRequestCloudflare) (*GetZonesReplyCloudflare, error)
  328. EditZone(context.Context, *EditZoneRequestCloudflare) (*EditZoneReplyCloudflare, error)
  329. DeleteZone(context.Context, *DeleteZoneRequestCloudflare) (*DeleteZoneReplyCloudflare, error)
  330. ListZones(context.Context, *ListZonesRequestCloudflare) (*ZonesList, error)
  331. ListZonesByAccountId(context.Context, *ListZonesByAccountIdRequestCloudflare) (*ZonesList, error)
  332. ActivationCheck(context.Context, *ActivationCheckRequestCloudflare) (*ActivationCheckReplyCloudflare, error)
  333. CreateZone(context.Context, *CreateZoneRequestCloudflare) (*CreateZoneReplyCloudflare, error)
  334. SetZonePlan(context.Context, *SetZonePlanRequestCloudflare) (*SetZonePlanReplyCloudflare, error)
  335. // PageRule CURD
  336. ListPageRule(context.Context, *ListPageRuleRequestCloudflare) (*PageRuleList, error)
  337. CreatePageRule(context.Context, *CreatePageRuleRequestCloudflare) (*PageRule, error)
  338. UpdatePageRule(context.Context, *UpdatePageRuleRequestCloudflare) (*PageRule, error)
  339. DeletePageRule(context.Context, *DeletePageRuleRequestCloudflare) (*PageRule, error)
  340. UpdatePageRulesPriorities(context.Context, *UpdatePageRulesPrioritiesRequestCloudflare) (*PageRuleList, error)
  341. // RuleSet UR
  342. UpdateRuleSet(context.Context, *UpdateRuleSetRequestCloudflare) (*RuleList, error)
  343. GetRuleSet(context.Context, *GetRuleSetRequestCloudflare) (*RuleList, error)
  344. ListZoneRuleSets(context.Context, *ListZoneRuleSetsRequestCloudflare) (*RuleSetList, error)
  345. CreateZoneRuleSet(context.Context, *CreateZoneRuleSetRequestCloudflare) (*CreateZoneRuleSetReplyCloudflare, error)
  346. DeleteZoneRuleSet(context.Context, *DeleteZoneRuleSetRequestCloudflare) (*DeleteZoneRuleSetReplyCloudflare, error)
  347. // Argo Smart Routing Setting UR
  348. UpdateArgoSetting(context.Context, *UpdateArgoRequestCloudflare) (*ArgoSetting, error)
  349. GetArgoSetting(context.Context, *IdRequest) (*ArgoSetting, error)
  350. GetArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error)
  351. CreateArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error)
  352. SetSmartTieredCache(context.Context, *SetSmartTieredCacheRequestCloudflare) (*SetSmartTieredCacheReplyCloudflare, error)
  353. UpdateAlwaysUseHttps(context.Context, *UpdateAlwaysUseHttpsRequestCloudflare) (*UpdateAlwaysUseHttpsReplyCloudflare, error)
  354. mustEmbedUnimplementedZoneCloudflareServer()
  355. }
  356. // UnimplementedZoneCloudflareServer must be embedded to have forward compatible implementations.
  357. type UnimplementedZoneCloudflareServer struct {
  358. }
  359. func (UnimplementedZoneCloudflareServer) ZoneIDByNameCloudflare(context.Context, *ZoneIDByNameRequestCloudflare) (*ZoneIDByNameReplyCloudflare, error) {
  360. return nil, status.Errorf(codes.Unimplemented, "method ZoneIDByNameCloudflare not implemented")
  361. }
  362. func (UnimplementedZoneCloudflareServer) ZoneDetails(context.Context, *ZoneDetailsRequestCloudflare) (*ZoneDetailsReplyCloudflare, error) {
  363. return nil, status.Errorf(codes.Unimplemented, "method ZoneDetails not implemented")
  364. }
  365. func (UnimplementedZoneCloudflareServer) GetZones(context.Context, *GetZonesRequestCloudflare) (*GetZonesReplyCloudflare, error) {
  366. return nil, status.Errorf(codes.Unimplemented, "method GetZones not implemented")
  367. }
  368. func (UnimplementedZoneCloudflareServer) EditZone(context.Context, *EditZoneRequestCloudflare) (*EditZoneReplyCloudflare, error) {
  369. return nil, status.Errorf(codes.Unimplemented, "method EditZone not implemented")
  370. }
  371. func (UnimplementedZoneCloudflareServer) DeleteZone(context.Context, *DeleteZoneRequestCloudflare) (*DeleteZoneReplyCloudflare, error) {
  372. return nil, status.Errorf(codes.Unimplemented, "method DeleteZone not implemented")
  373. }
  374. func (UnimplementedZoneCloudflareServer) ListZones(context.Context, *ListZonesRequestCloudflare) (*ZonesList, error) {
  375. return nil, status.Errorf(codes.Unimplemented, "method ListZones not implemented")
  376. }
  377. func (UnimplementedZoneCloudflareServer) ListZonesByAccountId(context.Context, *ListZonesByAccountIdRequestCloudflare) (*ZonesList, error) {
  378. return nil, status.Errorf(codes.Unimplemented, "method ListZonesByAccountId not implemented")
  379. }
  380. func (UnimplementedZoneCloudflareServer) ActivationCheck(context.Context, *ActivationCheckRequestCloudflare) (*ActivationCheckReplyCloudflare, error) {
  381. return nil, status.Errorf(codes.Unimplemented, "method ActivationCheck not implemented")
  382. }
  383. func (UnimplementedZoneCloudflareServer) CreateZone(context.Context, *CreateZoneRequestCloudflare) (*CreateZoneReplyCloudflare, error) {
  384. return nil, status.Errorf(codes.Unimplemented, "method CreateZone not implemented")
  385. }
  386. func (UnimplementedZoneCloudflareServer) SetZonePlan(context.Context, *SetZonePlanRequestCloudflare) (*SetZonePlanReplyCloudflare, error) {
  387. return nil, status.Errorf(codes.Unimplemented, "method SetZonePlan not implemented")
  388. }
  389. func (UnimplementedZoneCloudflareServer) ListPageRule(context.Context, *ListPageRuleRequestCloudflare) (*PageRuleList, error) {
  390. return nil, status.Errorf(codes.Unimplemented, "method ListPageRule not implemented")
  391. }
  392. func (UnimplementedZoneCloudflareServer) CreatePageRule(context.Context, *CreatePageRuleRequestCloudflare) (*PageRule, error) {
  393. return nil, status.Errorf(codes.Unimplemented, "method CreatePageRule not implemented")
  394. }
  395. func (UnimplementedZoneCloudflareServer) UpdatePageRule(context.Context, *UpdatePageRuleRequestCloudflare) (*PageRule, error) {
  396. return nil, status.Errorf(codes.Unimplemented, "method UpdatePageRule not implemented")
  397. }
  398. func (UnimplementedZoneCloudflareServer) DeletePageRule(context.Context, *DeletePageRuleRequestCloudflare) (*PageRule, error) {
  399. return nil, status.Errorf(codes.Unimplemented, "method DeletePageRule not implemented")
  400. }
  401. func (UnimplementedZoneCloudflareServer) UpdatePageRulesPriorities(context.Context, *UpdatePageRulesPrioritiesRequestCloudflare) (*PageRuleList, error) {
  402. return nil, status.Errorf(codes.Unimplemented, "method UpdatePageRulesPriorities not implemented")
  403. }
  404. func (UnimplementedZoneCloudflareServer) UpdateRuleSet(context.Context, *UpdateRuleSetRequestCloudflare) (*RuleList, error) {
  405. return nil, status.Errorf(codes.Unimplemented, "method UpdateRuleSet not implemented")
  406. }
  407. func (UnimplementedZoneCloudflareServer) GetRuleSet(context.Context, *GetRuleSetRequestCloudflare) (*RuleList, error) {
  408. return nil, status.Errorf(codes.Unimplemented, "method GetRuleSet not implemented")
  409. }
  410. func (UnimplementedZoneCloudflareServer) ListZoneRuleSets(context.Context, *ListZoneRuleSetsRequestCloudflare) (*RuleSetList, error) {
  411. return nil, status.Errorf(codes.Unimplemented, "method ListZoneRuleSets not implemented")
  412. }
  413. func (UnimplementedZoneCloudflareServer) CreateZoneRuleSet(context.Context, *CreateZoneRuleSetRequestCloudflare) (*CreateZoneRuleSetReplyCloudflare, error) {
  414. return nil, status.Errorf(codes.Unimplemented, "method CreateZoneRuleSet not implemented")
  415. }
  416. func (UnimplementedZoneCloudflareServer) DeleteZoneRuleSet(context.Context, *DeleteZoneRuleSetRequestCloudflare) (*DeleteZoneRuleSetReplyCloudflare, error) {
  417. return nil, status.Errorf(codes.Unimplemented, "method DeleteZoneRuleSet not implemented")
  418. }
  419. func (UnimplementedZoneCloudflareServer) UpdateArgoSetting(context.Context, *UpdateArgoRequestCloudflare) (*ArgoSetting, error) {
  420. return nil, status.Errorf(codes.Unimplemented, "method UpdateArgoSetting not implemented")
  421. }
  422. func (UnimplementedZoneCloudflareServer) GetArgoSetting(context.Context, *IdRequest) (*ArgoSetting, error) {
  423. return nil, status.Errorf(codes.Unimplemented, "method GetArgoSetting not implemented")
  424. }
  425. func (UnimplementedZoneCloudflareServer) GetArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error) {
  426. return nil, status.Errorf(codes.Unimplemented, "method GetArgoSettingSubscription not implemented")
  427. }
  428. func (UnimplementedZoneCloudflareServer) CreateArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error) {
  429. return nil, status.Errorf(codes.Unimplemented, "method CreateArgoSettingSubscription not implemented")
  430. }
  431. func (UnimplementedZoneCloudflareServer) SetSmartTieredCache(context.Context, *SetSmartTieredCacheRequestCloudflare) (*SetSmartTieredCacheReplyCloudflare, error) {
  432. return nil, status.Errorf(codes.Unimplemented, "method SetSmartTieredCache not implemented")
  433. }
  434. func (UnimplementedZoneCloudflareServer) UpdateAlwaysUseHttps(context.Context, *UpdateAlwaysUseHttpsRequestCloudflare) (*UpdateAlwaysUseHttpsReplyCloudflare, error) {
  435. return nil, status.Errorf(codes.Unimplemented, "method UpdateAlwaysUseHttps not implemented")
  436. }
  437. func (UnimplementedZoneCloudflareServer) mustEmbedUnimplementedZoneCloudflareServer() {}
  438. // UnsafeZoneCloudflareServer may be embedded to opt out of forward compatibility for this service.
  439. // Use of this interface is not recommended, as added methods to ZoneCloudflareServer will
  440. // result in compilation errors.
  441. type UnsafeZoneCloudflareServer interface {
  442. mustEmbedUnimplementedZoneCloudflareServer()
  443. }
  444. func RegisterZoneCloudflareServer(s grpc.ServiceRegistrar, srv ZoneCloudflareServer) {
  445. s.RegisterService(&ZoneCloudflare_ServiceDesc, srv)
  446. }
  447. func _ZoneCloudflare_ZoneIDByNameCloudflare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  448. in := new(ZoneIDByNameRequestCloudflare)
  449. if err := dec(in); err != nil {
  450. return nil, err
  451. }
  452. if interceptor == nil {
  453. return srv.(ZoneCloudflareServer).ZoneIDByNameCloudflare(ctx, in)
  454. }
  455. info := &grpc.UnaryServerInfo{
  456. Server: srv,
  457. FullMethod: ZoneCloudflare_ZoneIDByNameCloudflare_FullMethodName,
  458. }
  459. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  460. return srv.(ZoneCloudflareServer).ZoneIDByNameCloudflare(ctx, req.(*ZoneIDByNameRequestCloudflare))
  461. }
  462. return interceptor(ctx, in, info, handler)
  463. }
  464. func _ZoneCloudflare_ZoneDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  465. in := new(ZoneDetailsRequestCloudflare)
  466. if err := dec(in); err != nil {
  467. return nil, err
  468. }
  469. if interceptor == nil {
  470. return srv.(ZoneCloudflareServer).ZoneDetails(ctx, in)
  471. }
  472. info := &grpc.UnaryServerInfo{
  473. Server: srv,
  474. FullMethod: ZoneCloudflare_ZoneDetails_FullMethodName,
  475. }
  476. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  477. return srv.(ZoneCloudflareServer).ZoneDetails(ctx, req.(*ZoneDetailsRequestCloudflare))
  478. }
  479. return interceptor(ctx, in, info, handler)
  480. }
  481. func _ZoneCloudflare_GetZones_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  482. in := new(GetZonesRequestCloudflare)
  483. if err := dec(in); err != nil {
  484. return nil, err
  485. }
  486. if interceptor == nil {
  487. return srv.(ZoneCloudflareServer).GetZones(ctx, in)
  488. }
  489. info := &grpc.UnaryServerInfo{
  490. Server: srv,
  491. FullMethod: ZoneCloudflare_GetZones_FullMethodName,
  492. }
  493. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  494. return srv.(ZoneCloudflareServer).GetZones(ctx, req.(*GetZonesRequestCloudflare))
  495. }
  496. return interceptor(ctx, in, info, handler)
  497. }
  498. func _ZoneCloudflare_EditZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  499. in := new(EditZoneRequestCloudflare)
  500. if err := dec(in); err != nil {
  501. return nil, err
  502. }
  503. if interceptor == nil {
  504. return srv.(ZoneCloudflareServer).EditZone(ctx, in)
  505. }
  506. info := &grpc.UnaryServerInfo{
  507. Server: srv,
  508. FullMethod: ZoneCloudflare_EditZone_FullMethodName,
  509. }
  510. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  511. return srv.(ZoneCloudflareServer).EditZone(ctx, req.(*EditZoneRequestCloudflare))
  512. }
  513. return interceptor(ctx, in, info, handler)
  514. }
  515. func _ZoneCloudflare_DeleteZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  516. in := new(DeleteZoneRequestCloudflare)
  517. if err := dec(in); err != nil {
  518. return nil, err
  519. }
  520. if interceptor == nil {
  521. return srv.(ZoneCloudflareServer).DeleteZone(ctx, in)
  522. }
  523. info := &grpc.UnaryServerInfo{
  524. Server: srv,
  525. FullMethod: ZoneCloudflare_DeleteZone_FullMethodName,
  526. }
  527. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  528. return srv.(ZoneCloudflareServer).DeleteZone(ctx, req.(*DeleteZoneRequestCloudflare))
  529. }
  530. return interceptor(ctx, in, info, handler)
  531. }
  532. func _ZoneCloudflare_ListZones_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  533. in := new(ListZonesRequestCloudflare)
  534. if err := dec(in); err != nil {
  535. return nil, err
  536. }
  537. if interceptor == nil {
  538. return srv.(ZoneCloudflareServer).ListZones(ctx, in)
  539. }
  540. info := &grpc.UnaryServerInfo{
  541. Server: srv,
  542. FullMethod: ZoneCloudflare_ListZones_FullMethodName,
  543. }
  544. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  545. return srv.(ZoneCloudflareServer).ListZones(ctx, req.(*ListZonesRequestCloudflare))
  546. }
  547. return interceptor(ctx, in, info, handler)
  548. }
  549. func _ZoneCloudflare_ListZonesByAccountId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  550. in := new(ListZonesByAccountIdRequestCloudflare)
  551. if err := dec(in); err != nil {
  552. return nil, err
  553. }
  554. if interceptor == nil {
  555. return srv.(ZoneCloudflareServer).ListZonesByAccountId(ctx, in)
  556. }
  557. info := &grpc.UnaryServerInfo{
  558. Server: srv,
  559. FullMethod: ZoneCloudflare_ListZonesByAccountId_FullMethodName,
  560. }
  561. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  562. return srv.(ZoneCloudflareServer).ListZonesByAccountId(ctx, req.(*ListZonesByAccountIdRequestCloudflare))
  563. }
  564. return interceptor(ctx, in, info, handler)
  565. }
  566. func _ZoneCloudflare_ActivationCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  567. in := new(ActivationCheckRequestCloudflare)
  568. if err := dec(in); err != nil {
  569. return nil, err
  570. }
  571. if interceptor == nil {
  572. return srv.(ZoneCloudflareServer).ActivationCheck(ctx, in)
  573. }
  574. info := &grpc.UnaryServerInfo{
  575. Server: srv,
  576. FullMethod: ZoneCloudflare_ActivationCheck_FullMethodName,
  577. }
  578. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  579. return srv.(ZoneCloudflareServer).ActivationCheck(ctx, req.(*ActivationCheckRequestCloudflare))
  580. }
  581. return interceptor(ctx, in, info, handler)
  582. }
  583. func _ZoneCloudflare_CreateZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  584. in := new(CreateZoneRequestCloudflare)
  585. if err := dec(in); err != nil {
  586. return nil, err
  587. }
  588. if interceptor == nil {
  589. return srv.(ZoneCloudflareServer).CreateZone(ctx, in)
  590. }
  591. info := &grpc.UnaryServerInfo{
  592. Server: srv,
  593. FullMethod: ZoneCloudflare_CreateZone_FullMethodName,
  594. }
  595. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  596. return srv.(ZoneCloudflareServer).CreateZone(ctx, req.(*CreateZoneRequestCloudflare))
  597. }
  598. return interceptor(ctx, in, info, handler)
  599. }
  600. func _ZoneCloudflare_SetZonePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  601. in := new(SetZonePlanRequestCloudflare)
  602. if err := dec(in); err != nil {
  603. return nil, err
  604. }
  605. if interceptor == nil {
  606. return srv.(ZoneCloudflareServer).SetZonePlan(ctx, in)
  607. }
  608. info := &grpc.UnaryServerInfo{
  609. Server: srv,
  610. FullMethod: ZoneCloudflare_SetZonePlan_FullMethodName,
  611. }
  612. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  613. return srv.(ZoneCloudflareServer).SetZonePlan(ctx, req.(*SetZonePlanRequestCloudflare))
  614. }
  615. return interceptor(ctx, in, info, handler)
  616. }
  617. func _ZoneCloudflare_ListPageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  618. in := new(ListPageRuleRequestCloudflare)
  619. if err := dec(in); err != nil {
  620. return nil, err
  621. }
  622. if interceptor == nil {
  623. return srv.(ZoneCloudflareServer).ListPageRule(ctx, in)
  624. }
  625. info := &grpc.UnaryServerInfo{
  626. Server: srv,
  627. FullMethod: ZoneCloudflare_ListPageRule_FullMethodName,
  628. }
  629. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  630. return srv.(ZoneCloudflareServer).ListPageRule(ctx, req.(*ListPageRuleRequestCloudflare))
  631. }
  632. return interceptor(ctx, in, info, handler)
  633. }
  634. func _ZoneCloudflare_CreatePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  635. in := new(CreatePageRuleRequestCloudflare)
  636. if err := dec(in); err != nil {
  637. return nil, err
  638. }
  639. if interceptor == nil {
  640. return srv.(ZoneCloudflareServer).CreatePageRule(ctx, in)
  641. }
  642. info := &grpc.UnaryServerInfo{
  643. Server: srv,
  644. FullMethod: ZoneCloudflare_CreatePageRule_FullMethodName,
  645. }
  646. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  647. return srv.(ZoneCloudflareServer).CreatePageRule(ctx, req.(*CreatePageRuleRequestCloudflare))
  648. }
  649. return interceptor(ctx, in, info, handler)
  650. }
  651. func _ZoneCloudflare_UpdatePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  652. in := new(UpdatePageRuleRequestCloudflare)
  653. if err := dec(in); err != nil {
  654. return nil, err
  655. }
  656. if interceptor == nil {
  657. return srv.(ZoneCloudflareServer).UpdatePageRule(ctx, in)
  658. }
  659. info := &grpc.UnaryServerInfo{
  660. Server: srv,
  661. FullMethod: ZoneCloudflare_UpdatePageRule_FullMethodName,
  662. }
  663. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  664. return srv.(ZoneCloudflareServer).UpdatePageRule(ctx, req.(*UpdatePageRuleRequestCloudflare))
  665. }
  666. return interceptor(ctx, in, info, handler)
  667. }
  668. func _ZoneCloudflare_DeletePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  669. in := new(DeletePageRuleRequestCloudflare)
  670. if err := dec(in); err != nil {
  671. return nil, err
  672. }
  673. if interceptor == nil {
  674. return srv.(ZoneCloudflareServer).DeletePageRule(ctx, in)
  675. }
  676. info := &grpc.UnaryServerInfo{
  677. Server: srv,
  678. FullMethod: ZoneCloudflare_DeletePageRule_FullMethodName,
  679. }
  680. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  681. return srv.(ZoneCloudflareServer).DeletePageRule(ctx, req.(*DeletePageRuleRequestCloudflare))
  682. }
  683. return interceptor(ctx, in, info, handler)
  684. }
  685. func _ZoneCloudflare_UpdatePageRulesPriorities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  686. in := new(UpdatePageRulesPrioritiesRequestCloudflare)
  687. if err := dec(in); err != nil {
  688. return nil, err
  689. }
  690. if interceptor == nil {
  691. return srv.(ZoneCloudflareServer).UpdatePageRulesPriorities(ctx, in)
  692. }
  693. info := &grpc.UnaryServerInfo{
  694. Server: srv,
  695. FullMethod: ZoneCloudflare_UpdatePageRulesPriorities_FullMethodName,
  696. }
  697. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  698. return srv.(ZoneCloudflareServer).UpdatePageRulesPriorities(ctx, req.(*UpdatePageRulesPrioritiesRequestCloudflare))
  699. }
  700. return interceptor(ctx, in, info, handler)
  701. }
  702. func _ZoneCloudflare_UpdateRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  703. in := new(UpdateRuleSetRequestCloudflare)
  704. if err := dec(in); err != nil {
  705. return nil, err
  706. }
  707. if interceptor == nil {
  708. return srv.(ZoneCloudflareServer).UpdateRuleSet(ctx, in)
  709. }
  710. info := &grpc.UnaryServerInfo{
  711. Server: srv,
  712. FullMethod: ZoneCloudflare_UpdateRuleSet_FullMethodName,
  713. }
  714. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  715. return srv.(ZoneCloudflareServer).UpdateRuleSet(ctx, req.(*UpdateRuleSetRequestCloudflare))
  716. }
  717. return interceptor(ctx, in, info, handler)
  718. }
  719. func _ZoneCloudflare_GetRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  720. in := new(GetRuleSetRequestCloudflare)
  721. if err := dec(in); err != nil {
  722. return nil, err
  723. }
  724. if interceptor == nil {
  725. return srv.(ZoneCloudflareServer).GetRuleSet(ctx, in)
  726. }
  727. info := &grpc.UnaryServerInfo{
  728. Server: srv,
  729. FullMethod: ZoneCloudflare_GetRuleSet_FullMethodName,
  730. }
  731. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  732. return srv.(ZoneCloudflareServer).GetRuleSet(ctx, req.(*GetRuleSetRequestCloudflare))
  733. }
  734. return interceptor(ctx, in, info, handler)
  735. }
  736. func _ZoneCloudflare_ListZoneRuleSets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  737. in := new(ListZoneRuleSetsRequestCloudflare)
  738. if err := dec(in); err != nil {
  739. return nil, err
  740. }
  741. if interceptor == nil {
  742. return srv.(ZoneCloudflareServer).ListZoneRuleSets(ctx, in)
  743. }
  744. info := &grpc.UnaryServerInfo{
  745. Server: srv,
  746. FullMethod: ZoneCloudflare_ListZoneRuleSets_FullMethodName,
  747. }
  748. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  749. return srv.(ZoneCloudflareServer).ListZoneRuleSets(ctx, req.(*ListZoneRuleSetsRequestCloudflare))
  750. }
  751. return interceptor(ctx, in, info, handler)
  752. }
  753. func _ZoneCloudflare_CreateZoneRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  754. in := new(CreateZoneRuleSetRequestCloudflare)
  755. if err := dec(in); err != nil {
  756. return nil, err
  757. }
  758. if interceptor == nil {
  759. return srv.(ZoneCloudflareServer).CreateZoneRuleSet(ctx, in)
  760. }
  761. info := &grpc.UnaryServerInfo{
  762. Server: srv,
  763. FullMethod: ZoneCloudflare_CreateZoneRuleSet_FullMethodName,
  764. }
  765. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  766. return srv.(ZoneCloudflareServer).CreateZoneRuleSet(ctx, req.(*CreateZoneRuleSetRequestCloudflare))
  767. }
  768. return interceptor(ctx, in, info, handler)
  769. }
  770. func _ZoneCloudflare_DeleteZoneRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  771. in := new(DeleteZoneRuleSetRequestCloudflare)
  772. if err := dec(in); err != nil {
  773. return nil, err
  774. }
  775. if interceptor == nil {
  776. return srv.(ZoneCloudflareServer).DeleteZoneRuleSet(ctx, in)
  777. }
  778. info := &grpc.UnaryServerInfo{
  779. Server: srv,
  780. FullMethod: ZoneCloudflare_DeleteZoneRuleSet_FullMethodName,
  781. }
  782. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  783. return srv.(ZoneCloudflareServer).DeleteZoneRuleSet(ctx, req.(*DeleteZoneRuleSetRequestCloudflare))
  784. }
  785. return interceptor(ctx, in, info, handler)
  786. }
  787. func _ZoneCloudflare_UpdateArgoSetting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  788. in := new(UpdateArgoRequestCloudflare)
  789. if err := dec(in); err != nil {
  790. return nil, err
  791. }
  792. if interceptor == nil {
  793. return srv.(ZoneCloudflareServer).UpdateArgoSetting(ctx, in)
  794. }
  795. info := &grpc.UnaryServerInfo{
  796. Server: srv,
  797. FullMethod: ZoneCloudflare_UpdateArgoSetting_FullMethodName,
  798. }
  799. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  800. return srv.(ZoneCloudflareServer).UpdateArgoSetting(ctx, req.(*UpdateArgoRequestCloudflare))
  801. }
  802. return interceptor(ctx, in, info, handler)
  803. }
  804. func _ZoneCloudflare_GetArgoSetting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  805. in := new(IdRequest)
  806. if err := dec(in); err != nil {
  807. return nil, err
  808. }
  809. if interceptor == nil {
  810. return srv.(ZoneCloudflareServer).GetArgoSetting(ctx, in)
  811. }
  812. info := &grpc.UnaryServerInfo{
  813. Server: srv,
  814. FullMethod: ZoneCloudflare_GetArgoSetting_FullMethodName,
  815. }
  816. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  817. return srv.(ZoneCloudflareServer).GetArgoSetting(ctx, req.(*IdRequest))
  818. }
  819. return interceptor(ctx, in, info, handler)
  820. }
  821. func _ZoneCloudflare_GetArgoSettingSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  822. in := new(IdRequest)
  823. if err := dec(in); err != nil {
  824. return nil, err
  825. }
  826. if interceptor == nil {
  827. return srv.(ZoneCloudflareServer).GetArgoSettingSubscription(ctx, in)
  828. }
  829. info := &grpc.UnaryServerInfo{
  830. Server: srv,
  831. FullMethod: ZoneCloudflare_GetArgoSettingSubscription_FullMethodName,
  832. }
  833. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  834. return srv.(ZoneCloudflareServer).GetArgoSettingSubscription(ctx, req.(*IdRequest))
  835. }
  836. return interceptor(ctx, in, info, handler)
  837. }
  838. func _ZoneCloudflare_CreateArgoSettingSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  839. in := new(IdRequest)
  840. if err := dec(in); err != nil {
  841. return nil, err
  842. }
  843. if interceptor == nil {
  844. return srv.(ZoneCloudflareServer).CreateArgoSettingSubscription(ctx, in)
  845. }
  846. info := &grpc.UnaryServerInfo{
  847. Server: srv,
  848. FullMethod: ZoneCloudflare_CreateArgoSettingSubscription_FullMethodName,
  849. }
  850. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  851. return srv.(ZoneCloudflareServer).CreateArgoSettingSubscription(ctx, req.(*IdRequest))
  852. }
  853. return interceptor(ctx, in, info, handler)
  854. }
  855. func _ZoneCloudflare_SetSmartTieredCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  856. in := new(SetSmartTieredCacheRequestCloudflare)
  857. if err := dec(in); err != nil {
  858. return nil, err
  859. }
  860. if interceptor == nil {
  861. return srv.(ZoneCloudflareServer).SetSmartTieredCache(ctx, in)
  862. }
  863. info := &grpc.UnaryServerInfo{
  864. Server: srv,
  865. FullMethod: ZoneCloudflare_SetSmartTieredCache_FullMethodName,
  866. }
  867. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  868. return srv.(ZoneCloudflareServer).SetSmartTieredCache(ctx, req.(*SetSmartTieredCacheRequestCloudflare))
  869. }
  870. return interceptor(ctx, in, info, handler)
  871. }
  872. func _ZoneCloudflare_UpdateAlwaysUseHttps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  873. in := new(UpdateAlwaysUseHttpsRequestCloudflare)
  874. if err := dec(in); err != nil {
  875. return nil, err
  876. }
  877. if interceptor == nil {
  878. return srv.(ZoneCloudflareServer).UpdateAlwaysUseHttps(ctx, in)
  879. }
  880. info := &grpc.UnaryServerInfo{
  881. Server: srv,
  882. FullMethod: ZoneCloudflare_UpdateAlwaysUseHttps_FullMethodName,
  883. }
  884. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  885. return srv.(ZoneCloudflareServer).UpdateAlwaysUseHttps(ctx, req.(*UpdateAlwaysUseHttpsRequestCloudflare))
  886. }
  887. return interceptor(ctx, in, info, handler)
  888. }
  889. // ZoneCloudflare_ServiceDesc is the grpc.ServiceDesc for ZoneCloudflare service.
  890. // It's only intended for direct use with grpc.RegisterService,
  891. // and not to be introspected or modified (even as a copy)
  892. var ZoneCloudflare_ServiceDesc = grpc.ServiceDesc{
  893. ServiceName: "cloudflareApi.zone.ZoneCloudflare",
  894. HandlerType: (*ZoneCloudflareServer)(nil),
  895. Methods: []grpc.MethodDesc{
  896. {
  897. MethodName: "ZoneIDByNameCloudflare",
  898. Handler: _ZoneCloudflare_ZoneIDByNameCloudflare_Handler,
  899. },
  900. {
  901. MethodName: "ZoneDetails",
  902. Handler: _ZoneCloudflare_ZoneDetails_Handler,
  903. },
  904. {
  905. MethodName: "GetZones",
  906. Handler: _ZoneCloudflare_GetZones_Handler,
  907. },
  908. {
  909. MethodName: "EditZone",
  910. Handler: _ZoneCloudflare_EditZone_Handler,
  911. },
  912. {
  913. MethodName: "DeleteZone",
  914. Handler: _ZoneCloudflare_DeleteZone_Handler,
  915. },
  916. {
  917. MethodName: "ListZones",
  918. Handler: _ZoneCloudflare_ListZones_Handler,
  919. },
  920. {
  921. MethodName: "ListZonesByAccountId",
  922. Handler: _ZoneCloudflare_ListZonesByAccountId_Handler,
  923. },
  924. {
  925. MethodName: "ActivationCheck",
  926. Handler: _ZoneCloudflare_ActivationCheck_Handler,
  927. },
  928. {
  929. MethodName: "CreateZone",
  930. Handler: _ZoneCloudflare_CreateZone_Handler,
  931. },
  932. {
  933. MethodName: "SetZonePlan",
  934. Handler: _ZoneCloudflare_SetZonePlan_Handler,
  935. },
  936. {
  937. MethodName: "ListPageRule",
  938. Handler: _ZoneCloudflare_ListPageRule_Handler,
  939. },
  940. {
  941. MethodName: "CreatePageRule",
  942. Handler: _ZoneCloudflare_CreatePageRule_Handler,
  943. },
  944. {
  945. MethodName: "UpdatePageRule",
  946. Handler: _ZoneCloudflare_UpdatePageRule_Handler,
  947. },
  948. {
  949. MethodName: "DeletePageRule",
  950. Handler: _ZoneCloudflare_DeletePageRule_Handler,
  951. },
  952. {
  953. MethodName: "UpdatePageRulesPriorities",
  954. Handler: _ZoneCloudflare_UpdatePageRulesPriorities_Handler,
  955. },
  956. {
  957. MethodName: "UpdateRuleSet",
  958. Handler: _ZoneCloudflare_UpdateRuleSet_Handler,
  959. },
  960. {
  961. MethodName: "GetRuleSet",
  962. Handler: _ZoneCloudflare_GetRuleSet_Handler,
  963. },
  964. {
  965. MethodName: "ListZoneRuleSets",
  966. Handler: _ZoneCloudflare_ListZoneRuleSets_Handler,
  967. },
  968. {
  969. MethodName: "CreateZoneRuleSet",
  970. Handler: _ZoneCloudflare_CreateZoneRuleSet_Handler,
  971. },
  972. {
  973. MethodName: "DeleteZoneRuleSet",
  974. Handler: _ZoneCloudflare_DeleteZoneRuleSet_Handler,
  975. },
  976. {
  977. MethodName: "UpdateArgoSetting",
  978. Handler: _ZoneCloudflare_UpdateArgoSetting_Handler,
  979. },
  980. {
  981. MethodName: "GetArgoSetting",
  982. Handler: _ZoneCloudflare_GetArgoSetting_Handler,
  983. },
  984. {
  985. MethodName: "GetArgoSettingSubscription",
  986. Handler: _ZoneCloudflare_GetArgoSettingSubscription_Handler,
  987. },
  988. {
  989. MethodName: "CreateArgoSettingSubscription",
  990. Handler: _ZoneCloudflare_CreateArgoSettingSubscription_Handler,
  991. },
  992. {
  993. MethodName: "SetSmartTieredCache",
  994. Handler: _ZoneCloudflare_SetSmartTieredCache_Handler,
  995. },
  996. {
  997. MethodName: "UpdateAlwaysUseHttps",
  998. Handler: _ZoneCloudflare_UpdateAlwaysUseHttps_Handler,
  999. },
  1000. },
  1001. Streams: []grpc.StreamDesc{},
  1002. Metadata: "zone.proto",
  1003. }