|
@@ -1,8 +1,8 @@
|
|
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
|
// versions:
|
|
|
-// - protoc-gen-go-grpc v1.3.0
|
|
|
+// - protoc-gen-go-grpc v1.4.0
|
|
|
// - protoc v3.20.1
|
|
|
-// source: proto/zone.proto
|
|
|
+// source: zone.proto
|
|
|
|
|
|
package zone
|
|
|
|
|
@@ -15,8 +15,8 @@ import (
|
|
|
|
|
|
// 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.32.0 or later.
|
|
|
-const _ = grpc.SupportPackageIsVersion7
|
|
|
+// Requires gRPC-Go v1.62.0 or later.
|
|
|
+const _ = grpc.SupportPackageIsVersion8
|
|
|
|
|
|
const (
|
|
|
ZoneCloudflare_ZoneIDByNameCloudflare_FullMethodName = "/cloudflareApi.zone.ZoneCloudflare/ZoneIDByNameCloudflare"
|
|
@@ -36,11 +36,15 @@ const (
|
|
|
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.
|
|
@@ -67,12 +71,16 @@ type ZoneCloudflareClient interface {
|
|
|
// 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 {
|
|
@@ -84,8 +92,9 @@ func NewZoneCloudflareClient(cc grpc.ClientConnInterface) ZoneCloudflareClient {
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_ZoneIDByNameCloudflare_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -93,8 +102,9 @@ func (c *zoneCloudflareClient) ZoneIDByNameCloudflare(ctx context.Context, in *Z
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_ZoneDetails_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -102,8 +112,9 @@ func (c *zoneCloudflareClient) ZoneDetails(ctx context.Context, in *ZoneDetailsR
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_GetZones_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -111,8 +122,9 @@ func (c *zoneCloudflareClient) GetZones(ctx context.Context, in *GetZonesRequest
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_EditZone_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -120,8 +132,9 @@ func (c *zoneCloudflareClient) EditZone(ctx context.Context, in *EditZoneRequest
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_DeleteZone_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -129,8 +142,9 @@ func (c *zoneCloudflareClient) DeleteZone(ctx context.Context, in *DeleteZoneReq
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_ListZones_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -138,8 +152,9 @@ func (c *zoneCloudflareClient) ListZones(ctx context.Context, in *ListZonesReque
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_ListZonesByAccountId_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -147,8 +162,9 @@ func (c *zoneCloudflareClient) ListZonesByAccountId(ctx context.Context, in *Lis
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_ActivationCheck_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -156,8 +172,9 @@ func (c *zoneCloudflareClient) ActivationCheck(ctx context.Context, in *Activati
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_CreateZone_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -165,8 +182,9 @@ func (c *zoneCloudflareClient) CreateZone(ctx context.Context, in *CreateZoneReq
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_SetZonePlan_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -174,8 +192,9 @@ func (c *zoneCloudflareClient) SetZonePlan(ctx context.Context, in *SetZonePlanR
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_ListPageRule_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -183,8 +202,9 @@ func (c *zoneCloudflareClient) ListPageRule(ctx context.Context, in *ListPageRul
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_CreatePageRule_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -192,8 +212,9 @@ func (c *zoneCloudflareClient) CreatePageRule(ctx context.Context, in *CreatePag
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_UpdatePageRule_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -201,8 +222,9 @@ func (c *zoneCloudflareClient) UpdatePageRule(ctx context.Context, in *UpdatePag
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_DeletePageRule_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -210,8 +232,9 @@ func (c *zoneCloudflareClient) DeletePageRule(ctx context.Context, in *DeletePag
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_UpdatePageRulesPriorities_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -219,8 +242,9 @@ func (c *zoneCloudflareClient) UpdatePageRulesPriorities(ctx context.Context, in
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_UpdateRuleSet_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -228,8 +252,39 @@ func (c *zoneCloudflareClient) UpdateRuleSet(ctx context.Context, in *UpdateRule
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ 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
|
|
|
}
|
|
@@ -237,8 +292,9 @@ func (c *zoneCloudflareClient) GetRuleSet(ctx context.Context, in *GetRuleSetReq
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_UpdateArgoSetting_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -246,8 +302,9 @@ func (c *zoneCloudflareClient) UpdateArgoSetting(ctx context.Context, in *Update
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_GetArgoSetting_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -255,8 +312,9 @@ func (c *zoneCloudflareClient) GetArgoSetting(ctx context.Context, in *IdRequest
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_GetArgoSettingSubscription_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -264,8 +322,9 @@ func (c *zoneCloudflareClient) GetArgoSettingSubscription(ctx context.Context, i
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, ZoneCloudflare_CreateArgoSettingSubscription_FullMethodName, in, out, cOpts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -273,8 +332,19 @@ func (c *zoneCloudflareClient) CreateArgoSettingSubscription(ctx context.Context
|
|
|
}
|
|
|
|
|
|
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, opts...)
|
|
|
+ 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
|
|
|
}
|
|
@@ -305,12 +375,16 @@ type ZoneCloudflareServer interface {
|
|
|
// 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()
|
|
|
}
|
|
|
|
|
@@ -369,6 +443,15 @@ func (UnimplementedZoneCloudflareServer) UpdateRuleSet(context.Context, *UpdateR
|
|
|
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")
|
|
|
}
|
|
@@ -384,6 +467,9 @@ func (UnimplementedZoneCloudflareServer) CreateArgoSettingSubscription(context.C
|
|
|
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.
|
|
@@ -703,6 +789,60 @@ func _ZoneCloudflare_GetRuleSet_Handler(srv interface{}, ctx context.Context, de
|
|
|
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 {
|
|
@@ -793,6 +933,24 @@ func _ZoneCloudflare_SetSmartTieredCache_Handler(srv interface{}, ctx context.Co
|
|
|
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)
|
|
@@ -868,6 +1026,18 @@ var ZoneCloudflare_ServiceDesc = grpc.ServiceDesc{
|
|
|
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,
|
|
@@ -888,7 +1058,11 @@ var ZoneCloudflare_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "SetSmartTieredCache",
|
|
|
Handler: _ZoneCloudflare_SetSmartTieredCache_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "UpdateAlwaysUseHttps",
|
|
|
+ Handler: _ZoneCloudflare_UpdateAlwaysUseHttps_Handler,
|
|
|
+ },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
- Metadata: "proto/zone.proto",
|
|
|
+ Metadata: "zone.proto",
|
|
|
}
|