request

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMessage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMessage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group")
)
View Source
var State_name = map[int32]string{
	0: "Unspecified",
	1: "Pending",
	2: "InProgress",
	3: "Failed",
	4: "Cancelled",
	5: "Fulfilled",
}
View Source
var State_value = map[string]int32{
	"Unspecified": 0,
	"Pending":     1,
	"InProgress":  2,
	"Failed":      3,
	"Cancelled":   4,
	"Fulfilled":   5,
}

Functions

This section is empty.

Types

type RequestStatus

type RequestStatus struct {
	// the request id
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// the current state of this request
	State State `protobuf:"varint,3,opt,name=state,proto3,enum=api.request.v1.State" json:"state,omitempty"`
	// the recommened duration to check back for an update in the request's status
	CheckDuration *types.Duration `protobuf:"bytes,4,opt,name=check_duration,json=checkDuration,proto3" json:"check_duration,omitempty"`
	// the operation being performed
	OperationType string `protobuf:"bytes,5,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"`
	// the id of the resource on which the opeartion is being performed
	ResourceId string `protobuf:"bytes,6,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// the type of the resource
	ResourceType string `protobuf:"bytes,7,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	// if the request failed, the reason for the failure
	FailureReason string `protobuf:"bytes,8,opt,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"`
	// the date and time when the request initiated
	StartTime *types.Timestamp `protobuf:"bytes,9,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// the date and time when the request completed
	FinishTime *types.Timestamp `protobuf:"bytes,10,opt,name=finish_time,json=finishTime,proto3" json:"finish_time,omitempty"`
}

func (*RequestStatus) Descriptor

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

func (*RequestStatus) Equal

func (this *RequestStatus) Equal(that interface{}) bool

func (*RequestStatus) GetCheckDuration

func (m *RequestStatus) GetCheckDuration() *types.Duration

func (*RequestStatus) GetFailureReason

func (m *RequestStatus) GetFailureReason() string

func (*RequestStatus) GetFinishTime

func (m *RequestStatus) GetFinishTime() *types.Timestamp

func (*RequestStatus) GetOperationType

func (m *RequestStatus) GetOperationType() string

func (*RequestStatus) GetRequestId

func (m *RequestStatus) GetRequestId() string

func (*RequestStatus) GetResourceId

func (m *RequestStatus) GetResourceId() string

func (*RequestStatus) GetResourceType

func (m *RequestStatus) GetResourceType() string

func (*RequestStatus) GetStartTime

func (m *RequestStatus) GetStartTime() *types.Timestamp

func (*RequestStatus) GetState

func (m *RequestStatus) GetState() State

func (*RequestStatus) GoString

func (this *RequestStatus) GoString() string

func (*RequestStatus) Marshal

func (m *RequestStatus) Marshal() (dAtA []byte, err error)

func (*RequestStatus) MarshalTo

func (m *RequestStatus) MarshalTo(dAtA []byte) (int, error)

func (*RequestStatus) MarshalToSizedBuffer

func (m *RequestStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RequestStatus) ProtoMessage

func (*RequestStatus) ProtoMessage()

func (*RequestStatus) Reset

func (m *RequestStatus) Reset()

func (*RequestStatus) Size

func (m *RequestStatus) Size() (n int)

func (*RequestStatus) String

func (this *RequestStatus) String() string

func (*RequestStatus) Unmarshal

func (m *RequestStatus) Unmarshal(dAtA []byte) error

func (*RequestStatus) XXX_DiscardUnknown

func (m *RequestStatus) XXX_DiscardUnknown()

func (*RequestStatus) XXX_Marshal

func (m *RequestStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestStatus) XXX_Merge

func (m *RequestStatus) XXX_Merge(src proto.Message)

func (*RequestStatus) XXX_Size

func (m *RequestStatus) XXX_Size() int

func (*RequestStatus) XXX_Unmarshal

func (m *RequestStatus) XXX_Unmarshal(b []byte) error

type State

type State int32
const (
	STATE_UNSPECIFIED State = 0
	STATE_PENDING     State = 1
	STATE_IN_PROGRESS State = 2
	STATE_FAILED      State = 3
	STATE_CANCELLED   State = 4
	STATE_FULFILLED   State = 5
)

func (State) EnumDescriptor

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

func (State) String

func (x State) String() string

Jump to

Keyboard shortcuts

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