issuetracker

package
v0.0.0-...-b95a7b5 Latest Latest
Warning

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

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

Documentation

Overview

Package issuetracker provides access to the Google Issue Tracker API.

For product documentation, see: https://developers.google.com/issue-tracker/partner

Creating a client

Usage example:

import "go.skia.org/infra/go/issuetracker/v1"
...
ctx := context.Background()
issuetrackerService, err := issuetracker.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:

issuetrackerService, err := issuetracker.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, ...)
issuetrackerService, err := issuetracker.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	// AttachmentDataRef: Proto to uniquely identify an attachment for
	// reading/writing its data.
	AttachmentDataRef *AttachmentDataRef `json:"attachmentDataRef,omitempty"`

	// AttachmentId: Output only. Unique ID.
	AttachmentId int64 `json:"attachmentId,omitempty,string"`

	// ContentType: MIME type of the data.
	ContentType string `json:"contentType,omitempty"`

	// Etag: Output only. Fingerprint of the attachment.
	Etag string `json:"etag,omitempty"`

	// Filename: Original file name.
	Filename string `json:"filename,omitempty"`

	// Length: Size of the data, in bytes.
	Length int64 `json:"length,omitempty,string"`

	// ForceSendFields is a list of field names (e.g. "AttachmentDataRef")
	// 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. "AttachmentDataRef") 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:"-"`
}

Attachment: Represents an issue attachment. Each attachment is owned by a single issue, designated on creation. After creation, it cannot be transferred to another issue.

func (*Attachment) MarshalJSON

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

type AttachmentDataRef

type AttachmentDataRef struct {
	// ResourceName: Unique identifier for the attachment data.
	ResourceName string `json:"resourceName,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ResourceName") 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. "ResourceName") 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:"-"`
}

AttachmentDataRef: Contains resource name to uniquely identify attachments for reading/writing.

func (*AttachmentDataRef) MarshalJSON

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

type CollectionUpdate

type CollectionUpdate struct {
	// AddedValues: Output only. Values added to the collection.
	AddedValues []googleapi.RawMessage `json:"addedValues,omitempty"`

	// RemovedValues: Output only. Values removed from the collection.
	RemovedValues []googleapi.RawMessage `json:"removedValues,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AddedValues") 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. "AddedValues") 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:"-"`
}

CollectionUpdate: Representation of a change to a collection.

func (*CollectionUpdate) MarshalJSON

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

type CreateHotlistEntryRequest

type CreateHotlistEntryRequest struct {
	// HotlistEntry: HotlistEntry position will not be taken into account.
	// Issues are always prepended to the hotlist and have position = 1. If
	// the issue is already present on the hotlist it will be moved to
	// position = 1.
	HotlistEntry *HotlistEntry `json:"hotlistEntry,omitempty"`

	// SignificanceOverride: Significance to assign to this hotlist entry
	// creation.
	//
	// Possible values:
	//   "EDIT_SIGNIFICANCE_UNSPECIFIED" - Default value. Let the API decide
	// the significance of an edit.
	//   "MINOR" - Describes an edit that should only send notifications to
	// users that are closely-involved with an issue or have expressed a
	// high level of interest in the issue.
	//   "MAJOR" - Describes an edit that should send notifications to all
	// users involved or interested in the issue.
	//   "BULK" - Describes an edit that was part of a bulk edit and should
	// notify users in digest form.
	SignificanceOverride string `json:"significanceOverride,omitempty"`

	// ForceSendFields is a list of field names (e.g. "HotlistEntry") 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. "HotlistEntry") 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:"-"`
}

CreateHotlistEntryRequest: Request object for IssueTracker.CreateHotlistEntry Used to add an issue to a hotlist

func (*CreateHotlistEntryRequest) MarshalJSON

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

type CustomField

type CustomField struct {
	// ComponentId: ID of the component that owns this custom field. May not
	// be changed after creation.
	ComponentId int64 `json:"componentId,omitempty,string"`

	// CustomFieldId: Output only. Unique ID. Assigned at creation time by
	// the API backend.
	CustomFieldId int64 `json:"customFieldId,omitempty,string"`

	// Description: An optional description of the custom field.
	Description string `json:"description,omitempty"`

	// EnumValues: Describes all allowed values. Used only for the ENUM
	// type.
	EnumValues []string `json:"enumValues,omitempty"`

	// Name: The name used to represent the field.
	Name string `json:"name,omitempty"`

	// Required: Whether the custom field is considered a required field in
	// the api.
	Required bool `json:"required,omitempty"`

	// Shared: Output only. An optional attribute to make the field
	// available outside the component where it's defined.
	Shared bool `json:"shared,omitempty"`

	// Type: Describes how the custom field value should be interpreted.
	//
	// Possible values:
	//   "TYPE_UNSPECIFIED" - Custom field value is undefined.
	//   "TEXT" - Custom field value is text.
	//   "DATE" - Custom field value is a google.type.Date.
	//   "ENUM" - Custom field value is an enum.
	//   "NUMERIC" - Custom field value is a number.
	//   "REPEATED_TEXT" - Custom field value is a list of text values.
	//   "REPEATED_DATE" - Custom field value is a list of date values.
	//   "REPEATED_ENUM" - Custom field value is a list of enum values.
	//   "REPEATED_NUMERIC" - Custom field value is a list of numeric
	// values.
	Type string `json:"type,omitempty"`

	// TypedDefaultValue: A default value that will be automatically set if
	// none is provided by the user.
	TypedDefaultValue *CustomFieldValue `json:"typedDefaultValue,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ComponentId") 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. "ComponentId") 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:"-"`
}

CustomField: Represents the definition of a custom field. Exists as part of a Component.

func (*CustomField) MarshalJSON

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

type CustomFieldValue

