var File_google_cloud_support_v1alpha1_cloud_support_proto protoreflect.FileDescriptor
func RegisterCloudSupportServer(s *grpc.Server, srv CloudSupportServer)
CloudSupportClient is the client API for CloudSupport service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CloudSupportClient interface { // Retrieves the support account details given an account identifier. // The authenticated user calling this method must be the account owner. GetSupportAccount(ctx context.Context, in *GetSupportAccountRequest, opts ...grpc.CallOption) (*common.SupportAccount, error) // Retrieves the list of accounts the current authenticated user has access // to. ListSupportAccounts(ctx context.Context, in *ListSupportAccountsRequest, opts ...grpc.CallOption) (*ListSupportAccountsResponse, error) // Retrieves the details for a support case. The current authenticated user // calling this method must have permissions to view this case. GetCase(ctx context.Context, in *GetCaseRequest, opts ...grpc.CallOption) (*common.Case, error) // Retrieves the list of support cases associated with an account. The current // authenticated user must have the permission to list and view these cases. ListCases(ctx context.Context, in *ListCasesRequest, opts ...grpc.CallOption) (*ListCasesResponse, error) // Lists all comments from a case. ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) // Creates a case and associates it with a // [SupportAccount][google.cloud.support.v1alpha2.SupportAcccount]. The // authenticated user attempting this action must have permissions to create a // `Case` under that [SupportAccount]. CreateCase(ctx context.Context, in *CreateCaseRequest, opts ...grpc.CallOption) (*common.Case, error) // Updates a support case. Only a small set of details (priority, subject and // cc_address) can be update after a case is created. UpdateCase(ctx context.Context, in *UpdateCaseRequest, opts ...grpc.CallOption) (*common.Case, error) // Adds a new comment to a case. CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*common.Comment, error) // Retrieves the taxonomy of product categories and components to be used // while creating a support case. GetIssueTaxonomy(ctx context.Context, in *GetIssueTaxonomyRequest, opts ...grpc.CallOption) (*common.IssueTaxonomy, error) }
func NewCloudSupportClient(cc grpc.ClientConnInterface) CloudSupportClient
CloudSupportServer is the server API for CloudSupport service.
type CloudSupportServer interface { // Retrieves the support account details given an account identifier. // The authenticated user calling this method must be the account owner. GetSupportAccount(context.Context, *GetSupportAccountRequest) (*common.SupportAccount, error) // Retrieves the list of accounts the current authenticated user has access // to. ListSupportAccounts(context.Context, *ListSupportAccountsRequest) (*ListSupportAccountsResponse, error) // Retrieves the details for a support case. The current authenticated user // calling this method must have permissions to view this case. GetCase(context.Context, *GetCaseRequest) (*common.Case, error) // Retrieves the list of support cases associated with an account. The current // authenticated user must have the permission to list and view these cases. ListCases(context.Context, *ListCasesRequest) (*ListCasesResponse, error) // Lists all comments from a case. ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error) // Creates a case and associates it with a // [SupportAccount][google.cloud.support.v1alpha2.SupportAcccount]. The // authenticated user attempting this action must have permissions to create a // `Case` under that [SupportAccount]. CreateCase(context.Context, *CreateCaseRequest) (*common.Case, error) // Updates a support case. Only a small set of details (priority, subject and // cc_address) can be update after a case is created. UpdateCase(context.Context, *UpdateCaseRequest) (*common.Case, error) // Adds a new comment to a case. CreateComment(context.Context, *CreateCommentRequest) (*common.Comment, error) // Retrieves the taxonomy of product categories and components to be used // while creating a support case. GetIssueTaxonomy(context.Context, *GetIssueTaxonomyRequest) (*common.IssueTaxonomy, error) }
The request message for `CreateCase` method.
type CreateCaseRequest struct { // The resource name for `SupportAccount` under which this case is created. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The case resource to create. Case *common.Case `protobuf:"bytes,2,opt,name=case,proto3" json:"case,omitempty"` // contains filtered or unexported fields }
func (*CreateCaseRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCaseRequest.ProtoReflect.Descriptor instead.
func (x *CreateCaseRequest) GetCase() *common.Case
func (x *CreateCaseRequest) GetParent() string
func (*CreateCaseRequest) ProtoMessage()
func (x *CreateCaseRequest) ProtoReflect() protoreflect.Message
func (x *CreateCaseRequest) Reset()
func (x *CreateCaseRequest) String() string
The request message for `CreateComment` method.
type CreateCommentRequest struct { // The resource name of case to which this comment should be added. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The `Comment` to be added to this case. Comment *common.Comment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*CreateCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead.
func (x *CreateCommentRequest) GetComment() *common.Comment
func (x *CreateCommentRequest) GetName() string
func (*CreateCommentRequest) ProtoMessage()
func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message
func (x *CreateCommentRequest) Reset()
func (x *CreateCommentRequest) String() string
The request message for `GetCase` method.
type GetCaseRequest struct { // Name of case resource requested. // For example: "supportAccounts/accountA/cases/123" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetCaseRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCaseRequest.ProtoReflect.Descriptor instead.
func (x *GetCaseRequest) GetName() string
func (*GetCaseRequest) ProtoMessage()
func (x *GetCaseRequest) ProtoReflect() protoreflect.Message
func (x *GetCaseRequest) Reset()
func (x *GetCaseRequest) String() string
The request message for `GetIssueTaxonomy` method.
type GetIssueTaxonomyRequest struct {
// contains filtered or unexported fields
}
func (*GetIssueTaxonomyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIssueTaxonomyRequest.ProtoReflect.Descriptor instead.
func (*GetIssueTaxonomyRequest) ProtoMessage()
func (x *GetIssueTaxonomyRequest) ProtoReflect() protoreflect.Message
func (x *GetIssueTaxonomyRequest) Reset()
func (x *GetIssueTaxonomyRequest) String() string
The request message for `GetSupportAccount`.
type GetSupportAccountRequest struct { // The resource name of the support accounts. For example: // `supportAccounts/accountA`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetSupportAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSupportAccountRequest.ProtoReflect.Descriptor instead.
func (x *GetSupportAccountRequest) GetName() string
func (*GetSupportAccountRequest) ProtoMessage()
func (x *GetSupportAccountRequest) ProtoReflect() protoreflect.Message
func (x *GetSupportAccountRequest) Reset()
func (x *GetSupportAccountRequest) String() string
The request message for `ListCase` method.
type ListCasesRequest struct { // Name of the account resource for which cases are requested. For example: // "supportAccounts/accountA" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The filter applied to the search results. Currently it only accepts "OPEN" // or "CLOSED" strings, filtering out cases that are open or resolved. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // Maximum number of cases fetched with each request. PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A token identifying the page of results to return. If unspecified, the // first page is retrieved. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListCasesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCasesRequest.ProtoReflect.Descriptor instead.
func (x *ListCasesRequest) GetFilter() string
func (x *ListCasesRequest) GetName() string
func (x *ListCasesRequest) GetPageSize() int64
func (x *ListCasesRequest) GetPageToken() string
func (*ListCasesRequest) ProtoMessage()
func (x *ListCasesRequest) ProtoReflect() protoreflect.Message
func (x *ListCasesRequest) Reset()
func (x *ListCasesRequest) String() string
The response message for `ListCase` method.
type ListCasesResponse struct { // A list of cases. Cases []*common.Case `protobuf:"bytes,1,rep,name=cases,proto3" json:"cases,omitempty"` // A token to retrieve the next page of results. This should be passed on in // `page_token` field of `ListCaseRequest` for next request. If unspecified, // there are no more results to retrieve. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListCasesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCasesResponse.ProtoReflect.Descriptor instead.
func (x *ListCasesResponse) GetCases() []*common.Case
func (x *ListCasesResponse) GetNextPageToken() string
func (*ListCasesResponse) ProtoMessage()
func (x *ListCasesResponse) ProtoReflect() protoreflect.Message
func (x *ListCasesResponse) Reset()
func (x *ListCasesResponse) String() string
The request message for `ListComments` method.
type ListCommentsRequest struct { // The resource name of case for which comments should be listed. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ListCommentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentsRequest.ProtoReflect.Descriptor instead.
func (x *ListCommentsRequest) GetName() string
func (*ListCommentsRequest) ProtoMessage()
func (x *ListCommentsRequest) ProtoReflect() protoreflect.Message
func (x *ListCommentsRequest) Reset()
func (x *ListCommentsRequest) String() string
The response message for `ListComments` method.
type ListCommentsResponse struct { // A list of comments. Comments []*common.Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` // contains filtered or unexported fields }
func (*ListCommentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentsResponse.ProtoReflect.Descriptor instead.
func (x *ListCommentsResponse) GetComments() []*common.Comment
func (*ListCommentsResponse) ProtoMessage()
func (x *ListCommentsResponse) ProtoReflect() protoreflect.Message
func (x *ListCommentsResponse) Reset()
func (x *ListCommentsResponse) String() string
The request message for `ListSupportAccount`.
type ListSupportAccountsRequest struct { // The filter applied to search results. It only supports filtering a support // account list by a cloud_resource. For example, to filter results by support // accounts associated with an Organization, its value should be: // "cloud_resource:organizations/<organization_id>" Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` // Maximum number of accounts fetched with each request. PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A token identifying the page of results to return. If unspecified, the // first page is retrieved. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListSupportAccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSupportAccountsRequest.ProtoReflect.Descriptor instead.
func (x *ListSupportAccountsRequest) GetFilter() string
func (x *ListSupportAccountsRequest) GetPageSize() int64
func (x *ListSupportAccountsRequest) GetPageToken() string
func (*ListSupportAccountsRequest) ProtoMessage()
func (x *ListSupportAccountsRequest) ProtoReflect() protoreflect.Message
func (x *ListSupportAccountsRequest) Reset()
func (x *ListSupportAccountsRequest) String() string
The response message for `ListSupportAccount`.
type ListSupportAccountsResponse struct { // A list of support accounts. Accounts []*common.SupportAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // A token to retrieve the next page of results. This should be passed on in // `page_token` field of `ListSupportAccountRequest` for next request. If // unspecified, there are no more results to retrieve. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListSupportAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSupportAccountsResponse.ProtoReflect.Descriptor instead.
func (x *ListSupportAccountsResponse) GetAccounts() []*common.SupportAccount
func (x *ListSupportAccountsResponse) GetNextPageToken() string
func (*ListSupportAccountsResponse) ProtoMessage()
func (x *ListSupportAccountsResponse) ProtoReflect() protoreflect.Message
func (x *ListSupportAccountsResponse) Reset()
func (x *ListSupportAccountsResponse) String() string
UnimplementedCloudSupportServer can be embedded to have forward compatible implementations.
type UnimplementedCloudSupportServer struct { }
func (*UnimplementedCloudSupportServer) CreateCase(context.Context, *CreateCaseRequest) (*common.Case, error)
func (*UnimplementedCloudSupportServer) CreateComment(context.Context, *CreateCommentRequest) (*common.Comment, error)
func (*UnimplementedCloudSupportServer) GetCase(context.Context, *GetCaseRequest) (*common.Case, error)
func (*UnimplementedCloudSupportServer) GetIssueTaxonomy(context.Context, *GetIssueTaxonomyRequest) (*common.IssueTaxonomy, error)
func (*UnimplementedCloudSupportServer) GetSupportAccount(context.Context, *GetSupportAccountRequest) (*common.SupportAccount, error)
func (*UnimplementedCloudSupportServer) ListCases(context.Context, *ListCasesRequest) (*ListCasesResponse, error)
func (*UnimplementedCloudSupportServer) ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error)
func (*UnimplementedCloudSupportServer) ListSupportAccounts(context.Context, *ListSupportAccountsRequest) (*ListSupportAccountsResponse, error)
func (*UnimplementedCloudSupportServer) UpdateCase(context.Context, *UpdateCaseRequest) (*common.Case, error)
The request message for `UpdateCase` method.
type UpdateCaseRequest struct { // The case resource to update. Case *common.Case `protobuf:"bytes,1,opt,name=case,proto3" json:"case,omitempty"` // A field that represents attributes of a Case object that should be updated // as part of this request. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateCaseRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCaseRequest.ProtoReflect.Descriptor instead.
func (x *UpdateCaseRequest) GetCase() *common.Case
func (x *UpdateCaseRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateCaseRequest) ProtoMessage()
func (x *UpdateCaseRequest) ProtoReflect() protoreflect.Message
func (x *UpdateCaseRequest) Reset()
func (x *UpdateCaseRequest) String() string