123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.4.0
- // - protoc v3.20.1
- // source: zone.proto
- package zone
- import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.62.0 or later.
- const _ = grpc.SupportPackageIsVersion8
- const (
- ZoneCloudflare_ZoneIDByNameCloudflare_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ZoneIDByNameCloudflare"
- ZoneCloudflare_ZoneDetails_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ZoneDetails"
- ZoneCloudflare_GetZones_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/GetZones"
- ZoneCloudflare_EditZone_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/EditZone"
- ZoneCloudflare_DeleteZone_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/DeleteZone"
- ZoneCloudflare_ListZones_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ListZones"
- ZoneCloudflare_ListZonesByAccountId_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ListZonesByAccountId"
- ZoneCloudflare_ActivationCheck_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ActivationCheck"
- ZoneCloudflare_CreateZone_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/CreateZone"
- ZoneCloudflare_SetZonePlan_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/SetZonePlan"
- ZoneCloudflare_ListPageRule_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ListPageRule"
- ZoneCloudflare_CreatePageRule_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/CreatePageRule"
- ZoneCloudflare_UpdatePageRule_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRule"
- ZoneCloudflare_DeletePageRule_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/DeletePageRule"
- ZoneCloudflare_UpdatePageRulesPriorities_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRulesPriorities"
- ZoneCloudflare_UpdateRuleSet_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/UpdateRuleSet"
- ZoneCloudflare_GetRuleSet_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/GetRuleSet"
- ZoneCloudflare_ListZoneRuleSets_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ListZoneRuleSets"
- ZoneCloudflare_CreateZoneRuleSet_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/CreateZoneRuleSet"
- ZoneCloudflare_DeleteZoneRuleSet_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/DeleteZoneRuleSet"
- ZoneCloudflare_UpdateArgoSetting_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/UpdateArgoSetting"
- ZoneCloudflare_GetArgoSetting_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/GetArgoSetting"
- ZoneCloudflare_GetArgoSettingSubscription_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/GetArgoSettingSubscription"
- ZoneCloudflare_CreateArgoSettingSubscription_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/CreateArgoSettingSubscription"
- ZoneCloudflare_SetSmartTieredCache_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/SetSmartTieredCache"
- ZoneCloudflare_UpdateAlwaysUseHttps_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/UpdateAlwaysUseHttps"
- )
- // ZoneCloudflareClient is the client API for ZoneCloudflare service.
- //
- // 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.
- type ZoneCloudflareClient interface {
- // Zone CURD
- ZoneIDByNameCloudflare(ctx context.Context, in *ZoneIDByNameRequestCloudflare, opts ...grpc.CallOption) (*ZoneIDByNameReplyCloudflare, error)
- ZoneDetails(ctx context.Context, in *ZoneDetailsRequestCloudflare, opts ...grpc.CallOption) (*ZoneDetailsReplyCloudflare, error)
- GetZones(ctx context.Context, in *GetZonesRequestCloudflare, opts ...grpc.CallOption) (*GetZonesReplyCloudflare, error)
- EditZone(ctx context.Context, in *EditZoneRequestCloudflare, opts ...grpc.CallOption) (*EditZoneReplyCloudflare, error)
- DeleteZone(ctx context.Context, in *DeleteZoneRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneReplyCloudflare, error)
- ListZones(ctx context.Context, in *ListZonesRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error)
- ListZonesByAccountId(ctx context.Context, in *ListZonesByAccountIdRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error)
- ActivationCheck(ctx context.Context, in *ActivationCheckRequestCloudflare, opts ...grpc.CallOption) (*ActivationCheckReplyCloudflare, error)
- CreateZone(ctx context.Context, in *CreateZoneRequestCloudflare, opts ...grpc.CallOption) (*CreateZoneReplyCloudflare, error)
- SetZonePlan(ctx context.Context, in *SetZonePlanRequestCloudflare, opts ...grpc.CallOption) (*SetZonePlanReplyCloudflare, error)
- // PageRule CURD
- ListPageRule(ctx context.Context, in *ListPageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error)
- CreatePageRule(ctx context.Context, in *CreatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error)
- UpdatePageRule(ctx context.Context, in *UpdatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error)
- DeletePageRule(ctx context.Context, in *DeletePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error)
- UpdatePageRulesPriorities(ctx context.Context, in *UpdatePageRulesPrioritiesRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error)
- // RuleSet UR
- UpdateRuleSet(ctx context.Context, in *UpdateRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error)
- GetRuleSet(ctx context.Context, in *GetRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error)
- ListZoneRuleSets(ctx context.Context, in *ListZoneRuleSetsRequestCloudflare, opts ...grpc.CallOption) (*RuleSetList, error)
- CreateZoneRuleSet(ctx context.Context, in *CreateZoneRuleSetRequestCloudflare, opts ...grpc.CallOption) (*CreateZoneRuleSetReplyCloudflare, error)
- DeleteZoneRuleSet(ctx context.Context, in *DeleteZoneRuleSetRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneRuleSetReplyCloudflare, error)
- // Argo Smart Routing Setting UR
- UpdateArgoSetting(ctx context.Context, in *UpdateArgoRequestCloudflare, opts ...grpc.CallOption) (*ArgoSetting, error)
- GetArgoSetting(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error)
- GetArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error)
- CreateArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error)
- SetSmartTieredCache(ctx context.Context, in *SetSmartTieredCacheRequestCloudflare, opts ...grpc.CallOption) (*SetSmartTieredCacheReplyCloudflare, error)
- UpdateAlwaysUseHttps(ctx context.Context, in *UpdateAlwaysUseHttpsRequestCloudflare, opts ...grpc.CallOption) (*UpdateAlwaysUseHttpsReplyCloudflare, error)
- }
- type zoneCloudflareClient struct {
- cc grpc.ClientConnInterface
- }
- func NewZoneCloudflareClient(cc grpc.ClientConnInterface) ZoneCloudflareClient {
- return &zoneCloudflareClient{cc}
- }
- func (c *zoneCloudflareClient) ZoneIDByNameCloudflare(ctx context.Context, in *ZoneIDByNameRequestCloudflare, opts ...grpc.CallOption) (*ZoneIDByNameReplyCloudflare, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ZoneIDByNameReplyCloudflare)
- err := c.cc.Invoke(ctx, ZoneCloudflare_ZoneIDByNameCloudflare_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) ZoneDetails(ctx context.Context, in *ZoneDetailsRequestCloudflare, opts ...grpc.CallOption) (*ZoneDetailsReplyCloudflare, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ZoneDetailsReplyCloudflare)
- err := c.cc.Invoke(ctx, ZoneCloudflare_ZoneDetails_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) GetZones(ctx context.Context, in *GetZonesRequestCloudflare, opts ...grpc.CallOption) (*GetZonesReplyCloudflare, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(GetZonesReplyCloudflare)
- err := c.cc.Invoke(ctx, ZoneCloudflare_GetZones_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) EditZone(ctx context.Context, in *EditZoneRequestCloudflare, opts ...grpc.CallOption) (*EditZoneReplyCloudflare, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(EditZoneReplyCloudflare)
- err := c.cc.Invoke(ctx, ZoneCloudflare_EditZone_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) DeleteZone(ctx context.Context, in *DeleteZoneRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneReplyCloudflare, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(DeleteZoneReplyCloudflare)
- err := c.cc.Invoke(ctx, ZoneCloudflare_DeleteZone_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) ListZones(ctx context.Context, in *ListZonesRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ZonesList)
- err := c.cc.Invoke(ctx, ZoneCloudflare_ListZones_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) ListZonesByAccountId(ctx context.Context, in *ListZonesByAccountIdRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ZonesList)
- err := c.cc.Invoke(ctx, ZoneCloudflare_ListZonesByAccountId_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) ActivationCheck(ctx context.Context, in *ActivationCheckRequestCloudflare, opts ...grpc.CallOption) (*ActivationCheckReplyCloudflare, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ActivationCheckReplyCloudflare)
- err := c.cc.Invoke(ctx, ZoneCloudflare_ActivationCheck_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) CreateZone(ctx context.Context, in *CreateZoneRequestCloudflare, opts ...grpc.CallOption) (*CreateZoneReplyCloudflare, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(CreateZoneReplyCloudflare)
- err := c.cc.Invoke(ctx, ZoneCloudflare_CreateZone_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) SetZonePlan(ctx context.Context, in *SetZonePlanRequestCloudflare, opts ...grpc.CallOption) (*SetZonePlanReplyCloudflare, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(SetZonePlanReplyCloudflare)
- err := c.cc.Invoke(ctx, ZoneCloudflare_SetZonePlan_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) ListPageRule(ctx context.Context, in *ListPageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(PageRuleList)
- err := c.cc.Invoke(ctx, ZoneCloudflare_ListPageRule_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) CreatePageRule(ctx context.Context, in *CreatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(PageRule)
- err := c.cc.Invoke(ctx, ZoneCloudflare_CreatePageRule_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) UpdatePageRule(ctx context.Context, in *UpdatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(PageRule)
- err := c.cc.Invoke(ctx, ZoneCloudflare_UpdatePageRule_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) DeletePageRule(ctx context.Context, in *DeletePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(PageRule)
- err := c.cc.Invoke(ctx, ZoneCloudflare_DeletePageRule_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) UpdatePageRulesPriorities(ctx context.Context, in *UpdatePageRulesPrioritiesRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(PageRuleList)
- err := c.cc.Invoke(ctx, ZoneCloudflare_UpdatePageRulesPriorities_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) UpdateRuleSet(ctx context.Context, in *UpdateRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(RuleList)
- err := c.cc.Invoke(ctx, ZoneCloudflare_UpdateRuleSet_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) GetRuleSet(ctx context.Context, in *GetRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(RuleList)
- err := c.cc.Invoke(ctx, ZoneCloudflare_GetRuleSet_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) ListZoneRuleSets(ctx context.Context, in *ListZoneRuleSetsRequestCloudflare, opts ...grpc.CallOption) (*RuleSetList, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(RuleSetList)
- err := c.cc.Invoke(ctx, ZoneCloudflare_ListZoneRuleSets_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) CreateZoneRuleSet(ctx context.Context, in *CreateZoneRuleSetRequestCloudflare, opts ...grpc.CallOption) (*CreateZoneRuleSetReplyCloudflare, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(CreateZoneRuleSetReplyCloudflare)
- err := c.cc.Invoke(ctx, ZoneCloudflare_CreateZoneRuleSet_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) DeleteZoneRuleSet(ctx context.Context, in *DeleteZoneRuleSetRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneRuleSetReplyCloudflare, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(DeleteZoneRuleSetReplyCloudflare)
- err := c.cc.Invoke(ctx, ZoneCloudflare_DeleteZoneRuleSet_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) UpdateArgoSetting(ctx context.Context, in *UpdateArgoRequestCloudflare, opts ...grpc.CallOption) (*ArgoSetting, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ArgoSetting)
- err := c.cc.Invoke(ctx, ZoneCloudflare_UpdateArgoSetting_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) GetArgoSetting(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ArgoSetting)
- err := c.cc.Invoke(ctx, ZoneCloudflare_GetArgoSetting_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) GetArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ArgoSetting)
- err := c.cc.Invoke(ctx, ZoneCloudflare_GetArgoSettingSubscription_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) CreateArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ArgoSetting)
- err := c.cc.Invoke(ctx, ZoneCloudflare_CreateArgoSettingSubscription_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) SetSmartTieredCache(ctx context.Context, in *SetSmartTieredCacheRequestCloudflare, opts ...grpc.CallOption) (*SetSmartTieredCacheReplyCloudflare, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(SetSmartTieredCacheReplyCloudflare)
- err := c.cc.Invoke(ctx, ZoneCloudflare_SetSmartTieredCache_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) UpdateAlwaysUseHttps(ctx context.Context, in *UpdateAlwaysUseHttpsRequestCloudflare, opts ...grpc.CallOption) (*UpdateAlwaysUseHttpsReplyCloudflare, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(UpdateAlwaysUseHttpsReplyCloudflare)
- err := c.cc.Invoke(ctx, ZoneCloudflare_UpdateAlwaysUseHttps_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // ZoneCloudflareServer is the server API for ZoneCloudflare service.
- // All implementations must embed UnimplementedZoneCloudflareServer
- // for forward compatibility
- type ZoneCloudflareServer interface {
- // Zone CURD
- ZoneIDByNameCloudflare(context.Context, *ZoneIDByNameRequestCloudflare) (*ZoneIDByNameReplyCloudflare, error)
- ZoneDetails(context.Context, *ZoneDetailsRequestCloudflare) (*ZoneDetailsReplyCloudflare, error)
- GetZones(context.Context, *GetZonesRequestCloudflare) (*GetZonesReplyCloudflare, error)
- EditZone(context.Context, *EditZoneRequestCloudflare) (*EditZoneReplyCloudflare, error)
- DeleteZone(context.Context, *DeleteZoneRequestCloudflare) (*DeleteZoneReplyCloudflare, error)
- ListZones(context.Context, *ListZonesRequestCloudflare) (*ZonesList, error)
- ListZonesByAccountId(context.Context, *ListZonesByAccountIdRequestCloudflare) (*ZonesList, error)
- ActivationCheck(context.Context, *ActivationCheckRequestCloudflare) (*ActivationCheckReplyCloudflare, error)
- CreateZone(context.Context, *CreateZoneRequestCloudflare) (*CreateZoneReplyCloudflare, error)
- SetZonePlan(context.Context, *SetZonePlanRequestCloudflare) (*SetZonePlanReplyCloudflare, error)
- // PageRule CURD
- ListPageRule(context.Context, *ListPageRuleRequestCloudflare) (*PageRuleList, error)
- CreatePageRule(context.Context, *CreatePageRuleRequestCloudflare) (*PageRule, error)
- UpdatePageRule(context.Context, *UpdatePageRuleRequestCloudflare) (*PageRule, error)
- DeletePageRule(context.Context, *DeletePageRuleRequestCloudflare) (*PageRule, error)
- UpdatePageRulesPriorities(context.Context, *UpdatePageRulesPrioritiesRequestCloudflare) (*PageRuleList, error)
- // RuleSet UR
- UpdateRuleSet(context.Context, *UpdateRuleSetRequestCloudflare) (*RuleList, error)
- GetRuleSet(context.Context, *GetRuleSetRequestCloudflare) (*RuleList, error)
- ListZoneRuleSets(context.Context, *ListZoneRuleSetsRequestCloudflare) (*RuleSetList, error)
- CreateZoneRuleSet(context.Context, *CreateZoneRuleSetRequestCloudflare) (*CreateZoneRuleSetReplyCloudflare, error)
- DeleteZoneRuleSet(context.Context, *DeleteZoneRuleSetRequestCloudflare) (*DeleteZoneRuleSetReplyCloudflare, error)
- // Argo Smart Routing Setting UR
- UpdateArgoSetting(context.Context, *UpdateArgoRequestCloudflare) (*ArgoSetting, error)
- GetArgoSetting(context.Context, *IdRequest) (*ArgoSetting, error)
- GetArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error)
- CreateArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error)
- SetSmartTieredCache(context.Context, *SetSmartTieredCacheRequestCloudflare) (*SetSmartTieredCacheReplyCloudflare, error)
- UpdateAlwaysUseHttps(context.Context, *UpdateAlwaysUseHttpsRequestCloudflare) (*UpdateAlwaysUseHttpsReplyCloudflare, error)
- mustEmbedUnimplementedZoneCloudflareServer()
- }
- // UnimplementedZoneCloudflareServer must be embedded to have forward compatible implementations.
- type UnimplementedZoneCloudflareServer struct {
- }
- func (UnimplementedZoneCloudflareServer) ZoneIDByNameCloudflare(context.Context, *ZoneIDByNameRequestCloudflare) (*ZoneIDByNameReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ZoneIDByNameCloudflare not implemented")
- }
- func (UnimplementedZoneCloudflareServer) ZoneDetails(context.Context, *ZoneDetailsRequestCloudflare) (*ZoneDetailsReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ZoneDetails not implemented")
- }
- func (UnimplementedZoneCloudflareServer) GetZones(context.Context, *GetZonesRequestCloudflare) (*GetZonesReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetZones not implemented")
- }
- func (UnimplementedZoneCloudflareServer) EditZone(context.Context, *EditZoneRequestCloudflare) (*EditZoneReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method EditZone not implemented")
- }
- func (UnimplementedZoneCloudflareServer) DeleteZone(context.Context, *DeleteZoneRequestCloudflare) (*DeleteZoneReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteZone not implemented")
- }
- func (UnimplementedZoneCloudflareServer) ListZones(context.Context, *ListZonesRequestCloudflare) (*ZonesList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ListZones not implemented")
- }
- func (UnimplementedZoneCloudflareServer) ListZonesByAccountId(context.Context, *ListZonesByAccountIdRequestCloudflare) (*ZonesList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ListZonesByAccountId not implemented")
- }
- func (UnimplementedZoneCloudflareServer) ActivationCheck(context.Context, *ActivationCheckRequestCloudflare) (*ActivationCheckReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ActivationCheck not implemented")
- }
- func (UnimplementedZoneCloudflareServer) CreateZone(context.Context, *CreateZoneRequestCloudflare) (*CreateZoneReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateZone not implemented")
- }
- func (UnimplementedZoneCloudflareServer) SetZonePlan(context.Context, *SetZonePlanRequestCloudflare) (*SetZonePlanReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SetZonePlan not implemented")
- }
- func (UnimplementedZoneCloudflareServer) ListPageRule(context.Context, *ListPageRuleRequestCloudflare) (*PageRuleList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ListPageRule not implemented")
- }
- func (UnimplementedZoneCloudflareServer) CreatePageRule(context.Context, *CreatePageRuleRequestCloudflare) (*PageRule, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreatePageRule not implemented")
- }
- func (UnimplementedZoneCloudflareServer) UpdatePageRule(context.Context, *UpdatePageRuleRequestCloudflare) (*PageRule, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdatePageRule not implemented")
- }
- func (UnimplementedZoneCloudflareServer) DeletePageRule(context.Context, *DeletePageRuleRequestCloudflare) (*PageRule, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeletePageRule not implemented")
- }
- func (UnimplementedZoneCloudflareServer) UpdatePageRulesPriorities(context.Context, *UpdatePageRulesPrioritiesRequestCloudflare) (*PageRuleList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdatePageRulesPriorities not implemented")
- }
- func (UnimplementedZoneCloudflareServer) UpdateRuleSet(context.Context, *UpdateRuleSetRequestCloudflare) (*RuleList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateRuleSet not implemented")
- }
- func (UnimplementedZoneCloudflareServer) GetRuleSet(context.Context, *GetRuleSetRequestCloudflare) (*RuleList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetRuleSet not implemented")
- }
- func (UnimplementedZoneCloudflareServer) ListZoneRuleSets(context.Context, *ListZoneRuleSetsRequestCloudflare) (*RuleSetList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ListZoneRuleSets not implemented")
- }
- func (UnimplementedZoneCloudflareServer) CreateZoneRuleSet(context.Context, *CreateZoneRuleSetRequestCloudflare) (*CreateZoneRuleSetReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateZoneRuleSet not implemented")
- }
- func (UnimplementedZoneCloudflareServer) DeleteZoneRuleSet(context.Context, *DeleteZoneRuleSetRequestCloudflare) (*DeleteZoneRuleSetReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteZoneRuleSet not implemented")
- }
- func (UnimplementedZoneCloudflareServer) UpdateArgoSetting(context.Context, *UpdateArgoRequestCloudflare) (*ArgoSetting, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateArgoSetting not implemented")
- }
- func (UnimplementedZoneCloudflareServer) GetArgoSetting(context.Context, *IdRequest) (*ArgoSetting, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetArgoSetting not implemented")
- }
- func (UnimplementedZoneCloudflareServer) GetArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetArgoSettingSubscription not implemented")
- }
- func (UnimplementedZoneCloudflareServer) CreateArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateArgoSettingSubscription not implemented")
- }
- func (UnimplementedZoneCloudflareServer) SetSmartTieredCache(context.Context, *SetSmartTieredCacheRequestCloudflare) (*SetSmartTieredCacheReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SetSmartTieredCache not implemented")
- }
- func (UnimplementedZoneCloudflareServer) UpdateAlwaysUseHttps(context.Context, *UpdateAlwaysUseHttpsRequestCloudflare) (*UpdateAlwaysUseHttpsReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateAlwaysUseHttps not implemented")
- }
- func (UnimplementedZoneCloudflareServer) mustEmbedUnimplementedZoneCloudflareServer() {}
- // UnsafeZoneCloudflareServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to ZoneCloudflareServer will
- // result in compilation errors.
- type UnsafeZoneCloudflareServer interface {
- mustEmbedUnimplementedZoneCloudflareServer()
- }
- func RegisterZoneCloudflareServer(s grpc.ServiceRegistrar, srv ZoneCloudflareServer) {
- s.RegisterService(&ZoneCloudflare_ServiceDesc, srv)
- }
- func _ZoneCloudflare_ZoneIDByNameCloudflare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ZoneIDByNameRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).ZoneIDByNameCloudflare(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_ZoneIDByNameCloudflare_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).ZoneIDByNameCloudflare(ctx, req.(*ZoneIDByNameRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_ZoneDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ZoneDetailsRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).ZoneDetails(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_ZoneDetails_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).ZoneDetails(ctx, req.(*ZoneDetailsRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_GetZones_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetZonesRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).GetZones(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_GetZones_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).GetZones(ctx, req.(*GetZonesRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_EditZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(EditZoneRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).EditZone(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_EditZone_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).EditZone(ctx, req.(*EditZoneRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_DeleteZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteZoneRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).DeleteZone(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_DeleteZone_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).DeleteZone(ctx, req.(*DeleteZoneRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_ListZones_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListZonesRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).ListZones(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_ListZones_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).ListZones(ctx, req.(*ListZonesRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_ListZonesByAccountId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListZonesByAccountIdRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).ListZonesByAccountId(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_ListZonesByAccountId_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).ListZonesByAccountId(ctx, req.(*ListZonesByAccountIdRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_ActivationCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ActivationCheckRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).ActivationCheck(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_ActivationCheck_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).ActivationCheck(ctx, req.(*ActivationCheckRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_CreateZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateZoneRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).CreateZone(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_CreateZone_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).CreateZone(ctx, req.(*CreateZoneRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_SetZonePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SetZonePlanRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).SetZonePlan(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_SetZonePlan_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).SetZonePlan(ctx, req.(*SetZonePlanRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_ListPageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListPageRuleRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).ListPageRule(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_ListPageRule_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).ListPageRule(ctx, req.(*ListPageRuleRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_CreatePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreatePageRuleRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).CreatePageRule(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_CreatePageRule_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).CreatePageRule(ctx, req.(*CreatePageRuleRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_UpdatePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdatePageRuleRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).UpdatePageRule(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_UpdatePageRule_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).UpdatePageRule(ctx, req.(*UpdatePageRuleRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_DeletePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeletePageRuleRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).DeletePageRule(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_DeletePageRule_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).DeletePageRule(ctx, req.(*DeletePageRuleRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_UpdatePageRulesPriorities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdatePageRulesPrioritiesRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).UpdatePageRulesPriorities(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_UpdatePageRulesPriorities_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).UpdatePageRulesPriorities(ctx, req.(*UpdatePageRulesPrioritiesRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_UpdateRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateRuleSetRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).UpdateRuleSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_UpdateRuleSet_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).UpdateRuleSet(ctx, req.(*UpdateRuleSetRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_GetRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetRuleSetRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).GetRuleSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_GetRuleSet_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).GetRuleSet(ctx, req.(*GetRuleSetRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_ListZoneRuleSets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListZoneRuleSetsRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).ListZoneRuleSets(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_ListZoneRuleSets_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).ListZoneRuleSets(ctx, req.(*ListZoneRuleSetsRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_CreateZoneRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateZoneRuleSetRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).CreateZoneRuleSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_CreateZoneRuleSet_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).CreateZoneRuleSet(ctx, req.(*CreateZoneRuleSetRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_DeleteZoneRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteZoneRuleSetRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).DeleteZoneRuleSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_DeleteZoneRuleSet_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).DeleteZoneRuleSet(ctx, req.(*DeleteZoneRuleSetRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_UpdateArgoSetting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateArgoRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).UpdateArgoSetting(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_UpdateArgoSetting_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).UpdateArgoSetting(ctx, req.(*UpdateArgoRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_GetArgoSetting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(IdRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).GetArgoSetting(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_GetArgoSetting_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).GetArgoSetting(ctx, req.(*IdRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_GetArgoSettingSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(IdRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).GetArgoSettingSubscription(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_GetArgoSettingSubscription_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).GetArgoSettingSubscription(ctx, req.(*IdRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_CreateArgoSettingSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(IdRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).CreateArgoSettingSubscription(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_CreateArgoSettingSubscription_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).CreateArgoSettingSubscription(ctx, req.(*IdRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_SetSmartTieredCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SetSmartTieredCacheRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).SetSmartTieredCache(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_SetSmartTieredCache_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).SetSmartTieredCache(ctx, req.(*SetSmartTieredCacheRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_UpdateAlwaysUseHttps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateAlwaysUseHttpsRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).UpdateAlwaysUseHttps(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: ZoneCloudflare_UpdateAlwaysUseHttps_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).UpdateAlwaysUseHttps(ctx, req.(*UpdateAlwaysUseHttpsRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- // ZoneCloudflare_ServiceDesc is the grpc.ServiceDesc for ZoneCloudflare service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var ZoneCloudflare_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "cloudflareApi.zone.ZoneCloudflare",
- HandlerType: (*ZoneCloudflareServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "ZoneIDByNameCloudflare",
- Handler: _ZoneCloudflare_ZoneIDByNameCloudflare_Handler,
- },
- {
- MethodName: "ZoneDetails",
- Handler: _ZoneCloudflare_ZoneDetails_Handler,
- },
- {
- MethodName: "GetZones",
- Handler: _ZoneCloudflare_GetZones_Handler,
- },
- {
- MethodName: "EditZone",
- Handler: _ZoneCloudflare_EditZone_Handler,
- },
- {
- MethodName: "DeleteZone",
- Handler: _ZoneCloudflare_DeleteZone_Handler,
- },
- {
- MethodName: "ListZones",
- Handler: _ZoneCloudflare_ListZones_Handler,
- },
- {
- MethodName: "ListZonesByAccountId",
- Handler: _ZoneCloudflare_ListZonesByAccountId_Handler,
- },
- {
- MethodName: "ActivationCheck",
- Handler: _ZoneCloudflare_ActivationCheck_Handler,
- },
- {
- MethodName: "CreateZone",
- Handler: _ZoneCloudflare_CreateZone_Handler,
- },
- {
- MethodName: "SetZonePlan",
- Handler: _ZoneCloudflare_SetZonePlan_Handler,
- },
- {
- MethodName: "ListPageRule",
- Handler: _ZoneCloudflare_ListPageRule_Handler,
- },
- {
- MethodName: "CreatePageRule",
- Handler: _ZoneCloudflare_CreatePageRule_Handler,
- },
- {
- MethodName: "UpdatePageRule",
- Handler: _ZoneCloudflare_UpdatePageRule_Handler,
- },
- {
- MethodName: "DeletePageRule",
- Handler: _ZoneCloudflare_DeletePageRule_Handler,
- },
- {
- MethodName: "UpdatePageRulesPriorities",
- Handler: _ZoneCloudflare_UpdatePageRulesPriorities_Handler,
- },
- {
- MethodName: "UpdateRuleSet",
- Handler: _ZoneCloudflare_UpdateRuleSet_Handler,
- },
- {
- MethodName: "GetRuleSet",
- Handler: _ZoneCloudflare_GetRuleSet_Handler,
- },
- {
- MethodName: "ListZoneRuleSets",
- Handler: _ZoneCloudflare_ListZoneRuleSets_Handler,
- },
- {
- MethodName: "CreateZoneRuleSet",
- Handler: _ZoneCloudflare_CreateZoneRuleSet_Handler,
- },
- {
- MethodName: "DeleteZoneRuleSet",
- Handler: _ZoneCloudflare_DeleteZoneRuleSet_Handler,
- },
- {
- MethodName: "UpdateArgoSetting",
- Handler: _ZoneCloudflare_UpdateArgoSetting_Handler,
- },
- {
- MethodName: "GetArgoSetting",
- Handler: _ZoneCloudflare_GetArgoSetting_Handler,
- },
- {
- MethodName: "GetArgoSettingSubscription",
- Handler: _ZoneCloudflare_GetArgoSettingSubscription_Handler,
- },
- {
- MethodName: "CreateArgoSettingSubscription",
- Handler: _ZoneCloudflare_CreateArgoSettingSubscription_Handler,
- },
- {
- MethodName: "SetSmartTieredCache",
- Handler: _ZoneCloudflare_SetSmartTieredCache_Handler,
- },
- {
- MethodName: "UpdateAlwaysUseHttps",
- Handler: _ZoneCloudflare_UpdateAlwaysUseHttps_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "zone.proto",
- }
|