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
File diff suppressed because it is too large Load Diff
+159 -102
View File
@@ -193,8 +193,8 @@ type AdvertisedId struct {
}
func (s *AdvertisedId) MarshalJSON() ([]byte, error) {
type noMethod AdvertisedId
raw := noMethod(*s)
type NoMethod AdvertisedId
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -207,6 +207,31 @@ type AttachmentInfo struct {
// Data: An opaque data container for client-provided data.
Data string `json:"data,omitempty"`
// MaxDistanceMeters: The distance away from the beacon at which this
// attachment should be
// delivered to a mobile app.
//
// Setting this to a value greater than zero indicates that the app
// should
// behave as if the beacon is "seen" when the mobile device is less than
// this
// distance away from the beacon.
//
// Different attachments on the same beacon can have different max
// distances.
//
// Note that even though this value is expressed with fractional
// meter
// precision, real-world behavior is likley to be much less precise than
// one
// meter, due to the nature of current Bluetooth radio
// technology.
//
// Optional. When not set or zero, the attachment should be delivered at
// the
// beacon's outer limit of detection.
MaxDistanceMeters float64 `json:"maxDistanceMeters,omitempty"`
// NamespacedType: Specifies what kind of attachment this is. Tells a
// client how to
// interpret the `data` field. Format is <var>namespace/type</var>,
@@ -232,11 +257,25 @@ type AttachmentInfo struct {
}
func (s *AttachmentInfo) MarshalJSON() ([]byte, error) {
type noMethod AttachmentInfo
raw := noMethod(*s)
type NoMethod AttachmentInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *AttachmentInfo) UnmarshalJSON(data []byte) error {
type NoMethod AttachmentInfo
var s1 struct {
MaxDistanceMeters gensupport.JSONFloat64 `json:"maxDistanceMeters"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.MaxDistanceMeters = float64(s1.MaxDistanceMeters)
return nil
}
// Beacon: Details of a beacon device.
type Beacon struct {
// AdvertisedId: The identifier of a beacon as advertised by it. This
@@ -382,8 +421,8 @@ type Beacon struct {
}
func (s *Beacon) MarshalJSON() ([]byte, error) {
type noMethod Beacon
raw := noMethod(*s)
type NoMethod Beacon
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -411,6 +450,33 @@ type BeaconAttachment struct {
// Required.
Data string `json:"data,omitempty"`
// MaxDistanceMeters: The distance away from the beacon at which this
// attachment should be
// delivered to a mobile app.
//
// Setting this to a value greater than zero indicates that the app
// should
// behave as if the beacon is "seen" when the mobile device is less than
// this
// distance away from the beacon.
//
// Different attachments on the same beacon can have different max
// distances.
//
// Note that even though this value is expressed with fractional
// meter
// precision, real-world behavior is likley to be much less precise than
// one
// meter, due to the nature of current Bluetooth radio
// technology.
//
// Optional. When not set or zero, the attachment should be delivered at
// the
// beacon's outer limit of detection.
//
// Negative values are invalid and return an error.
MaxDistanceMeters float64 `json:"maxDistanceMeters,omitempty"`
// NamespacedType: Specifies what kind of attachment this is. Tells a
// client how to
// interpret the `data` field. Format is <var>namespace/type</var>.
@@ -445,11 +511,25 @@ type BeaconAttachment struct {
}
func (s *BeaconAttachment) MarshalJSON() ([]byte, error) {
type noMethod BeaconAttachment
raw := noMethod(*s)
type NoMethod BeaconAttachment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *BeaconAttachment) UnmarshalJSON(data []byte) error {
type NoMethod BeaconAttachment
var s1 struct {
MaxDistanceMeters gensupport.JSONFloat64 `json:"maxDistanceMeters"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.MaxDistanceMeters = float64(s1.MaxDistanceMeters)
return nil
}
// BeaconInfo: A subset of beacon information served via the
// `beaconinfo.getforobserved`
// method, which you call when users of your app encounter your beacons.
@@ -482,8 +562,8 @@ type BeaconInfo struct {
}
func (s *BeaconInfo) MarshalJSON() ([]byte, error) {
type noMethod BeaconInfo
raw := noMethod(*s)
type NoMethod BeaconInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -532,8 +612,8 @@ type Date struct {
}
func (s *Date) MarshalJSON() ([]byte, error) {
type noMethod Date
raw := noMethod(*s)
type NoMethod Date
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -565,8 +645,8 @@ type DeleteAttachmentsResponse struct {
}
func (s *DeleteAttachmentsResponse) MarshalJSON() ([]byte, error) {
type noMethod DeleteAttachmentsResponse
raw := noMethod(*s)
type NoMethod DeleteAttachmentsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -576,18 +656,27 @@ type Diagnostics struct {
//
// Possible values:
// "ALERT_UNSPECIFIED" - Invalid value. Should never appear.
// "WRONG_LOCATION" - The beacon has been reported in a location
// different than its registered
// location. This may indicate that the beacon has been moved. This
// signal
// is not 100% accurate, but indicates that further investigation is
// worth
// while.
// "WRONG_LOCATION" - The beacon has been reported far from its
// expected location (the beacon's
// lat_lng field if populated, otherwise, if the beacon's place_id field
// is
// present, the center of that place). This may indicate that the beacon
// has
// been moved. This signal is not 100% accurate, but indicates that
// further
// investigation is worthwhile.
// "LOW_BATTERY" - The battery level for the beacon is low enough
// that, given the beacon's
// current use, its battery will run out with in the next 60 days.
// This
// indicates that the battery should be replaced soon.
// "LOW_ACTIVITY" - The beacon has been reported at a very low rate or
// not at all. This may
// indicate that the beacon is broken or just that no one has gone near
// the
// beacon in recent days. If this status appears unexpectedly, the
// beacon
// owner should investigate further.
Alerts []string `json:"alerts,omitempty"`
// BeaconName: Resource name of the beacon. For Eddystone-EID beacons,
@@ -619,8 +708,8 @@ type Diagnostics struct {
}
func (s *Diagnostics) MarshalJSON() ([]byte, error) {
type noMethod Diagnostics
raw := noMethod(*s)
type NoMethod Diagnostics
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -750,8 +839,8 @@ type EphemeralIdRegistration struct {
}
func (s *EphemeralIdRegistration) MarshalJSON() ([]byte, error) {
type noMethod EphemeralIdRegistration
raw := noMethod(*s)
type NoMethod EphemeralIdRegistration
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -803,8 +892,8 @@ type EphemeralIdRegistrationParams struct {
}
func (s *EphemeralIdRegistrationParams) MarshalJSON() ([]byte, error) {
type noMethod EphemeralIdRegistrationParams
raw := noMethod(*s)
type NoMethod EphemeralIdRegistrationParams
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -846,8 +935,8 @@ type GetInfoForObservedBeaconsRequest struct {
}
func (s *GetInfoForObservedBeaconsRequest) MarshalJSON() ([]byte, error) {
type noMethod GetInfoForObservedBeaconsRequest
raw := noMethod(*s)
type NoMethod GetInfoForObservedBeaconsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -881,8 +970,8 @@ type GetInfoForObservedBeaconsResponse struct {
}
func (s *GetInfoForObservedBeaconsResponse) MarshalJSON() ([]byte, error) {
type noMethod GetInfoForObservedBeaconsResponse
raw := noMethod(*s)
type NoMethod GetInfoForObservedBeaconsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -911,8 +1000,8 @@ type IndoorLevel struct {
}
func (s *IndoorLevel) MarshalJSON() ([]byte, error) {
type noMethod IndoorLevel
raw := noMethod(*s)
type NoMethod IndoorLevel
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -925,40 +1014,6 @@ func (s *IndoorLevel) MarshalJSON() ([]byte, error) {
// href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
// st
// andard</a>. Values must be within normalized ranges.
//
// Example of normalization code in Python:
//
// def NormalizeLongitude(longitude):
// """Wraps decimal degrees longitude to [-180.0, 180.0]."""
// q, r = divmod(longitude, 360.0)
// if r > 180.0 or (r == 180.0 and q <= -1.0):
// return r - 360.0
// return r
//
// def NormalizeLatLng(latitude, longitude):
// """Wraps decimal degrees latitude and longitude to
// [-90.0, 90.0] and [-180.0, 180.0], respectively."""
// r = latitude % 360.0
// if r <= 90.0:
// return r, NormalizeLongitude(longitude)
// elif r >= 270.0:
// return r - 360, NormalizeLongitude(longitude)
// else:
// return 180 - r, NormalizeLongitude(longitude + 180.0)
//
// assert 180.0 == NormalizeLongitude(180.0)
// assert -180.0 == NormalizeLongitude(-180.0)
// assert -179.0 == NormalizeLongitude(181.0)
// assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
// assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
// assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
// assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
// assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
// assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
// assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
// assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
// assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
// assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
type LatLng struct {
// Latitude: The latitude in degrees. It must be in the range [-90.0,
// +90.0].
@@ -986,19 +1041,19 @@ type LatLng struct {
}
func (s *LatLng) MarshalJSON() ([]byte, error) {
type noMethod LatLng
raw := noMethod(*s)
type NoMethod LatLng
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *LatLng) UnmarshalJSON(data []byte) error {
type noMethod LatLng
type NoMethod LatLng
var s1 struct {
Latitude gensupport.JSONFloat64 `json:"latitude"`
Longitude gensupport.JSONFloat64 `json:"longitude"`
*noMethod
*NoMethod
}
s1.noMethod = (*noMethod)(s)
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
@@ -1035,8 +1090,8 @@ type ListBeaconAttachmentsResponse struct {
}
func (s *ListBeaconAttachmentsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListBeaconAttachmentsResponse
raw := noMethod(*s)
type NoMethod ListBeaconAttachmentsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1078,8 +1133,8 @@ type ListBeaconsResponse struct {
}
func (s *ListBeaconsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListBeaconsResponse
raw := noMethod(*s)
type NoMethod ListBeaconsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1116,8 +1171,8 @@ type ListDiagnosticsResponse struct {
}
func (s *ListDiagnosticsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListDiagnosticsResponse
raw := noMethod(*s)
type NoMethod ListDiagnosticsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1149,8 +1204,8 @@ type ListNamespacesResponse struct {
}
func (s *ListNamespacesResponse) MarshalJSON() ([]byte, error) {
type noMethod ListNamespacesResponse
raw := noMethod(*s)
type NoMethod ListNamespacesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1199,8 +1254,8 @@ type Namespace struct {
}
func (s *Namespace) MarshalJSON() ([]byte, error) {
type noMethod Namespace
raw := noMethod(*s)
type NoMethod Namespace
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1245,8 +1300,8 @@ type Observation struct {
}
func (s *Observation) MarshalJSON() ([]byte, error) {
type noMethod Observation
raw := noMethod(*s)
type NoMethod Observation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1353,7 +1408,7 @@ func (c *BeaconinfoGetforobservedCall) Do(opts ...googleapi.CallOption) (*GetInf
},
}
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
@@ -1490,7 +1545,7 @@ func (c *BeaconsActivateCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
},
}
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
@@ -1643,7 +1698,7 @@ func (c *BeaconsDeactivateCall) Do(opts ...googleapi.CallOption) (*Empty, error)
},
}
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
@@ -1795,7 +1850,7 @@ func (c *BeaconsDecommissionCall) Do(opts ...googleapi.CallOption) (*Empty, erro
},
}
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
@@ -1943,7 +1998,7 @@ func (c *BeaconsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
},
}
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
@@ -2114,7 +2169,7 @@ func (c *BeaconsGetCall) Do(opts ...googleapi.CallOption) (*Beacon, error) {
},
}
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
@@ -2380,7 +2435,7 @@ func (c *BeaconsListCall) Do(opts ...googleapi.CallOption) (*ListBeaconsResponse
},
}
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
@@ -2559,7 +2614,7 @@ func (c *BeaconsRegisterCall) Do(opts ...googleapi.CallOption) (*Beacon, error)
},
}
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
@@ -2717,7 +2772,7 @@ func (c *BeaconsUpdateCall) Do(opts ...googleapi.CallOption) (*Beacon, error) {
},
}
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
@@ -2889,7 +2944,7 @@ func (c *BeaconsAttachmentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*D
},
}
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
@@ -3062,7 +3117,7 @@ func (c *BeaconsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*Beacon
},
}
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
@@ -3217,7 +3272,7 @@ func (c *BeaconsAttachmentsDeleteCall) 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
@@ -3399,7 +3454,7 @@ func (c *BeaconsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*ListBeac
},
}
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
@@ -3477,6 +3532,7 @@ func (r *BeaconsDiagnosticsService) List(beaconName string) *BeaconsDiagnosticsL
// "ALERT_UNSPECIFIED"
// "WRONG_LOCATION"
// "LOW_BATTERY"
// "LOW_ACTIVITY"
func (c *BeaconsDiagnosticsListCall) AlertFilter(alertFilter string) *BeaconsDiagnosticsListCall {
c.urlParams_.Set("alertFilter", alertFilter)
return c
@@ -3597,7 +3653,7 @@ func (c *BeaconsDiagnosticsListCall) Do(opts ...googleapi.CallOption) (*ListDiag
},
}
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
@@ -3615,7 +3671,8 @@ func (c *BeaconsDiagnosticsListCall) Do(opts ...googleapi.CallOption) (*ListDiag
// "enum": [
// "ALERT_UNSPECIFIED",
// "WRONG_LOCATION",
// "LOW_BATTERY"
// "LOW_BATTERY",
// "LOW_ACTIVITY"
// ],
// "location": "query",
// "type": "string"
@@ -3796,7 +3853,7 @@ func (c *NamespacesListCall) Do(opts ...googleapi.CallOption) (*ListNamespacesRe
},
}
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
@@ -3936,7 +3993,7 @@ func (c *NamespacesUpdateCall) Do(opts ...googleapi.CallOption) (*Namespace, err
},
}
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
@@ -4090,7 +4147,7 @@ func (c *V1beta1GetEidparamsCall) Do(opts ...googleapi.CallOption) (*EphemeralId
},
}
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