monorail

package
v0.0.0-...-0390e60 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause Imports: 14 Imported by: 1

Documentation

Overview

Package monorail provides access to the .

For product documentation, see: https://chromium.googlesource.com/infra/infra/+doc/master/appengine/monorail/doc/api.md

Creating a client

Usage example:

import "go.skia.org/infra/go/monorail/v1"
...
ctx := context.Background()
monorailService, err := monorail.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

monorailService, err := monorail.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
monorailService, err := monorail.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Constants

View Source
const (
	// https://www.googleapis.com/auth/userinfo.email
	UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApprovalsCommentsInsertCall

type ApprovalsCommentsInsertCall struct {
	// contains filtered or unexported fields
}

func (*ApprovalsCommentsInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ApprovalsCommentsInsertCall) Do

Do executes the "monorail.approvals.comments.insert" call. Exactly one of *ProtoApiPb2V1ApprovalsCommentsInsertResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1ApprovalsCommentsInsertResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ApprovalsCommentsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ApprovalsCommentsInsertCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ApprovalsCommentsInsertCall) SendEmail

SendEmail sets the optional parameter "sendEmail":

type ApprovalsCommentsListCall

type ApprovalsCommentsListCall struct {
	// contains filtered or unexported fields
}

func (*ApprovalsCommentsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ApprovalsCommentsListCall) Do

Do executes the "monorail.approvals.comments.list" call. Exactly one of *ProtoApiPb2V1ApprovalsCommentsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1ApprovalsCommentsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ApprovalsCommentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ApprovalsCommentsListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ApprovalsCommentsListCall) IfNoneMatch

func (c *ApprovalsCommentsListCall) IfNoneMatch(entityTag string) *ApprovalsCommentsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ApprovalsCommentsListCall) MaxResults

func (c *ApprovalsCommentsListCall) MaxResults(maxResults int64) *ApprovalsCommentsListCall

MaxResults sets the optional parameter "maxResults":

func (*ApprovalsCommentsListCall) StartIndex

func (c *ApprovalsCommentsListCall) StartIndex(startIndex int64) *ApprovalsCommentsListCall

StartIndex sets the optional parameter "startIndex":

type ApprovalsCommentsService

type ApprovalsCommentsService struct {
	// contains filtered or unexported fields
}

func NewApprovalsCommentsService

func NewApprovalsCommentsService(s *Service) *ApprovalsCommentsService

func (*ApprovalsCommentsService) Insert

func (r *ApprovalsCommentsService) Insert(projectId string, issueId int64, approvalName string, protoapipb2v1approvalcommentwrapper *ProtoApiPb2V1ApprovalCommentWrapper) *ApprovalsCommentsInsertCall

Insert: Add an approval comment.

func (*ApprovalsCommentsService) List

func (r *ApprovalsCommentsService) List(projectId string, issueId int64, approvalName string) *ApprovalsCommentsListCall

List: List all comments for an issue approval.

type ApprovalsService

type ApprovalsService struct {
	Comments *ApprovalsCommentsService
	// contains filtered or unexported fields
}

func NewApprovalsService

func NewApprovalsService(s *Service) *ApprovalsService

type ComponentsCreateCall

type ComponentsCreateCall struct {
	// contains filtered or unexported fields
}

func (*ComponentsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ComponentsCreateCall) Do

Do executes the "monorail.components.create" call. Exactly one of *ProtoApiPb2V1Component or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1Component.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ComponentsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ComponentsCreateCall) Header

func (c *ComponentsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ComponentsDeleteCall

type ComponentsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ComponentsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ComponentsDeleteCall) Do

Do executes the "monorail.components.delete" call.

func (*ComponentsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ComponentsDeleteCall) Header

func (c *ComponentsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ComponentsListCall

type ComponentsListCall struct {
	// contains filtered or unexported fields
}

func (*ComponentsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ComponentsListCall) Do

Do executes the "monorail.components.list" call. Exactly one of *ProtoApiPb2V1ComponentsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1ComponentsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ComponentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ComponentsListCall) Header

func (c *ComponentsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ComponentsListCall) IfNoneMatch

func (c *ComponentsListCall) IfNoneMatch(entityTag string) *ComponentsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ComponentsService

type ComponentsService struct {
	// contains filtered or unexported fields
}

func NewComponentsService

func NewComponentsService(s *Service) *ComponentsService

func (*ComponentsService) Create

func (r *ComponentsService) Create(projectId string, componentName string, protoapipb2v1componentcreaterequestbody *ProtoApiPb2V1ComponentCreateRequestBody) *ComponentsCreateCall

Create: Create a component.

func (*ComponentsService) Delete

func (r *ComponentsService) Delete(projectId string, componentPath string) *ComponentsDeleteCall

Delete: Delete a component.

func (*ComponentsService) List

func (r *ComponentsService) List(projectId string) *ComponentsListCall

List: List all components of a given project.

func (*ComponentsService) Update

func (r *ComponentsService) Update(projectId string, componentPath string, protoapipb2v1componentupdaterequestbody *ProtoApiPb2V1ComponentUpdateRequestBody) *ComponentsUpdateCall

Update: Update a component.

type ComponentsUpdateCall

type ComponentsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*ComponentsUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ComponentsUpdateCall) Do

Do executes the "monorail.components.update" call.

func (*ComponentsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ComponentsUpdateCall) Header

func (c *ComponentsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type GroupsCreateCall

type GroupsCreateCall struct {
	// contains filtered or unexported fields
}

func (*GroupsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*GroupsCreateCall) Do

Do executes the "monorail.groups.create" call. Exactly one of *ProtoApiPb2V1GroupsCreateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1GroupsCreateResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GroupsCreateCall) ExtGroupType

func (c *GroupsCreateCall) ExtGroupType(extGroupType string) *GroupsCreateCall

ExtGroupType sets the optional parameter "ext_group_type":

Possible values:

"BAGGINS"
"CHROME_INFRA_AUTH"
"COMPUTED"
"MDB"

func (*GroupsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*GroupsCreateCall) Header

func (c *GroupsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type GroupsGetCall

type GroupsGetCall struct {
	// contains filtered or unexported fields
}

func (*GroupsGetCall) Context

func (c *GroupsGetCall) Context(ctx context.Context) *GroupsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*GroupsGetCall) Do

