apiusage

package
v2.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UpsertAPIUsageReceiverResponse_Status_name = map[int32]string{
		0: "UNKNOWN_STATUS",
		1: "SUCCESS",
		2: "FAILED",
	}
	UpsertAPIUsageReceiverResponse_Status_value = map[string]int32{
		"UNKNOWN_STATUS": 0,
		"SUCCESS":        1,
		"FAILED":         2,
	}
)

Enum value maps for UpsertAPIUsageReceiverResponse_Status.

View Source
var (
	APIUsageNotifyResponse_Status_name = map[int32]string{
		0: "UNKNOWN_STATUS",
		1: "SUCCESS",
		2: "FAILED",
	}
	APIUsageNotifyResponse_Status_value = map[string]int32{
		"UNKNOWN_STATUS": 0,
		"SUCCESS":        1,
		"FAILED":         2,
	}
)

Enum value maps for APIUsageNotifyResponse_Status.

View Source
var File_mpc_virtual_service_platform_apiusage_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type APIUsageNotifyResponse

type APIUsageNotifyResponse struct {
	Status APIUsageNotifyResponse_Status `` /* 128-byte string literal not displayed */
	// 异常时返回原因
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*APIUsageNotifyResponse) Descriptor deprecated

func (*APIUsageNotifyResponse) Descriptor() ([]byte, []int)

Deprecated: Use APIUsageNotifyResponse.ProtoReflect.Descriptor instead.

func (*APIUsageNotifyResponse) GetMsg

func (x *APIUsageNotifyResponse) GetMsg() string

func (*APIUsageNotifyResponse) GetStatus

func (*APIUsageNotifyResponse) ProtoMessage

func (*APIUsageNotifyResponse) ProtoMessage()

func (*APIUsageNotifyResponse) ProtoReflect

func (x *APIUsageNotifyResponse) ProtoReflect() protoreflect.Message

func (*APIUsageNotifyResponse) Reset

func (x *APIUsageNotifyResponse) Reset()

func (*APIUsageNotifyResponse) String

func (x *APIUsageNotifyResponse) String() string

type APIUsageNotifyResponse_Status

type APIUsageNotifyResponse_Status int32
const (
	APIUsageNotifyResponse_UNKNOWN_STATUS APIUsageNotifyResponse_Status = 0
	APIUsageNotifyResponse_SUCCESS        APIUsageNotifyResponse_Status = 1
	APIUsageNotifyResponse_FAILED         APIUsageNotifyResponse_Status = 2
)

func (APIUsageNotifyResponse_Status) Descriptor

func (APIUsageNotifyResponse_Status) Enum

func (APIUsageNotifyResponse_Status) EnumDescriptor deprecated

