mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Update dependencies
This commit is contained in:
87
vendor/google.golang.org/api/calendar/v3/calendar-api.json
generated
vendored
87
vendor/google.golang.org/api/calendar/v3/calendar-api.json
generated
vendored
@@ -17,7 +17,7 @@
|
||||
"description": "Manipulates events and other calendar data.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/google-apps/calendar/firstapp",
|
||||
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/ITK5FY7POTu4MHcI4-Fs0HUENwM\"",
|
||||
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/UfSqMqLGclhjNS9q0g-j705eXE8\"",
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/calendar-16.png",
|
||||
"x32": "http://www.google.com/images/icons/product/calendar-32.png"
|
||||
@@ -342,7 +342,7 @@
|
||||
"calendarList": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
"description": "Deletes an entry on the user's calendar list.",
|
||||
"description": "Removes a calendar from the user's calendar list.",
|
||||
"httpMethod": "DELETE",
|
||||
"id": "calendar.calendarList.delete",
|
||||
"parameterOrder": [
|
||||
@@ -362,7 +362,7 @@
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"description": "Returns an entry on the user's calendar list.",
|
||||
"description": "Returns a calendar from the user's calendar list.",
|
||||
"httpMethod": "GET",
|
||||
"id": "calendar.calendarList.get",
|
||||
"parameterOrder": [
|
||||
@@ -386,7 +386,7 @@
|
||||
]
|
||||
},
|
||||
"insert": {
|
||||
"description": "Adds an entry to the user's calendar list.",
|
||||
"description": "Inserts an existing calendar into the user's calendar list.",
|
||||
"httpMethod": "POST",
|
||||
"id": "calendar.calendarList.insert",
|
||||
"parameters": {
|
||||
@@ -408,7 +408,7 @@
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Returns entries on the user's calendar list.",
|
||||
"description": "Returns the calendars on the user's calendar list.",
|
||||
"httpMethod": "GET",
|
||||
"id": "calendar.calendarList.list",
|
||||
"parameters": {
|
||||
@@ -468,7 +468,7 @@
|
||||
"supportsSubscription": true
|
||||
},
|
||||
"patch": {
|
||||
"description": "Updates an entry on the user's calendar list. This method supports patch semantics.",
|
||||
"description": "Updates an existing calendar on the user's calendar list. This method supports patch semantics.",
|
||||
"httpMethod": "PATCH",
|
||||
"id": "calendar.calendarList.patch",
|
||||
"parameterOrder": [
|
||||
@@ -499,7 +499,7 @@
|
||||
]
|
||||
},
|
||||
"update": {
|
||||
"description": "Updates an entry on the user's calendar list.",
|
||||
"description": "Updates an existing calendar on the user's calendar list.",
|
||||
"httpMethod": "PUT",
|
||||
"id": "calendar.calendarList.update",
|
||||
"parameterOrder": [
|
||||
@@ -1604,6 +1604,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180814",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"Acl": {
|
||||
@@ -1870,23 +1871,11 @@
|
||||
"id": "CalendarNotification",
|
||||
"properties": {
|
||||
"method": {
|
||||
"annotations": {
|
||||
"required": [
|
||||
"calendar.calendarList.insert",
|
||||
"calendar.calendarList.update"
|
||||
]
|
||||
},
|
||||
"description": "The method used to deliver the notification. Possible values are: \n- \"email\" - Reminders are sent via email. \n- \"sms\" - Reminders are sent via SMS. This value is read-only and is ignored on inserts and updates. SMS reminders are only available for G Suite customers.",
|
||||
"description": "The method used to deliver the notification. Possible values are: \n- \"email\" - Reminders are sent via email. \n- \"sms\" - Reminders are sent via SMS. This value is read-only and is ignored on inserts and updates. SMS reminders are only available for G Suite customers. \nRequired when adding a notification.",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"annotations": {
|
||||
"required": [
|
||||
"calendar.calendarList.insert",
|
||||
"calendar.calendarList.update"
|
||||
]
|
||||
},
|
||||
"description": "The type of notification. Possible values are: \n- \"eventCreation\" - Notification sent when a new event is put on the calendar. \n- \"eventChange\" - Notification sent when an event is changed. \n- \"eventCancellation\" - Notification sent when an event is cancelled. \n- \"eventResponse\" - Notification sent when an event is changed. \n- \"agenda\" - An agenda with the events of the day (sent out in the morning).",
|
||||
"description": "The type of notification. Possible values are: \n- \"eventCreation\" - Notification sent when a new event is put on the calendar. \n- \"eventChange\" - Notification sent when an event is changed. \n- \"eventCancellation\" - Notification sent when an event is cancelled. \n- \"eventResponse\" - Notification sent when an attendee responds to the event invitation. \n- \"agenda\" - An agenda with the events of the day (sent out in the morning). \nRequired when adding a notification.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
@@ -2222,7 +2211,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API",
|
||||
"description": "The creator's Profile ID, if available. It corresponds to the id field in the People collection of the Google+ API",
|
||||
"type": "string"
|
||||
},
|
||||
"self": {
|
||||
@@ -2385,7 +2374,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API",
|
||||
"description": "The organizer's Profile ID, if available. It corresponds to the id field in the People collection of the Google+ API",
|
||||
"type": "string"
|
||||
},
|
||||
"self": {
|
||||
@@ -2398,7 +2387,7 @@
|
||||
},
|
||||
"originalStartTime": {
|
||||
"$ref": "EventDateTime",
|
||||
"description": "For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable."
|
||||
"description": "For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. It uniquely identifies the instance within the recurring event series even if the instance was moved to a different time. Immutable."
|
||||
},
|
||||
"privateCopy": {
|
||||
"default": "false",
|
||||
@@ -2497,14 +2486,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"fileUrl": {
|
||||
"annotations": {
|
||||
"required": [
|
||||
"calendar.events.import",
|
||||
"calendar.events.insert",
|
||||
"calendar.events.update"
|
||||
]
|
||||
},
|
||||
"description": "URL link to the attachment.\nFor adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.",
|
||||
"description": "URL link to the attachment.\nFor adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.\nRequired when adding an attachment.",
|
||||
"type": "string"
|
||||
},
|
||||
"iconLink": {
|
||||
@@ -2540,18 +2522,11 @@
|
||||
"type": "string"
|
||||
},
|
||||
"email": {
|
||||
"annotations": {
|
||||
"required": [
|
||||
"calendar.events.import",
|
||||
"calendar.events.insert",
|
||||
"calendar.events.update"
|
||||
]
|
||||
},
|
||||
"description": "The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.",
|
||||
"description": "The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.\nRequired when adding an attendee.",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API",
|
||||
"description": "The attendee's Profile ID, if available. It corresponds to the id field in the People collection of the Google+ API",
|
||||
"type": "string"
|
||||
},
|
||||
"optional": {
|
||||
@@ -2604,29 +2579,11 @@
|
||||
"id": "EventReminder",
|
||||
"properties": {
|
||||
"method": {
|
||||
"annotations": {
|
||||
"required": [
|
||||
"calendar.calendarList.insert",
|
||||
"calendar.calendarList.update",
|
||||
"calendar.events.import",
|
||||
"calendar.events.insert",
|
||||
"calendar.events.update"
|
||||
]
|
||||
},
|
||||
"description": "The method used by this reminder. Possible values are: \n- \"email\" - Reminders are sent via email. \n- \"sms\" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored. \n- \"popup\" - Reminders are sent via a UI popup.",
|
||||
"description": "The method used by this reminder. Possible values are: \n- \"email\" - Reminders are sent via email. \n- \"sms\" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored. \n- \"popup\" - Reminders are sent via a UI popup. \nRequired when adding a reminder.",
|
||||
"type": "string"
|
||||
},
|
||||
"minutes": {
|
||||
"annotations": {
|
||||
"required": [
|
||||
"calendar.calendarList.insert",
|
||||
"calendar.calendarList.update",
|
||||
"calendar.events.import",
|
||||
"calendar.events.insert",
|
||||
"calendar.events.update"
|
||||
]
|
||||
},
|
||||
"description": "Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).",
|
||||
"description": "Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).\nRequired when adding a reminder.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
@@ -2735,12 +2692,12 @@
|
||||
"id": "FreeBusyRequest",
|
||||
"properties": {
|
||||
"calendarExpansionMax": {
|
||||
"description": "Maximal number of calendars for which FreeBusy information is to be provided. Optional.",
|
||||
"description": "Maximal number of calendars for which FreeBusy information is to be provided. Optional. Maximum value is 50.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"groupExpansionMax": {
|
||||
"description": "Maximal number of calendar identifiers to be provided for a single group. Optional. An error will be returned for a group with more members than this value.",
|
||||
"description": "Maximal number of calendar identifiers to be provided for a single group. Optional. An error is returned for a group with more members than this value. Maximum value is 100.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -2752,12 +2709,12 @@
|
||||
"type": "array"
|
||||
},
|
||||
"timeMax": {
|
||||
"description": "The end of the interval for the query.",
|
||||
"description": "The end of the interval for the query formatted as per RFC3339.",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"timeMin": {
|
||||
"description": "The start of the interval for the query.",
|
||||
"description": "The start of the interval for the query formatted as per RFC3339.",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
62
vendor/google.golang.org/api/calendar/v3/calendar-gen.go
generated
vendored
62
vendor/google.golang.org/api/calendar/v3/calendar-gen.go
generated
vendored
@@ -572,6 +572,7 @@ type CalendarNotification struct {
|
||||
// - "sms" - Reminders are sent via SMS. This value is read-only and is
|
||||
// ignored on inserts and updates. SMS reminders are only available for
|
||||
// G Suite customers.
|
||||
// Required when adding a notification.
|
||||
Method string `json:"method,omitempty"`
|
||||
|
||||
// Type: The type of notification. Possible values are:
|
||||
@@ -580,9 +581,11 @@ type CalendarNotification struct {
|
||||
// - "eventChange" - Notification sent when an event is changed.
|
||||
// - "eventCancellation" - Notification sent when an event is cancelled.
|
||||
//
|
||||
// - "eventResponse" - Notification sent when an event is changed.
|
||||
// - "eventResponse" - Notification sent when an attendee responds to
|
||||
// the event invitation.
|
||||
// - "agenda" - An agenda with the events of the day (sent out in the
|
||||
// morning).
|
||||
// Required when adding a notification.
|
||||
Type string `json:"type,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Method") to
|
||||
@@ -1335,7 +1338,9 @@ type Event struct {
|
||||
|
||||
// OriginalStartTime: For an instance of a recurring event, this is the
|
||||
// time at which this event would start according to the recurrence data
|
||||
// in the recurring event identified by recurringEventId. Immutable.
|
||||
// in the recurring event identified by recurringEventId. It uniquely
|
||||
// identifies the instance within the recurring event series even if the
|
||||
// instance was moved to a different time. Immutable.
|
||||
OriginalStartTime *EventDateTime `json:"originalStartTime,omitempty"`
|
||||
|
||||
// PrivateCopy: Whether this is a private event copy where changes are
|
||||
@@ -1469,7 +1474,7 @@ type EventCreator struct {
|
||||
// Email: The creator's email address, if available.
|
||||
Email string `json:"email,omitempty"`
|
||||
|
||||
// Id: The creator's Profile ID, if available. It corresponds to theid
|
||||
// Id: The creator's Profile ID, if available. It corresponds to the id
|
||||
// field in the People collection of the Google+ API
|
||||
Id string `json:"id,omitempty"`
|
||||
|
||||
@@ -1600,8 +1605,8 @@ type EventOrganizer struct {
|
||||
// valid email address as per RFC5322.
|
||||
Email string `json:"email,omitempty"`
|
||||
|
||||
// Id: The organizer's Profile ID, if available. It corresponds to theid
|
||||
// field in the People collection of the Google+ API
|
||||
// Id: The organizer's Profile ID, if available. It corresponds to the
|
||||
// id field in the People collection of the Google+ API
|
||||
Id string `json:"id,omitempty"`
|
||||
|
||||
// Self: Whether the organizer corresponds to the calendar on which this
|
||||
@@ -1711,7 +1716,9 @@ type EventAttachment struct {
|
||||
|
||||
// FileUrl: URL link to the attachment.
|
||||
// For adding Google Drive file attachments use the same format as in
|
||||
// alternateLink property of the Files resource in the Drive API.
|
||||
// alternateLink property of the Files resource in the Drive
|
||||
// API.
|
||||
// Required when adding an attachment.
|
||||
FileUrl string `json:"fileUrl,omitempty"`
|
||||
|
||||
// IconLink: URL link to the attachment's icon. Read-only.
|
||||
@@ -1760,9 +1767,10 @@ type EventAttendee struct {
|
||||
// Email: The attendee's email address, if available. This field must be
|
||||
// present when adding an attendee. It must be a valid email address as
|
||||
// per RFC5322.
|
||||
// Required when adding an attendee.
|
||||
Email string `json:"email,omitempty"`
|
||||
|
||||
// Id: The attendee's Profile ID, if available. It corresponds to theid
|
||||
// Id: The attendee's Profile ID, if available. It corresponds to the id
|
||||
// field in the People collection of the Google+ API
|
||||
Id string `json:"id,omitempty"`
|
||||
|
||||
@@ -1864,11 +1872,13 @@ type EventReminder struct {
|
||||
// Suite customers. Requests to set SMS reminders for other account
|
||||
// types are ignored.
|
||||
// - "popup" - Reminders are sent via a UI popup.
|
||||
// Required when adding a reminder.
|
||||
Method string `json:"method,omitempty"`
|
||||
|
||||
// Minutes: Number of minutes before the start of the event when the
|
||||
// reminder should trigger. Valid values are between 0 and 40320 (4
|
||||
// weeks in minutes).
|
||||
// Required when adding a reminder.
|
||||
Minutes int64 `json:"minutes,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Method") to
|
||||
@@ -2040,21 +2050,23 @@ func (s *FreeBusyGroup) MarshalJSON() ([]byte, error) {
|
||||
|
||||
type FreeBusyRequest struct {
|
||||
// CalendarExpansionMax: Maximal number of calendars for which FreeBusy
|
||||
// information is to be provided. Optional.
|
||||
// information is to be provided. Optional. Maximum value is 50.
|
||||
CalendarExpansionMax int64 `json:"calendarExpansionMax,omitempty"`
|
||||
|
||||
// GroupExpansionMax: Maximal number of calendar identifiers to be
|
||||
// provided for a single group. Optional. An error will be returned for
|
||||
// a group with more members than this value.
|
||||
// provided for a single group. Optional. An error is returned for a
|
||||
// group with more members than this value. Maximum value is 100.
|
||||
GroupExpansionMax int64 `json:"groupExpansionMax,omitempty"`
|
||||
|
||||
// Items: List of calendars and/or groups to query.
|
||||
Items []*FreeBusyRequestItem `json:"items,omitempty"`
|
||||
|
||||
// TimeMax: The end of the interval for the query.
|
||||
// TimeMax: The end of the interval for the query formatted as per
|
||||
// RFC3339.
|
||||
TimeMax string `json:"timeMax,omitempty"`
|
||||
|
||||
// TimeMin: The start of the interval for the query.
|
||||
// TimeMin: The start of the interval for the query formatted as per
|
||||
// RFC3339.
|
||||
TimeMin string `json:"timeMin,omitempty"`
|
||||
|
||||
// TimeZone: Time zone used in the response. Optional. The default is
|
||||
@@ -3418,7 +3430,7 @@ type CalendarListDeleteCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Delete: Deletes an entry on the user's calendar list.
|
||||
// Delete: Removes a calendar from the user's calendar list.
|
||||
func (r *CalendarListService) Delete(calendarId string) *CalendarListDeleteCall {
|
||||
c := &CalendarListDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.calendarId = calendarId
|
||||
@@ -3481,7 +3493,7 @@ func (c *CalendarListDeleteCall) Do(opts ...googleapi.CallOption) error {
|
||||
}
|
||||
return nil
|
||||
// {
|
||||
// "description": "Deletes an entry on the user's calendar list.",
|
||||
// "description": "Removes a calendar from the user's calendar list.",
|
||||
// "httpMethod": "DELETE",
|
||||
// "id": "calendar.calendarList.delete",
|
||||
// "parameterOrder": [
|
||||
@@ -3514,7 +3526,7 @@ type CalendarListGetCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Returns an entry on the user's calendar list.
|
||||
// Get: Returns a calendar from the user's calendar list.
|
||||
func (r *CalendarListService) Get(calendarId string) *CalendarListGetCall {
|
||||
c := &CalendarListGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.calendarId = calendarId
|
||||
@@ -3615,7 +3627,7 @@ func (c *CalendarListGetCall) Do(opts ...googleapi.CallOption) (*CalendarListEnt
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns an entry on the user's calendar list.",
|
||||
// "description": "Returns a calendar from the user's calendar list.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "calendar.calendarList.get",
|
||||
// "parameterOrder": [
|
||||
@@ -3651,7 +3663,7 @@ type CalendarListInsertCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Insert: Adds an entry to the user's calendar list.
|
||||
// Insert: Inserts an existing calendar into the user's calendar list.
|
||||
func (r *CalendarListService) Insert(calendarlistentry *CalendarListEntry) *CalendarListInsertCall {
|
||||
c := &CalendarListInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.calendarlistentry = calendarlistentry
|
||||
@@ -3751,7 +3763,7 @@ func (c *CalendarListInsertCall) Do(opts ...googleapi.CallOption) (*CalendarList
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Adds an entry to the user's calendar list.",
|
||||
// "description": "Inserts an existing calendar into the user's calendar list.",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "calendar.calendarList.insert",
|
||||
// "parameters": {
|
||||
@@ -3785,7 +3797,7 @@ type CalendarListListCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// List: Returns entries on the user's calendar list.
|
||||
// List: Returns the calendars on the user's calendar list.
|
||||
func (r *CalendarListService) List() *CalendarListListCall {
|
||||
c := &CalendarListListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
return c
|
||||
@@ -3947,7 +3959,7 @@ func (c *CalendarListListCall) Do(opts ...googleapi.CallOption) (*CalendarList,
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns entries on the user's calendar list.",
|
||||
// "description": "Returns the calendars on the user's calendar list.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "calendar.calendarList.list",
|
||||
// "parameters": {
|
||||
@@ -4041,8 +4053,8 @@ type CalendarListPatchCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Patch: Updates an entry on the user's calendar list. This method
|
||||
// supports patch semantics.
|
||||
// Patch: Updates an existing calendar on the user's calendar list. This
|
||||
// method supports patch semantics.
|
||||
func (r *CalendarListService) Patch(calendarId string, calendarlistentry *CalendarListEntry) *CalendarListPatchCall {
|
||||
c := &CalendarListPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.calendarId = calendarId
|
||||
@@ -4146,7 +4158,7 @@ func (c *CalendarListPatchCall) Do(opts ...googleapi.CallOption) (*CalendarListE
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Updates an entry on the user's calendar list. This method supports patch semantics.",
|
||||
// "description": "Updates an existing calendar on the user's calendar list. This method supports patch semantics.",
|
||||
// "httpMethod": "PATCH",
|
||||
// "id": "calendar.calendarList.patch",
|
||||
// "parameterOrder": [
|
||||
@@ -4190,7 +4202,7 @@ type CalendarListUpdateCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Update: Updates an entry on the user's calendar list.
|
||||
// Update: Updates an existing calendar on the user's calendar list.
|
||||
func (r *CalendarListService) Update(calendarId string, calendarlistentry *CalendarListEntry) *CalendarListUpdateCall {
|
||||
c := &CalendarListUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.calendarId = calendarId
|
||||
@@ -4294,7 +4306,7 @@ func (c *CalendarListUpdateCall) Do(opts ...googleapi.CallOption) (*CalendarList
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Updates an entry on the user's calendar list.",
|
||||
// "description": "Updates an existing calendar on the user's calendar list.",
|
||||
// "httpMethod": "PUT",
|
||||
// "id": "calendar.calendarList.update",
|
||||
// "parameterOrder": [
|
||||
|
||||
4
vendor/google.golang.org/api/sheets/v4/sheets-api.json
generated
vendored
4
vendor/google.golang.org/api/sheets/v4/sheets-api.json
generated
vendored
@@ -808,7 +808,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180611",
|
||||
"revision": "20180727",
|
||||
"rootUrl": "https://sheets.googleapis.com/",
|
||||
"schemas": {
|
||||
"AddBandingRequest": {
|
||||
@@ -2399,7 +2399,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"Color": {
|
||||
"description": "Represents a color in the RGBA color space. This representation is designed\nfor simplicity of conversion to/from color representations in various\nlanguages over compactness; for example, the fields of this representation\ncan be trivially provided to the constructor of \"java.awt.Color\" in Java; it\ncan also be trivially provided to UIColor's \"+colorWithRed:green:blue:alpha\"\nmethod in iOS; and, with just a little work, it can be easily formatted into\na CSS \"rgba()\" string in JavaScript, as well. Here are some examples:\n\nExample (Java):\n\n import com.google.type.Color;\n\n // ...\n public static java.awt.Color fromProto(Color protocolor) {\n float alpha = protocolor.hasAlpha()\n ? protocolor.getAlpha().getValue()\n : 1.0;\n\n return new java.awt.Color(\n protocolor.getRed(),\n protocolor.getGreen(),\n protocolor.getBlue(),\n alpha);\n }\n\n public static Color toProto(java.awt.Color color) {\n float red = (float) color.getRed();\n float green = (float) color.getGreen();\n float blue = (float) color.getBlue();\n float denominator = 255.0;\n Color.Builder resultBuilder =\n Color\n .newBuilder()\n .setRed(red / denominator)\n .setGreen(green / denominator)\n .setBlue(blue / denominator);\n int alpha = color.getAlpha();\n if (alpha != 255) {\n result.setAlpha(\n FloatValue\n .newBuilder()\n .setValue(((float) alpha) / denominator)\n .build());\n }\n return resultBuilder.build();\n }\n // ...\n\nExample (iOS / Obj-C):\n\n // ...\n static UIColor* fromProto(Color* protocolor) {\n float red = [protocolor red];\n float green = [protocolor green];\n float blue = [protocolor blue];\n FloatValue* alpha_wrapper = [protocolor alpha];\n float alpha = 1.0;\n if (alpha_wrapper != nil) {\n alpha = [alpha_wrapper value];\n }\n return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];\n }\n\n static Color* toProto(UIColor* color) {\n CGFloat red, green, blue, alpha;\n if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) {\n return nil;\n }\n Color* result = [Color alloc] init];\n [result setRed:red];\n [result setGreen:green];\n [result setBlue:blue];\n if (alpha \u003c= 0.9999) {\n [result setAlpha:floatWrapperWithValue(alpha)];\n }\n [result autorelease];\n return result;\n }\n // ...\n\n Example (JavaScript):\n\n // ...\n\n var protoToCssColor = function(rgb_color) {\n var redFrac = rgb_color.red || 0.0;\n var greenFrac = rgb_color.green || 0.0;\n var blueFrac = rgb_color.blue || 0.0;\n var red = Math.floor(redFrac * 255);\n var green = Math.floor(greenFrac * 255);\n var blue = Math.floor(blueFrac * 255);\n\n if (!('alpha' in rgb_color)) {\n return rgbToCssColor_(red, green, blue);\n }\n\n var alphaFrac = rgb_color.alpha.value || 0.0;\n var rgbParams = [red, green, blue].join(',');\n return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');\n };\n\n var rgbToCssColor_ = function(red, green, blue) {\n var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue);\n var hexString = rgbNumber.toString(16);\n var missingZeros = 6 - hexString.length;\n var resultBuilder = ['#'];\n for (var i = 0; i \u003c missingZeros; i++) {\n resultBuilder.push('0');\n }\n resultBuilder.push(hexString);\n return resultBuilder.join('');\n };\n\n // ...",
|
||||
"description": "Represents a color in the RGBA color space. This representation is designed\nfor simplicity of conversion to/from color representations in various\nlanguages over compactness; for example, the fields of this representation\ncan be trivially provided to the constructor of \"java.awt.Color\" in Java; it\ncan also be trivially provided to UIColor's \"+colorWithRed:green:blue:alpha\"\nmethod in iOS; and, with just a little work, it can be easily formatted into\na CSS \"rgba()\" string in JavaScript, as well. Here are some examples:\n\nExample (Java):\n\n import com.google.type.Color;\n\n // ...\n public static java.awt.Color fromProto(Color protocolor) {\n float alpha = protocolor.hasAlpha()\n ? protocolor.getAlpha().getValue()\n : 1.0;\n\n return new java.awt.Color(\n protocolor.getRed(),\n protocolor.getGreen(),\n protocolor.getBlue(),\n alpha);\n }\n\n public static Color toProto(java.awt.Color color) {\n float red = (float) color.getRed();\n float green = (float) color.getGreen();\n float blue = (float) color.getBlue();\n float denominator = 255.0;\n Color.Builder resultBuilder =\n Color\n .newBuilder()\n .setRed(red / denominator)\n .setGreen(green / denominator)\n .setBlue(blue / denominator);\n int alpha = color.getAlpha();\n if (alpha != 255) {\n result.setAlpha(\n FloatValue\n .newBuilder()\n .setValue(((float) alpha) / denominator)\n .build());\n }\n return resultBuilder.build();\n }\n // ...\n\nExample (iOS / Obj-C):\n\n // ...\n static UIColor* fromProto(Color* protocolor) {\n float red = [protocolor red];\n float green = [protocolor green];\n float blue = [protocolor blue];\n FloatValue* alpha_wrapper = [protocolor alpha];\n float alpha = 1.0;\n if (alpha_wrapper != nil) {\n alpha = [alpha_wrapper value];\n }\n return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];\n }\n\n static Color* toProto(UIColor* color) {\n CGFloat red, green, blue, alpha;\n if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) {\n return nil;\n }\n Color* result = [[Color alloc] init];\n [result setRed:red];\n [result setGreen:green];\n [result setBlue:blue];\n if (alpha \u003c= 0.9999) {\n [result setAlpha:floatWrapperWithValue(alpha)];\n }\n [result autorelease];\n return result;\n }\n // ...\n\n Example (JavaScript):\n\n // ...\n\n var protoToCssColor = function(rgb_color) {\n var redFrac = rgb_color.red || 0.0;\n var greenFrac = rgb_color.green || 0.0;\n var blueFrac = rgb_color.blue || 0.0;\n var red = Math.floor(redFrac * 255);\n var green = Math.floor(greenFrac * 255);\n var blue = Math.floor(blueFrac * 255);\n\n if (!('alpha' in rgb_color)) {\n return rgbToCssColor_(red, green, blue);\n }\n\n var alphaFrac = rgb_color.alpha.value || 0.0;\n var rgbParams = [red, green, blue].join(',');\n return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');\n };\n\n var rgbToCssColor_ = function(red, green, blue) {\n var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue);\n var hexString = rgbNumber.toString(16);\n var missingZeros = 6 - hexString.length;\n var resultBuilder = ['#'];\n for (var i = 0; i \u003c missingZeros; i++) {\n resultBuilder.push('0');\n }\n resultBuilder.push(hexString);\n return resultBuilder.join('');\n };\n\n // ...",
|
||||
"id": "Color",
|
||||
"properties": {
|
||||
"alpha": {
|
||||
|
||||
2
vendor/google.golang.org/api/sheets/v4/sheets-gen.go
generated
vendored
2
vendor/google.golang.org/api/sheets/v4/sheets-gen.go
generated
vendored
@@ -3185,7 +3185,7 @@ func (s *ClearValuesResponse) MarshalJSON() ([]byte, error) {
|
||||
// alpha:&alpha]) {
|
||||
// return nil;
|
||||
// }
|
||||
// Color* result = [Color alloc] init];
|
||||
// Color* result = [[Color alloc] init];
|
||||
// [result setRed:red];
|
||||
// [result setGreen:green];
|
||||
// [result setBlue:blue];
|
||||
|
||||
Reference in New Issue
Block a user