Do executes the "monorail.groups.get" call. Exactly one of *ProtoApiPb2V1GroupsGetResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1GroupsGetResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GroupsGetCall) Fields

func (c *GroupsGetCall) Fields(s ...googleapi.Field) *GroupsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*GroupsGetCall) Header

func (c *GroupsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*GroupsGetCall) IfNoneMatch

func (c *GroupsGetCall) IfNoneMatch(entityTag string) *GroupsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type GroupsService

type GroupsService struct {
	Settings *GroupsSettingsService
	// contains filtered or unexported fields
}

func NewGroupsService

func NewGroupsService(s *Service) *GroupsService

func (*GroupsService) Create

func (r *GroupsService) Create(groupName string, whoCanViewMembers string) *GroupsCreateCall

Create: Create a new user group.

func (*GroupsService) Get

func (r *GroupsService) Get(groupName string) *GroupsGetCall

Get: Get a group's settings and users.

func (*GroupsService) Update

func (r *GroupsService) Update(groupName string, protoapipb2v1groupcitizens *ProtoApiPb2V1GroupCitizens) *GroupsUpdateCall

Update: Update a group's settings and users.

type GroupsSettingsListCall

type GroupsSettingsListCall struct {
	// contains filtered or unexported fields
}

func (*GroupsSettingsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*GroupsSettingsListCall) Do

Do executes the "monorail.groups.settings.list" call. Exactly one of *ProtoApiPb2V1GroupsSettingsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1GroupsSettingsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GroupsSettingsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*GroupsSettingsListCall) Header

func (c *GroupsSettingsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*GroupsSettingsListCall) IfNoneMatch

func (c *GroupsSettingsListCall) IfNoneMatch(entityTag string) *GroupsSettingsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*GroupsSettingsListCall) ImportedGroupsOnly

func (c *GroupsSettingsListCall) ImportedGroupsOnly(importedGroupsOnly bool) *GroupsSettingsListCall

ImportedGroupsOnly sets the optional parameter "importedGroupsOnly":

type GroupsSettingsService

type GroupsSettingsService struct {
	// contains filtered or unexported fields
}

func NewGroupsSettingsService

func NewGroupsSettingsService(s *Service) *GroupsSettingsService

func (*GroupsSettingsService) List

List: List all group settings.

type GroupsUpdateCall

type GroupsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*GroupsUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*GroupsUpdateCall) Do

Do executes the "monorail.groups.update" call. Exactly one of *ProtoApiPb2V1GroupsUpdateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1GroupsUpdateResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GroupsUpdateCall) ExtGroupType

func (c *GroupsUpdateCall) ExtGroupType(extGroupType string) *GroupsUpdateCall

ExtGroupType sets the optional parameter "ext_group_type":

Possible values:

"BAGGINS"
"CHROME_INFRA_AUTH"
"COMPUTED"
"MDB"

func (*GroupsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*GroupsUpdateCall) FriendProjects

func (c *GroupsUpdateCall) FriendProjects(friendProjects ...string) *GroupsUpdateCall

FriendProjects sets the optional parameter "friend_projects":

func (*GroupsUpdateCall) Header

func (c *GroupsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*GroupsUpdateCall) LastSyncTime

func (c *GroupsUpdateCall) LastSyncTime(lastSyncTime int64) *GroupsUpdateCall

LastSyncTime sets the optional parameter "last_sync_time":

func (*GroupsUpdateCall) WhoCanViewMembers

func (c *GroupsUpdateCall) WhoCanViewMembers(whoCanViewMembers string) *GroupsUpdateCall

WhoCanViewMembers sets the optional parameter "who_can_view_members":

Possible values:

"ANYONE"
"MEMBERS"
"OWNERS"

type IssuesCommentsDeleteCall

type IssuesCommentsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*IssuesCommentsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IssuesCommentsDeleteCall) Do

Do executes the "monorail.issues.comments.delete" call. Exactly one of *ProtoApiPb2V1IssuesCommentsDeleteResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1IssuesCommentsDeleteResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IssuesCommentsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IssuesCommentsDeleteCall) Header

func (c *IssuesCommentsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type IssuesCommentsInsertCall

type IssuesCommentsInsertCall struct {
	// contains filtered or unexported fields
}

func (*IssuesCommentsInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IssuesCommentsInsertCall) Do

Do executes the "monorail.issues.comments.insert" call. Exactly one of *ProtoApiPb2V1IssuesCommentsInsertResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1IssuesCommentsInsertResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IssuesCommentsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IssuesCommentsInsertCall) Header

func (c *IssuesCommentsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*IssuesCommentsInsertCall) SendEmail

func (c *IssuesCommentsInsertCall) SendEmail(sendEmail bool) *IssuesCommentsInsertCall

SendEmail sets the optional parameter "sendEmail":

type IssuesCommentsListCall

type IssuesCommentsListCall struct {
	// contains filtered or unexported fields
}

func (*IssuesCommentsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IssuesCommentsListCall) Do

Do executes the "monorail.issues.comments.list" call. Exactly one of *ProtoApiPb2V1IssuesCommentsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1IssuesCommentsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IssuesCommentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IssuesCommentsListCall) Header

func (c *IssuesCommentsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*IssuesCommentsListCall) IfNoneMatch

func (c *IssuesCommentsListCall) IfNoneMatch(entityTag string) *IssuesCommentsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*IssuesCommentsListCall) MaxResults

func (c *IssuesCommentsListCall) MaxResults(maxResults int64) *IssuesCommentsListCall

MaxResults sets the optional parameter "maxResults":

func (*IssuesCommentsListCall) StartIndex

func (c *IssuesCommentsListCall) StartIndex(startIndex int64) *IssuesCommentsListCall

StartIndex sets the optional parameter "startIndex":

type IssuesCommentsService

type IssuesCommentsService struct {
	// contains filtered or unexported fields
}

func NewIssuesCommentsService

func NewIssuesCommentsService(s *Service) *IssuesCommentsService

func (*IssuesCommentsService) Delete

