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
+6 -2
View File
@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/FkGdm1NgZtAvow-TudpcDpRNyE0\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/yA0wO_BQAqQnJsdCdy0wjsFB7bE\"",
"discoveryVersion": "v1",
"id": "pagespeedonline:v1",
"name": "pagespeedonline",
"version": "v1",
"revision": "20161204",
"revision": "20180108",
"title": "PageSpeed Insights API",
"description": "Analyzes the performance of a web page and provides tailored suggestions to make that page faster.",
"ownerDomain": "google.com",
@@ -71,6 +71,10 @@
"id": "Result",
"type": "object",
"properties": {
"captchaResult": {
"type": "string",
"description": "The captcha verify result"
},
"formattedResults": {
"type": "object",
"description": "Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed rule instantiated and run by the server.",
+42 -40
View File
@@ -79,6 +79,9 @@ type PagespeedapiService struct {
}
type Result struct {
// CaptchaResult: The captcha verify result
CaptchaResult string `json:"captchaResult,omitempty"`
// FormattedResults: Localized PageSpeed results. Contains a ruleResults
// entry for each PageSpeed rule instantiated and run by the server.
FormattedResults *ResultFormattedResults `json:"formattedResults,omitempty"`
@@ -120,7 +123,7 @@ type Result struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "FormattedResults") to
// ForceSendFields is a list of field names (e.g. "CaptchaResult") 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
@@ -128,19 +131,18 @@ type Result struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FormattedResults") 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 is a list of field names (e.g. "CaptchaResult") 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 *Result) MarshalJSON() ([]byte, error) {
type noMethod Result
raw := noMethod(*s)
type NoMethod Result
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -173,8 +175,8 @@ type ResultFormattedResults struct {
}
func (s *ResultFormattedResults) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResults
raw := noMethod(*s)
type NoMethod ResultFormattedResults
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -220,18 +222,18 @@ type ResultFormattedResultsRuleResults struct {
}
func (s *ResultFormattedResultsRuleResults) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResultsRuleResults
raw := noMethod(*s)
type NoMethod ResultFormattedResultsRuleResults
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *ResultFormattedResultsRuleResults) UnmarshalJSON(data []byte) error {
type noMethod ResultFormattedResultsRuleResults
type NoMethod ResultFormattedResultsRuleResults
var s1 struct {
RuleImpact gensupport.JSONFloat64 `json:"ruleImpact"`
*noMethod
*NoMethod
}
s1.noMethod = (*noMethod)(s)
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
@@ -265,8 +267,8 @@ type ResultFormattedResultsRuleResultsUrlBlocks struct {
}
func (s *ResultFormattedResultsRuleResultsUrlBlocks) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResultsRuleResultsUrlBlocks
raw := noMethod(*s)
type NoMethod ResultFormattedResultsRuleResultsUrlBlocks
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -299,8 +301,8 @@ type ResultFormattedResultsRuleResultsUrlBlocksHeader struct {
}
func (s *ResultFormattedResultsRuleResultsUrlBlocksHeader) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResultsRuleResultsUrlBlocksHeader
raw := noMethod(*s)
type NoMethod ResultFormattedResultsRuleResultsUrlBlocksHeader
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -330,8 +332,8 @@ type ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs struct {
}
func (s *ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs
raw := noMethod(*s)
type NoMethod ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -362,8 +364,8 @@ type ResultFormattedResultsRuleResultsUrlBlocksUrls struct {
}
func (s *ResultFormattedResultsRuleResultsUrlBlocksUrls) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResultsRuleResultsUrlBlocksUrls
raw := noMethod(*s)
type NoMethod ResultFormattedResultsRuleResultsUrlBlocksUrls
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -394,8 +396,8 @@ type ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails struct {
}
func (s *ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails
raw := noMethod(*s)
type NoMethod ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -425,8 +427,8 @@ type ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs struct {
}
func (s *ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs
raw := noMethod(*s)
type NoMethod ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -460,8 +462,8 @@ type ResultFormattedResultsRuleResultsUrlBlocksUrlsResult struct {
}
func (s *ResultFormattedResultsRuleResultsUrlBlocksUrlsResult) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResultsRuleResultsUrlBlocksUrlsResult
raw := noMethod(*s)
type NoMethod ResultFormattedResultsRuleResultsUrlBlocksUrlsResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -491,8 +493,8 @@ type ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs struct {
}
func (s *ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs
raw := noMethod(*s)
type NoMethod ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -567,8 +569,8 @@ type ResultPageStats struct {
}
func (s *ResultPageStats) MarshalJSON() ([]byte, error) {
type noMethod ResultPageStats
raw := noMethod(*s)
type NoMethod ResultPageStats
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -605,8 +607,8 @@ type ResultScreenshot struct {
}
func (s *ResultScreenshot) MarshalJSON() ([]byte, error) {
type noMethod ResultScreenshot
raw := noMethod(*s)
type NoMethod ResultScreenshot
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -639,8 +641,8 @@ type ResultVersion struct {
}
func (s *ResultVersion) MarshalJSON() ([]byte, error) {
type noMethod ResultVersion
raw := noMethod(*s)
type NoMethod ResultVersion
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -789,7 +791,7 @@ func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*Result
},
}
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
+6 -2
View File
@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/5bET14Wb_tD2YUoj5aAgBlN7I1k\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/n_okqqqS0ZMnhnemXmv18_Z2rZY\"",
"discoveryVersion": "v1",
"id": "pagespeedonline:v2",
"name": "pagespeedonline",
"version": "v2",
"revision": "20161204",
"revision": "20180108",
"title": "PageSpeed Insights API",
"description": "Analyzes the performance of a web page and provides tailored suggestions to make that page faster.",
"ownerDomain": "google.com",
@@ -215,6 +215,10 @@
"id": "Result",
"type": "object",
"properties": {
"captchaResult": {
"type": "string",
"description": "The captcha verify result"
},
"formattedResults": {
"type": "object",
"description": "Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed rule instantiated and run by the server.",
+42 -40
View File
@@ -106,8 +106,8 @@ type PagespeedApiFormatStringV2 struct {
}
func (s *PagespeedApiFormatStringV2) MarshalJSON() ([]byte, error) {
type noMethod PagespeedApiFormatStringV2
raw := noMethod(*s)
type NoMethod PagespeedApiFormatStringV2
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -152,8 +152,8 @@ type PagespeedApiFormatStringV2Args struct {
}
func (s *PagespeedApiFormatStringV2Args) MarshalJSON() ([]byte, error) {
type noMethod PagespeedApiFormatStringV2Args
raw := noMethod(*s)
type NoMethod PagespeedApiFormatStringV2Args
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -188,8 +188,8 @@ type PagespeedApiFormatStringV2ArgsRects struct {
}
func (s *PagespeedApiFormatStringV2ArgsRects) MarshalJSON() ([]byte, error) {
type noMethod PagespeedApiFormatStringV2ArgsRects
raw := noMethod(*s)
type NoMethod PagespeedApiFormatStringV2ArgsRects
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -224,8 +224,8 @@ type PagespeedApiFormatStringV2ArgsSecondaryRects struct {
}
func (s *PagespeedApiFormatStringV2ArgsSecondaryRects) MarshalJSON() ([]byte, error) {
type noMethod PagespeedApiFormatStringV2ArgsSecondaryRects
raw := noMethod(*s)
type NoMethod PagespeedApiFormatStringV2ArgsSecondaryRects
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -267,8 +267,8 @@ type PagespeedApiImageV2 struct {
}
func (s *PagespeedApiImageV2) MarshalJSON() ([]byte, error) {
type noMethod PagespeedApiImageV2
raw := noMethod(*s)
type NoMethod PagespeedApiImageV2
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -305,12 +305,15 @@ type PagespeedApiImageV2PageRect struct {
}
func (s *PagespeedApiImageV2PageRect) MarshalJSON() ([]byte, error) {
type noMethod PagespeedApiImageV2PageRect
raw := noMethod(*s)
type NoMethod PagespeedApiImageV2PageRect
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Result struct {
// CaptchaResult: The captcha verify result
CaptchaResult string `json:"captchaResult,omitempty"`
// FormattedResults: Localized PageSpeed results. Contains a ruleResults
// entry for each PageSpeed rule instantiated and run by the server.
FormattedResults *ResultFormattedResults `json:"formattedResults,omitempty"`
@@ -351,7 +354,7 @@ type Result struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "FormattedResults") to
// ForceSendFields is a list of field names (e.g. "CaptchaResult") 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
@@ -359,19 +362,18 @@ type Result struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FormattedResults") 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 is a list of field names (e.g. "CaptchaResult") 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 *Result) MarshalJSON() ([]byte, error) {
type noMethod Result
raw := noMethod(*s)
type NoMethod Result
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -404,8 +406,8 @@ type ResultFormattedResults struct {
}
func (s *ResultFormattedResults) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResults
raw := noMethod(*s)
type NoMethod ResultFormattedResults
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -459,18 +461,18 @@ type ResultFormattedResultsRuleResults struct {
}
func (s *ResultFormattedResultsRuleResults) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResultsRuleResults
raw := noMethod(*s)
type NoMethod ResultFormattedResultsRuleResults
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *ResultFormattedResultsRuleResults) UnmarshalJSON(data []byte) error {
type noMethod ResultFormattedResultsRuleResults
type NoMethod ResultFormattedResultsRuleResults
var s1 struct {
RuleImpact gensupport.JSONFloat64 `json:"ruleImpact"`
*noMethod
*NoMethod
}
s1.noMethod = (*noMethod)(s)
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
@@ -504,8 +506,8 @@ type ResultFormattedResultsRuleResultsUrlBlocks struct {
}
func (s *ResultFormattedResultsRuleResultsUrlBlocks) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResultsRuleResultsUrlBlocks
raw := noMethod(*s)
type NoMethod ResultFormattedResultsRuleResultsUrlBlocks
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -536,8 +538,8 @@ type ResultFormattedResultsRuleResultsUrlBlocksUrls struct {
}
func (s *ResultFormattedResultsRuleResultsUrlBlocksUrls) MarshalJSON() ([]byte, error) {
type noMethod ResultFormattedResultsRuleResultsUrlBlocksUrls
raw := noMethod(*s)
type NoMethod ResultFormattedResultsRuleResultsUrlBlocksUrls
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -612,8 +614,8 @@ type ResultPageStats struct {
}
func (s *ResultPageStats) MarshalJSON() ([]byte, error) {
type noMethod ResultPageStats
raw := noMethod(*s)
type NoMethod ResultPageStats
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -644,8 +646,8 @@ type ResultRuleGroups struct {
}
func (s *ResultRuleGroups) MarshalJSON() ([]byte, error) {
type noMethod ResultRuleGroups
raw := noMethod(*s)
type NoMethod ResultRuleGroups
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -678,8 +680,8 @@ type ResultVersion struct {
}
func (s *ResultVersion) MarshalJSON() ([]byte, error) {
type noMethod ResultVersion
raw := noMethod(*s)
type NoMethod ResultVersion
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -828,7 +830,7 @@ func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*Result
},
}
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