type CustomFieldValue struct {
	// CustomFieldId: Required. The numeric ID of the custom field that
	// describes this value.
	CustomFieldId int64 `json:"customFieldId,omitempty,string"`

	// DateValue: Corresponds to CustomFieldType.DATE.
	DateValue *Date `json:"dateValue,omitempty"`

	// DisplayString: A read-only string for displaying the value,
	// regardless of type. Date strings are in ISO-8601 format.
	DisplayString string `json:"displayString,omitempty"`

	// EnumValue: Corresponds to CustomFieldType.ENUM.
	EnumValue string `json:"enumValue,omitempty"`

	// NumericValue: Corresponds to CustomFieldType.NUMERIC.
	NumericValue float64 `json:"numericValue,omitempty"`

	// RepeatedDateValue: Corresponds to CustomFieldType.REPEATED_DATE.
	RepeatedDateValue *RepeatedDate `json:"repeatedDateValue,omitempty"`

	// RepeatedEnumValue: Corresponds to CustomFieldType.REPEATED_ENUM.
	RepeatedEnumValue *RepeatedString `json:"repeatedEnumValue,omitempty"`

	// RepeatedNumericValue: Corresponds to
	// CustomFieldType.REPEATED_NUMERIC.
	RepeatedNumericValue *RepeatedDouble `json:"repeatedNumericValue,omitempty"`

	// RepeatedTextValue: Corresponds to CustomFieldType.REPEATED_TEXT.
	RepeatedTextValue *RepeatedString `json:"repeatedTextValue,omitempty"`

	// TextValue: Corresponds to CustomFieldType.TEXT.
	TextValue string `json:"textValue,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CustomFieldId") 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. "CustomFieldId") 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:"-"`
}

CustomFieldValue: Represents a value in an instance of a custom field. Exists as a part of an issue.

func (*CustomFieldValue) MarshalJSON

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

func (*CustomFieldValue) UnmarshalJSON

func (s *CustomFieldValue) UnmarshalJSON(data []byte) error

type Date

type Date struct {
	// Day: Day of a month. Must be from 1 to 31 and valid for the year and
	// month, or 0 to specify a year by itself or a year and month where the
	// day isn't significant.
	Day int64 `json:"day,omitempty"`

	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year
	// without a month and day.
	Month int64 `json:"month,omitempty"`

	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a
	// date without a year.
	Year int64 `json:"year,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Day") 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. "Day") 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:"-"`
}

Date: Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp

func (*Date) MarshalJSON

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

type Empty

type Empty struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

type FieldId

type FieldId struct {
	// CustomFieldId: The ID of a custom field.
	CustomFieldId int64 `json:"customFieldId,omitempty,string"`

	// StandardField: A standard system field.
	//
	// Possible values:
	//   "STANDARD_FIELD_UNSPECIFIED" - Standard field is undefined.
	//   "REPORTER" - The Reporter field.
	//   "ASSIGNEE" - The Assignee field.
	//   "VERIFIER" - The Verifier field.
	//   "CC" - The CC field.
	//   "TYPE" - The Issue Type field.
	//   "STATUS" - The Issue Status field.
	//   "PRIORITY" - The Priority field.
	//   "SEVERITY" - The Severity field.
	//   "FOUND_IN" - The Found In field.
	//   "TARGETED_TO" - The Targeted To field.
	//   "VERIFIED_IN" - The Verified In field.
	//   "IN_PRODUCTION" - The In Production field.
	StandardField string `json:"standardField,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CustomFieldId") 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. "CustomFieldId") 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:"-"`
}

FieldId: Represents an identifier that can be used to uniquely identify either a standard or custom field.

func (*FieldId) MarshalJSON

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

type FieldUpdate

type FieldUpdate struct {
	// CollectionUpdate: Output only. Set if the field edited is a
	// collection.
	CollectionUpdate *CollectionUpdate `json:"collectionUpdate,omitempty"`

	// Field: Output only. The name of the field this diff represents. The
	// value of field will match a name from the fields of IssueState. A
	// change in a custom field value will be named 'custom_fields', and is
	// treated as changes to a single field, rather than a collection. There
	// may be more than one custom field change in an IssueUpdate.
	Field string `json:"field,omitempty"`

	// SingleValueUpdate: Set if the field edited has a single value.
	SingleValueUpdate *SingleValueUpdate `json:"singleValueUpdate,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CollectionUpdate") 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. "CollectionUpdate") 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:"-"`
}

FieldUpdate: Represents an update to a single field in an issue.

func (*FieldUpdate) MarshalJSON

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

type HotlistEntry

type HotlistEntry struct {
	// Issue: Output only. The actual issue, for convenience.
	Issue *Issue `json:"issue,omitempty"`

	// IssueId: Required. Numeric ID of an issue contained in a hotlist.
	IssueId int64 `json:"issueId,omitempty,string"`

	// Position: Position values for an ordered collection begin at 1 and
	// increment to the end of the collection.
	Position int64 `json:"position,omitempty"`

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

	// ForceSendFields is a list of field names (e.g. "Issue") 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. "Issue") 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:"-"`
}

HotlistEntry: An issue present in a hotlist. A collection of HotlistEntry's can be ordered or un-ordered. The HotlistEntry collection is added to or removed from by calling the CreateHotlistEntry and DeleteHotlistEntry methods. Although these methods only require view permission on the issue, the act of adding or removing a hotlist entry for an issue is reflected in the issue's change history and touches the issue modification date.

func (*HotlistEntry) MarshalJSON

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

type HotlistsCreateEntriesCall

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

func (*HotlistsCreateEntriesCall) 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 (*HotlistsCreateEntriesCall) Do

Do executes the "issuetracker.hotlists.createEntries" call. Exactly one of *HotlistEntry or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HotlistEntry.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 (*HotlistsCreateEntriesCall) Fields

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

func (*HotlistsCreateEntriesCall) Header

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

type HotlistsEntriesDeleteCall

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

func (*HotlistsEntriesDeleteCall) 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 (*HotlistsEntriesDeleteCall) Do

Do executes the "issuetracker.hotlists.entries.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*HotlistsEntriesDeleteCall) Fields

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

func (*HotlistsEntriesDeleteCall) Header

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

func (*HotlistsEntriesDeleteCall) SignificanceOverride

func (c *HotlistsEntriesDeleteCall) SignificanceOverride(significanceOverride string) *HotlistsEntriesDeleteCall

SignificanceOverride sets the optional parameter "significanceOverride": Significance to assign to this hotlist entry deletion.

Possible values:

"EDIT_SIGNIFICANCE_UNSPECIFIED" - Default value. Let the API decide

the significance of an edit.

"MINOR" - Describes an edit that should only send notifications to

users that are closely-involved with an issue or have expressed a high level of interest in the issue.

"MAJOR" - Describes an edit that should send notifications to all

users involved or interested in the issue.

"BULK" - Describes an edit that was part of a bulk edit and should

notify users in digest form.

type HotlistsEntriesService

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

func NewHotlistsEntriesService

func NewHotlistsEntriesService(s *Service) *HotlistsEntriesService

func (*HotlistsEntriesService) Delete

func (r *HotlistsEntriesService) Delete(hotlistId int64, issueId int64) *HotlistsEntriesDeleteCall