func (r *IssuesCommentsService) Delete(projectId string, issueId int64, commentId int64) *IssuesCommentsDeleteCall

Delete: Delete a comment.

func (*IssuesCommentsService) Insert

func (r *IssuesCommentsService) Insert(projectId string, issueId int64, protoapipb2v1issuecommentwrapper *ProtoApiPb2V1IssueCommentWrapper) *IssuesCommentsInsertCall

Insert: Add a comment.

func (*IssuesCommentsService) List

func (r *IssuesCommentsService) List(projectId string, issueId int64) *IssuesCommentsListCall

List: List all comments for an issue.

func (*IssuesCommentsService) Undelete

func (r *IssuesCommentsService) Undelete(projectId string, issueId int64, commentId int64) *IssuesCommentsUndeleteCall

Undelete: Restore a deleted comment.

type IssuesCommentsUndeleteCall

type IssuesCommentsUndeleteCall struct {
	// contains filtered or unexported fields
}

func (*IssuesCommentsUndeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IssuesCommentsUndeleteCall) Do

Do executes the "monorail.issues.comments.undelete" call. Exactly one of *ProtoApiPb2V1IssuesCommentsDeleteResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1IssuesCommentsDeleteResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IssuesCommentsUndeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IssuesCommentsUndeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type IssuesGetCall

type IssuesGetCall struct {
	// contains filtered or unexported fields
}

func (*IssuesGetCall) Context

func (c *IssuesGetCall) Context(ctx context.Context) *IssuesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IssuesGetCall) Do

Do executes the "monorail.issues.get" call. Exactly one of *ProtoApiPb2V1IssuesGetInsertResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1IssuesGetInsertResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IssuesGetCall) Fields

func (c *IssuesGetCall) Fields(s ...googleapi.Field) *IssuesGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IssuesGetCall) Header

func (c *IssuesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*IssuesGetCall) IfNoneMatch

func (c *IssuesGetCall) IfNoneMatch(entityTag string) *IssuesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type IssuesInsertCall

type IssuesInsertCall struct {
	// contains filtered or unexported fields
}

func (*IssuesInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IssuesInsertCall) Do

Do executes the "monorail.issues.insert" call. Exactly one of *ProtoApiPb2V1IssuesGetInsertResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1IssuesGetInsertResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IssuesInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IssuesInsertCall) Header

func (c *IssuesInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*IssuesInsertCall) SendEmail

func (c *IssuesInsertCall) SendEmail(sendEmail bool) *IssuesInsertCall

SendEmail sets the optional parameter "sendEmail":

type IssuesListCall

type IssuesListCall struct {
	// contains filtered or unexported fields
}

func (*IssuesListCall) AdditionalProject

func (c *IssuesListCall) AdditionalProject(additionalProject ...string) *IssuesListCall

AdditionalProject sets the optional parameter "additionalProject":

func (*IssuesListCall) Can

func (c *IssuesListCall) Can(can string) *IssuesListCall

Can sets the optional parameter "can":

Possible values:

"all" (default)
"new"
"open"
"owned"
"reported"
"starred"
"to_verify"

func (*IssuesListCall) Context

func (c *IssuesListCall) Context(ctx context.Context) *IssuesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*IssuesListCall) Do

Do executes the "monorail.issues.list" call. Exactly one of *ProtoApiPb2V1IssuesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1IssuesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*IssuesListCall) Fields

func (c *IssuesListCall) Fields(s ...googleapi.Field) *IssuesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*IssuesListCall) Header

func (c *IssuesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*IssuesListCall) IfNoneMatch

func (c *IssuesListCall) IfNoneMatch(entityTag string) *IssuesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*IssuesListCall) Label

func (c *IssuesListCall) Label(label string) *IssuesListCall

Label sets the optional parameter "label":

func (*IssuesListCall) MaxResults

func (c *IssuesListCall) MaxResults(maxResults int64) *IssuesListCall

MaxResults sets the optional parameter "maxResults":

func (*IssuesListCall) Owner

func (c *IssuesListCall) Owner(owner string) *IssuesListCall

Owner sets the optional parameter "owner":

func (*IssuesListCall) PublishedMax

func (c *IssuesListCall) PublishedMax(publishedMax int64) *IssuesListCall

PublishedMax sets the optional parameter "publishedMax":

func (*IssuesListCall) PublishedMin

func (c *IssuesListCall) PublishedMin(publishedMin int64) *IssuesListCall

PublishedMin sets the optional parameter "publishedMin":

func (*IssuesListCall) Q

Q sets the optional parameter "q":

func (*IssuesListCall) Sort

func (c *IssuesListCall) Sort(sort string) *IssuesListCall

Sort sets the optional parameter "sort":

func (*IssuesListCall) StartIndex

func (c *IssuesListCall) StartIndex(startIndex int64) *IssuesListCall

StartIndex sets the optional parameter "startIndex":

func (*IssuesListCall) Status

func (c *IssuesListCall) Status(status string) *IssuesListCall

Status sets the optional parameter "status":

func (*IssuesListCall) UpdatedMax

func (c *IssuesListCall) UpdatedMax(updatedMax int64) *IssuesListCall

UpdatedMax sets the optional parameter "updatedMax":

func (*IssuesListCall) UpdatedMin

func (c *IssuesListCall) UpdatedMin(updatedMin int64) *IssuesListCall

UpdatedMin sets the optional parameter "updatedMin":

type IssuesService

type IssuesService struct {
	Comments *IssuesCommentsService
	// contains filtered or unexported fields
}

func NewIssuesService

func NewIssuesService(s *Service) *IssuesService

func (*IssuesService) Get

func (r *IssuesService) Get(projectId string, issueId int64) *IssuesGetCall

Get: Get an issue.

func (*IssuesService) Insert

func (r *IssuesService) Insert(projectId string, protoapipb2v1issuewrapper *ProtoApiPb2V1IssueWrapper) *IssuesInsertCall

Insert: Add a new issue.

func (*IssuesService) List

func (r *IssuesService) List(projectId string) *IssuesListCall

