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
+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