Delete: Removes an issue from a hotlist by deleting hotlistEntry. Removing an issue from a hotlist it does not belong to will do nothing and return. Requires hotlist APPEND and issue VIEW permission

type HotlistsService

type HotlistsService struct {
	Entries *HotlistsEntriesService
	// contains filtered or unexported fields
}

func NewHotlistsService

func NewHotlistsService(s *Service) *HotlistsService

func (*HotlistsService) CreateEntries

func (r *HotlistsService) CreateEntries(hotlistId int64, createhotlistentryrequest *CreateHotlistEntryRequest) *HotlistsCreateEntriesCall

CreateEntries: Adds an issue to a hotlist by creating a HotlistEntry. Returns the created HotlistEntry. Requires hotlist APPEND and issue VIEW permission

type Hyperlink struct {
	// Href: URL.
	Href string `json:"href,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Href") 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. "Href") 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:"-"`
}

Hyperlink: Represents a hyperlink.

func (*Hyperlink) MarshalJSON

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

type Issue

type Issue struct {
	// Ancestors: Output only. This field is set only when the issue is the
	// FULL view. A map from a child issue ID to parent issue IDs for all of
	// the ancestors of this issue. The values are based on cache. It is not
	// transactionally guaranteed, but eventually consistent.
	Ancestors map[string]SourceIssues `json:"ancestors,omitempty"`

	// Attachments: The attachment field has different functions based on
	// usages (similar to issue_comment): * In a CreateIssueRequest, this
	// message can be used to provide attachments as part of issue creation.
	// * In the response to CreateIssue, this message contains the added
	// attachments. It includes the resource names to pass to the ByteStream
	// API to write attachment data. * In the response to GetIssue or
	// ListIssues, this field is left unset.
	Attachments []*Attachment `json:"attachments,omitempty"`

	// ChildIssueCount: Output only. This field is set only when the issue
	// is the FULL view. The number of child issues of this issue.
	ChildIssueCount int64 `json:"childIssueCount,omitempty"`

	// CreatedTime: Output only. Time when this issue was created.
	CreatedTime string `json:"createdTime,omitempty"`

	// CustomFields: Output only. The Custom Fields definitions effective in
	// this issue, as determined by the component it is currently in. For
	// the Custom Field values, see IssueState.custom_fields.
	CustomFields []*CustomField `json:"customFields,omitempty"`

	// Description: Output only. The description of this issue. This field
	// is set only when the issue is the FULL view.
	Description *IssueComment `json:"description,omitempty"`

	// Etag: Output only. The fingerprint of the issue.
	Etag string `json:"etag,omitempty"`

	// IsArchived: Output only. Whether or not the issue is in an archived
	// state. Issue archived through component archiving or per issue
	// archiving will both be considered as in an archived state.
	IsArchived bool `json:"isArchived,omitempty"`

	// IssueComment: Optional. The issue_comment field has different
	// functions based on the usage: * In a CreateIssueRequest, this message
	// should be used to provide an optional comment. Do not use this field
	// to create attachments, use the attachments field below instead. * In
	// the response to CreateIssue or ModifyIssue, this message contains the
	// added comment. * In the response to GetIssue or ListIssues, this
	// field is left unset.
	IssueComment *IssueComment `json:"issueComment,omitempty"`

	// IssueId: Output only. Unique ID. Assigned at creation time by the API
	// backend.
	IssueId int64 `json:"issueId,omitempty,string"`

	// IssueState: The current state of the issue. Will always be present.
	IssueState *IssueState `json:"issueState,omitempty"`

	// LastModifier: Output only. The last modifier of the issue.
	LastModifier *User `json:"lastModifier,omitempty"`

	// MajorModifiedTime: Output only. Time when this issue was last
	// modified by a "Major" edit. See
	// https://developers.google.com/issue-tracker/concepts/issues#edit_levels
	MajorModifiedTime string `json:"majorModifiedTime,omitempty"`

	// MinorModifiedTime: Output only. Time when this issue was last
	// modified by a "Minor" or above edit. See
	// https://developers.google.com/issue-tracker/concepts/issues#edit_levels
	MinorModifiedTime string `json:"minorModifiedTime,omitempty"`

	// ModifiedTime: Output only. Time when this issue was last modified.
	ModifiedTime string `json:"modifiedTime,omitempty"`

	// ParentIssueIds: Output only. A list of parent issue IDs.
	ParentIssueIds googleapi.Int64s `json:"parentIssueIds,omitempty"`

	// RelatedLinks: Output only. This field is set only when the issue is
	// the FULL view. Related links present in comments on the issue.
	RelatedLinks []*RelatedLink `json:"relatedLinks,omitempty"`

	// ResolvedTime: Output only. Time when this issue was resolved.
	ResolvedTime string `json:"resolvedTime,omitempty"`

	// StatusUpdate: When creating an issue the status_update field can be
	// populated to create an initial status_update on the issue. In the
	// response to GetIssue or ListIssues and the FULL view is requested, it
	// contains the latest status_update that has been put on the issue.
	StatusUpdate *StatusUpdate `json:"statusUpdate,omitempty"`

	// TrackerId: Output only. ID of the Tracker the issue belongs to. This
	// value is cached from the tracker_id of the Component that the issue
	// is in. It is not transactionally guaranteed, but eventually
	// consistent.
	TrackerId int64 `json:"trackerId,omitempty,string"`

	// UserData: Output only. IssueUserData is private to the user
	// requesting this issue.
	UserData *IssueUserData `json:"userData,omitempty"`

	// VerifiedTime: Output only. Time when this issue was verified.
	VerifiedTime string `json:"verifiedTime,omitempty"`

	// Version: Output only. The current version of this issue.
	Version int64 `json:"version,omitempty"`

	// VisibleFields: Output only. The complete, ordered list of all custom
	// fields that are visible on this issue.
	VisibleFields []*FieldId `json:"visibleFields,omitempty"`

	// VoteCount: Output only. The number of users who have upvoted this
	// issue.
	VoteCount int64 `json:"voteCount,omitempty,string"`

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

	// ForceSendFields is a list of field names (e.g. "Ancestors") 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. "Ancestors") 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:"-"`
}

Issue: Represents the current state of an issue.

func (*Issue) MarshalJSON

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

type IssueAccessLimit