List: List issues for projects.

type ProtoApiPb2V1Approval

type ProtoApiPb2V1Approval struct {
	ApprovalName string `json:"approvalName,omitempty"`

	// Approvers: Atomic person.
	Approvers []*ProtoApiPb2V1AtomPerson `json:"approvers,omitempty"`

	PhaseName string `json:"phaseName,omitempty"`

	SetOn string `json:"setOn,omitempty"`

	// Setter: Atomic person.
	Setter *ProtoApiPb2V1AtomPerson `json:"setter,omitempty"`

	// Possible values:
	//   "approved"
	//   "nA"
	//   "needInfo"
	//   "needsReview"
	//   "notApproved"
	//   "notSet"
	//   "reviewRequested"
	//   "reviewStarted"
	Status string `json:"status,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ApprovalName") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ApprovalName") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1Approval: Approval Value details

func (*ProtoApiPb2V1Approval) MarshalJSON

func (s *ProtoApiPb2V1Approval) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1ApprovalCommentWrapper

type ProtoApiPb2V1ApprovalCommentWrapper struct {
	// ApprovalUpdates: Approval update.
	ApprovalUpdates *ProtoApiPb2V1ApprovalUpdate `json:"approvalUpdates,omitempty"`

	// Attachments: Issue attachment.
	Attachments []*ProtoApiPb2V1Attachment `json:"attachments,omitempty"`

	// Author: Atomic person.
	Author *ProtoApiPb2V1AtomPerson `json:"author,omitempty"`

	CanDelete bool `json:"canDelete,omitempty"`

	Content string `json:"content,omitempty"`

	// DeletedBy: Atomic person.
	DeletedBy *ProtoApiPb2V1AtomPerson `json:"deletedBy,omitempty"`

	Id int64 `json:"id,omitempty"`

	IsDescription bool `json:"is_description,omitempty"`

	Kind string `json:"kind,omitempty"`

	Published string `json:"published,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ApprovalUpdates") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ApprovalUpdates") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1ApprovalCommentWrapper: Approval comment details.

func (*ProtoApiPb2V1ApprovalCommentWrapper) MarshalJSON

func (s *ProtoApiPb2V1ApprovalCommentWrapper) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1ApprovalUpdate

type ProtoApiPb2V1ApprovalUpdate struct {
	Approvers []string `json:"approvers,omitempty"`

	// FieldValues: Custom field values.
	FieldValues []*ProtoApiPb2V1FieldValue `json:"fieldValues,omitempty"`

	Kind string `json:"kind,omitempty"`

	Status string `json:"status,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Approvers") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Approvers") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1ApprovalUpdate: Approval update.

func (*ProtoApiPb2V1ApprovalUpdate) MarshalJSON

func (s *ProtoApiPb2V1ApprovalUpdate) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1ApprovalsCommentsInsertResponse

type ProtoApiPb2V1ApprovalsCommentsInsertResponse struct {
	ApprovalName string `json:"approvalName,omitempty"`

	// ApprovalUpdates: Approval update.
	ApprovalUpdates *ProtoApiPb2V1ApprovalUpdate `json:"approvalUpdates,omitempty"`

	// Author: Atomic person.
	Author *ProtoApiPb2V1AtomPerson `json:"author,omitempty"`

	CanDelete bool `json:"canDelete,omitempty"`

	Content string `json:"content,omitempty"`

	// Error: Request error.
	Error *ProtoApiPb2V1ErrorMessage `json:"error,omitempty"`

	Id int64 `json:"id,omitempty"`

	Kind string `json:"kind,omitempty"`

	Published string `json:"published,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "ApprovalName") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ApprovalName") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1ApprovalsCommentsInsertResponse: Response message of request to insert an isuse's comments.

func (*ProtoApiPb2V1ApprovalsCommentsInsertResponse) MarshalJSON

type ProtoApiPb2V1ApprovalsCommentsListResponse

type ProtoApiPb2V1ApprovalsCommentsListResponse struct {
	// Error: Request error.
	Error *ProtoApiPb2V1ErrorMessage `json:"error,omitempty"`

	// Items: Approval comment details.
	Items []*ProtoApiPb2V1ApprovalCommentWrapper `json:"items,omitempty"`

	Kind string `json:"kind,omitempty"`

	TotalResults int64 `json:"totalResults,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Error") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Error") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1ApprovalsCommentsListResponse: Response message of request to list an approval's comments.

func (*ProtoApiPb2V1ApprovalsCommentsListResponse) MarshalJSON

type ProtoApiPb2V1AtomPerson

type ProtoApiPb2V1AtomPerson struct {
	EmailBouncing bool `json:"email_bouncing,omitempty"`

	HtmlLink string `json:"htmlLink,omitempty"`

	Kind string `json:"kind,omitempty"`

	LastVisitDaysAgo int64 `json:"last_visit_days_ago,omitempty,string"`

	Name string `json:"name,omitempty"`

	VacationMessage string `json:"vacation_message,omitempty"`

	// ForceSendFields is a list of field names (e.g. "EmailBouncing") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "EmailBouncing") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1AtomPerson: Atomic person.

func (*ProtoApiPb2V1AtomPerson) MarshalJSON

func (s *ProtoApiPb2V1AtomPerson) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1Attachment

type ProtoApiPb2V1Attachment struct {
	AttachmentId int64 `json:"attachmentId,omitempty,string"`

	FileName string `json:"fileName,omitempty"`

	FileSize int64 `json:"fileSize,omitempty"`

	IsDeleted bool `json:"isDeleted,omitempty"`

	Mimetype string `json:"mimetype,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AttachmentId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AttachmentId") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1Attachment: Issue attachment.

func (*ProtoApiPb2V1Attachment) MarshalJSON

func (s *ProtoApiPb2V1Attachment) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1Component

