vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2018-01-16 13:20:59 +00:00
parent 8e83fb6fb9
commit 7d3a17725d
4878 changed files with 1974213 additions and 201199 deletions
+150 -152
View File
@@ -113,8 +113,8 @@ type ProjectsTracesSpansService struct {
// Annotation: Text annotation with a set of attributes.
type Annotation struct {
// Attributes: A set of attributes on the annotation. There is a limit
// of 4 attributes
// Attributes: A set of attributes on the annotation. You can have up to
// 4 attributes
// per Annotation.
Attributes *Attributes `json:"attributes,omitempty"`
@@ -141,8 +141,8 @@ type Annotation struct {
}
func (s *Annotation) MarshalJSON() ([]byte, error) {
type noMethod Annotation
raw := noMethod(*s)
type NoMethod Annotation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -176,8 +176,8 @@ type AttributeValue struct {
}
func (s *AttributeValue) MarshalJSON() ([]byte, error) {
type noMethod AttributeValue
raw := noMethod(*s)
type NoMethod AttributeValue
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -220,15 +220,17 @@ type Attributes struct {
}
func (s *Attributes) MarshalJSON() ([]byte, error) {
type noMethod Attributes
raw := noMethod(*s)
type NoMethod Attributes
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BatchWriteSpansRequest: The request message for the `BatchWriteSpans`
// method.
type BatchWriteSpansRequest struct {
// Spans: A collection of spans.
// Spans: A list of new spans. The span names must not match
// existing
// spans, or the results are undefined.
Spans []*Span `json:"spans,omitempty"`
// ForceSendFields is a list of field names (e.g. "Spans") to
@@ -249,8 +251,8 @@ type BatchWriteSpansRequest struct {
}
func (s *BatchWriteSpansRequest) MarshalJSON() ([]byte, error) {
type noMethod BatchWriteSpansRequest
raw := noMethod(*s)
type NoMethod BatchWriteSpansRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -281,15 +283,15 @@ type Empty struct {
// traces or when the handler receives a request from a different
// project.
type Link struct {
// Attributes: A set of attributes on the link. There is a limit of 32
// Attributes: A set of attributes on the link. You have have up to 32
// attributes per
// link.
Attributes *Attributes `json:"attributes,omitempty"`
// SpanId: `SPAN_ID` identifies a span within a trace.
// SpanId: The [SPAN_ID] for a span within a trace.
SpanId string `json:"spanId,omitempty"`
// TraceId: `TRACE_ID` identifies a trace within a project.
// TraceId: The [TRACE_ID] for a trace within a project.
TraceId string `json:"traceId,omitempty"`
// Type: The relationship of the current span relative to the linked
@@ -321,8 +323,8 @@ type Link struct {
}
func (s *Link) MarshalJSON() ([]byte, error) {
type noMethod Link
raw := noMethod(*s)
type NoMethod Link
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -357,8 +359,61 @@ type Links struct {
}
func (s *Links) MarshalJSON() ([]byte, error) {
type noMethod Links
raw := noMethod(*s)
type NoMethod Links
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MessageEvent: An event describing a message sent/received between
// Spans.
type MessageEvent struct {
// CompressedSizeBytes: The number of compressed bytes sent or received.
// If missing assumed to
// be the same size as uncompressed.
CompressedSizeBytes int64 `json:"compressedSizeBytes,omitempty,string"`
// Id: An identifier for the MessageEvent's message that can be used to
// match
// SENT and RECEIVED MessageEvents. It is recommended to be unique
// within
// a Span.
Id int64 `json:"id,omitempty,string"`
// Type: Type of MessageEvent. Indicates whether the message was sent
// or
// received.
//
// Possible values:
// "TYPE_UNSPECIFIED" - Unknown event type.
// "SENT" - Indicates a sent message.
// "RECEIVED" - Indicates a received message.
Type string `json:"type,omitempty"`
// UncompressedSizeBytes: The number of uncompressed bytes sent or
// received.
UncompressedSizeBytes int64 `json:"uncompressedSizeBytes,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "CompressedSizeBytes")
// 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. "CompressedSizeBytes") 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:"-"`
}
func (s *MessageEvent) MarshalJSON() ([]byte, error) {
type NoMethod MessageEvent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -392,65 +447,8 @@ type Module struct {
}
func (s *Module) MarshalJSON() ([]byte, error) {
type noMethod Module
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NetworkEvent: An event describing an RPC message sent or received on
// the network.
type NetworkEvent struct {
// CompressedMessageSize: The number of compressed bytes sent or
// received.
CompressedMessageSize uint64 `json:"compressedMessageSize,omitempty,string"`
// MessageId: An identifier for the message, which must be unique in
// this span.
MessageId uint64 `json:"messageId,omitempty,string"`
// Time: For sent messages, this is the time at which the first bit was
// sent.
// For received messages, this is the time at which the last bit
// was
// received.
Time string `json:"time,omitempty"`
// Type: Type of NetworkEvent. Indicates whether the RPC message was
// sent or
// received.
//
// Possible values:
// "TYPE_UNSPECIFIED" - Unknown event type.
// "SENT" - Indicates a sent RPC message.
// "RECV" - Indicates a received RPC message.
Type string `json:"type,omitempty"`
// UncompressedMessageSize: The number of uncompressed bytes sent or
// received.
UncompressedMessageSize uint64 `json:"uncompressedMessageSize,omitempty,string"`
// ForceSendFields is a list of field names (e.g.
// "CompressedMessageSize") 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. "CompressedMessageSize") 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:"-"`
}
func (s *NetworkEvent) MarshalJSON() ([]byte, error) {
type noMethod NetworkEvent
raw := noMethod(*s)
type NoMethod Module
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -464,7 +462,7 @@ func (s *NetworkEvent) MarshalJSON() ([]byte, error) {
// be
// gaps or overlaps between spans in a trace.
type Span struct {
// Attributes: A set of attributes on the span. There is a limit of 32
// Attributes: A set of attributes on the span. You can have up to 32
// attributes per
// span.
Attributes *Attributes `json:"attributes,omitempty"`
@@ -495,15 +493,19 @@ type Span struct {
// is the time when the server application handler stops running.
EndTime string `json:"endTime,omitempty"`
// Links: A maximum of 128 links are allowed per Span.
// Links: Links associated with the span. You can have up to 128 links
// per Span.
Links *Links `json:"links,omitempty"`
// Name: The resource name of the span in the following format:
//
// projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique
// identifier for a trace within a project.
// [SPAN_ID] is a unique identifier for a span within a trace,
// assigned when the span is created.
// identifier for a trace within a project;
// it is a 32-character hexadecimal encoding of a 16-byte
// array.
//
// [SPAN_ID] is a unique identifier for a span within a trace; it
// is a 16-character hexadecimal encoding of an 8-byte array.
Name string `json:"name,omitempty"`
// ParentSpanId: The [SPAN_ID] of this span's parent span. If this is a
@@ -511,11 +513,13 @@ type Span struct {
// then this field must be empty.
ParentSpanId string `json:"parentSpanId,omitempty"`
// SameProcessAsParentSpan: A highly recommended but not required flag
// that identifies when a trace
// crosses a process boundary. True when the parent_span belongs to
// the
// same process as the current span.
// SameProcessAsParentSpan: (Optional) Set this parameter to indicate
// whether this span is in
// the same process as its parent. If you do not set this
// parameter,
// Stackdriver Trace is unable to take advantage of this
// helpful
// information.
SameProcessAsParentSpan bool `json:"sameProcessAsParentSpan,omitempty"`
// SpanId: The [SPAN_ID] portion of the span's resource name.
@@ -534,8 +538,8 @@ type Span struct {
// Status: An optional final status for this span.
Status *Status `json:"status,omitempty"`
// TimeEvents: The included time events. There can be up to 32
// annotations and 128 network
// TimeEvents: A set of time events. You can have up to 32 annotations
// and 128 message
// events per span.
TimeEvents *TimeEvents `json:"timeEvents,omitempty"`
@@ -561,8 +565,8 @@ type Span struct {
}
func (s *Span) MarshalJSON() ([]byte, error) {
type noMethod Span
raw := noMethod(*s)
type NoMethod Span
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -619,8 +623,8 @@ type StackFrame struct {
}
func (s *StackFrame) MarshalJSON() ([]byte, error) {
type noMethod StackFrame
raw := noMethod(*s)
type NoMethod StackFrame
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -654,8 +658,8 @@ type StackFrames struct {
}
func (s *StackFrames) MarshalJSON() ([]byte, error) {
type noMethod StackFrames
raw := noMethod(*s)
type NoMethod StackFrames
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -676,7 +680,7 @@ type StackTrace struct {
//
// Subsequent spans within the same request can refer
// to that stack trace by only setting `stackTraceHashId`.
StackTraceHashId uint64 `json:"stackTraceHashId,omitempty,string"`
StackTraceHashId int64 `json:"stackTraceHashId,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "StackFrames") to
// unconditionally include in API requests. By default, fields with
@@ -696,8 +700,8 @@ type StackTrace struct {
}
func (s *StackTrace) MarshalJSON() ([]byte, error) {
type noMethod StackTrace
raw := noMethod(*s)
type NoMethod StackTrace
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -815,19 +819,19 @@ type Status struct {
}
func (s *Status) MarshalJSON() ([]byte, error) {
type noMethod Status
raw := noMethod(*s)
type NoMethod Status
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TimeEvent: A time-stamped annotation or network event in the Span.
// TimeEvent: A time-stamped annotation or message event in the Span.
type TimeEvent struct {
// Annotation: Text annotation with a set of attributes.
Annotation *Annotation `json:"annotation,omitempty"`
// NetworkEvent: An event describing an RPC message sent/received on the
// network.
NetworkEvent *NetworkEvent `json:"networkEvent,omitempty"`
// MessageEvent: An event describing a message sent/received between
// Spans.
MessageEvent *MessageEvent `json:"messageEvent,omitempty"`
// Time: The timestamp indicating the time the event occurred.
Time string `json:"time,omitempty"`
@@ -850,8 +854,8 @@ type TimeEvent struct {
}
func (s *TimeEvent) MarshalJSON() ([]byte, error) {
type noMethod TimeEvent
raw := noMethod(*s)
type NoMethod TimeEvent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -859,17 +863,17 @@ func (s *TimeEvent) MarshalJSON() ([]byte, error) {
// time-stamped annotation
// on the span, consisting of either user-supplied key:value pairs,
// or
// details of an RPC message sent/received on the network.
// details of a message sent/received between Spans.
type TimeEvents struct {
// DroppedAnnotationsCount: The number of dropped annotations in all the
// included time events.
// If the value is 0, then no annotations were dropped.
DroppedAnnotationsCount int64 `json:"droppedAnnotationsCount,omitempty"`
// DroppedNetworkEventsCount: The number of dropped network events in
// DroppedMessageEventsCount: The number of dropped message events in
// all the included time events.
// If the value is 0, then no network events were dropped.
DroppedNetworkEventsCount int64 `json:"droppedNetworkEventsCount,omitempty"`
// If the value is 0, then no message events were dropped.
DroppedMessageEventsCount int64 `json:"droppedMessageEventsCount,omitempty"`
// TimeEvent: A collection of `TimeEvent`s.
TimeEvent []*TimeEvent `json:"timeEvent,omitempty"`
@@ -894,8 +898,8 @@ type TimeEvents struct {
}
func (s *TimeEvents) MarshalJSON() ([]byte, error) {
type noMethod TimeEvents
raw := noMethod(*s)
type NoMethod TimeEvents
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -907,16 +911,16 @@ type TruncatableString struct {
// value is 0, then the string was not shortened.
TruncatedByteCount int64 `json:"truncatedByteCount,omitempty"`
// Value: The shortened string. For example, if the original string was
// Value: The shortened string. For example, if the original string is
// 500
// bytes long and the limit of the string was 128 bytes, then this
// value contains the first 128 bytes of the 500-byte string. Note
// that
// truncation always happens on the character boundary, to ensure
// that
// truncated string is still valid UTF8. In case of multi-byte
// characters,
// size of truncated string can be less than truncation limit.
// bytes long and the limit of the string is 128 bytes, then
// `value` contains the first 128 bytes of the 500-byte
// string.
//
// Truncation always happens on a UTF8 character boundary. If there
// are multi-byte characters in the string, then the length of
// the
// shortened string might be less than the size limit.
Value string `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "TruncatedByteCount")
@@ -938,8 +942,8 @@ type TruncatableString struct {
}
func (s *TruncatableString) MarshalJSON() ([]byte, error) {
type noMethod TruncatableString
raw := noMethod(*s)
type NoMethod TruncatableString
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -954,15 +958,9 @@ type ProjectsTracesBatchWriteCall struct {
header_ http.Header
}
// BatchWrite: Sends new spans to Stackdriver Trace or updates existing
// traces. If the
// name of a trace that you send matches that of an existing trace, new
// spans
// are added to the existing trace. Attempt to update existing spans
// results
// undefined behavior. If the name does not match, a new trace is
// created
// with given set of spans.
// BatchWrite: Sends new spans to new or existing traces. You cannot
// update
// existing spans.
func (r *ProjectsTracesService) BatchWrite(name string, batchwritespansrequest *BatchWriteSpansRequest) *ProjectsTracesBatchWriteCall {
c := &ProjectsTracesBatchWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
@@ -1051,12 +1049,12 @@ func (c *ProjectsTracesBatchWriteCall) Do(opts ...googleapi.CallOption) (*Empty,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Sends new spans to Stackdriver Trace or updates existing traces. If the\nname of a trace that you send matches that of an existing trace, new spans\nare added to the existing trace. Attempt to update existing spans results\nundefined behavior. If the name does not match, a new trace is created\nwith given set of spans.",
// "description": "Sends new spans to new or existing traces. You cannot update\nexisting spans.",
// "flatPath": "v2/projects/{projectsId}/traces:batchWrite",
// "httpMethod": "POST",
// "id": "cloudtrace.projects.traces.batchWrite",
@@ -1065,7 +1063,7 @@ func (c *ProjectsTracesBatchWriteCall) Do(opts ...googleapi.CallOption) (*Empty,
// ],
// "parameters": {
// "name": {
// "description": "Required. Name of the project where the spans belong. The format is\n`projects/PROJECT_ID`.",
// "description": "Required. The name of the project where the spans belong. The format is\n`projects/[PROJECT_ID]`.",
// "location": "path",
// "pattern": "^projects/[^/]+$",
// "required": true,
@@ -1087,9 +1085,9 @@ func (c *ProjectsTracesBatchWriteCall) Do(opts ...googleapi.CallOption) (*Empty,
}
// method id "cloudtrace.projects.traces.spans.create":
// method id "cloudtrace.projects.traces.spans.createSpan":
type ProjectsTracesSpansCreateCall struct {
type ProjectsTracesSpansCreateSpanCall struct {
s *Service
nameid string
span *Span
@@ -1098,9 +1096,9 @@ type ProjectsTracesSpansCreateCall struct {
header_ http.Header
}
// Create: Creates a new Span.
func (r *ProjectsTracesSpansService) Create(nameid string, span *Span) *ProjectsTracesSpansCreateCall {
c := &ProjectsTracesSpansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
// CreateSpan: Creates a new span.
func (r *ProjectsTracesSpansService) CreateSpan(nameid string, span *Span) *ProjectsTracesSpansCreateSpanCall {
c := &ProjectsTracesSpansCreateSpanCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.nameid = nameid
c.span = span
return c
@@ -1109,7 +1107,7 @@ func (r *ProjectsTracesSpansService) Create(nameid string, span *Span) *Projects
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ProjectsTracesSpansCreateCall) Fields(s ...googleapi.Field) *ProjectsTracesSpansCreateCall {
func (c *ProjectsTracesSpansCreateSpanCall) Fields(s ...googleapi.Field) *ProjectsTracesSpansCreateSpanCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -1117,21 +1115,21 @@ func (c *ProjectsTracesSpansCreateCall) Fields(s ...googleapi.Field) *ProjectsTr
// 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 (c *ProjectsTracesSpansCreateCall) Context(ctx context.Context) *ProjectsTracesSpansCreateCall {
func (c *ProjectsTracesSpansCreateSpanCall) Context(ctx context.Context) *ProjectsTracesSpansCreateSpanCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ProjectsTracesSpansCreateCall) Header() http.Header {
func (c *ProjectsTracesSpansCreateSpanCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsTracesSpansCreateCall) doRequest(alt string) (*http.Response, error) {
func (c *ProjectsTracesSpansCreateSpanCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
@@ -1146,7 +1144,7 @@ func (c *ProjectsTracesSpansCreateCall) doRequest(alt string) (*http.Response, e
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.nameid,
@@ -1154,14 +1152,14 @@ func (c *ProjectsTracesSpansCreateCall) doRequest(alt string) (*http.Response, e
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "cloudtrace.projects.traces.spans.create" call.
// Do executes the "cloudtrace.projects.traces.spans.createSpan" call.
// Exactly one of *Span or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Span.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 (c *ProjectsTracesSpansCreateCall) Do(opts ...googleapi.CallOption) (*Span, error) {
func (c *ProjectsTracesSpansCreateSpanCall) Do(opts ...googleapi.CallOption) (*Span, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -1187,21 +1185,21 @@ func (c *ProjectsTracesSpansCreateCall) Do(opts ...googleapi.CallOption) (*Span,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates a new Span.",
// "description": "Creates a new span.",
// "flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans/{spansId}",
// "httpMethod": "PUT",
// "id": "cloudtrace.projects.traces.spans.create",
// "httpMethod": "POST",
// "id": "cloudtrace.projects.traces.spans.createSpan",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project.\n[SPAN_ID] is a unique identifier for a span within a trace,\nassigned when the span is created.",
// "description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project;\nit is a 32-character hexadecimal encoding of a 16-byte array.\n\n[SPAN_ID] is a unique identifier for a span within a trace; it\nis a 16-character hexadecimal encoding of an 8-byte array.",
// "location": "path",
// "pattern": "^projects/[^/]+/traces/[^/]+/spans/[^/]+$",
// "required": true,