type IssueAccessLimit struct {
	// AccessLevel: The access level set on an issue.
	//
	// Possible values:
	//   "ACCESS_LEVEL_UNSPECIFIED" - API will reject all access limits that
	// are unspecified.
	//   "LIMIT_NONE" - There are no access limits set on this issue.
	//   "LIMIT_VIEW" - Only actors on the issue retain view access.
	//   "LIMIT_APPEND" - Only actors on the issue retain append (e.g.
	// comment) access. Issue admins also retain access
	//   "LIMIT_VIEW_TRUSTED" - Only actors on the issue or trusted
	// (Full-time Googlers + Common tools by default) users retain view
	// access.
	AccessLevel string `json:"accessLevel,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AccessLevel") 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. "AccessLevel") 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:"-"`
}

IssueAccessLimit: Represents the access limit set on an issue.

func (*IssueAccessLimit) MarshalJSON

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

type IssueComment

type IssueComment struct {
	// Comment: Issue comment entered by the user.
	Comment string `json:"comment,omitempty"`

	// CommentNumber: Output only. Comment number for this issue comment.
	// This is the 1-based position of the comment in the stream of comments
	// associated with the issue.
	CommentNumber int64 `json:"commentNumber,omitempty"`

	// FormattingMode: The intended formatting mode of the comment.
	//
	// Possible values:
	//   "UNSPECIFIED_FORMATTING_MODE" - Unspecified mode. If unspecified,
	// will be treated as PLAIN mode for backwards compatibility.
	//   "PLAIN" - Plain formatting is to treat the source text without much
	// formatting, but with automatic linkification of entities and
	// collapsible quoted sections. This is the historical formatting, and
	// the default.
	//   "MARKDOWN" - Treats the source text as a Markdown document.
	//   "LITERAL" - For special cases where even the linkification does in
	// a PLAIN formatting mode might be hazardous, this treats the source
	// text literally. It does not perform any linkification or quoted
	// section treatment.
	FormattingMode string `json:"formattingMode,omitempty"`

	// IssueId: Output only. Issue ID for this issue comment. It uniquely
	// identifies the issue this comment belongs to.
	IssueId int64 `json:"issueId,omitempty,string"`

	// LastEditor: Output only. The user that last modified the comment. In
	// the context of ListIssueCommentHistory, this is the user that edited
	// the comment at any given version.
	LastEditor *User `json:"lastEditor,omitempty"`

	// ModifiedTime: Output only. The time of the last modification
	ModifiedTime string `json:"modifiedTime,omitempty"`

	// Version: Output only. Version of this issue comment. This is 0-based:
	// version 0 is the original comment, version 1 is the first change to
	// the comment, etc.
	Version int64 `json:"version,omitempty"`

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

	// ForceSendFields is a list of field names (e.g. "Comment") 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. "Comment") 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:"-"`
}

IssueComment: A container for user-entered text and attachments provided as a part of an update to an issue or issue creation. All fields in this message are optional. It could have been named "Comment", but Issue Comment was chosen to emphasize that it's a dependent child of issue. When IssueCommentView is unspecified, it will be returned in basic view.

func (*IssueComment) MarshalJSON

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

type IssueReference

type IssueReference struct {
	// CommentNumber: The comment number the reference is pointing to. If
	// not referencing a specific comment, 0.
	CommentNumber int64 `json:"commentNumber,omitempty"`

	// IssueId: Issue ID.
	IssueId int64 `json:"issueId,omitempty,string"`

	// ForceSendFields is a list of field names (e.g. "CommentNumber") 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. "CommentNumber") 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:"-"`
}

IssueReference: Represents a reference to an issue.

func (*IssueReference) MarshalJSON

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

type IssueState

type IssueState struct {
	// AccessLimit: The access limit set on this issue.
	AccessLimit *IssueAccessLimit `json:"accessLimit,omitempty"`

	// Assignee: The current assignee of the issue.
	Assignee *User `json:"assignee,omitempty"`

	// BlockedByIssueIds: A list of issue ids that block completion of this
	// issue.
	BlockedByIssueIds googleapi.Int64s `json:"blockedByIssueIds,omitempty"`

	// BlockingIssueIds: A list of issue ids that are blocked by this issue.
	BlockingIssueIds googleapi.Int64s `json:"blockingIssueIds,omitempty"`

	// CanonicalIssueId: If the issue has an IssueStatus of DUPLICATE, this
	// field will be populated with the issue id this is marked as a
	// duplicate of.
	CanonicalIssueId int64 `json:"canonicalIssueId,omitempty,string"`

	// Ccs: CCed users and list addresses on this issue.
	Ccs []*User `json:"ccs,omitempty"`

	// ComponentId: Required. Component this issue belongs to.
	ComponentId int64 `json:"componentId,omitempty,string"`

	// CustomFields: The custom field values currently set on the issue.
	CustomFields []*CustomFieldValue `json:"customFields,omitempty"`

	// DuplicateIssueIds: Output only. The ids of duplicate issues that have
	// marked this one as their canonical issue.
	DuplicateIssueIds googleapi.Int64s `json:"duplicateIssueIds,omitempty"`

	// FoundInVersions: A collection of release versions affected by this
	// issue.
	FoundInVersions []string `json:"foundInVersions,omitempty"`

	// HotlistIds: All of the hotlists currently applied to the issue.
	HotlistIds googleapi.Int64s `json:"hotlistIds,omitempty"`

	// InProd: Whether or not the behavior of this issue is exhibited in
	// production.
	InProd bool `json:"inProd,omitempty"`

	// IsArchived: Output only. Whether the issue has been archived through
	// per issue archiving. Note: use Issue.is_archived to decide if the
	// issue is in an archived state because issue can also be archived
	// through component.
	IsArchived bool `json:"isArchived,omitempty"`

	// Priority: Required. The current priority of the issue.
	//
	// Possible values:
	//   "PRIORITY_UNSPECIFIED" - Unspecified. Invalid state.
	//   "P0" - P0
	//   "P1" - P1
	//   "P2" - P2
	//   "P3" - P3
	//   "P4" - P4
	Priority string `json:"priority,omitempty"`

	// Reporter: *Required except for CreateIssue calls.* The reporter of
	// the issue. On CreateIssue calls only, if not set or if set to a blank
	// email address, will be set to the id of the requesting user.
	Reporter *User `json:"reporter,omitempty"`

	// Severity: Required. The current severity of the issue.
	//
	// Possible values:
	//   "SEVERITY_UNSPECIFIED" - Unspecified. Invalid state.
	//   "S0" - S0
	//   "S1" - S1
	//   "S2" - S2
	//   "S3" - S3
	//   "S4" - S4
	Severity string `json:"severity,omitempty"`

	// Status: Required. The current state of the issue.
	//
	// Possible values:
	//   "STATUS_UNSPECIFIED" - Unspecified. Invalid state.
	//   "NEW" - Issue is unassigned.
	//   "ASSIGNED" - Issue has been assigned.
	//   "ACCEPTED" - Issue has been accepted as a task by the assignee.
	//   "FIXED" - Issue has been marked Fixed.
	//   "VERIFIED" - Issue has been marked Verified.
	//   "NOT_REPRODUCIBLE" - Issue has been marked: Won't Fix (Not
	// Reproducible).
	//   "INTENDED_BEHAVIOR" - Issue has been marked: Won't Fix (Intended
	// Behavior).
	//   "OBSOLETE" - Issue has been marked: Won't Fix (Obsolete).
	//   "INFEASIBLE" - Issue has been marked: Won't Fix (Infeasible).
	//   "DUPLICATE" - Issue has been marked as a duplicate of another
	// issue.
	Status string `json:"status,omitempty"`

	// TargetedToVersions: The targeted release versions that will include
	// the fix for this issue.
	TargetedToVersions []string `json:"targetedToVersions,omitempty"`

	// Title: Required. Short summary of the issue.
	Title string `json:"title,omitempty"`

	// Type: Required. The current type of the issue.
	//
	// Possible values:
	//   "TYPE_UNSPECIFIED" - Unspecified. Invalid state.
	//   "BUG" - Bug
	//   "FEATURE_REQUEST" - Feature Request
	//   "CUSTOMER_ISSUE" - Customer Issue
	//   "INTERNAL_CLEANUP" - Internal Cleanup
	//   "PROCESS" - Process
	//   "VULNERABILITY" - Vulnerability (e.g. security or privacy)
	//   "PRIVACY_ISSUE" - Privacy Issue
	//   "PORTFOLIO" - Portfolio (NOT SUPPORTED YET)
	//   "PROGRAM" - Program (NOT SUPPORTED YET)
	//   "PROJECT" - Project
	//   "FEATURE" - Feature
	//   "MILESTONE" - Milestone
	//   "EPIC" - Epic
	//   "STORY" - Story
	//   "TASK" - Task
	Type string `json:"type,omitempty"`

	// VerifiedInVersions: The release versions which have been confirmed as
	// verified.
	VerifiedInVersions []string `json:"verifiedInVersions,omitempty"`

	// Verifier: The current verifier of the issue.
	Verifier *User `json:"verifier,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AccessLimit") 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. "AccessLimit") 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:"-"`
}

IssueState: Contains the current state of an issue.

func (*IssueState) MarshalJSON

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

type IssueUpdate

type IssueUpdate struct {
	// Attachments: Output only. Attachments entered by user.
	Attachments []*Attachment `json:"attachments,omitempty"`

	// Author: Output only. Author of the update.
	Author *User `json:"author,omitempty"`

	// CommentNumber: Output only. If this update has a comment, this will
	// represent the relative index of the comment. Index begins at 1.
	CommentNumber int64 `json:"commentNumber,omitempty"`

	// FieldUpdates: Output only. The set of updates representing this
	// particular Issue update.
	FieldUpdates []*FieldUpdate `json:"fieldUpdates,omitempty"`

	// IssueComment: Output only. Comment entered by the user.
	IssueComment *IssueComment `json:"issueComment,omitempty"`

	// IssueId: Output only. Issue ID for this issue update. It uniquely
	// identifies the issue this update belongs to.
	IssueId int64 `json:"issueId,omitempty,string"`

	// StatusUpdate: Output only. The StatusUpdate entered by a user.
	StatusUpdate *StatusUpdate `json:"statusUpdate,omitempty"`

	// Timestamp: Output only. Time that the Issue update occurred.
	Timestamp string `json:"timestamp,omitempty"`

	// Version: Output only. The version number of this IssueUpdate, starts
	// at 0. The version of an Issue is equal to the version of its most
	// recent IssueUpdate.
	Version int64 `json:"version,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:"-"`
}

IssueUpdate: A set of changes made to an issue, represented as a collection of diffs. A collection of IssueUpdate messages can represent the full change history of an issue.

func (*IssueUpdate) MarshalJSON

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

type IssueUserData

type IssueUserData struct {
	// EditableCommentNumbers: Output only. ID's of the comments the user
	// can edit.
	EditableCommentNumbers []int64 `json:"editableCommentNumbers,omitempty"`

	// HasStarred: True if the user has starred the issue.
	HasStarred bool `json:"hasStarred,omitempty"`

	// HasUpvoted: True if the user has upvoted the issue.
	HasUpvoted bool `json:"hasUpvoted,omitempty"`

	// ForceSendFields is a list of field names (e.g.
	// "EditableCommentNumbers") 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. "EditableCommentNumbers")
	// 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:"-"`
}

IssueUserData: Represents issue-related data private to a requesting user.

func (*IssueUserData) MarshalJSON

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

type IssuesAttachmentsListCall

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

func (*IssuesAttachmentsListCall) 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 (*IssuesAttachmentsListCall) Do

Do executes the "issuetracker.issues.attachments.list" call. Exactly one of *ListAttachmentsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListAttachmentsResponse.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 (*IssuesAttachmentsListCall) Fields

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

func (*IssuesAttachmentsListCall) Header

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

func (*IssuesAttachmentsListCall) IfNoneMatch

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

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 IssuesAttachmentsService

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

func NewIssuesAttachmentsService

func NewIssuesAttachmentsService(s *Service) *IssuesAttachmentsService

func (*IssuesAttachmentsService) List

List: List attachments that belong to an issue. Only returns attachment metadata.

type IssuesCommentsCreateCall

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

func (*IssuesCommentsCreateCall) 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 (*IssuesCommentsCreateCall) Do

Do executes the "issuetracker.issues.comments.create" call. Exactly one of *IssueComment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *IssueComment.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 (*IssuesCommentsCreateCall) Fields

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

func (*IssuesCommentsCreateCall) Header

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

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

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 "issuetracker.issues.comments.list" call. Exactly one of *ListIssueCommentsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListIssueCommentsResponse.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) PageSize

func (c *IssuesCommentsListCall) PageSize(pageSize int64) *IssuesCommentsListCall

PageSize sets the optional parameter "pageSize": The number of results to return. Default 25.

func (*IssuesCommentsListCall) PageToken

func (c *IssuesCommentsListCall) PageToken(pageToken string) *IssuesCommentsListCall

PageToken sets the optional parameter "pageToken": Pagination token.

func (*IssuesCommentsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*IssuesCommentsListCall) SortBy

SortBy sets the optional parameter "sortBy": Comments are sorted by created_time. Can be specified as either ASC or DESC. Default is DESC.

type IssuesCommentsService

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

func NewIssuesCommentsService

func NewIssuesCommentsService(s *Service) *IssuesCommentsService

func (*IssuesCommentsService) Create

func (r *IssuesCommentsService) Create(issueId int64, issuecomment *IssueComment) *IssuesCommentsCreateCall

Create: Creates a new issue comment in an issue

func (*IssuesCommentsService) List

List: Fetches a list of IssueComment objects.

func (*IssuesCommentsService) Update

func (r *IssuesCommentsService) Update(issueId int64, commentNumber int64, issuecomment *IssueComment) *IssuesCommentsUpdateCall

Update: Updates an issue comment. NB: The comment manipulation methods does not use the attachment field in IssueComment.

type IssuesCommentsUpdateCall

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

func (*IssuesCommentsUpdateCall) 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 (*IssuesCommentsUpdateCall) Do

Do executes the "issuetracker.issues.comments.update" call. Exactly one of *IssueComment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *IssueComment.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 (*IssuesCommentsUpdateCall) Fields

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

func (*IssuesCommentsUpdateCall) Header

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

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

type IssuesCreateCall

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

func (*IssuesCreateCall) 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 (*IssuesCreateCall) Do

func (c *IssuesCreateCall) Do(opts ...googleapi.CallOption) (*Issue, error)

Do executes the "issuetracker.issues.create" call. Exactly one of *Issue or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Issue.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 (*IssuesCreateCall) Fields

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

func (*IssuesCreateCall) Header

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

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

func (*IssuesCreateCall) SignificanceOverride

func (c *IssuesCreateCall) SignificanceOverride(significanceOverride string) *IssuesCreateCall

SignificanceOverride sets the optional parameter "significanceOverride": Significance to assign to this issue creation.

Possible values:

"EDIT_SIGNIFICANCE_UNSPECIFIED" - Default value. Let the API decide

the significance of an edit.

"MINOR" - Describes an edit that should only send notifications to

users that are closely-involved with an issue or have expressed a high level of interest in the issue.

"MAJOR" - Describes an edit that should send notifications to all

users involved or interested in the issue.

"BULK" - Describes an edit that was part of a bulk edit and should

notify users in digest form.

func (*IssuesCreateCall) TemplateOptionsApplyTemplate

func (c *IssuesCreateCall) TemplateOptionsApplyTemplate(templateOptionsApplyTemplate bool) *IssuesCreateCall

TemplateOptionsApplyTemplate sets the optional parameter "templateOptions.applyTemplate": Whether to apply a template to the newly-created issue. Always true for end users who are not granted EDIT permission on the issue. Otherwise, default is false.

func (*IssuesCreateCall) TemplateOptionsTemplateId

func (c *IssuesCreateCall) TemplateOptionsTemplateId(templateOptionsTemplateId int64) *IssuesCreateCall

TemplateOptionsTemplateId sets the optional parameter "templateOptions.templateId": The template ID to apply to this issue. To use the component's default template, leave unset.

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

func (c *IssuesGetCall) Do(opts ...googleapi.CallOption) (*Issue, error)

Do executes the "issuetracker.issues.get" call. Exactly one of *Issue or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Issue.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.

func (*IssuesGetCall) View

func (c *IssuesGetCall) View(view string) *IssuesGetCall

View sets the optional parameter "view": The view of the issue to return.

Possible values:

"ISSUE_VIEW_UNSPECIFIED" - Unspecified. It defaults to BASIC.
"BASIC" - Basic fields.
"FULL" - Include all fields.

type IssuesIssueUpdatesListCall

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

func (*IssuesIssueUpdatesListCall) 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 (*IssuesIssueUpdatesListCall) Do

Do executes the "issuetracker.issues.issueUpdates.list" call. Exactly one of *ListIssueUpdatesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListIssueUpdatesResponse.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 (*IssuesIssueUpdatesListCall) Fields

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

func (*IssuesIssueUpdatesListCall) Header

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

func (*IssuesIssueUpdatesListCall) IfNoneMatch

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 (*IssuesIssueUpdatesListCall) PageSize

PageSize sets the optional parameter "pageSize": If 0, the full set of IssueUpdates will be returned. Default 0.

func (*IssuesIssueUpdatesListCall) PageToken

PageToken sets the optional parameter "pageToken": Pagination token.

func (*IssuesIssueUpdatesListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*IssuesIssueUpdatesListCall) SortBy

SortBy sets the optional parameter "sortBy": Updates are sorted by version. Can be specified as either ASC or DESC. Default is DESC.

type IssuesIssueUpdatesService

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

func NewIssuesIssueUpdatesService

func NewIssuesIssueUpdatesService(s *Service) *IssuesIssueUpdatesService

func (*IssuesIssueUpdatesService) List

List: Fetch a collection of IssueUpdate objects representing the change history of an issue, ordered by IssueUpdate.version.

type IssuesListCall

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

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 "issuetracker.issues.list" call. Exactly one of *ListIssuesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListIssuesResponse.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) OrderBy

func (c *IssuesListCall) OrderBy(orderBy string) *IssuesListCall

OrderBy sets the optional parameter "orderBy": Order parameter. Order is ascending ("asc") by default, but can be defined with the sort field followed by a space and "asc" or "desc". Examples: "issue_id", "modified_time asc", Secondary sorts may be specified in comma-separated format. Examples: "priority asc, created_time desc" "custom_field:1234, modified_time desc" Valid sort fields are: * archived * assignee * cc_count * component_path * created_time * custom_field: * deletion_time * duplicate_count * found_in_versions * in_prod * issue_id * last_modifier * modified_time * priority * reporter * severity * status * targeted_to_versions * title * type * verified_in_versions * verified_time * verifier * vote_count

func (*IssuesListCall) PageSize

func (c *IssuesListCall) PageSize(pageSize int64) *IssuesListCall

PageSize sets the optional parameter "pageSize": Default page_size = 25. Maximum page_size = 500.

func (*IssuesListCall) PageToken

func (c *IssuesListCall) PageToken(pageToken string) *IssuesListCall

PageToken sets the optional parameter "pageToken": Pagination token.

func (*IssuesListCall) Pages

func (c *IssuesListCall) Pages(ctx context.Context, f func(*ListIssuesResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*IssuesListCall) Query

func (c *IssuesListCall) Query(query string) *IssuesListCall

Query sets the optional parameter "query": Required. Query language for issues requests is defined at: https://developers.google.com/issue-tracker/concepts/search-query-language

func (*IssuesListCall) View

func (c *IssuesListCall) View(view string) *IssuesListCall

View sets the optional parameter "view": The view of the issue to return.

Possible values:

"ISSUE_VIEW_UNSPECIFIED" - Unspecified. It defaults to BASIC.
"BASIC" - Basic fields.
"FULL" - Include all fields.

type IssuesModifyCall

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

func (*IssuesModifyCall) 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 (*IssuesModifyCall) Do

func (c *IssuesModifyCall) Do(opts ...googleapi.CallOption) (*Issue, error)

Do executes the "issuetracker.issues.modify" call. Exactly one of *Issue or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Issue.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 (*IssuesModifyCall) Fields

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

func (*IssuesModifyCall) Header

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

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

type IssuesService

type IssuesService struct {
	Attachments *IssuesAttachmentsService

	Comments *IssuesCommentsService

	IssueUpdates *IssuesIssueUpdatesService
	// contains filtered or unexported fields
}

func NewIssuesService

func NewIssuesService(s *Service) *IssuesService

func (*IssuesService) Create

func (r *IssuesService) Create(issue *Issue) *IssuesCreateCall

Create: Creates a new issue within a component, and returns the new object.

func (*IssuesService) Get

func (r *IssuesService) Get(issueId int64) *IssuesGetCall

Get: Gets an issue with its current state.

func (*IssuesService) List

func (r *IssuesService) List() *IssuesListCall

List: Searches issues, and returns issues with their current state.

func (*IssuesService) Modify

func (r *IssuesService) Modify(issueId int64, modifyissuerequest *ModifyIssueRequest) *IssuesModifyCall

Modify: Updates an issue based on add and remove IssueState. Returns the modified issue.

type ListAttachmentsResponse

type ListAttachmentsResponse struct {
	// Attachments: Metadata of attachments on the specified issue.
	Attachments []*Attachment `json:"attachments,omitempty"`

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

	// 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:"-"`
}

ListAttachmentsResponse: Response object for IssueTracker.ListAttachments.

func (*ListAttachmentsResponse) MarshalJSON

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

type ListIssueCommentsResponse

type ListIssueCommentsResponse struct {
	// IssueComments: The current page of IssueComments.
	IssueComments []*IssueComment `json:"issueComments,omitempty"`

	// NextPageToken: Pagination token for next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// TotalSize: Total number of results.
	TotalSize int64 `json:"totalSize,omitempty"`

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

	// ForceSendFields is a list of field names (e.g. "IssueComments") 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. "IssueComments") 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:"-"`
}

ListIssueCommentsResponse: Response object for IssueTracker.ListIssueComments.

func (*ListIssueCommentsResponse) MarshalJSON

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

type ListIssueUpdatesResponse

type ListIssueUpdatesResponse struct {
	// IssueUpdates: The current page of IssueUpdates.
	IssueUpdates []*IssueUpdate `json:"issueUpdates,omitempty"`

	// NextPageToken: Pagination token for next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// TotalSize: Total number of results.
	TotalSize int64 `json:"totalSize,omitempty"`

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

	// ForceSendFields is a list of field names (e.g. "IssueUpdates") 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. "IssueUpdates") 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:"-"`
}

ListIssueUpdatesResponse: Response object for IssueTracker.ListIssueUpdates.

func (*ListIssueUpdatesResponse) MarshalJSON

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

type ListIssuesResponse

type ListIssuesResponse struct {
	// Issues: The current page of issues.
	Issues []*Issue `json:"issues,omitempty"`

	// NextPageToken: Pagination token for next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// TotalSize: Total number of results. This is an approximation.
	TotalSize int64 `json:"totalSize,omitempty"`

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

	// ForceSendFields is a list of field names (e.g. "Issues") 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. "Issues") 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:"-"`
}

ListIssuesResponse: Response object for IssueTracker.ListIssues.

func (*ListIssuesResponse) MarshalJSON

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

type Media

type Media struct {
	// ResourceName: Name of the media resource.
	ResourceName string `json:"resourceName,omitempty"`

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

	// ForceSendFields is a list of field names (e.g. "ResourceName") 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. "ResourceName") 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:"-"`
}

Media: Media resource.

func (*Media) MarshalJSON

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

type MediaDownloadCall

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

func (*MediaDownloadCall) Context

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

func (*MediaDownloadCall) Do

func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*Media, error)

Do executes the "issuetracker.media.download" call. Exactly one of *Media or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Media.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 (*MediaDownloadCall) Download

func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Response, error)

Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.

func (*MediaDownloadCall) Fields

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

func (*MediaDownloadCall) Header

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

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

func (*MediaDownloadCall) IfNoneMatch

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

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 MediaService

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

func NewMediaService

func NewMediaService(s *Service) *MediaService

func (*MediaService) Download

func (r *MediaService) Download(resourceName string) *MediaDownloadCall

Download: Downloads media. Download is supported on the URI `/v1/media/{+name}?alt=media`.

func (*MediaService) Upload

func (r *MediaService) Upload(resourceName string, media *Media) *MediaUploadCall

Upload: Uploads media. Upload is supported on the URI `/upload/v1/media/{+name}`.

type MediaUploadCall

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

func (*MediaUploadCall) 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. This context will supersede any context previously provided to the ResumableMedia method.

func (*MediaUploadCall) Do

func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*Media, error)

Do executes the "issuetracker.media.upload" call. Exactly one of *Media or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Media.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 (*MediaUploadCall) Fields

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

func (*MediaUploadCall) Header

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

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

func (*MediaUploadCall) Media

func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall

Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

func (*MediaUploadCall) ProgressUpdater

func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*MediaUploadCall) ResumableMedia deprecated

func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type ModifyIssueRequest