type ProtoApiPb2V1Component struct {
	Admin []string `json:"admin,omitempty"`

	Cc []string `json:"cc,omitempty"`

	ComponentId int64 `json:"componentId,omitempty"`

	ComponentPath string `json:"componentPath,omitempty"`

	Created string `json:"created,omitempty"`

	Creator string `json:"creator,omitempty"`

	Deprecated bool `json:"deprecated,omitempty"`

	Description string `json:"description,omitempty"`

	Modified string `json:"modified,omitempty"`

	Modifier string `json:"modifier,omitempty"`

	ProjectName string `json:"projectName,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Admin") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Admin") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1Component: Component PB.

func (*ProtoApiPb2V1Component) MarshalJSON

func (s *ProtoApiPb2V1Component) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1ComponentCreateRequestBody

type ProtoApiPb2V1ComponentCreateRequestBody struct {
	Admin []string `json:"admin,omitempty"`

	Cc []string `json:"cc,omitempty"`

	Deprecated bool `json:"deprecated,omitempty"`

	Description string `json:"description,omitempty"`

	ParentPath string `json:"parentPath,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Admin") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Admin") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1ComponentCreateRequestBody: Request body to create a component.

func (*ProtoApiPb2V1ComponentCreateRequestBody) MarshalJSON

func (s *ProtoApiPb2V1ComponentCreateRequestBody) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1ComponentUpdate

type ProtoApiPb2V1ComponentUpdate struct {
	Admin []string `json:"admin,omitempty"`

	Cc []string `json:"cc,omitempty"`

	Deprecated bool `json:"deprecated,omitempty"`

	Description string `json:"description,omitempty"`

	// Possible values:
	//   "ADMIN"
	//   "CC"
	//   "DEPRECATED"
	//   "DESCRIPTION"
	//   "LEAF_NAME"
	Field string `json:"field,omitempty"`

	LeafName string `json:"leafName,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Admin") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Admin") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1ComponentUpdate: Component update.

func (*ProtoApiPb2V1ComponentUpdate) MarshalJSON

func (s *ProtoApiPb2V1ComponentUpdate) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1ComponentUpdateRequestBody

type ProtoApiPb2V1ComponentUpdateRequestBody struct {
	// Updates: Component update.
	Updates []*ProtoApiPb2V1ComponentUpdate `json:"updates,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Updates") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Updates") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1ComponentUpdateRequestBody: Request body to update a component.

func (*ProtoApiPb2V1ComponentUpdateRequestBody) MarshalJSON

func (s *ProtoApiPb2V1ComponentUpdateRequestBody) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1ComponentsListResponse

type ProtoApiPb2V1ComponentsListResponse struct {
	// Components: Component PB.
	Components []*ProtoApiPb2V1Component `json:"components,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Components") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Components") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1ComponentsListResponse: Response to list components.

func (*ProtoApiPb2V1ComponentsListResponse) MarshalJSON

func (s *ProtoApiPb2V1ComponentsListResponse) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1ErrorMessage

type ProtoApiPb2V1ErrorMessage struct {
	Code int64 `json:"code,omitempty"`

	Message string `json:"message,omitempty"`

	Reason string `json:"reason,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Code") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Code") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1ErrorMessage: Request error.

func (*ProtoApiPb2V1ErrorMessage) MarshalJSON

func (s *ProtoApiPb2V1ErrorMessage) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1FieldValue

type ProtoApiPb2V1FieldValue struct {
	ApprovalName string `json:"approvalName,omitempty"`

	Derived bool `json:"derived,omitempty"`

	FieldName string `json:"fieldName,omitempty"`

	FieldValue string `json:"fieldValue,omitempty"`

	// Possible values:
	//   "add" (default)
	//   "clear"
	//   "remove"
	Operator string `json:"operator,omitempty"`

	PhaseName string `json:"phaseName,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ApprovalName") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ApprovalName") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1FieldValue: Custom field values.

func (*ProtoApiPb2V1FieldValue) MarshalJSON

func (s *ProtoApiPb2V1FieldValue) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1GroupCitizens

type ProtoApiPb2V1GroupCitizens struct {
	GroupMembers []string `json:"groupMembers,omitempty"`

	GroupOwners []string `json:"groupOwners,omitempty"`

	// ForceSendFields is a list of field names (e.g. "GroupMembers") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "GroupMembers") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1GroupCitizens: Group members and owners.

func (*ProtoApiPb2V1GroupCitizens) MarshalJSON

func (s *ProtoApiPb2V1GroupCitizens) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1GroupsCreateResponse

type ProtoApiPb2V1GroupsCreateResponse struct {
	// Error: Request error.
	Error *ProtoApiPb2V1ErrorMessage `json:"error,omitempty"`

	GroupID int64 `json:"groupID,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Error") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Error") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1GroupsCreateResponse: Response message of request to create a group.

func (*ProtoApiPb2V1GroupsCreateResponse) MarshalJSON

func (s *ProtoApiPb2V1GroupsCreateResponse) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1GroupsGetResponse

type ProtoApiPb2V1GroupsGetResponse struct {
	// Error: Request error.
	Error *ProtoApiPb2V1ErrorMessage `json:"error,omitempty"`

	GroupID int64 `json:"groupID,omitempty"`

	GroupMembers []string `json:"groupMembers,omitempty"`

	GroupOwners []string `json:"groupOwners,omitempty"`

	// GroupSettings: User group settings.
	GroupSettings *ProtoApiPb2V1UserGroupSettingsWrapper `json:"groupSettings,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Error") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Error") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1GroupsGetResponse: Response message of request to create a group.

func (*ProtoApiPb2V1GroupsGetResponse) MarshalJSON

func (s *ProtoApiPb2V1GroupsGetResponse) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1GroupsSettingsListResponse

type ProtoApiPb2V1GroupsSettingsListResponse struct {
	// Error: Request error.
	Error *ProtoApiPb2V1ErrorMessage `json:"error,omitempty"`

	// GroupSettings: User group settings.
	GroupSettings []*ProtoApiPb2V1UserGroupSettingsWrapper `json:"groupSettings,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Error") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Error") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1GroupsSettingsListResponse: Response message of request to list group settings.

func (*ProtoApiPb2V1GroupsSettingsListResponse) MarshalJSON