func (APIUsageNotifyResponse_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use APIUsageNotifyResponse_Status.Descriptor instead.

func (APIUsageNotifyResponse_Status) Number

func (APIUsageNotifyResponse_Status) String

func (APIUsageNotifyResponse_Status) Type

type ListAPIUsagesRequest

type ListAPIUsagesRequest struct {
	Paginator      *paginator.Paginator      `protobuf:"bytes,1,opt,name=paginator,proto3" json:"paginator,omitempty"`
	Type           api_usage.APIUsage_Type   `protobuf:"varint,2,opt,name=type,proto3,enum=sudo.protobuf.api_usage.APIUsage_Type" json:"type,omitempty"`
	Status         api_usage.APIUsage_Status `protobuf:"varint,3,opt,name=status,proto3,enum=sudo.protobuf.api_usage.APIUsage_Status" json:"status,omitempty"`
	CreateTimeFrom int64                     `protobuf:"varint,4,opt,name=create_time_from,json=createTimeFrom,proto3" json:"create_time_from,omitempty"`
	CreateTimeTo   int64                     `protobuf:"varint,5,opt,name=create_time_to,json=createTimeTo,proto3" json:"create_time_to,omitempty"`
	PartyId        string                    `protobuf:"bytes,6,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	Caller         string                    `protobuf:"bytes,7,opt,name=caller,proto3" json:"caller,omitempty"`
	ApiId          string                    `protobuf:"bytes,8,opt,name=api_id,json=apiId,proto3" json:"api_id,omitempty"`
	IsClient       bool                      `protobuf:"varint,9,opt,name=is_client,json=isClient,proto3" json:"is_client,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAPIUsagesRequest) Descriptor deprecated

func (*ListAPIUsagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAPIUsagesRequest.ProtoReflect.Descriptor instead.

func (*ListAPIUsagesRequest) GetApiId

func (x *ListAPIUsagesRequest) GetApiId() string

func (*ListAPIUsagesRequest) GetCaller

func (x *ListAPIUsagesRequest) GetCaller() string

func (*ListAPIUsagesRequest) GetCreateTimeFrom

func (x *ListAPIUsagesRequest) GetCreateTimeFrom() int64

func (*ListAPIUsagesRequest) GetCreateTimeTo

func (x *ListAPIUsagesRequest) GetCreateTimeTo() int64

func (*ListAPIUsagesRequest) GetIsClient

func (x *ListAPIUsagesRequest) GetIsClient() bool

func (*ListAPIUsagesRequest) GetPaginator

func (x *ListAPIUsagesRequest) GetPaginator() *paginator.Paginator

func (*ListAPIUsagesRequest) GetPartyId

func (x *ListAPIUsagesRequest) GetPartyId() string

func (*ListAPIUsagesRequest) GetStatus

func (*ListAPIUsagesRequest) GetType

func (*ListAPIUsagesRequest) ProtoMessage

func (*ListAPIUsagesRequest) ProtoMessage()

func (*ListAPIUsagesRequest) ProtoReflect

func (x *ListAPIUsagesRequest) ProtoReflect() protoreflect.Message

func (*ListAPIUsagesRequest) Reset

func (x *ListAPIUsagesRequest) Reset()

func (*ListAPIUsagesRequest) String

func (x *ListAPIUsagesRequest) String() string

type ListAPIUsagesResponse

type ListAPIUsagesResponse struct {
	Data  []*api_usage.APIUsage `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	Total int64                 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAPIUsagesResponse) Descriptor deprecated

func (*ListAPIUsagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAPIUsagesResponse.ProtoReflect.Descriptor instead.

func (*ListAPIUsagesResponse) GetData

func (x *ListAPIUsagesResponse) GetData() []*api_usage.APIUsage

func (*ListAPIUsagesResponse) GetTotal

func (x *ListAPIUsagesResponse) GetTotal() int64

func (*ListAPIUsagesResponse) ProtoMessage

func (*ListAPIUsagesResponse) ProtoMessage()

func (*ListAPIUsagesResponse) ProtoReflect

func (x *ListAPIUsagesResponse) ProtoReflect() protoreflect.Message

func (*ListAPIUsagesResponse) Reset

func (x *ListAPIUsagesResponse) Reset()

func (*ListAPIUsagesResponse) String

func (x *ListAPIUsagesResponse) String() string

type UpsertAPIUsageReceiverRequest

type UpsertAPIUsageReceiverRequest struct {
	Url      string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Token    string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Disabled bool   `protobuf:"varint,3,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertAPIUsageReceiverRequest) Descriptor deprecated

func (*UpsertAPIUsageReceiverRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpsertAPIUsageReceiverRequest.ProtoReflect.Descriptor instead.

func (*UpsertAPIUsageReceiverRequest) GetDisabled

func (x *UpsertAPIUsageReceiverRequest) GetDisabled() bool

func (*UpsertAPIUsageReceiverRequest) GetToken

func (x *UpsertAPIUsageReceiverRequest) GetToken() string

func (*UpsertAPIUsageReceiverRequest) GetUrl

func (*UpsertAPIUsageReceiverRequest) ProtoMessage

func (*UpsertAPIUsageReceiverRequest) ProtoMessage()

func (*UpsertAPIUsageReceiverRequest) ProtoReflect

func (*UpsertAPIUsageReceiverRequest) Reset

func (x *UpsertAPIUsageReceiverRequest) Reset()

func (*UpsertAPIUsageReceiverRequest) String

type UpsertAPIUsageReceiverResponse

type UpsertAPIUsageReceiverResponse struct {
	Status UpsertAPIUsageReceiverResponse_Status `` /* 136-byte string literal not displayed */
	// 异常时返回原因
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertAPIUsageReceiverResponse) Descriptor deprecated

func (*UpsertAPIUsageReceiverResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpsertAPIUsageReceiverResponse.ProtoReflect.Descriptor instead.

func (*UpsertAPIUsageReceiverResponse) GetMsg

func (*UpsertAPIUsageReceiverResponse) GetStatus

func (*UpsertAPIUsageReceiverResponse) ProtoMessage

func (*UpsertAPIUsageReceiverResponse) ProtoMessage()

func (*UpsertAPIUsageReceiverResponse) ProtoReflect

func (*UpsertAPIUsageReceiverResponse) Reset

func (x *UpsertAPIUsageReceiverResponse) Reset()

func (*UpsertAPIUsageReceiverResponse) String

type UpsertAPIUsageReceiverResponse_Status

type UpsertAPIUsageReceiverResponse_Status int32
const (
	UpsertAPIUsageReceiverResponse_UNKNOWN_STATUS UpsertAPIUsageReceiverResponse_Status = 0
	UpsertAPIUsageReceiverResponse_SUCCESS        UpsertAPIUsageReceiverResponse_Status = 1
	UpsertAPIUsageReceiverResponse_FAILED         UpsertAPIUsageReceiverResponse_Status = 2
)

func (UpsertAPIUsageReceiverResponse_Status) Descriptor

func (UpsertAPIUsageReceiverResponse_Status) Enum

func (UpsertAPIUsageReceiverResponse_Status) EnumDescriptor deprecated

func (UpsertAPIUsageReceiverResponse_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use UpsertAPIUsageReceiverResponse_Status.Descriptor instead.

func (UpsertAPIUsageReceiverResponse_Status) Number

func (UpsertAPIUsageReceiverResponse_Status) String

func (UpsertAPIUsageReceiverResponse_Status) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL