coss 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/coss/audit_events/client.rb +2 -0
- data/lib/coss/billing/types/usage_billing_request_meter.rb +7 -1
- data/lib/coss/client.rb +6 -1
- data/lib/coss/email/audiences/client.rb +9 -0
- data/lib/coss/email/broadcasts/client.rb +2 -0
- data/lib/coss/email/broadcasts/types/create_broadcast_request_tracking.rb +1 -0
- data/lib/coss/email/broadcasts/types/update_broadcast_request_tracking.rb +1 -0
- data/lib/coss/email/contacts/client.rb +2 -0
- data/lib/coss/email/contacts/properties/client.rb +4 -0
- data/lib/coss/email/contacts/properties/types/create_contact_property_request_fallback.rb +1 -0
- data/lib/coss/email/contacts/properties/types/update_contact_property_request_fallback.rb +1 -0
- data/lib/coss/email/segments/client.rb +6 -0
- data/lib/coss/email/suppressions/client.rb +2 -0
- data/lib/coss/email/topics/client.rb +2 -0
- data/lib/coss/forms/client.rb +2 -0
- data/lib/coss/forms/submissions/client.rb +2 -0
- data/lib/coss/forms/types/create_form_request_contacts.rb +1 -0
- data/lib/coss/forms/types/create_form_request_files.rb +1 -0
- data/lib/coss/forms/types/create_form_request_hosted.rb +1 -0
- data/lib/coss/forms/types/create_form_request_notifications.rb +1 -0
- data/lib/coss/forms/types/create_form_request_spam.rb +1 -0
- data/lib/coss/forms/types/create_form_request_submitter.rb +1 -0
- data/lib/coss/forms/types/update_form_request_contacts.rb +1 -0
- data/lib/coss/forms/types/update_form_request_files.rb +1 -0
- data/lib/coss/forms/types/update_form_request_hosted.rb +1 -0
- data/lib/coss/forms/types/update_form_request_notifications.rb +1 -0
- data/lib/coss/forms/types/update_form_request_spam.rb +1 -0
- data/lib/coss/forms/types/update_form_request_submitter.rb +1 -0
- data/lib/coss/hooks/messages/client.rb +3 -1
- data/lib/coss/inboxes/client.rb +2 -0
- data/lib/coss/inboxes/messages/types/reply_inbox_message_request_bcc.rb +1 -0
- data/lib/coss/inboxes/messages/types/reply_inbox_message_request_cc.rb +1 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_bcc.rb +1 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_cc.rb +1 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_to.rb +1 -0
- data/lib/coss/log_drains/batches/client.rb +2 -2
- data/lib/coss/log_drains/client.rb +11 -8
- data/lib/coss/log_drains/types/create_log_drain_request.rb +4 -0
- data/lib/coss/log_drains/types/create_log_drain_request_format.rb +16 -0
- data/lib/coss/log_drains/types/update_log_drain_request.rb +4 -0
- data/lib/coss/logs/client.rb +2 -0
- data/lib/coss/risk/client.rb +11 -6
- data/lib/coss/risk/limit_buckets/client.rb +2 -0
- data/lib/coss/risk/lists/client.rb +4 -0
- data/lib/coss/risk/rules/client.rb +4 -0
- data/lib/coss/scheduling/attendees/client.rb +94 -0
- data/lib/coss/scheduling/attendees/types/erase_attendees_request.rb +13 -0
- data/lib/coss/scheduling/attendees/types/erase_scheduling_attendee_by_email_request.rb +13 -0
- data/lib/coss/scheduling/availability/client.rb +62 -0
- data/lib/coss/scheduling/availability/types/availability_search_request.rb +25 -0
- data/lib/coss/scheduling/availability/types/availability_search_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/bookings/client.rb +510 -0
- data/lib/coss/scheduling/bookings/types/approve_bookings_request.rb +13 -0
- data/lib/coss/scheduling/bookings/types/cancel_scheduling_booking_request.rb +15 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request.rb +33 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_answers_value.rb +17 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location.rb +28 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_google_meet.rb +11 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_in_person.rb +13 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_link.rb +13 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_microsoft_teams.rb +11 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_phone.rb +13 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_zoom.rb +13 -0
- data/lib/coss/scheduling/bookings/types/decline_bookings_request.rb +13 -0
- data/lib/coss/scheduling/bookings/types/events_bookings_request.rb +17 -0
- data/lib/coss/scheduling/bookings/types/get_bookings_request.rb +13 -0
- data/lib/coss/scheduling/bookings/types/list_bookings_request.rb +27 -0
- data/lib/coss/scheduling/bookings/types/list_bookings_request_status.rb +19 -0
- data/lib/coss/scheduling/bookings/types/mark_no_show_bookings_request.rb +13 -0
- data/lib/coss/scheduling/bookings/types/notifications_bookings_request.rb +17 -0
- data/lib/coss/scheduling/bookings/types/reschedule_booking_request.rb +17 -0
- data/lib/coss/scheduling/bookings/types/update_booking_location_request.rb +15 -0
- data/lib/coss/scheduling/calendar_delegations/client.rb +261 -0
- data/lib/coss/scheduling/calendar_delegations/types/delete_calendar_delegations_request.rb +13 -0
- data/lib/coss/scheduling/calendar_delegations/types/get_calendar_delegations_request.rb +13 -0
- data/lib/coss/scheduling/calendar_delegations/types/update_calendar_delegation_request.rb +21 -0
- data/lib/coss/scheduling/calendar_delegations/types/verify_calendar_delegation_request.rb +15 -0
- data/lib/coss/scheduling/calendars/client.rb +281 -0
- data/lib/coss/scheduling/calendars/types/authorize_calendar_request.rb +17 -0
- data/lib/coss/scheduling/calendars/types/authorize_calendar_request_provider.rb +17 -0
- data/lib/coss/scheduling/calendars/types/connect_calendars_request.rb +15 -0
- data/lib/coss/scheduling/calendars/types/disconnect_calendars_request.rb +15 -0
- data/lib/coss/scheduling/calendars/types/list_calendars_request.rb +13 -0
- data/lib/coss/scheduling/calendars/types/set_simulated_busy_request.rb +15 -0
- data/lib/coss/scheduling/calendars/types/set_simulated_busy_request_intervals_item.rb +15 -0
- data/lib/coss/scheduling/calendars/types/update_calendar_request.rb +19 -0
- data/lib/coss/scheduling/client.rb +79 -0
- data/lib/coss/scheduling/event_types/client.rb +192 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request.rb +69 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request_host_calendar_details.rb +16 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request_host_filter_value.rb +17 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request_kind.rb +18 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request_notifications_value.rb +17 -0
- data/lib/coss/scheduling/event_types/types/get_event_types_request.rb +13 -0
- data/lib/coss/scheduling/event_types/types/list_event_types_request.rb +15 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request.rb +71 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request_host_calendar_details.rb +16 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request_host_filter_value.rb +17 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request_notifications_value.rb +17 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request_status.rb +16 -0
- data/lib/coss/scheduling/holds/client.rb +155 -0
- data/lib/coss/scheduling/holds/types/confirm_hold_request.rb +15 -0
- data/lib/coss/scheduling/holds/types/create_hold_request.rb +33 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_answers_value.rb +17 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location.rb +28 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_google_meet.rb +11 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_in_person.rb +13 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_link.rb +13 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_microsoft_teams.rb +11 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_phone.rb +13 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_zoom.rb +13 -0
- data/lib/coss/scheduling/holds/types/release_holds_request.rb +13 -0
- data/lib/coss/scheduling/hosts/client.rb +228 -0
- data/lib/coss/scheduling/hosts/types/create_host_request.rb +31 -0
- data/lib/coss/scheduling/hosts/types/create_host_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/hosts/types/get_hosts_request.rb +13 -0
- data/lib/coss/scheduling/hosts/types/list_hosts_request.rb +15 -0
- data/lib/coss/scheduling/hosts/types/remove_hosts_request.rb +13 -0
- data/lib/coss/scheduling/hosts/types/update_host_request.rb +35 -0
- data/lib/coss/scheduling/hosts/types/update_host_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/hosts/types/update_host_request_status.rb +16 -0
- data/lib/coss/scheduling/schedules/client.rb +253 -0
- data/lib/coss/scheduling/schedules/types/create_schedules_request.rb +15 -0
- data/lib/coss/scheduling/schedules/types/get_schedules_request.rb +15 -0
- data/lib/coss/scheduling/schedules/types/list_schedules_request.rb +13 -0
- data/lib/coss/scheduling/schedules/types/remove_schedules_request.rb +15 -0
- data/lib/coss/scheduling/schedules/types/update_schedules_request.rb +17 -0
- data/lib/coss/scheduling/series/client.rb +171 -0
- data/lib/coss/scheduling/series/types/cancel_series_request.rb +15 -0
- data/lib/coss/scheduling/series/types/create_series_body.rb +15 -0
- data/lib/coss/scheduling/sessions/client.rb +153 -0
- data/lib/coss/scheduling/sessions/types/create_for_booking_sessions_request.rb +13 -0
- data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request.rb +21 -0
- data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request_attendee.rb +24 -0
- data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/sessions/types/create_scheduling_host_session_request.rb +17 -0
- data/lib/coss/scheduling/settings/client.rb +88 -0
- data/lib/coss/scheduling/settings/types/update_scheduling_settings_request.rb +31 -0
- data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_calendar_failure_mode.rb +16 -0
- data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_logo.rb +14 -0
- data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_notifications_value.rb +17 -0
- data/lib/coss/scheduling/slots/client.rb +123 -0
- data/lib/coss/scheduling/slots/types/explain_slots_request.rb +21 -0
- data/lib/coss/scheduling/slots/types/list_slots_request.rb +23 -0
- data/lib/coss/sign/documents/client.rb +2 -0
- data/lib/coss/sign/requests/client.rb +2 -0
- data/lib/coss/sign/templates/client.rb +2 -0
- data/lib/coss/sms/client.rb +2 -0
- data/lib/coss/sms/received/client.rb +2 -0
- data/lib/coss/sms/suppressions/client.rb +4 -0
- data/lib/coss/types/billing.rb +2 -0
- data/lib/coss/types/billing_credit_limit.rb +14 -0
- data/lib/coss/types/billing_features.rb +1 -0
- data/lib/coss/types/billing_holds_item_reason.rb +1 -0
- data/lib/coss/types/billing_payment_method.rb +1 -0
- data/lib/coss/types/billing_usage_item_meter.rb +7 -1
- data/lib/coss/types/billing_webhook_event_four_data_reason.rb +1 -0
- data/lib/coss/types/billing_webhook_event_three_data_meter.rb +7 -1
- data/lib/coss/types/broadcast_error.rb +2 -0
- data/lib/coss/types/broadcast_stats.rb +1 -0
- data/lib/coss/types/broadcast_tracking.rb +1 -0
- data/lib/coss/types/broadcast_webhook_event_data.rb +1 -0
- data/lib/coss/types/broadcast_webhook_event_data_error.rb +1 -0
- data/lib/coss/types/contact_webhook_event_data.rb +1 -0
- data/lib/coss/types/create_calendar_connection_request.rb +16 -0
- data/lib/coss/types/create_calendar_connection_request_caldav.rb +13 -0
- data/lib/coss/types/create_calendar_connection_request_simulated.rb +7 -0
- data/lib/coss/types/create_calendar_delegation_request.rb +15 -0
- data/lib/coss/types/create_calendar_delegation_request_google.rb +13 -0
- data/lib/coss/types/create_calendar_delegation_request_microsoft.rb +19 -0
- data/lib/coss/types/create_series_request.rb +31 -0
- data/lib/coss/types/create_series_request_answers_value.rb +13 -0
- data/lib/coss/types/create_series_request_attributes_value.rb +13 -0
- data/lib/coss/types/create_series_request_location.rb +24 -0
- data/lib/coss/types/create_series_request_location_google_meet.rb +7 -0
- data/lib/coss/types/create_series_request_location_in_person.rb +9 -0
- data/lib/coss/types/create_series_request_location_link.rb +9 -0
- data/lib/coss/types/create_series_request_location_microsoft_teams.rb +7 -0
- data/lib/coss/types/create_series_request_location_phone.rb +9 -0
- data/lib/coss/types/create_series_request_location_zoom.rb +9 -0
- data/lib/coss/types/create_series_request_on_conflict.rb +12 -0
- data/lib/coss/types/create_series_request_recurrence.rb +14 -0
- data/lib/coss/types/create_series_request_recurrence_frequency.rb +12 -0
- data/lib/coss/types/credit_meter.rb +7 -1
- data/lib/coss/types/credit_meters_item.rb +7 -1
- data/lib/coss/types/credit_source.rb +1 -0
- data/lib/coss/types/deleted_scheduling_calendar_connection.rb +13 -0
- data/lib/coss/types/deleted_scheduling_calendar_connection_object.rb +11 -0
- data/lib/coss/types/deleted_scheduling_calendar_delegation.rb +13 -0
- data/lib/coss/types/deleted_scheduling_calendar_delegation_object.rb +11 -0
- data/lib/coss/types/deleted_scheduling_host.rb +13 -0
- data/lib/coss/types/deleted_scheduling_host_object.rb +11 -0
- data/lib/coss/types/deleted_scheduling_schedule.rb +13 -0
- data/lib/coss/types/deleted_scheduling_schedule_object.rb +11 -0
- data/lib/coss/types/dmarc_report_record_auth_results.rb +1 -0
- data/lib/coss/types/dmarc_report_reporter.rb +1 -0
- data/lib/coss/types/dmarc_report_summary_reporter.rb +1 -0
- data/lib/coss/types/domain_dmarc_report_summary.rb +1 -0
- data/lib/coss/types/email_event_data.rb +1 -0
- data/lib/coss/types/email_recipient.rb +1 -0
- data/lib/coss/types/email_webhook_event_data.rb +2 -0
- data/lib/coss/types/environment_organization.rb +3 -0
- data/lib/coss/types/environment_project.rb +1 -0
- data/lib/coss/types/form_contacts.rb +1 -0
- data/lib/coss/types/form_files.rb +1 -0
- data/lib/coss/types/form_hosted.rb +1 -0
- data/lib/coss/types/form_notifications.rb +1 -0
- data/lib/coss/types/form_spam.rb +1 -0
- data/lib/coss/types/form_submission_webhook_event_data.rb +1 -0
- data/lib/coss/types/form_submitter.rb +1 -0
- data/lib/coss/types/invoice_kind.rb +1 -0
- data/lib/coss/types/invoice_line_meter.rb +7 -1
- data/lib/coss/types/invoice_line_period.rb +1 -0
- data/lib/coss/types/invoice_period.rb +1 -0
- data/lib/coss/types/invoice_summary_kind.rb +1 -0
- data/lib/coss/types/invoice_summary_period.rb +1 -0
- data/lib/coss/types/log_drain.rb +4 -0
- data/lib/coss/types/log_drain_auth_header.rb +13 -0
- data/lib/coss/types/log_drain_format.rb +14 -0
- data/lib/coss/types/log_drain_source.rb +1 -0
- data/lib/coss/types/log_drain_with_secret.rb +4 -0
- data/lib/coss/types/log_source.rb +1 -0
- data/lib/coss/types/risk_assessment_degraded_item.rb +1 -0
- data/lib/coss/types/risk_assessment_signals.rb +1 -0
- data/lib/coss/types/risk_assessment_user.rb +1 -0
- data/lib/coss/types/risk_captcha_signals.rb +1 -0
- data/lib/coss/types/risk_email_signals.rb +1 -0
- data/lib/coss/types/risk_ip_signals.rb +1 -0
- data/lib/coss/types/risk_rule_condition_value.rb +1 -0
- data/lib/coss/types/risk_webhook_event_data.rb +1 -0
- data/lib/coss/types/scheduling_attendee_erasure.rb +13 -0
- data/lib/coss/types/scheduling_attendee_erasure_by_email.rb +11 -0
- data/lib/coss/types/scheduling_attendee_erasure_by_email_object.rb +11 -0
- data/lib/coss/types/scheduling_attendee_erasure_object.rb +11 -0
- data/lib/coss/types/scheduling_attendee_input.rb +20 -0
- data/lib/coss/types/scheduling_availability_search_result.rb +13 -0
- data/lib/coss/types/scheduling_availability_search_result_data_item.rb +13 -0
- data/lib/coss/types/scheduling_availability_search_result_data_item_slots_item.rb +11 -0
- data/lib/coss/types/scheduling_availability_search_result_object.rb +11 -0
- data/lib/coss/types/scheduling_booking.rb +55 -0
- data/lib/coss/types/scheduling_booking_attendees_item.rb +25 -0
- data/lib/coss/types/scheduling_booking_attendees_item_answers_value.rb +13 -0
- data/lib/coss/types/scheduling_booking_attendees_item_role.rb +12 -0
- data/lib/coss/types/scheduling_booking_cancelled_by.rb +16 -0
- data/lib/coss/types/scheduling_booking_event.rb +21 -0
- data/lib/coss/types/scheduling_booking_event_actor.rb +12 -0
- data/lib/coss/types/scheduling_booking_event_actor_kind.rb +16 -0
- data/lib/coss/types/scheduling_booking_event_list.rb +13 -0
- data/lib/coss/types/scheduling_booking_event_list_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_event_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_list.rb +13 -0
- data/lib/coss/types/scheduling_booking_list_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_notification.rb +25 -0
- data/lib/coss/types/scheduling_booking_notification_channel.rb +13 -0
- data/lib/coss/types/scheduling_booking_notification_list.rb +13 -0
- data/lib/coss/types/scheduling_booking_notification_list_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_notification_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_notification_recipient.rb +14 -0
- data/lib/coss/types/scheduling_booking_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_status.rb +15 -0
- data/lib/coss/types/scheduling_booking_webhook_data.rb +30 -0
- data/lib/coss/types/scheduling_booking_webhook_data_reminder.rb +18 -0
- data/lib/coss/types/scheduling_booking_webhook_data_reminder_anchor.rb +18 -0
- data/lib/coss/types/scheduling_booking_webhook_data_status.rb +15 -0
- data/lib/coss/types/scheduling_booking_webhook_event.rb +19 -0
- data/lib/coss/types/scheduling_booking_webhook_event_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_webhook_event_type.rb +23 -0
- data/lib/coss/types/scheduling_booking_window.rb +15 -0
- data/lib/coss/types/scheduling_booking_window_days.rb +11 -0
- data/lib/coss/types/scheduling_booking_window_days_kind.rb +11 -0
- data/lib/coss/types/scheduling_booking_window_from.rb +13 -0
- data/lib/coss/types/scheduling_booking_window_from_kind.rb +11 -0
- data/lib/coss/types/scheduling_calendar_authorization.rb +11 -0
- data/lib/coss/types/scheduling_calendar_authorization_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_connection.rb +25 -0
- data/lib/coss/types/scheduling_calendar_connection_calendars_item.rb +17 -0
- data/lib/coss/types/scheduling_calendar_connection_list.rb +13 -0
- data/lib/coss/types/scheduling_calendar_connection_list_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_connection_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_connection_provider.rb +15 -0
- data/lib/coss/types/scheduling_calendar_connection_status.rb +12 -0
- data/lib/coss/types/scheduling_calendar_delegation.rb +41 -0
- data/lib/coss/types/scheduling_calendar_delegation_list.rb +13 -0
- data/lib/coss/types/scheduling_calendar_delegation_list_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_delegation_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_delegation_provider.rb +12 -0
- data/lib/coss/types/scheduling_calendar_delegation_status.rb +14 -0
- data/lib/coss/types/scheduling_calendar_delegation_webhook_event.rb +19 -0
- data/lib/coss/types/scheduling_calendar_delegation_webhook_event_data.rb +17 -0
- data/lib/coss/types/scheduling_calendar_delegation_webhook_event_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_delegation_webhook_event_type.rb +12 -0
- data/lib/coss/types/scheduling_calendar_webhook_event.rb +19 -0
- data/lib/coss/types/scheduling_calendar_webhook_event_data.rb +16 -0
- data/lib/coss/types/scheduling_calendar_webhook_event_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_webhook_event_type.rb +13 -0
- data/lib/coss/types/scheduling_cancelled_series.rb +13 -0
- data/lib/coss/types/scheduling_cancelled_series_object.rb +11 -0
- data/lib/coss/types/scheduling_event_type.rb +75 -0
- data/lib/coss/types/scheduling_event_type_host_calendar_details.rb +12 -0
- data/lib/coss/types/scheduling_event_type_host_filter_value.rb +13 -0
- data/lib/coss/types/scheduling_event_type_host_input.rb +15 -0
- data/lib/coss/types/scheduling_event_type_host_input_role.rb +12 -0
- data/lib/coss/types/scheduling_event_type_hosts_item.rb +15 -0
- data/lib/coss/types/scheduling_event_type_hosts_item_role.rb +12 -0
- data/lib/coss/types/scheduling_event_type_kind.rb +14 -0
- data/lib/coss/types/scheduling_event_type_list.rb +13 -0
- data/lib/coss/types/scheduling_event_type_list_object.rb +11 -0
- data/lib/coss/types/scheduling_event_type_notifications_value.rb +13 -0
- data/lib/coss/types/scheduling_event_type_object.rb +11 -0
- data/lib/coss/types/scheduling_event_type_status.rb +12 -0
- data/lib/coss/types/scheduling_guest_input.rb +12 -0
- data/lib/coss/types/scheduling_host.rb +37 -0
- data/lib/coss/types/scheduling_host_attributes_value.rb +13 -0
- data/lib/coss/types/scheduling_host_list.rb +13 -0
- data/lib/coss/types/scheduling_host_list_object.rb +11 -0
- data/lib/coss/types/scheduling_host_location.rb +18 -0
- data/lib/coss/types/scheduling_host_location_in_person.rb +9 -0
- data/lib/coss/types/scheduling_host_location_link.rb +9 -0
- data/lib/coss/types/scheduling_host_location_phone.rb +9 -0
- data/lib/coss/types/scheduling_host_object.rb +11 -0
- data/lib/coss/types/scheduling_host_status.rb +12 -0
- data/lib/coss/types/scheduling_limit.rb +14 -0
- data/lib/coss/types/scheduling_limit_period.rb +12 -0
- data/lib/coss/types/scheduling_limit_scope.rb +12 -0
- data/lib/coss/types/scheduling_location.rb +26 -0
- data/lib/coss/types/scheduling_location_google_meet.rb +7 -0
- data/lib/coss/types/scheduling_location_in_person.rb +9 -0
- data/lib/coss/types/scheduling_location_link.rb +9 -0
- data/lib/coss/types/scheduling_location_microsoft_teams.rb +7 -0
- data/lib/coss/types/scheduling_location_phone.rb +9 -0
- data/lib/coss/types/scheduling_location_zoom.rb +9 -0
- data/lib/coss/types/scheduling_question.rb +19 -0
- data/lib/coss/types/scheduling_question_type.rb +18 -0
- data/lib/coss/types/scheduling_reminder.rb +35 -0
- data/lib/coss/types/scheduling_reminder_anchor.rb +18 -0
- data/lib/coss/types/scheduling_reminder_button.rb +12 -0
- data/lib/coss/types/scheduling_reminder_input.rb +35 -0
- data/lib/coss/types/scheduling_reminder_input_anchor.rb +18 -0
- data/lib/coss/types/scheduling_reminder_input_button.rb +12 -0
- data/lib/coss/types/scheduling_reminder_input_only_if.rb +12 -0
- data/lib/coss/types/scheduling_reminder_input_only_if_location_types_item.rb +16 -0
- data/lib/coss/types/scheduling_reminder_input_send_item.rb +15 -0
- data/lib/coss/types/scheduling_reminder_only_if.rb +12 -0
- data/lib/coss/types/scheduling_reminder_send_item.rb +15 -0
- data/lib/coss/types/scheduling_schedule.rb +27 -0
- data/lib/coss/types/scheduling_schedule_list.rb +13 -0
- data/lib/coss/types/scheduling_schedule_list_object.rb +11 -0
- data/lib/coss/types/scheduling_schedule_object.rb +11 -0
- data/lib/coss/types/scheduling_schedule_override.rb +11 -0
- data/lib/coss/types/scheduling_schedule_override_ranges_item.rb +11 -0
- data/lib/coss/types/scheduling_schedule_overrides_item.rb +11 -0
- data/lib/coss/types/scheduling_schedule_overrides_item_ranges_item.rb +11 -0
- data/lib/coss/types/scheduling_schedule_rules_item.rb +13 -0
- data/lib/coss/types/scheduling_series.rb +15 -0
- data/lib/coss/types/scheduling_series_conflicts_item.rb +11 -0
- data/lib/coss/types/scheduling_series_object.rb +11 -0
- data/lib/coss/types/scheduling_series_preview.rb +13 -0
- data/lib/coss/types/scheduling_series_preview_data_item.rb +15 -0
- data/lib/coss/types/scheduling_series_preview_object.rb +11 -0
- data/lib/coss/types/scheduling_session.rb +17 -0
- data/lib/coss/types/scheduling_session_object.rb +11 -0
- data/lib/coss/types/scheduling_settings.rb +29 -0
- data/lib/coss/types/scheduling_settings_calendar_failure_mode.rb +12 -0
- data/lib/coss/types/scheduling_settings_logo.rb +16 -0
- data/lib/coss/types/scheduling_settings_logo_content_type.rb +12 -0
- data/lib/coss/types/scheduling_settings_notifications_value.rb +13 -0
- data/lib/coss/types/scheduling_settings_object.rb +11 -0
- data/lib/coss/types/scheduling_slot.rb +15 -0
- data/lib/coss/types/scheduling_slot_explanation.rb +19 -0
- data/lib/coss/types/scheduling_slot_explanation_hosts_item.rb +17 -0
- data/lib/coss/types/scheduling_slot_explanation_hosts_item_role.rb +12 -0
- data/lib/coss/types/scheduling_slot_explanation_object.rb +11 -0
- data/lib/coss/types/scheduling_slot_list.rb +13 -0
- data/lib/coss/types/scheduling_slot_list_object.rb +11 -0
- data/lib/coss/types/scheduling_weekly_rule.rb +13 -0
- data/lib/coss/types/send_email_request_bcc.rb +1 -0
- data/lib/coss/types/send_email_request_cc.rb +1 -0
- data/lib/coss/types/send_email_request_reply_to.rb +1 -0
- data/lib/coss/types/send_email_request_to.rb +1 -0
- data/lib/coss/types/sign_event_details.rb +1 -0
- data/lib/coss/types/sign_field.rb +1 -0
- data/lib/coss/types/sign_request_webhook_event_data.rb +1 -0
- data/lib/coss/types/sign_signer.rb +1 -0
- data/lib/coss/types/sms_event_data.rb +1 -0
- data/lib/coss/types/sms_suppression.rb +1 -0
- data/lib/coss/types/sms_suppression_check_suppression.rb +1 -0
- data/lib/coss/types/sms_webhook_event_data.rb +2 -0
- data/lib/coss/types/subaccount_quotas.rb +1 -0
- data/lib/coss/types/subaccount_reputation.rb +1 -0
- data/lib/coss/types/subaccount_webhook_event_data.rb +1 -0
- data/lib/coss/types/template_variable_default.rb +1 -0
- data/lib/coss/types/upsert_schedule_request.rb +17 -0
- data/lib/coss/types/usage_meter.rb +7 -1
- data/lib/coss/types/verification_webhook_event_data.rb +1 -0
- data/lib/coss/types/verification_webhook_event_data_failure.rb +1 -0
- data/lib/coss/types/verify_settings.rb +26 -0
- data/lib/coss/types/verify_settings_object.rb +11 -0
- data/lib/coss/types/webhook_test_event_event.rb +6 -0
- data/lib/coss/verify/client.rb +7 -0
- data/lib/coss/verify/settings/client.rb +93 -0
- data/lib/coss/verify/settings/types/update_verify_settings_request.rb +25 -0
- data/lib/coss/version.rb +1 -1
- data/lib/coss/webhook_endpoints/types/create_webhook_endpoint_request_event_types_item.rb +18 -0
- data/lib/coss/webhook_endpoints/types/update_webhook_endpoint_request_event_types_item.rb +18 -0
- data/lib/coss/webhook_events/types/create_test_webhook_event_request_type.rb +18 -0
- data/lib/coss/webhook_listeners/types/create_webhook_listener_request_event_types_item.rb +18 -0
- data/lib/coss.rb +282 -0
- data/reference.md +5626 -224
- metadata +283 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Bookings
|
|
6
|
+
module Types
|
|
7
|
+
class CreateBookingRequestLocationPhone < Internal::Types::Model
|
|
8
|
+
field :number, -> { String }, optional: true, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Bookings
|
|
6
|
+
module Types
|
|
7
|
+
class CreateBookingRequestLocationZoom < Internal::Types::Model
|
|
8
|
+
field :url, -> { String }, optional: true, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Bookings
|
|
6
|
+
module Types
|
|
7
|
+
class EventsBookingsRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :limit, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :after, -> { String }, optional: true, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Bookings
|
|
6
|
+
module Types
|
|
7
|
+
class ListBookingsRequest < Internal::Types::Model
|
|
8
|
+
field :limit, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :after, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :host, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :event_type, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :status, -> { Coss::Scheduling::Bookings::Types::ListBookingsRequestStatus }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :attendee_uid, -> { String }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :start_after, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :start_before, -> { String }, optional: true, nullable: false
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Bookings
|
|
6
|
+
module Types
|
|
7
|
+
module ListBookingsRequestStatus
|
|
8
|
+
extend Coss::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
HELD = "held"
|
|
11
|
+
PENDING_APPROVAL = "pending_approval"
|
|
12
|
+
CONFIRMED = "confirmed"
|
|
13
|
+
CANCELLED = "cancelled"
|
|
14
|
+
DECLINED = "declined"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Bookings
|
|
6
|
+
module Types
|
|
7
|
+
class NotificationsBookingsRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :limit, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :after, -> { String }, optional: true, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Bookings
|
|
6
|
+
module Types
|
|
7
|
+
class RescheduleBookingRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :start, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :host, -> { String }, optional: true, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Bookings
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateBookingLocationRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :location, -> { Coss::Types::SchedulingLocation }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module CalendarDelegations
|
|
6
|
+
class Client
|
|
7
|
+
# @param client [Coss::Internal::Http::RawClient]
|
|
8
|
+
#
|
|
9
|
+
# @return [void]
|
|
10
|
+
def initialize(client:)
|
|
11
|
+
@client = client
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# With how many hosts each has connected.
|
|
15
|
+
#
|
|
16
|
+
# @param request_options [Hash]
|
|
17
|
+
# @param _params [Hash]
|
|
18
|
+
# @option request_options [String] :base_url
|
|
19
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
20
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
21
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
22
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
23
|
+
#
|
|
24
|
+
# @example
|
|
25
|
+
# client.scheduling.calendar_delegations.list
|
|
26
|
+
#
|
|
27
|
+
# @return [Coss::Types::SchedulingCalendarDelegationList]
|
|
28
|
+
def list(request_options: {}, **_params)
|
|
29
|
+
request = Coss::Internal::JSON::Request.new(
|
|
30
|
+
base_url: request_options[:base_url],
|
|
31
|
+
method: "GET",
|
|
32
|
+
path: "v1/scheduling/calendar_delegations",
|
|
33
|
+
request_options: request_options
|
|
34
|
+
)
|
|
35
|
+
begin
|
|
36
|
+
response = @client.send(request)
|
|
37
|
+
rescue Net::HTTPRequestTimeout
|
|
38
|
+
raise Coss::Errors::TimeoutError
|
|
39
|
+
end
|
|
40
|
+
code = response.code.to_i
|
|
41
|
+
if code.between?(200, 299)
|
|
42
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingCalendarDelegationList.load(response.body))
|
|
43
|
+
else
|
|
44
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
45
|
+
raise error_class.new(response.body, code: code)
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# An admin authorizes once, and every host on the domain gets their calendar with no consent screen. It stays
|
|
50
|
+
# `pending`: authorize what it returns, then verify it. Credentials are never returned.
|
|
51
|
+
#
|
|
52
|
+
# @param request_options [Hash]
|
|
53
|
+
# @param params [Coss::Types::CreateCalendarDelegationRequest]
|
|
54
|
+
# @option request_options [String] :base_url
|
|
55
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
56
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
57
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
58
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
59
|
+
#
|
|
60
|
+
# @example
|
|
61
|
+
# client.scheduling.calendar_delegations.create
|
|
62
|
+
#
|
|
63
|
+
# @return [Coss::Types::SchedulingCalendarDelegation]
|
|
64
|
+
def create(request_options: {}, **params)
|
|
65
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
66
|
+
headers = { "Idempotency-Key" => Coss::Internal::IdempotencyKey.generate }
|
|
67
|
+
request = Coss::Internal::JSON::Request.new(
|
|
68
|
+
base_url: request_options[:base_url],
|
|
69
|
+
method: "POST",
|
|
70
|
+
path: "v1/scheduling/calendar_delegations",
|
|
71
|
+
headers: headers,
|
|
72
|
+
body: Coss::Types::CreateCalendarDelegationRequest.new(params).to_h,
|
|
73
|
+
request_options: request_options,
|
|
74
|
+
max_retries: 0
|
|
75
|
+
)
|
|
76
|
+
begin
|
|
77
|
+
response = @client.send(request)
|
|
78
|
+
rescue Net::HTTPRequestTimeout
|
|
79
|
+
raise Coss::Errors::TimeoutError
|
|
80
|
+
end
|
|
81
|
+
code = response.code.to_i
|
|
82
|
+
if code.between?(200, 299)
|
|
83
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingCalendarDelegation.load(response.body))
|
|
84
|
+
else
|
|
85
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
86
|
+
raise error_class.new(response.body, code: code)
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Its status, what to authorize, and how many hosts it has connected.
|
|
91
|
+
#
|
|
92
|
+
# @param request_options [Hash]
|
|
93
|
+
# @param params [Hash]
|
|
94
|
+
# @option request_options [String] :base_url
|
|
95
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
96
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
97
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
98
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
99
|
+
# @option params [String] :id
|
|
100
|
+
#
|
|
101
|
+
# @example
|
|
102
|
+
# client.scheduling.calendar_delegations.get(id: "caldlg_01kd2m9a0b1c2d3e4f5g6h7j8m")
|
|
103
|
+
#
|
|
104
|
+
# @return [Coss::Types::SchedulingCalendarDelegation]
|
|
105
|
+
def get(request_options: {}, **params)
|
|
106
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
107
|
+
request = Coss::Internal::JSON::Request.new(
|
|
108
|
+
base_url: request_options[:base_url],
|
|
109
|
+
method: "GET",
|
|
110
|
+
path: "v1/scheduling/calendar_delegations/#{URI.encode_uri_component(params[:id].to_s)}",
|
|
111
|
+
request_options: request_options
|
|
112
|
+
)
|
|
113
|
+
begin
|
|
114
|
+
response = @client.send(request)
|
|
115
|
+
rescue Net::HTTPRequestTimeout
|
|
116
|
+
raise Coss::Errors::TimeoutError
|
|
117
|
+
end
|
|
118
|
+
code = response.code.to_i
|
|
119
|
+
if code.between?(200, 299)
|
|
120
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingCalendarDelegation.load(response.body))
|
|
121
|
+
else
|
|
122
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
123
|
+
raise error_class.new(response.body, code: code)
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Its hosts lose these calendars within minutes. They stay bookable with no conflict check, and events already
|
|
128
|
+
# written stay on their calendars, out of reach of later moves or cancellations.
|
|
129
|
+
#
|
|
130
|
+
# @param request_options [Hash]
|
|
131
|
+
# @param params [Hash]
|
|
132
|
+
# @option request_options [String] :base_url
|
|
133
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
134
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
135
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
136
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
137
|
+
# @option params [String] :id
|
|
138
|
+
#
|
|
139
|
+
# @example
|
|
140
|
+
# client.scheduling.calendar_delegations.delete(id: "caldlg_01kd2m9a0b1c2d3e4f5g6h7j8m")
|
|
141
|
+
#
|
|
142
|
+
# @return [Coss::Types::DeletedSchedulingCalendarDelegation]
|
|
143
|
+
def delete(request_options: {}, **params)
|
|
144
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
145
|
+
request = Coss::Internal::JSON::Request.new(
|
|
146
|
+
base_url: request_options[:base_url],
|
|
147
|
+
method: "DELETE",
|
|
148
|
+
path: "v1/scheduling/calendar_delegations/#{URI.encode_uri_component(params[:id].to_s)}",
|
|
149
|
+
request_options: request_options
|
|
150
|
+
)
|
|
151
|
+
begin
|
|
152
|
+
response = @client.send(request)
|
|
153
|
+
rescue Net::HTTPRequestTimeout
|
|
154
|
+
raise Coss::Errors::TimeoutError
|
|
155
|
+
end
|
|
156
|
+
code = response.code.to_i
|
|
157
|
+
if code.between?(200, 299)
|
|
158
|
+
(response.body.to_s.empty? ? nil : Coss::Types::DeletedSchedulingCalendarDelegation.load(response.body))
|
|
159
|
+
else
|
|
160
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
161
|
+
raise error_class.new(response.body, code: code)
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# New credentials are tried on the verified mailbox before they replace the old ones, and end an outage if they
|
|
166
|
+
# work.
|
|
167
|
+
#
|
|
168
|
+
# @param request_options [Hash]
|
|
169
|
+
# @param params [Coss::Scheduling::CalendarDelegations::Types::UpdateCalendarDelegationRequest]
|
|
170
|
+
# @option request_options [String] :base_url
|
|
171
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
172
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
173
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
174
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
175
|
+
# @option params [String] :id
|
|
176
|
+
#
|
|
177
|
+
# @example
|
|
178
|
+
# client.scheduling.calendar_delegations.update(
|
|
179
|
+
# id: "caldlg_01kd2m9a0b1c2d3e4f5g6h7j8m",
|
|
180
|
+
# match_host_email: false
|
|
181
|
+
# )
|
|
182
|
+
#
|
|
183
|
+
# @return [Coss::Types::SchedulingCalendarDelegation]
|
|
184
|
+
def update(request_options: {}, **params)
|
|
185
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
186
|
+
request_data = Coss::Scheduling::CalendarDelegations::Types::UpdateCalendarDelegationRequest.new(params).to_h
|
|
187
|
+
non_body_param_names = %w[id]
|
|
188
|
+
body = request_data.except(*non_body_param_names)
|
|
189
|
+
|
|
190
|
+
request = Coss::Internal::JSON::Request.new(
|
|
191
|
+
base_url: request_options[:base_url],
|
|
192
|
+
method: "PATCH",
|
|
193
|
+
path: "v1/scheduling/calendar_delegations/#{URI.encode_uri_component(params[:id].to_s)}",
|
|
194
|
+
body: body,
|
|
195
|
+
request_options: request_options
|
|
196
|
+
)
|
|
197
|
+
begin
|
|
198
|
+
response = @client.send(request)
|
|
199
|
+
rescue Net::HTTPRequestTimeout
|
|
200
|
+
raise Coss::Errors::TimeoutError
|
|
201
|
+
end
|
|
202
|
+
code = response.code.to_i
|
|
203
|
+
if code.between?(200, 299)
|
|
204
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingCalendarDelegation.load(response.body))
|
|
205
|
+
else
|
|
206
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
207
|
+
raise error_class.new(response.body, code: code)
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Tries one real mailbox. Passing makes it `active`, and its hosts start connecting. Google can take up to 24
|
|
212
|
+
# hours to apply a new authorization, so a refusal may just need time.
|
|
213
|
+
#
|
|
214
|
+
# @param request_options [Hash]
|
|
215
|
+
# @param params [Coss::Scheduling::CalendarDelegations::Types::VerifyCalendarDelegationRequest]
|
|
216
|
+
# @option request_options [String] :base_url
|
|
217
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
218
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
219
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
220
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
221
|
+
# @option params [String] :id
|
|
222
|
+
#
|
|
223
|
+
# @example
|
|
224
|
+
# client.scheduling.calendar_delegations.verify(
|
|
225
|
+
# id: "caldlg_01kd2m9a0b1c2d3e4f5g6h7j8m",
|
|
226
|
+
# account: "ana@example.com"
|
|
227
|
+
# )
|
|
228
|
+
#
|
|
229
|
+
# @return [Coss::Types::SchedulingCalendarDelegation]
|
|
230
|
+
def verify(request_options: {}, **params)
|
|
231
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
232
|
+
request_data = Coss::Scheduling::CalendarDelegations::Types::VerifyCalendarDelegationRequest.new(params).to_h
|
|
233
|
+
non_body_param_names = %w[id]
|
|
234
|
+
body = request_data.except(*non_body_param_names)
|
|
235
|
+
|
|
236
|
+
headers = { "Idempotency-Key" => Coss::Internal::IdempotencyKey.generate }
|
|
237
|
+
request = Coss::Internal::JSON::Request.new(
|
|
238
|
+
base_url: request_options[:base_url],
|
|
239
|
+
method: "POST",
|
|
240
|
+
path: "v1/scheduling/calendar_delegations/#{URI.encode_uri_component(params[:id].to_s)}/verify",
|
|
241
|
+
headers: headers,
|
|
242
|
+
body: body,
|
|
243
|
+
request_options: request_options
|
|
244
|
+
)
|
|
245
|
+
begin
|
|
246
|
+
response = @client.send(request)
|
|
247
|
+
rescue Net::HTTPRequestTimeout
|
|
248
|
+
raise Coss::Errors::TimeoutError
|
|
249
|
+
end
|
|
250
|
+
code = response.code.to_i
|
|
251
|
+
if code.between?(200, 299)
|
|
252
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingCalendarDelegation.load(response.body))
|
|
253
|
+
else
|
|
254
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
255
|
+
raise error_class.new(response.body, code: code)
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module CalendarDelegations
|
|
6
|
+
module Types
|
|
7
|
+
class DeleteCalendarDelegationsRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module CalendarDelegations
|
|
6
|
+
module Types
|
|
7
|
+
class GetCalendarDelegationsRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module CalendarDelegations
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateCalendarDelegationRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :match_host_email, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :service_account_key, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :client_secret, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :secret_expires_at, -> { String }, optional: true, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module CalendarDelegations
|
|
6
|
+
module Types
|
|
7
|
+
class VerifyCalendarDelegationRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :account, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|