func (s *ProtoApiPb2V1GroupsSettingsListResponse) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1GroupsUpdateResponse

type ProtoApiPb2V1GroupsUpdateResponse struct {
	// Error: Request error.
	Error *ProtoApiPb2V1ErrorMessage `json:"error,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Error") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Error") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1GroupsUpdateResponse: Response message of request to update a group.

func (*ProtoApiPb2V1GroupsUpdateResponse) MarshalJSON

func (s *ProtoApiPb2V1GroupsUpdateResponse) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1IssueCommentWrapper

type ProtoApiPb2V1IssueCommentWrapper struct {
	// Attachments: Issue attachment.
	Attachments []*ProtoApiPb2V1Attachment `json:"attachments,omitempty"`

	// Author: Atomic person.
	Author *ProtoApiPb2V1AtomPerson `json:"author,omitempty"`

	CanDelete bool `json:"canDelete,omitempty"`

	Content string `json:"content,omitempty"`

	// DeletedBy: Atomic person.
	DeletedBy *ProtoApiPb2V1AtomPerson `json:"deletedBy,omitempty"`

	Id int64 `json:"id,omitempty"`

	IsDescription bool `json:"is_description,omitempty"`

	Kind string `json:"kind,omitempty"`

	Published string `json:"published,omitempty"`

	// Updates: Issue update.
	Updates *ProtoApiPb2V1Update `json:"updates,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Attachments") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Attachments") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1IssueCommentWrapper: Issue comment details.

func (*ProtoApiPb2V1IssueCommentWrapper) MarshalJSON

func (s *ProtoApiPb2V1IssueCommentWrapper) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1IssueRef

