diff --git a/calendar/v3/calendar-api.json b/calendar/v3/calendar-api.json index d149f400934..8a4db5e2993 100644 --- a/calendar/v3/calendar-api.json +++ b/calendar/v3/calendar-api.json @@ -1138,7 +1138,7 @@ "type": "string" }, "q": { - "description": "Free text search terms to find events that match these terms in the following fields: summary, description, location, attendee's displayName, attendee's email. Optional.", + "description": "Free text search terms to find events that match these terms in the following fields:\n\n- summary \n- description \n- location \n- attendee's displayName \n- attendee's email \n- workingLocationProperties.officeLocation.buildingId \n- workingLocationProperties.officeLocation.deskId \n- workingLocationProperties.officeLocation.label \n- workingLocationProperties.customLocation.label \nThese search terms also match predefined keywords against all display title translations of working location, out-of-office, and focus-time events. For example, searching for \"Office\" or \"Bureau\" returns working location events of type officeLocation, whereas searching for \"Out of office\" or \"Abwesend\" returns out-of-office events. Optional.", "location": "query", "type": "string" }, @@ -1205,7 +1205,7 @@ "supportsSubscription": true }, "move": { - "description": "Moves an event to another calendar, i.e. changes an event's organizer.", + "description": "Moves an event to another calendar, i.e. changes an event's organizer. Note that only default events can be moved; outOfOffice, focusTime and workingLocation events cannot be moved.", "httpMethod": "POST", "id": "calendar.events.move", "parameterOrder": [ @@ -1541,7 +1541,7 @@ "type": "string" }, "q": { - "description": "Free text search terms to find events that match these terms in the following fields: summary, description, location, attendee's displayName, attendee's email. Optional.", + "description": "Free text search terms to find events that match these terms in the following fields:\n\n- summary \n- description \n- location \n- attendee's displayName \n- attendee's email \n- workingLocationProperties.officeLocation.buildingId \n- workingLocationProperties.officeLocation.deskId \n- workingLocationProperties.officeLocation.label \n- workingLocationProperties.customLocation.label \nThese search terms also match predefined keywords against all display title translations of working location, out-of-office, and focus-time events. For example, searching for \"Office\" or \"Bureau\" returns working location events of type officeLocation, whereas searching for \"Out of office\" or \"Abwesend\" returns out-of-office events. Optional.", "location": "query", "type": "string" }, @@ -1735,7 +1735,7 @@ } } }, - "revision": "20230907", + "revision": "20231116", "rootUrl": "https://www.googleapis.com/", "schemas": { "Acl": { @@ -2417,6 +2417,10 @@ }, "type": "object" }, + "focusTimeProperties": { + "$ref": "EventFocusTimeProperties", + "description": "Focus Time event data." + }, "gadget": { "description": "A gadget that extends this event. Gadgets are deprecated; this structure is instead only used for returning birthday calendar metadata.", "properties": { @@ -2538,6 +2542,10 @@ "$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. It uniquely identifies the instance within the recurring event series even if the instance was moved to a different time. Immutable." }, + "outOfOfficeProperties": { + "$ref": "EventOutOfOfficeProperties", + "description": "Out of office event data." + }, "privateCopy": { "default": "false", "description": "If set to True, Event propagation is disabled. Note that it is not the same thing as Private event properties. Optional. Immutable. The default is False.", @@ -2728,6 +2736,38 @@ }, "type": "object" }, + "EventFocusTimeProperties": { + "id": "EventFocusTimeProperties", + "properties": { + "autoDeclineMode": { + "description": "Whether to decline meeting invitations which overlap Focus Time events. Valid values are declineNone, meaning that no meeting invitations are declined; declineAllConflictingInvitations, meaning that all conflicting meeting invitations that conflict with the event are declined; and declineOnlyNewConflictingInvitations, meaning that only new conflicting meeting invitations which arrive while the Focus Time event is present are to be declined.", + "type": "string" + }, + "chatStatus": { + "description": "The status to mark the user in Chat and related products. This can be available or doNotDisturb.", + "type": "string" + }, + "declineMessage": { + "description": "Response message to set if an existing event or new invitation is automatically declined by Calendar.", + "type": "string" + } + }, + "type": "object" + }, + "EventOutOfOfficeProperties": { + "id": "EventOutOfOfficeProperties", + "properties": { + "autoDeclineMode": { + "description": "Whether to decline meeting invitations which overlap Out of office events. Valid values are declineNone, meaning that no meeting invitations are declined; declineAllConflictingInvitations, meaning that all conflicting meeting invitations that conflict with the event are declined; and declineOnlyNewConflictingInvitations, meaning that only new conflicting meeting invitations which arrive while the Out of office event is present are to be declined.", + "type": "string" + }, + "declineMessage": { + "description": "Response message to set if an existing event or new invitation is automatically declined by Calendar.", + "type": "string" + } + }, + "type": "object" + }, "EventReminder": { "id": "EventReminder", "properties": { diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index bca8a8b047a..ad7116b51de 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -1384,6 +1384,9 @@ type Event struct { // ExtendedProperties: Extended properties of the event. ExtendedProperties *EventExtendedProperties `json:"extendedProperties,omitempty"` + // FocusTimeProperties: Focus Time event data. + FocusTimeProperties *EventFocusTimeProperties `json:"focusTimeProperties,omitempty"` + // Gadget: A gadget that extends this event. Gadgets are deprecated; // this structure is instead only used for returning birthday calendar // metadata. @@ -1470,6 +1473,9 @@ type Event struct { // instance was moved to a different time. Immutable. OriginalStartTime *EventDateTime `json:"originalStartTime,omitempty"` + // OutOfOfficeProperties: Out of office event data. + OutOfOfficeProperties *EventOutOfOfficeProperties `json:"outOfOfficeProperties,omitempty"` + // PrivateCopy: If set to True, Event propagation is disabled. Note that // it is not the same thing as Private event properties. Optional. // Immutable. The default is False. @@ -2001,6 +2007,86 @@ func (s *EventDateTime) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type EventFocusTimeProperties struct { + // AutoDeclineMode: Whether to decline meeting invitations which overlap + // Focus Time events. Valid values are declineNone, meaning that no + // meeting invitations are declined; declineAllConflictingInvitations, + // meaning that all conflicting meeting invitations that conflict with + // the event are declined; and declineOnlyNewConflictingInvitations, + // meaning that only new conflicting meeting invitations which arrive + // while the Focus Time event is present are to be declined. + AutoDeclineMode string `json:"autoDeclineMode,omitempty"` + + // ChatStatus: The status to mark the user in Chat and related products. + // This can be available or doNotDisturb. + ChatStatus string `json:"chatStatus,omitempty"` + + // DeclineMessage: Response message to set if an existing event or new + // invitation is automatically declined by Calendar. + DeclineMessage string `json:"declineMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AutoDeclineMode") to + // unconditionally include in API requests. By default, fields with + // empty or default 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. "AutoDeclineMode") 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 *EventFocusTimeProperties) MarshalJSON() ([]byte, error) { + type NoMethod EventFocusTimeProperties + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EventOutOfOfficeProperties struct { + // AutoDeclineMode: Whether to decline meeting invitations which overlap + // Out of office events. Valid values are declineNone, meaning that no + // meeting invitations are declined; declineAllConflictingInvitations, + // meaning that all conflicting meeting invitations that conflict with + // the event are declined; and declineOnlyNewConflictingInvitations, + // meaning that only new conflicting meeting invitations which arrive + // while the Out of office event is present are to be declined. + AutoDeclineMode string `json:"autoDeclineMode,omitempty"` + + // DeclineMessage: Response message to set if an existing event or new + // invitation is automatically declined by Calendar. + DeclineMessage string `json:"declineMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AutoDeclineMode") to + // unconditionally include in API requests. By default, fields with + // empty or default 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. "AutoDeclineMode") 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 *EventOutOfOfficeProperties) MarshalJSON() ([]byte, error) { + type NoMethod EventOutOfOfficeProperties + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type EventReminder struct { // Method: The method used by this reminder. Possible values are: // - "email" - Reminders are sent via email. @@ -7176,8 +7262,22 @@ func (c *EventsListCall) PrivateExtendedProperty(privateExtendedProperty ...stri } // Q sets the optional parameter "q": Free text search terms to find -// events that match these terms in the following fields: summary, -// description, location, attendee's displayName, attendee's email. +// events that match these terms in the following fields: +// +// - summary +// - description +// - location +// - attendee's displayName +// - attendee's email +// - workingLocationProperties.officeLocation.buildingId +// - workingLocationProperties.officeLocation.deskId +// - workingLocationProperties.officeLocation.label +// - workingLocationProperties.customLocation.label +// These search terms also match predefined keywords against all display +// title translations of working location, out-of-office, and focus-time +// events. For example, searching for "Office" or "Bureau" returns +// working location events of type officeLocation, whereas searching for +// "Out of office" or "Abwesend" returns out-of-office events. func (c *EventsListCall) Q(q string) *EventsListCall { c.urlParams_.Set("q", q) return c @@ -7459,7 +7559,7 @@ func (c *EventsListCall) Do(opts ...googleapi.CallOption) (*Events, error) { // "type": "string" // }, // "q": { - // "description": "Free text search terms to find events that match these terms in the following fields: summary, description, location, attendee's displayName, attendee's email. Optional.", + // "description": "Free text search terms to find events that match these terms in the following fields:\n\n- summary \n- description \n- location \n- attendee's displayName \n- attendee's email \n- workingLocationProperties.officeLocation.buildingId \n- workingLocationProperties.officeLocation.deskId \n- workingLocationProperties.officeLocation.label \n- workingLocationProperties.customLocation.label \nThese search terms also match predefined keywords against all display title translations of working location, out-of-office, and focus-time events. For example, searching for \"Office\" or \"Bureau\" returns working location events of type officeLocation, whereas searching for \"Out of office\" or \"Abwesend\" returns out-of-office events. Optional.", // "location": "query", // "type": "string" // }, @@ -7561,7 +7661,8 @@ type EventsMoveCall struct { } // Move: Moves an event to another calendar, i.e. changes an event's -// organizer. +// organizer. Note that only default events can be moved; outOfOffice, +// focusTime and workingLocation events cannot be moved. // // - calendarId: Calendar identifier of the source calendar where the // event currently is on. @@ -7693,7 +7794,7 @@ func (c *EventsMoveCall) Do(opts ...googleapi.CallOption) (*Event, error) { } return ret, nil // { - // "description": "Moves an event to another calendar, i.e. changes an event's organizer.", + // "description": "Moves an event to another calendar, i.e. changes an event's organizer. Note that only default events can be moved; outOfOffice, focusTime and workingLocation events cannot be moved.", // "httpMethod": "POST", // "id": "calendar.events.move", // "parameterOrder": [ @@ -8600,8 +8701,22 @@ func (c *EventsWatchCall) PrivateExtendedProperty(privateExtendedProperty ...str } // Q sets the optional parameter "q": Free text search terms to find -// events that match these terms in the following fields: summary, -// description, location, attendee's displayName, attendee's email. +// events that match these terms in the following fields: +// +// - summary +// - description +// - location +// - attendee's displayName +// - attendee's email +// - workingLocationProperties.officeLocation.buildingId +// - workingLocationProperties.officeLocation.deskId +// - workingLocationProperties.officeLocation.label +// - workingLocationProperties.customLocation.label +// These search terms also match predefined keywords against all display +// title translations of working location, out-of-office, and focus-time +// events. For example, searching for "Office" or "Bureau" returns +// working location events of type officeLocation, whereas searching for +// "Out of office" or "Abwesend" returns out-of-office events. func (c *EventsWatchCall) Q(q string) *EventsWatchCall { c.urlParams_.Set("q", q) return c @@ -8875,7 +8990,7 @@ func (c *EventsWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) { // "type": "string" // }, // "q": { - // "description": "Free text search terms to find events that match these terms in the following fields: summary, description, location, attendee's displayName, attendee's email. Optional.", + // "description": "Free text search terms to find events that match these terms in the following fields:\n\n- summary \n- description \n- location \n- attendee's displayName \n- attendee's email \n- workingLocationProperties.officeLocation.buildingId \n- workingLocationProperties.officeLocation.deskId \n- workingLocationProperties.officeLocation.label \n- workingLocationProperties.customLocation.label \nThese search terms also match predefined keywords against all display title translations of working location, out-of-office, and focus-time events. For example, searching for \"Office\" or \"Bureau\" returns working location events of type officeLocation, whereas searching for \"Out of office\" or \"Abwesend\" returns out-of-office events. Optional.", // "location": "query", // "type": "string" // }, diff --git a/go.work.sum b/go.work.sum index 137392abb65..4e5563dbafa 100644 --- a/go.work.sum +++ b/go.work.sum @@ -5,6 +5,7 @@ cloud.google.com/go v0.110.6 h1:8uYAkj3YHTP/1iwReuHPxLSbdcyc+dSBbzFMrVwDR6Q= cloud.google.com/go v0.110.7 h1:rJyC7nWRg2jWGZ4wSJ5nY65GTdYJkg0cd/uXb+ACI6o= cloud.google.com/go v0.110.8 h1:tyNdfIxjzaWctIiLYOTalaLKZ17SI44SKFW26QbOhME= cloud.google.com/go v0.110.9 h1:e7ITSqGFFk4rbz/JFIqZh3G4VEHguhAL4BQcFlWtU68= +cloud.google.com/go v0.110.10 h1:LXy9GEO+timppncPIAZoOj3l58LIU9k+kn48AN7IO3Y= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json index c0ba995b0c2..86d7442c33e 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json @@ -612,7 +612,7 @@ } } }, - "revision": "20230917", + "revision": "20231127", "rootUrl": "https://mybusinessbusinessinformation.googleapis.com/", "schemas": { "AdWordsLocationExtensions": { @@ -1064,7 +1064,7 @@ "type": "string" }, "totalSize": { - "description": "The approximate number of Locations in the list irrespective of pagination.", + "description": "The approximate number of Locations in the list irrespective of pagination. This field will only be returned if `filter` is used as a query parameter.", "format": "int32", "type": "integer" } diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go index f61198ef6c2..58af6fa43ce 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go @@ -1083,7 +1083,8 @@ type ListLocationsResponse struct { NextPageToken string `json:"nextPageToken,omitempty"` // TotalSize: The approximate number of Locations in the list - // irrespective of pagination. + // irrespective of pagination. This field will only be returned if + // `filter` is used as a query parameter. TotalSize int64 `json:"totalSize,omitempty"` // ServerResponse contains the HTTP response code and headers from the