type ModifyIssueRequest struct {
	// Add: Fields present that are single value fields will replace the
	// current value. Fields that are collections will append the values
	// provided. Note that if any fields need to be set, add_mask above is
	// required. If it is not provided, the add IssueState will be ignored.
	Add *IssueState `json:"add,omitempty"`

	// AddMask: Field mask indicating what fields are set in the add
	// IssueState. Note that if any fields need to be set, this mask is
	// required. If it is not provided, the add IssueState will be ignored.
	AddMask string `json:"addMask,omitempty"`

	// IssueComment: A comment and/or attachments to append to this issue.
	IssueComment *IssueComment `json:"issueComment,omitempty"`

	// Remove: Fields present that are single value fields with an empty
	// value will clear the current value. Fields that are collections will
	// remove the values provided. Note that if any fields need to be
	// cleared, remove_mask above is required. If it is not provided, the
	// remove IssueState will be ignored.
	Remove *IssueState `json:"remove,omitempty"`

	// RemoveMask: Field mask indicating what fields are set in the remove
	// IssueState. Note that if any fields need to be cleared, this mask is
	// required. If it is not provided, the remove IssueState will be
	// ignored.
	RemoveMask string `json:"removeMask,omitempty"`

	// SignificanceOverride: Significance to assign to this issue
	// modification.
	//
	// Possible values:
	//   "EDIT_SIGNIFICANCE_UNSPECIFIED" - Default value. Let the API decide
	// the significance of an edit.
	//   "MINOR" - Describes an edit that should only send notifications to
	// users that are closely-involved with an issue or have expressed a
	// high level of interest in the issue.
	//   "MAJOR" - Describes an edit that should send notifications to all
	// users involved or interested in the issue.
	//   "BULK" - Describes an edit that was part of a bulk edit and should
	// notify users in digest form.
	SignificanceOverride string `json:"significanceOverride,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Add") 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. "Add") 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:"-"`
}

ModifyIssueRequest: Request object for IssueTracker.ModifyIssue.

func (*ModifyIssueRequest) MarshalJSON

func (s *ModifyIssueRequest) MarshalJSON() ([]byte, error)
type RelatedLink struct {
	// Hyperlink: A hyperlink.
	Hyperlink *Hyperlink `json:"hyperlink,omitempty"`

	// IssueReference: A reference to another issue in the tracker.
	IssueReference *IssueReference `json:"issueReference,omitempty"`

	// SourceCommentNumber: The comment number this RelatedLink was
	// extracted from.
	SourceCommentNumber int64 `json:"sourceCommentNumber,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Hyperlink") 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. "Hyperlink") 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:"-"`
}

RelatedLink: A related link is a reference within a comment to some other entity.

func (*RelatedLink) MarshalJSON

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

type RepeatedDate

type RepeatedDate struct {
	// Values: The Date values.
	Values []*Date `json:"values,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Values") 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. "Values") 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:"-"`
}

RepeatedDate: A repeated Date.

func (*RepeatedDate) MarshalJSON

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

type RepeatedDouble

type RepeatedDouble struct {
	// Values: The double values.
	Values []float64 `json:"values,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Values") 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. "Values") 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:"-"`
}

RepeatedDouble: A repeated Double.

func (*RepeatedDouble) MarshalJSON

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

type RepeatedString

type RepeatedString struct {
	// Values: The string values.
	Values []string `json:"values,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Values") 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. "Values") 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:"-"`
}

RepeatedString: A repeated String.

func (*RepeatedString) MarshalJSON

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

type Service

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

	Hotlists *HotlistsService

	Issues *IssuesService

	Media *MediaService
	// 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 SingleValueUpdate

type SingleValueUpdate struct {
	// NewValue: Output only. May be null. The new value set by this
	// IssueUpdate.
	NewValue googleapi.RawMessage `json:"newValue,omitempty"`

	// OldValue: Output only. May be null. The value previous to this
	// IssueUpdate.
	OldValue googleapi.RawMessage `json:"oldValue,omitempty"`

	// ForceSendFields is a list of field names (e.g. "NewValue") 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. "NewValue") 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:"-"`
}

SingleValueUpdate: If both old and new values are set, they will always be of the same type.

func (*SingleValueUpdate) MarshalJSON

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

type SourceIssues

type SourceIssues struct {
	// SourceIssueIds: Parent issue IDs for parent/child relationships.
	SourceIssueIds googleapi.Int64s `json:"sourceIssueIds,omitempty"`

	// ForceSendFields is a list of field names (e.g. "SourceIssueIds") 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. "SourceIssueIds") 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:"-"`
}

SourceIssues: Source issue IDs to store ancestor cache.

func (*SourceIssues) MarshalJSON

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

type StatusUpdate

type StatusUpdate struct {
	// FormattingMode: The intended formatting mode of the update text.
	//
	// Possible values:
	//   "UNSPECIFIED_FORMATTING_MODE" - Unspecified mode. If unspecified,
	// will be treated as PLAIN mode for backwards compatibility.
	//   "PLAIN" - Plain formatting is to treat the source text without much
	// formatting, but with automatic linkification of entities and
	// collapsible quoted sections. This is the historical formatting, and
	// the default.
	//   "MARKDOWN" - Treats the source text as a Markdown document.
	//   "LITERAL" - For special cases where even the linkification does in
	// a PLAIN formatting mode might be hazardous, this treats the source
	// text literally. It does not perform any linkification or quoted
	// section treatment.
	FormattingMode string `json:"formattingMode,omitempty"`

	// IssueId: Output only. Uniquely identifies the issue this statusUpdate
	// belongs to.
	IssueId int64 `json:"issueId,omitempty,string"`

	// UpdateText: StatusUpdate entered by the user.
	UpdateText string `json:"updateText,omitempty"`

	// ForceSendFields is a list of field names (e.g. "FormattingMode") 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. "FormattingMode") 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:"-"`
}

StatusUpdate: The StatusUpdate field on an issue.

func (*StatusUpdate) MarshalJSON

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

type User

type User struct {
	// EmailAddress: The user's email address, including domain name. Blank
	// (i.e. the empty string) if the user's identity is not visible to the
	// caller.
	EmailAddress string `json:"emailAddress,omitempty"`

	// ObfuscatedEmailAddress: Output only. A displayable obfuscated email
	// address. Cannot be used to update data, but may be present when
	// retrieving data if the canonical email_address is not visible to the
	// caller.
	ObfuscatedEmailAddress string `json:"obfuscatedEmailAddress,omitempty"`

	// ForceSendFields is a list of field names (e.g. "EmailAddress") 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. "EmailAddress") 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:"-"`
}

User: Represents a user. The canonical identifier for a user is the email address. This MUST be set when updating data. When retrieving data, in some cases the canonical email address may not be visible to the caller. In this case, the email_address field will be left blank, and one of the other non-canonical fields may be set in its place.

func (*User) MarshalJSON

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

Jump to

Keyboard shortcuts

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