type ProtoApiPb2V1IssueRef struct {
	IssueId int64 `json:"issueId,omitempty"`

	Kind string `json:"kind,omitempty"`

	ProjectId string `json:"projectId,omitempty"`

	// ForceSendFields is a list of field names (e.g. "IssueId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "IssueId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1IssueRef: Issue reference.

func (*ProtoApiPb2V1IssueRef) MarshalJSON

func (s *ProtoApiPb2V1IssueRef) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1IssueWrapper

type ProtoApiPb2V1IssueWrapper struct {
	// ApprovalValues: Approval Value details
	ApprovalValues []*ProtoApiPb2V1Approval `json:"approvalValues,omitempty"`

	// Author: Atomic person.
	Author *ProtoApiPb2V1AtomPerson `json:"author,omitempty"`

	// BlockedOn: Issue reference.
	BlockedOn []*ProtoApiPb2V1IssueRef `json:"blockedOn,omitempty"`

	// Blocking: Issue reference.
	Blocking []*ProtoApiPb2V1IssueRef `json:"blocking,omitempty"`

	CanComment bool `json:"canComment,omitempty"`

	CanEdit bool `json:"canEdit,omitempty"`

	// Cc: Atomic person.
	Cc []*ProtoApiPb2V1AtomPerson `json:"cc,omitempty"`

	Closed string `json:"closed,omitempty"`

	ComponentModified string `json:"component_modified,omitempty"`

	Components []string `json:"components,omitempty"`

	Description string `json:"description,omitempty"`

	// FieldValues: Custom field values.
	FieldValues []*ProtoApiPb2V1FieldValue `json:"fieldValues,omitempty"`

	Id int64 `json:"id,omitempty"`

	Kind string `json:"kind,omitempty"`

	Labels []string `json:"labels,omitempty"`

	// MergedInto: Issue reference.
	MergedInto *ProtoApiPb2V1IssueRef `json:"mergedInto,omitempty"`

	// Owner: Atomic person.
	Owner *ProtoApiPb2V1AtomPerson `json:"owner,omitempty"`

	OwnerModified string `json:"owner_modified,omitempty"`

	// Phases: Issue phase details.
	Phases []*ProtoApiPb2V1Phase `json:"phases,omitempty"`

	ProjectId string `json:"projectId,omitempty"`

	Published string `json:"published,omitempty"`

	Starred bool `json:"starred,omitempty"`

	Stars int64 `json:"stars,omitempty"`

	// Possible values:
	//   "closed"
	//   "open"
	State string `json:"state,omitempty"`

	Status string `json:"status,omitempty"`

	StatusModified string `json:"status_modified,omitempty"`

	Summary string `json:"summary,omitempty"`

	Title string `json:"title,omitempty"`

	Updated string `json:"updated,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ApprovalValues") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ApprovalValues") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1IssueWrapper: Issue details.

func (*ProtoApiPb2V1IssueWrapper) MarshalJSON

func (s *ProtoApiPb2V1IssueWrapper) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1IssuesCommentsDeleteResponse

type ProtoApiPb2V1IssuesCommentsDeleteResponse struct {
	// Error: Request error.
	Error *ProtoApiPb2V1ErrorMessage `json:"error,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Error") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Error") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1IssuesCommentsDeleteResponse: Response message of request to delete/undelete an issue's comments.

func (*ProtoApiPb2V1IssuesCommentsDeleteResponse) MarshalJSON

type ProtoApiPb2V1IssuesCommentsInsertResponse

type ProtoApiPb2V1IssuesCommentsInsertResponse struct {
	// Author: Atomic person.
	Author *ProtoApiPb2V1AtomPerson `json:"author,omitempty"`

	CanDelete bool `json:"canDelete,omitempty"`

	Content string `json:"content,omitempty"`

	// Error: Request error.
	Error *ProtoApiPb2V1ErrorMessage `json:"error,omitempty"`

	Id int64 `json:"id,omitempty"`

	Kind string `json:"kind,omitempty"`

	Published string `json:"published,omitempty"`

	// Updates: Issue update.
	Updates *ProtoApiPb2V1Update `json:"updates,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Author") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Author") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1IssuesCommentsInsertResponse: Response message of request to insert an issue's comments.

func (*ProtoApiPb2V1IssuesCommentsInsertResponse) MarshalJSON

type ProtoApiPb2V1IssuesCommentsListResponse

type ProtoApiPb2V1IssuesCommentsListResponse struct {
	// Error: Request error.
	Error *ProtoApiPb2V1ErrorMessage `json:"error,omitempty"`

	// Items: Issue comment details.
	Items []*ProtoApiPb2V1IssueCommentWrapper `json:"items,omitempty"`

	Kind string `json:"kind,omitempty"`

	TotalResults int64 `json:"totalResults,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Error") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Error") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1IssuesCommentsListResponse: Response message of request to list an issue's comments.

func (*ProtoApiPb2V1IssuesCommentsListResponse) MarshalJSON

func (s *ProtoApiPb2V1IssuesCommentsListResponse) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1IssuesGetInsertResponse

type ProtoApiPb2V1IssuesGetInsertResponse struct {
	// ApprovalValues: Approval Value details
	ApprovalValues []*ProtoApiPb2V1Approval `json:"approvalValues,omitempty"`

	// Author: Atomic person.
	Author *ProtoApiPb2V1AtomPerson `json:"author,omitempty"`

	// BlockedOn: Issue reference.
	BlockedOn []*ProtoApiPb2V1IssueRef `json:"blockedOn,omitempty"`

	// Blocking: Issue reference.
	Blocking []*ProtoApiPb2V1IssueRef `json:"blocking,omitempty"`

	CanComment bool `json:"canComment,omitempty"`

	CanEdit bool `json:"canEdit,omitempty"`

	// Cc: Atomic person.
	Cc []*ProtoApiPb2V1AtomPerson `json:"cc,omitempty"`

	Closed string `json:"closed,omitempty"`

	ComponentModified string `json:"component_modified,omitempty"`

	Components []string `json:"components,omitempty"`

	// Error: Request error.
	Error *ProtoApiPb2V1ErrorMessage `json:"error,omitempty"`

	// FieldValues: Custom field values.
	FieldValues []*ProtoApiPb2V1FieldValue `json:"fieldValues,omitempty"`

	Id int64 `json:"id,omitempty"`

	Kind string `json:"kind,omitempty"`

	Labels []string `json:"labels,omitempty"`

	// MergedInto: Issue reference.
	MergedInto *ProtoApiPb2V1IssueRef `json:"mergedInto,omitempty"`

	// Owner: Atomic person.
	Owner *ProtoApiPb2V1AtomPerson `json:"owner,omitempty"`

	OwnerModified string `json:"owner_modified,omitempty"`

	// Phases: Issue phase details.
	Phases []*ProtoApiPb2V1Phase `json:"phases,omitempty"`

	ProjectId string `json:"projectId,omitempty"`

	Published string `json:"published,omitempty"`

	Starred bool `json:"starred,omitempty"`

	Stars int64 `json:"stars,omitempty"`

	// Possible values:
	//   "closed"
	//   "open"
	State string `json:"state,omitempty"`

	Status string `json:"status,omitempty"`

	StatusModified string `json:"status_modified,omitempty"`

	Summary string `json:"summary,omitempty"`

	Title string `json:"title,omitempty"`

	Updated string `json:"updated,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "ApprovalValues") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ApprovalValues") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1IssuesGetInsertResponse: Response message of request to get/insert an issue.

func (*ProtoApiPb2V1IssuesGetInsertResponse) MarshalJSON

func (s *ProtoApiPb2V1IssuesGetInsertResponse) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1IssuesListResponse

type ProtoApiPb2V1IssuesListResponse struct {
	// Error: Request error.
	Error *ProtoApiPb2V1ErrorMessage `json:"error,omitempty"`

	// Items: Issue details.
	Items []*ProtoApiPb2V1IssueWrapper `json:"items,omitempty"`

	Kind string `json:"kind,omitempty"`

	TotalResults int64 `json:"totalResults,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Error") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Error") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1IssuesListResponse: Response message of request to list issues.

func (*ProtoApiPb2V1IssuesListResponse) MarshalJSON

func (s *ProtoApiPb2V1IssuesListResponse) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1Label

type ProtoApiPb2V1Label struct {
	Description string `json:"description,omitempty"`

	Label string `json:"label,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Description") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Description") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1Label: Issue label.

func (*ProtoApiPb2V1Label) MarshalJSON

func (s *ProtoApiPb2V1Label) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1Phase

type ProtoApiPb2V1Phase struct {
	PhaseName string `json:"phaseName,omitempty"`

	Rank int64 `json:"rank,omitempty,string"`

	// ForceSendFields is a list of field names (e.g. "PhaseName") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "PhaseName") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1Phase: Issue phase details.

func (*ProtoApiPb2V1Phase) MarshalJSON

func (s *ProtoApiPb2V1Phase) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1ProjectIssueConfig

type ProtoApiPb2V1ProjectIssueConfig struct {
	DefaultColumns []string `json:"defaultColumns,omitempty"`

	DefaultPromptForMembers int64 `json:"defaultPromptForMembers,omitempty"`

	DefaultPromptForNonMembers int64 `json:"defaultPromptForNonMembers,omitempty"`

	DefaultSorting []string `json:"defaultSorting,omitempty"`

	Kind string `json:"kind,omitempty"`

	// Labels: Issue label.
	Labels []*ProtoApiPb2V1Label `json:"labels,omitempty"`

	// Prompts: Default issue template values.
	Prompts []*ProtoApiPb2V1Prompt `json:"prompts,omitempty"`

	RestrictToKnown bool `json:"restrictToKnown,omitempty"`

	// Statuses: Issue status.
	Statuses []*ProtoApiPb2V1Status `json:"statuses,omitempty"`

	UsersCanSetLabels bool `json:"usersCanSetLabels,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DefaultColumns") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "DefaultColumns") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1ProjectIssueConfig: Issue configuration of project.

func (*ProtoApiPb2V1ProjectIssueConfig) MarshalJSON

func (s *ProtoApiPb2V1ProjectIssueConfig) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1ProjectWrapper

