Documentation ¶
Overview ¶
Package support/v1 contains the API used to fetch support information.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ForEachPlan(ctx context.Context, ...) error
- func RegisterSupportServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSupportServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SupportServiceClient) error
- func RegisterSupportServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSupportServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SupportServiceServer) error
- func RegisterSupportServiceServer(s *grpc.Server, srv SupportServiceServer)
- type FaqGroup
- func (*FaqGroup) Descriptor() ([]byte, []int)
- func (m *FaqGroup) GetId() string
- func (m *FaqGroup) GetName() string
- func (m *FaqGroup) Marshal() (dAtA []byte, err error)
- func (m *FaqGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *FaqGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FaqGroup) ProtoMessage()
- func (m *FaqGroup) Reset()
- func (m *FaqGroup) Size() (n int)
- func (m *FaqGroup) String() string
- func (m *FaqGroup) Unmarshal(dAtA []byte) error
- func (m *FaqGroup) XXX_DiscardUnknown()
- func (m *FaqGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FaqGroup) XXX_Merge(src proto.Message)
- func (m *FaqGroup) XXX_Size() int
- func (m *FaqGroup) XXX_Unmarshal(b []byte) error
- type FaqGroupEntry
- func (*FaqGroupEntry) Descriptor() ([]byte, []int)
- func (m *FaqGroupEntry) GetAnswer() string
- func (m *FaqGroupEntry) GetQuestion() string
- func (m *FaqGroupEntry) Marshal() (dAtA []byte, err error)
- func (m *FaqGroupEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *FaqGroupEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FaqGroupEntry) ProtoMessage()
- func (m *FaqGroupEntry) Reset()
- func (m *FaqGroupEntry) Size() (n int)
- func (m *FaqGroupEntry) String() string
- func (m *FaqGroupEntry) Unmarshal(dAtA []byte) error
- func (m *FaqGroupEntry) XXX_DiscardUnknown()
- func (m *FaqGroupEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FaqGroupEntry) XXX_Merge(src proto.Message)
- func (m *FaqGroupEntry) XXX_Size() int
- func (m *FaqGroupEntry) XXX_Unmarshal(b []byte) error
- type FaqGroupEntryList
- func (*FaqGroupEntryList) Descriptor() ([]byte, []int)
- func (m *FaqGroupEntryList) GetItems() []*FaqGroupEntry
- func (m *FaqGroupEntryList) Marshal() (dAtA []byte, err error)
- func (m *FaqGroupEntryList) MarshalTo(dAtA []byte) (int, error)
- func (m *FaqGroupEntryList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FaqGroupEntryList) ProtoMessage()
- func (m *FaqGroupEntryList) Reset()
- func (m *FaqGroupEntryList) Size() (n int)
- func (m *FaqGroupEntryList) String() string
- func (m *FaqGroupEntryList) Unmarshal(dAtA []byte) error
- func (m *FaqGroupEntryList) XXX_DiscardUnknown()
- func (m *FaqGroupEntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FaqGroupEntryList) XXX_Merge(src proto.Message)
- func (m *FaqGroupEntryList) XXX_Size() int
- func (m *FaqGroupEntryList) XXX_Unmarshal(b []byte) error
- type FaqGroupList
- func (*FaqGroupList) Descriptor() ([]byte, []int)
- func (m *FaqGroupList) GetItems() []*FaqGroup
- func (m *FaqGroupList) Marshal() (dAtA []byte, err error)
- func (m *FaqGroupList) MarshalTo(dAtA []byte) (int, error)
- func (m *FaqGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FaqGroupList) ProtoMessage()
- func (m *FaqGroupList) Reset()
- func (m *FaqGroupList) Size() (n int)
- func (m *FaqGroupList) String() string
- func (m *FaqGroupList) Unmarshal(dAtA []byte) error
- func (m *FaqGroupList) XXX_DiscardUnknown()
- func (m *FaqGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FaqGroupList) XXX_Merge(src proto.Message)
- func (m *FaqGroupList) XXX_Size() int
- func (m *FaqGroupList) XXX_Unmarshal(b []byte) error
- type ListPlansRequest
- func (*ListPlansRequest) Descriptor() ([]byte, []int)
- func (m *ListPlansRequest) GetModel() string
- func (m *ListPlansRequest) GetOptions() *v1.ListOptions
- func (m *ListPlansRequest) GetOrganizationId() string
- func (m *ListPlansRequest) Marshal() (dAtA []byte, err error)
- func (m *ListPlansRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListPlansRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListPlansRequest) ProtoMessage()
- func (m *ListPlansRequest) Reset()
- func (m *ListPlansRequest) Size() (n int)
- func (m *ListPlansRequest) String() string
- func (m *ListPlansRequest) Unmarshal(dAtA []byte) error
- func (m *ListPlansRequest) XXX_DiscardUnknown()
- func (m *ListPlansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListPlansRequest) XXX_Merge(src proto.Message)
- func (m *ListPlansRequest) XXX_Size() int
- func (m *ListPlansRequest) XXX_Unmarshal(b []byte) error
- type Plan
- func (*Plan) Descriptor() ([]byte, []int)
- func (m *Plan) GetDescription() string
- func (m *Plan) GetFirstResponseTimes() *ResponseTimes
- func (m *Plan) GetId() string
- func (m *Plan) GetIsDefault() bool
- func (m *Plan) GetIsUnavailable() bool
- func (m *Plan) GetName() string
- func (m *Plan) GetSupportHours() string
- func (m *Plan) Marshal() (dAtA []byte, err error)
- func (m *Plan) MarshalTo(dAtA []byte) (int, error)
- func (m *Plan) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Plan) ProtoMessage()
- func (m *Plan) Reset()
- func (m *Plan) Size() (n int)
- func (m *Plan) String() string
- func (m *Plan) Unmarshal(dAtA []byte) error
- func (m *Plan) XXX_DiscardUnknown()
- func (m *Plan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Plan) XXX_Merge(src proto.Message)
- func (m *Plan) XXX_Size() int
- func (m *Plan) XXX_Unmarshal(b []byte) error
- type PlanCallback
- type PlanList
- func (*PlanList) Descriptor() ([]byte, []int)
- func (m *PlanList) GetItems() []*Plan
- func (m *PlanList) Marshal() (dAtA []byte, err error)
- func (m *PlanList) MarshalTo(dAtA []byte) (int, error)
- func (m *PlanList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PlanList) ProtoMessage()
- func (m *PlanList) Reset()
- func (m *PlanList) Size() (n int)
- func (m *PlanList) String() string
- func (m *PlanList) Unmarshal(dAtA []byte) error
- func (m *PlanList) XXX_DiscardUnknown()
- func (m *PlanList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlanList) XXX_Merge(src proto.Message)
- func (m *PlanList) XXX_Size() int
- func (m *PlanList) XXX_Unmarshal(b []byte) error
- type ResponseTimes
- func (*ResponseTimes) Descriptor() ([]byte, []int)
- func (m *ResponseTimes) GetCritical() int32
- func (m *ResponseTimes) GetHigh() int32
- func (m *ResponseTimes) GetLow() int32
- func (m *ResponseTimes) GetNormal() int32
- func (m *ResponseTimes) Marshal() (dAtA []byte, err error)
- func (m *ResponseTimes) MarshalTo(dAtA []byte) (int, error)
- func (m *ResponseTimes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResponseTimes) ProtoMessage()
- func (m *ResponseTimes) Reset()
- func (m *ResponseTimes) Size() (n int)
- func (m *ResponseTimes) String() string
- func (m *ResponseTimes) Unmarshal(dAtA []byte) error
- func (m *ResponseTimes) XXX_DiscardUnknown()
- func (m *ResponseTimes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResponseTimes) XXX_Merge(src proto.Message)
- func (m *ResponseTimes) XXX_Size() int
- func (m *ResponseTimes) XXX_Unmarshal(b []byte) error
- type SupportRequest
- func (*SupportRequest) Descriptor() ([]byte, []int)
- func (m *SupportRequest) GetDeploymentId() string
- func (m *SupportRequest) GetDescription() string
- func (m *SupportRequest) GetEmailAddress() string
- func (m *SupportRequest) GetId() string
- func (m *SupportRequest) GetOrganizationId() string
- func (m *SupportRequest) GetProjectId() string
- func (m *SupportRequest) GetSeverity() string
- func (m *SupportRequest) GetTitle() string
- func (m *SupportRequest) GetUserId() string
- func (m *SupportRequest) GetUserName() string
- func (m *SupportRequest) Marshal() (dAtA []byte, err error)
- func (m *SupportRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SupportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SupportRequest) ProtoMessage()
- func (m *SupportRequest) Reset()
- func (m *SupportRequest) Size() (n int)
- func (m *SupportRequest) String() string
- func (m *SupportRequest) Unmarshal(dAtA []byte) error
- func (m *SupportRequest) XXX_DiscardUnknown()
- func (m *SupportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SupportRequest) XXX_Merge(src proto.Message)
- func (m *SupportRequest) XXX_Size() int
- func (m *SupportRequest) XXX_Unmarshal(b []byte) error
- type SupportServiceClient
- type SupportServiceServer
- type UnimplementedSupportServiceServer
- func (*UnimplementedSupportServiceServer) CreateSupportRequest(ctx context.Context, req *SupportRequest) (*SupportRequest, error)
- func (*UnimplementedSupportServiceServer) GetAPIVersion(ctx context.Context, req *v1.Empty) (*v1.Version, error)
- func (*UnimplementedSupportServiceServer) GetPlan(ctx context.Context, req *v1.IDOptions) (*Plan, error)
- func (*UnimplementedSupportServiceServer) ListFaqGroupEntries(ctx context.Context, req *v1.ListOptions) (*FaqGroupEntryList, error)
- func (*UnimplementedSupportServiceServer) ListFaqGroups(ctx context.Context, req *v1.ListOptions) (*FaqGroupList, error)
- func (*UnimplementedSupportServiceServer) ListPlans(ctx context.Context, req *ListPlansRequest) (*PlanList, error)
Constants ¶
const ( // Critical severity. SupportRequestSeverityCritical = "critical" // High severity. SupportRequestSeverityHigh = "high" // Normal severity. SupportRequestSeverityNormal = "normal" // Low severity. SupportRequestSeverityLow = "low" )
const ( // SupportHoursBusiness indicates that support is handled during business hours. SupportHoursBusiness = "business" // SupportHours24x7 indicates that support is handled 24/7. SupportHours24x7 = "24x7" )
const ( // APIID contains identifier of this API APIID = "support/v1" // APIMajorVersion contains major version of this API APIMajorVersion = 1 // APIMinorVersion contains minor version of this API APIMinorVersion = 2 // APIPatchVersion contains patch version of this API APIPatchVersion = 0 )
Variables ¶
Functions ¶
func ForEachPlan ¶
func ForEachPlan(ctx context.Context, listFunc func(ctx context.Context, req *ListPlansRequest) (*PlanList, error), req ListPlansRequest, cb PlanCallback) error
ForEachPlan iterates over all support plans that match given given filter, invoking the given callback for each plan.
func RegisterSupportServiceHandler ¶
func RegisterSupportServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSupportServiceHandler registers the http handlers for service SupportService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSupportServiceHandlerClient ¶
func RegisterSupportServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SupportServiceClient) error
RegisterSupportServiceHandlerClient registers the http handlers for service SupportService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SupportServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SupportServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SupportServiceClient" to call the correct interceptors.
func RegisterSupportServiceHandlerFromEndpoint ¶
func RegisterSupportServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSupportServiceHandlerFromEndpoint is same as RegisterSupportServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSupportServiceHandlerServer ¶
func RegisterSupportServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SupportServiceServer) error
RegisterSupportServiceHandlerServer registers the http handlers for service SupportService to "mux". UnaryRPC :call SupportServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterSupportServiceServer ¶
func RegisterSupportServiceServer(s *grpc.Server, srv SupportServiceServer)
Types ¶
type FaqGroup ¶
type FaqGroup struct { // ID of the FAQ Group Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Name of the FAQ Group Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FaqGroup contains groups of faq entries
func (*FaqGroup) Descriptor ¶
func (*FaqGroup) MarshalToSizedBuffer ¶
func (*FaqGroup) ProtoMessage ¶
func (*FaqGroup) ProtoMessage()
func (*FaqGroup) XXX_DiscardUnknown ¶
func (m *FaqGroup) XXX_DiscardUnknown()
func (*FaqGroup) XXX_Marshal ¶
func (*FaqGroup) XXX_Unmarshal ¶
type FaqGroupEntry ¶
type FaqGroupEntry struct { // The question of this entry Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` // The answer to the question in this entry Answer string `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FaqGroupEntry contains entries for a group
func (*FaqGroupEntry) Descriptor ¶
func (*FaqGroupEntry) Descriptor() ([]byte, []int)
func (*FaqGroupEntry) GetAnswer ¶
func (m *FaqGroupEntry) GetAnswer() string
func (*FaqGroupEntry) GetQuestion ¶
func (m *FaqGroupEntry) GetQuestion() string
func (*FaqGroupEntry) Marshal ¶
func (m *FaqGroupEntry) Marshal() (dAtA []byte, err error)
func (*FaqGroupEntry) MarshalToSizedBuffer ¶
func (m *FaqGroupEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FaqGroupEntry) ProtoMessage ¶
func (*FaqGroupEntry) ProtoMessage()
func (*FaqGroupEntry) Reset ¶
func (m *FaqGroupEntry) Reset()
func (*FaqGroupEntry) Size ¶
func (m *FaqGroupEntry) Size() (n int)
func (*FaqGroupEntry) String ¶
func (m *FaqGroupEntry) String() string
func (*FaqGroupEntry) Unmarshal ¶
func (m *FaqGroupEntry) Unmarshal(dAtA []byte) error
func (*FaqGroupEntry) XXX_DiscardUnknown ¶
func (m *FaqGroupEntry) XXX_DiscardUnknown()
func (*FaqGroupEntry) XXX_Marshal ¶
func (m *FaqGroupEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FaqGroupEntry) XXX_Merge ¶
func (m *FaqGroupEntry) XXX_Merge(src proto.Message)
func (*FaqGroupEntry) XXX_Size ¶
func (m *FaqGroupEntry) XXX_Size() int
func (*FaqGroupEntry) XXX_Unmarshal ¶
func (m *FaqGroupEntry) XXX_Unmarshal(b []byte) error
type FaqGroupEntryList ¶
type FaqGroupEntryList struct { Items []*FaqGroupEntry `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List of faq group entries.
func (*FaqGroupEntryList) Descriptor ¶
func (*FaqGroupEntryList) Descriptor() ([]byte, []int)
func (*FaqGroupEntryList) GetItems ¶
func (m *FaqGroupEntryList) GetItems() []*FaqGroupEntry
func (*FaqGroupEntryList) Marshal ¶
func (m *FaqGroupEntryList) Marshal() (dAtA []byte, err error)
func (*FaqGroupEntryList) MarshalTo ¶
func (m *FaqGroupEntryList) MarshalTo(dAtA []byte) (int, error)
func (*FaqGroupEntryList) MarshalToSizedBuffer ¶
func (m *FaqGroupEntryList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FaqGroupEntryList) ProtoMessage ¶
func (*FaqGroupEntryList) ProtoMessage()
func (*FaqGroupEntryList) Reset ¶
func (m *FaqGroupEntryList) Reset()
func (*FaqGroupEntryList) Size ¶
func (m *FaqGroupEntryList) Size() (n int)
func (*FaqGroupEntryList) String ¶
func (m *FaqGroupEntryList) String() string
func (*FaqGroupEntryList) Unmarshal ¶
func (m *FaqGroupEntryList) Unmarshal(dAtA []byte) error
func (*FaqGroupEntryList) XXX_DiscardUnknown ¶
func (m *FaqGroupEntryList) XXX_DiscardUnknown()
func (*FaqGroupEntryList) XXX_Marshal ¶
func (m *FaqGroupEntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FaqGroupEntryList) XXX_Merge ¶
func (m *FaqGroupEntryList) XXX_Merge(src proto.Message)
func (*FaqGroupEntryList) XXX_Size ¶
func (m *FaqGroupEntryList) XXX_Size() int
func (*FaqGroupEntryList) XXX_Unmarshal ¶
func (m *FaqGroupEntryList) XXX_Unmarshal(b []byte) error
type FaqGroupList ¶
type FaqGroupList struct { Items []*FaqGroup `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List of faq groups.
func (*FaqGroupList) Descriptor ¶
func (*FaqGroupList) Descriptor() ([]byte, []int)
func (*FaqGroupList) GetItems ¶
func (m *FaqGroupList) GetItems() []*FaqGroup
func (*FaqGroupList) Marshal ¶
func (m *FaqGroupList) Marshal() (dAtA []byte, err error)
func (*FaqGroupList) MarshalToSizedBuffer ¶
func (m *FaqGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FaqGroupList) ProtoMessage ¶
func (*FaqGroupList) ProtoMessage()
func (*FaqGroupList) Reset ¶
func (m *FaqGroupList) Reset()
func (*FaqGroupList) Size ¶
func (m *FaqGroupList) Size() (n int)
func (*FaqGroupList) String ¶
func (m *FaqGroupList) String() string
func (*FaqGroupList) Unmarshal ¶
func (m *FaqGroupList) Unmarshal(dAtA []byte) error
func (*FaqGroupList) XXX_DiscardUnknown ¶
func (m *FaqGroupList) XXX_DiscardUnknown()
func (*FaqGroupList) XXX_Marshal ¶
func (m *FaqGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FaqGroupList) XXX_Merge ¶
func (m *FaqGroupList) XXX_Merge(src proto.Message)
func (*FaqGroupList) XXX_Size ¶
func (m *FaqGroupList) XXX_Size() int
func (*FaqGroupList) XXX_Unmarshal ¶
func (m *FaqGroupList) XXX_Unmarshal(b []byte) error
type ListPlansRequest ¶
type ListPlansRequest struct { // Common list options Options *v1.ListOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` // If set, list plans as they are available for the organization identified by this ID. OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // If set, list plans as they are available for the deployment model identified by this field. Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Arguments for a ListPlans request
func (*ListPlansRequest) Descriptor ¶
func (*ListPlansRequest) Descriptor() ([]byte, []int)
func (*ListPlansRequest) GetModel ¶ added in v0.63.12
func (m *ListPlansRequest) GetModel() string
func (*ListPlansRequest) GetOptions ¶
func (m *ListPlansRequest) GetOptions() *v1.ListOptions
func (*ListPlansRequest) GetOrganizationId ¶
func (m *ListPlansRequest) GetOrganizationId() string
func (*ListPlansRequest) Marshal ¶
func (m *ListPlansRequest) Marshal() (dAtA []byte, err error)
func (*ListPlansRequest) MarshalToSizedBuffer ¶
func (m *ListPlansRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListPlansRequest) ProtoMessage ¶
func (*ListPlansRequest) ProtoMessage()
func (*ListPlansRequest) Reset ¶
func (m *ListPlansRequest) Reset()
func (*ListPlansRequest) Size ¶
func (m *ListPlansRequest) Size() (n int)
func (*ListPlansRequest) String ¶
func (m *ListPlansRequest) String() string
func (*ListPlansRequest) Unmarshal ¶
func (m *ListPlansRequest) Unmarshal(dAtA []byte) error
func (*ListPlansRequest) XXX_DiscardUnknown ¶
func (m *ListPlansRequest) XXX_DiscardUnknown()
func (*ListPlansRequest) XXX_Marshal ¶
func (m *ListPlansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPlansRequest) XXX_Merge ¶
func (m *ListPlansRequest) XXX_Merge(src proto.Message)
func (*ListPlansRequest) XXX_Size ¶
func (m *ListPlansRequest) XXX_Size() int
func (*ListPlansRequest) XXX_Unmarshal ¶
func (m *ListPlansRequest) XXX_Unmarshal(b []byte) error
type Plan ¶
type Plan struct { // System identifier of the plan. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Name of the plan. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // If set, this plan is the default support plan. IsDefault bool `protobuf:"varint,3,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` // Human readable description of the plan Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` IsUnavailable bool `protobuf:"varint,5,opt,name=is_unavailable,json=isUnavailable,proto3" json:"is_unavailable,omitempty"` // SLA times to first response for various situations. // When this plan is unavailable, this field is optional. FirstResponseTimes *ResponseTimes `protobuf:"bytes,6,opt,name=first_response_times,json=firstResponseTimes,proto3" json:"first_response_times,omitempty"` // Support hours applicable to the SLA. // Possible values are "business" and "24x7". SupportHours string `protobuf:"bytes,7,opt,name=support_hours,json=supportHours,proto3" json:"support_hours,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Plan represents a specific support plan such as Bronze, Silver or Gold.
func (*Plan) Descriptor ¶
func (*Plan) GetDescription ¶
func (*Plan) GetFirstResponseTimes ¶
func (m *Plan) GetFirstResponseTimes() *ResponseTimes
func (*Plan) GetIsDefault ¶
func (*Plan) GetIsUnavailable ¶
func (*Plan) GetSupportHours ¶ added in v0.49.1
func (*Plan) ProtoMessage ¶
func (*Plan) ProtoMessage()
func (*Plan) XXX_DiscardUnknown ¶
func (m *Plan) XXX_DiscardUnknown()
func (*Plan) XXX_Unmarshal ¶
type PlanCallback ¶
PlanCallback is a callback for individual support plan.
type PlanList ¶
type PlanList struct { Items []*Plan `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List of plans.
func (*PlanList) Descriptor ¶
func (*PlanList) MarshalToSizedBuffer ¶
func (*PlanList) ProtoMessage ¶
func (*PlanList) ProtoMessage()
func (*PlanList) XXX_DiscardUnknown ¶
func (m *PlanList) XXX_DiscardUnknown()
func (*PlanList) XXX_Marshal ¶
func (*PlanList) XXX_Unmarshal ¶
type ResponseTimes ¶
type ResponseTimes struct { // Response time for operation-impeding Error in a production environment. Critical int32 `protobuf:"varint,1,opt,name=critical,proto3" json:"critical,omitempty"` // Response time for operation-limiting error. High int32 `protobuf:"varint,2,opt,name=high,proto3" json:"high,omitempty"` // Response time for minor error. Normal int32 `protobuf:"varint,3,opt,name=normal,proto3" json:"normal,omitempty"` // Response time for usage question. Low int32 `protobuf:"varint,4,opt,name=low,proto3" json:"low,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response for various categories on situations. All values are in minutes. A value of 0 means "best effort".
func (*ResponseTimes) Descriptor ¶
func (*ResponseTimes) Descriptor() ([]byte, []int)
func (*ResponseTimes) GetCritical ¶
func (m *ResponseTimes) GetCritical() int32
func (*ResponseTimes) GetHigh ¶
func (m *ResponseTimes) GetHigh() int32
func (*ResponseTimes) GetLow ¶
func (m *ResponseTimes) GetLow() int32
func (*ResponseTimes) GetNormal ¶
func (m *ResponseTimes) GetNormal() int32
func (*ResponseTimes) Marshal ¶
func (m *ResponseTimes) Marshal() (dAtA []byte, err error)
func (*ResponseTimes) MarshalToSizedBuffer ¶
func (m *ResponseTimes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResponseTimes) ProtoMessage ¶
func (*ResponseTimes) ProtoMessage()
func (*ResponseTimes) Reset ¶
func (m *ResponseTimes) Reset()
func (*ResponseTimes) Size ¶
func (m *ResponseTimes) Size() (n int)
func (*ResponseTimes) String ¶
func (m *ResponseTimes) String() string
func (*ResponseTimes) Unmarshal ¶
func (m *ResponseTimes) Unmarshal(dAtA []byte) error
func (*ResponseTimes) XXX_DiscardUnknown ¶
func (m *ResponseTimes) XXX_DiscardUnknown()
func (*ResponseTimes) XXX_Marshal ¶
func (m *ResponseTimes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResponseTimes) XXX_Merge ¶
func (m *ResponseTimes) XXX_Merge(src proto.Message)
func (*ResponseTimes) XXX_Size ¶
func (m *ResponseTimes) XXX_Size() int
func (*ResponseTimes) XXX_Unmarshal ¶
func (m *ResponseTimes) XXX_Unmarshal(b []byte) error
type SupportRequest ¶
type SupportRequest struct { // ID of the request // This is a read-only field Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Name of the user who submitted the support request // This is a required field UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` // User ID is only provided if the user submitting the request has authenticated // This is an optional field UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Email address of the user if applicable submitting the request EmailAddress string `protobuf:"bytes,4,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"` // Optional identifier of the organization that is the subject of the support request OrganizationId string `protobuf:"bytes,5,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // Optional identifier of the project that is the subject of the support request ProjectId string `protobuf:"bytes,6,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // Optional identifier of the deployment that is the subject of the support request DeploymentId string `protobuf:"bytes,7,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"` // Desciption which will contain the details provided by the submitter Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` // Severity of the request. Can be one of the following: (low|normal|high|critical) Severity string `protobuf:"bytes,9,opt,name=severity,proto3" json:"severity,omitempty"` // Optional title which will contain the summary provided by the submitter (max 100 characters) // If not provided a title will be extracted from the description. Title string `protobuf:"bytes,10,opt,name=title,proto3" json:"title,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SupportRequest contains information about the request
func (*SupportRequest) Descriptor ¶
func (*SupportRequest) Descriptor() ([]byte, []int)
func (*SupportRequest) GetDeploymentId ¶
func (m *SupportRequest) GetDeploymentId() string
func (*SupportRequest) GetDescription ¶
func (m *SupportRequest) GetDescription() string
func (*SupportRequest) GetEmailAddress ¶
func (m *SupportRequest) GetEmailAddress() string
func (*SupportRequest) GetId ¶
func (m *SupportRequest) GetId() string
func (*SupportRequest) GetOrganizationId ¶
func (m *SupportRequest) GetOrganizationId() string
func (*SupportRequest) GetProjectId ¶
func (m *SupportRequest) GetProjectId() string
func (*SupportRequest) GetSeverity ¶
func (m *SupportRequest) GetSeverity() string
func (*SupportRequest) GetTitle ¶ added in v0.77.8
func (m *SupportRequest) GetTitle() string
func (*SupportRequest) GetUserId ¶
func (m *SupportRequest) GetUserId() string
func (*SupportRequest) GetUserName ¶
func (m *SupportRequest) GetUserName() string
func (*SupportRequest) Marshal ¶
func (m *SupportRequest) Marshal() (dAtA []byte, err error)
func (*SupportRequest) MarshalToSizedBuffer ¶
func (m *SupportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SupportRequest) ProtoMessage ¶
func (*SupportRequest) ProtoMessage()
func (*SupportRequest) Reset ¶
func (m *SupportRequest) Reset()
func (*SupportRequest) Size ¶
func (m *SupportRequest) Size() (n int)
func (*SupportRequest) String ¶
func (m *SupportRequest) String() string
func (*SupportRequest) Unmarshal ¶
func (m *SupportRequest) Unmarshal(dAtA []byte) error
func (*SupportRequest) XXX_DiscardUnknown ¶
func (m *SupportRequest) XXX_DiscardUnknown()
func (*SupportRequest) XXX_Marshal ¶
func (m *SupportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SupportRequest) XXX_Merge ¶
func (m *SupportRequest) XXX_Merge(src proto.Message)
func (*SupportRequest) XXX_Size ¶
func (m *SupportRequest) XXX_Size() int
func (*SupportRequest) XXX_Unmarshal ¶
func (m *SupportRequest) XXX_Unmarshal(b []byte) error
type SupportServiceClient ¶
type SupportServiceClient interface { // Get the current API version of this service. // Required permissions: // - None GetAPIVersion(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.Version, error) // Fetch all support plans that are supported by the ArangoDB cloud. // Required permissions: // - None ListPlans(ctx context.Context, in *ListPlansRequest, opts ...grpc.CallOption) (*PlanList, error) // Fetch a support plan by its id. // Required permissions: // - None GetPlan(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*Plan, error) // Fetch all FAQ groups. // Required permissions: // - None ListFaqGroups(ctx context.Context, in *v1.ListOptions, opts ...grpc.CallOption) (*FaqGroupList, error) // Fetch all FAQ group entries of the FAQ group identified by the given context ID. // Required permissions: // - None ListFaqGroupEntries(ctx context.Context, in *v1.ListOptions, opts ...grpc.CallOption) (*FaqGroupEntryList, error) // Submit a support request. // Required permissions: // - resourcemanager.organization.get (if organization id is set) // - resourcemanager.project.get (if project id is set) // - data.deployment.get (if deployment id is set) // - None (if no ids are set) CreateSupportRequest(ctx context.Context, in *SupportRequest, opts ...grpc.CallOption) (*SupportRequest, error) }
SupportServiceClient is the client API for SupportService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSupportServiceClient ¶
func NewSupportServiceClient(cc *grpc.ClientConn) SupportServiceClient
type SupportServiceServer ¶
type SupportServiceServer interface { // Get the current API version of this service. // Required permissions: // - None GetAPIVersion(context.Context, *v1.Empty) (*v1.Version, error) // Fetch all support plans that are supported by the ArangoDB cloud. // Required permissions: // - None ListPlans(context.Context, *ListPlansRequest) (*PlanList, error) // Fetch a support plan by its id. // Required permissions: // - None GetPlan(context.Context, *v1.IDOptions) (*Plan, error) // Fetch all FAQ groups. // Required permissions: // - None ListFaqGroups(context.Context, *v1.ListOptions) (*FaqGroupList, error) // Fetch all FAQ group entries of the FAQ group identified by the given context ID. // Required permissions: // - None ListFaqGroupEntries(context.Context, *v1.ListOptions) (*FaqGroupEntryList, error) // Submit a support request. // Required permissions: // - resourcemanager.organization.get (if organization id is set) // - resourcemanager.project.get (if project id is set) // - data.deployment.get (if deployment id is set) // - None (if no ids are set) CreateSupportRequest(context.Context, *SupportRequest) (*SupportRequest, error) }
SupportServiceServer is the server API for SupportService service.
type UnimplementedSupportServiceServer ¶
type UnimplementedSupportServiceServer struct { }
UnimplementedSupportServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedSupportServiceServer) CreateSupportRequest ¶
func (*UnimplementedSupportServiceServer) CreateSupportRequest(ctx context.Context, req *SupportRequest) (*SupportRequest, error)
func (*UnimplementedSupportServiceServer) GetAPIVersion ¶
func (*UnimplementedSupportServiceServer) ListFaqGroupEntries ¶
func (*UnimplementedSupportServiceServer) ListFaqGroupEntries(ctx context.Context, req *v1.ListOptions) (*FaqGroupEntryList, error)
func (*UnimplementedSupportServiceServer) ListFaqGroups ¶
func (*UnimplementedSupportServiceServer) ListFaqGroups(ctx context.Context, req *v1.ListOptions) (*FaqGroupList, error)
func (*UnimplementedSupportServiceServer) ListPlans ¶
func (*UnimplementedSupportServiceServer) ListPlans(ctx context.Context, req *ListPlansRequest) (*PlanList, error)