type ProtoApiPb2V1ProjectWrapper struct {
	Description string `json:"description,omitempty"`

	ExternalId string `json:"externalId,omitempty"`

	HtmlLink string `json:"htmlLink,omitempty"`

	// IssuesConfig: Issue configuration of project.
	IssuesConfig *ProtoApiPb2V1ProjectIssueConfig `json:"issuesConfig,omitempty"`

	Kind string `json:"kind,omitempty"`

	// Members: Atomic person.
	Members []*ProtoApiPb2V1AtomPerson `json:"members,omitempty"`

	Name string `json:"name,omitempty"`

	RepositoryUrls []string `json:"repositoryUrls,omitempty"`

	// Possible values:
	//   "contributor"
	//   "member"
	//   "owner"
	Role string `json:"role,omitempty"`

	Summary string `json:"summary,omitempty"`

	VersionControlSystem string `json:"versionControlSystem,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Description") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Description") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1ProjectWrapper: Project details.

func (*ProtoApiPb2V1ProjectWrapper) MarshalJSON

func (s *ProtoApiPb2V1ProjectWrapper) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1Prompt

type ProtoApiPb2V1Prompt struct {
	ComponentRequired bool `json:"componentRequired,omitempty"`

	DefaultToMember bool `json:"defaultToMember,omitempty"`

	Description string `json:"description,omitempty"`

	Labels []string `json:"labels,omitempty"`

	MembersOnly bool `json:"membersOnly,omitempty"`

	Name string `json:"name,omitempty"`

	Status string `json:"status,omitempty"`

	Title string `json:"title,omitempty"`

	TitleMustBeEdited bool `json:"titleMustBeEdited,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ComponentRequired")
	// to unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ComponentRequired") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1Prompt: Default issue template values.

func (*ProtoApiPb2V1Prompt) MarshalJSON

func (s *ProtoApiPb2V1Prompt) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1Status

type ProtoApiPb2V1Status struct {
	Description string `json:"description,omitempty"`

	MeansOpen bool `json:"meansOpen,omitempty"`

	Status string `json:"status,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Description") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Description") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1Status: Issue status.

func (*ProtoApiPb2V1Status) MarshalJSON

func (s *ProtoApiPb2V1Status) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1Update

type ProtoApiPb2V1Update struct {
	BlockedOn []string `json:"blockedOn,omitempty"`

	Blocking []string `json:"blocking,omitempty"`

	Cc []string `json:"cc,omitempty"`

	Components []string `json:"components,omitempty"`

	// FieldValues: Custom field values.
	FieldValues []*ProtoApiPb2V1FieldValue `json:"fieldValues,omitempty"`

	IsDescription bool `json:"is_description,omitempty"`

	Kind string `json:"kind,omitempty"`

	Labels []string `json:"labels,omitempty"`

	MergedInto string `json:"mergedInto,omitempty"`

	MoveToProject string `json:"moveToProject,omitempty"`

	Owner string `json:"owner,omitempty"`

	Status string `json:"status,omitempty"`

	Summary string `json:"summary,omitempty"`

	// ForceSendFields is a list of field names (e.g. "BlockedOn") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "BlockedOn") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1Update: Issue update.

func (*ProtoApiPb2V1Update) MarshalJSON

func (s *ProtoApiPb2V1Update) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1UserGroupSettingsWrapper

type ProtoApiPb2V1UserGroupSettingsWrapper struct {
	// Possible values:
	//   "BAGGINS"
	//   "CHROME_INFRA_AUTH"
	//   "COMPUTED"
	//   "MDB"
	ExtGroupType string `json:"ext_group_type,omitempty"`

	GroupName string `json:"groupName,omitempty"`

	LastSyncTime int64 `json:"last_sync_time,omitempty"`

	// Possible values:
	//   "ANYONE"
	//   "MEMBERS" (default)
	//   "OWNERS"
	WhoCanViewMembers string `json:"who_can_view_members,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ExtGroupType") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ExtGroupType") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1UserGroupSettingsWrapper: User group settings.

func (*ProtoApiPb2V1UserGroupSettingsWrapper) MarshalJSON

func (s *ProtoApiPb2V1UserGroupSettingsWrapper) MarshalJSON() ([]byte, error)

type ProtoApiPb2V1UsersGetResponse

type ProtoApiPb2V1UsersGetResponse struct {
	// Error: Request error.
	Error *ProtoApiPb2V1ErrorMessage `json:"error,omitempty"`

	Id string `json:"id,omitempty"`

	Kind string `json:"kind,omitempty"`

	// Projects: Project details.
	Projects []*ProtoApiPb2V1ProjectWrapper `json:"projects,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Error") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Error") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProtoApiPb2V1UsersGetResponse: Response message of request to get a user.

func (*ProtoApiPb2V1UsersGetResponse) MarshalJSON

func (s *ProtoApiPb2V1UsersGetResponse) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Approvals *ApprovalsService

	Components *ComponentsService

	Groups *GroupsService

	Issues *IssuesService

	Users *UsersService
	// contains filtered or unexported fields
}

func New deprecated

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type UsersGetCall

type UsersGetCall struct {
	// contains filtered or unexported fields
}

func (*UsersGetCall) Context

func (c *UsersGetCall) Context(ctx context.Context) *UsersGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersGetCall) Do

Do executes the "monorail.users.get" call. Exactly one of *ProtoApiPb2V1UsersGetResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProtoApiPb2V1UsersGetResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersGetCall) Fields

func (c *UsersGetCall) Fields(s ...googleapi.Field) *UsersGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersGetCall) Header

func (c *UsersGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersGetCall) IfNoneMatch

func (c *UsersGetCall) IfNoneMatch(entityTag string) *UsersGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*UsersGetCall) OwnerProjectsOnly

func (c *UsersGetCall) OwnerProjectsOnly(ownerProjectsOnly bool) *UsersGetCall

OwnerProjectsOnly sets the optional parameter "ownerProjectsOnly":

type UsersService

type UsersService struct {
	// contains filtered or unexported fields
}

func NewUsersService

func NewUsersService(s *Service) *UsersService

func (*UsersService) Get

func (r *UsersService) Get(userId string) *UsersGetCall

Get: Get a user.

Jump to

Keyboard shortcuts

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