From 0a3043d4f58f8506633f1d24410035c1ec305f87 Mon Sep 17 00:00:00 2001 From: Nuvindu Date: Fri, 22 Dec 2023 08:44:05 +0530 Subject: [PATCH 1/7] Fix a typo in API docs --- ballerina/client.bal | 60 ++++++++++++++++++++++---------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/ballerina/client.bal b/ballerina/client.bal index def70a5..e83d189 100644 --- a/ballerina/client.bal +++ b/ballerina/client.bal @@ -63,7 +63,7 @@ public isolated client class Client { # + oauth_token - OAuth 2.0 token for the current user. # + prettyPrint - Returns response with indentations and line breaks. # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - # + return - A `calendar:Calendar` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Calendar` if successful, otherwise a `calendar:Error` resource isolated function post calendars(Calendar payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = ()) returns Calendar|Error { string resourcePath = string `/calendars`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; @@ -87,7 +87,7 @@ public isolated client class Client { # + prettyPrint - Returns response with indentations and line breaks. # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. - # + return - A `calendar:Calendar` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Calendar` if successful, otherwise a `calendar:Error` resource isolated function get calendars/[string calendarId]("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = ()) returns Calendar|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; @@ -109,7 +109,7 @@ public isolated client class Client { # + prettyPrint - Returns response with indentations and line breaks. # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. - # + return - A `calendar:Calendar` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Calendar` if successful, otherwise a `calendar:Error` resource isolated function put calendars/[string calendarId](Calendar payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = ()) returns Calendar|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; @@ -133,7 +133,7 @@ public isolated client class Client { # + prettyPrint - Returns response with indentations and line breaks. # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. - # + return - If successful `()`, otherwise an `calendar:Error` + # + return - If successful `()`, otherwise a `calendar:Error` resource isolated function delete calendars/[string calendarId]("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = ()) returns Error? { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; @@ -155,7 +155,7 @@ public isolated client class Client { # + prettyPrint - Returns response with indentations and line breaks. # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. - # + return - A `calendar:Calendar` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Calendar` if successful, otherwise a `calendar:Error` resource isolated function patch calendars/[string calendarId](Calendar payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = ()) returns Calendar|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; @@ -186,7 +186,7 @@ public isolated client class Client { # If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. # Learn more about incremental synchronization. # Optional. The default is to return all entries. - # + return - A `calendar:Acl` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Acl` if successful, otherwise a `calendar:Error` resource isolated function get calendars/[string calendarId]/acl("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), int? maxResults = (), string? pageToken = (), boolean? showDeleted = (), string? syncToken = ()) returns Acl|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/acl`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "maxResults": maxResults, "pageToken": pageToken, "showDeleted": showDeleted, "syncToken": syncToken}; @@ -209,7 +209,7 @@ public isolated client class Client { # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. # + sendNotifications - Whether to send notifications about the calendar sharing change. Optional. The default is True. - # + return - A `calendar:AclRule` if successful, otherwise an `calendar:Error` + # + return - A `calendar:AclRule` if successful, otherwise a `calendar:Error` resource isolated function post calendars/[string calendarId]/acl(AclRule payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), boolean? sendNotifications = ()) returns AclRule|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/acl`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "sendNotifications": sendNotifications}; @@ -234,7 +234,7 @@ public isolated client class Client { # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. # + ruleId - ACL rule identifier. - # + return - A `calendar:AclRule` if successful, otherwise an `calendar:Error` + # + return - A `calendar:AclRule` if successful, otherwise a `calendar:Error` resource isolated function get calendars/[string calendarId]/acl/[string ruleId]("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = ()) returns AclRule|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/acl/${getEncodedUri(ruleId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; @@ -258,7 +258,7 @@ public isolated client class Client { # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. # + ruleId - ACL rule identifier. # + sendNotifications - Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True. - # + return - A `calendar:AclRule` if successful, otherwise an `calendar:Error` + # + return - A `calendar:AclRule` if successful, otherwise a `calendar:Error` resource isolated function put calendars/[string calendarId]/acl/[string ruleId](AclRule payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), boolean? sendNotifications = ()) returns AclRule|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/acl/${getEncodedUri(ruleId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "sendNotifications": sendNotifications}; @@ -283,7 +283,7 @@ public isolated client class Client { # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. # + ruleId - ACL rule identifier. - # + return - If successful `()`, otherwise an `calendar:Error` + # + return - If successful `()`, otherwise a `calendar:Error` resource isolated function delete calendars/[string calendarId]/acl/[string ruleId]("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = ()) returns Error? { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/acl/${getEncodedUri(ruleId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; @@ -307,7 +307,7 @@ public isolated client class Client { # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. # + ruleId - ACL rule identifier. # + sendNotifications - Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True. - # + return - A `calendar:AclRule` if successful, otherwise an `calendar:Error` + # + return - A `calendar:AclRule` if successful, otherwise a `calendar:Error` resource isolated function patch calendars/[string calendarId]/acl/[string ruleId](AclRule payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), boolean? sendNotifications = ()) returns AclRule|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/acl/${getEncodedUri(ruleId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "sendNotifications": sendNotifications}; @@ -331,7 +331,7 @@ public isolated client class Client { # + prettyPrint - Returns response with indentations and line breaks. # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. - # + return - If successful `()`, otherwise an `calendar:Error` + # + return - If successful `()`, otherwise a `calendar:Error` resource isolated function post calendars/[string calendarId]/clear("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = ()) returns Error? { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/clear`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; @@ -390,7 +390,7 @@ public isolated client class Client { # + timeMin - Lower bound (exclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but are ignored. If timeMax is set, timeMin must be smaller than timeMax. # + timeZone - Time zone used in the response. Optional. The default is the time zone of the calendar. # + updatedMin - Lower bound for an event's last modification time (as a RFC3339 timestamp) to filter by. When specified, entries deleted since this time will always be included regardless of showDeleted. Optional. The default is not to filter by last modification time. - # + return - A `calendar:Events` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Events` if successful, otherwise a `calendar:Error` resource isolated function get calendars/[string calendarId]/events("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), string[]? eventTypes = (), string? iCalUID = (), int? maxAttendees = (), int? maxResults = (), "startTime"|"updated"? orderBy = (), string? pageToken = (), string[]? privateExtendedProperty = (), string? q = (), string[]? sharedExtendedProperty = (), boolean? showDeleted = (), boolean? showHiddenInvitations = (), boolean? singleEvents = (), string? syncToken = (), string? timeMax = (), string? timeMin = (), string? timeZone = (), string? updatedMin = ()) returns Events|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/events`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "eventTypes": eventTypes, "iCalUID": iCalUID, "maxAttendees": maxAttendees, "maxResults": maxResults, "orderBy": orderBy, "pageToken": pageToken, "privateExtendedProperty": privateExtendedProperty, "q": q, "sharedExtendedProperty": sharedExtendedProperty, "showDeleted": showDeleted, "showHiddenInvitations": showHiddenInvitations, "singleEvents": singleEvents, "syncToken": syncToken, "timeMax": timeMax, "timeMin": timeMin, "timeZone": timeZone, "updatedMin": updatedMin}; @@ -417,7 +417,7 @@ public isolated client class Client { # + maxAttendees - The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional. # + sendUpdates - Whether to send notifications about the creation of the new event. Note that some emails might still be sent. The default is false. # + supportsAttachments - Whether API client performing operation supports event attachments. Optional. The default is False. - # + return - A `calendar:Event` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Event` if successful, otherwise a `calendar:Error` resource isolated function post calendars/[string calendarId]/events(Event payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), int? conferenceDataVersion = (), int? maxAttendees = (), "all"|"externalOnly"|"none"? sendUpdates = (), boolean? supportsAttachments = ()) returns Event|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/events`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "conferenceDataVersion": conferenceDataVersion, "maxAttendees": maxAttendees, "sendUpdates": sendUpdates, "supportsAttachments": supportsAttachments}; @@ -444,7 +444,7 @@ public isolated client class Client { # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. # + conferenceDataVersion - Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0. # + supportsAttachments - Whether API client performing operation supports event attachments. Optional. The default is False. - # + return - A `calendar:Event` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Event` if successful, otherwise a `calendar:Error` resource isolated function post calendars/[string calendarId]/events/'import(Event payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), int? conferenceDataVersion = (), boolean? supportsAttachments = ()) returns Event|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/events/import`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "conferenceDataVersion": conferenceDataVersion, "supportsAttachments": supportsAttachments}; @@ -470,7 +470,7 @@ public isolated client class Client { # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. # + text - The text describing the event to be created. # + sendUpdates - Guests who should receive notifications about the creation of the new event. - # + return - A `calendar:Event` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Event` if successful, otherwise a `calendar:Error` resource isolated function post calendars/[string calendarId]/events/quickAdd(string text, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), "all"|"externalOnly"|"none"? sendUpdates = ()) returns Event|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/events/quickAdd`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "text": text, "sendUpdates": sendUpdates}; @@ -495,7 +495,7 @@ public isolated client class Client { # + eventId - Event identifier. # + maxAttendees - The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional. # + timeZone - Time zone used in the response. Optional. The default is the time zone of the calendar. - # + return - A `calendar:Event` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Event` if successful, otherwise a `calendar:Error` resource isolated function get calendars/[string calendarId]/events/[string eventId]("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), int? maxAttendees = (), string? timeZone = ()) returns Event|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/events/${getEncodedUri(eventId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "maxAttendees": maxAttendees, "timeZone": timeZone}; @@ -522,7 +522,7 @@ public isolated client class Client { # + maxAttendees - The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional. # + sendUpdates - Guests who should receive notifications about the event update (for example, title changes, etc.). # + supportsAttachments - Whether API client performing operation supports event attachments. Optional. The default is False. - # + return - A `calendar:Event` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Event` if successful, otherwise a `calendar:Error` resource isolated function put calendars/[string calendarId]/events/[string eventId](Event payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), int? conferenceDataVersion = (), int? maxAttendees = (), "all"|"externalOnly"|"none"? sendUpdates = (), boolean? supportsAttachments = ()) returns Event|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/events/${getEncodedUri(eventId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "conferenceDataVersion": conferenceDataVersion, "maxAttendees": maxAttendees, "sendUpdates": sendUpdates, "supportsAttachments": supportsAttachments}; @@ -548,7 +548,7 @@ public isolated client class Client { # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. # + eventId - Event identifier. # + sendUpdates - Guests who should receive notifications about the deletion of the event. - # + return - if successful `()`, otherwise an `calendar:Error` + # + return - if successful `()`, otherwise a `calendar:Error` resource isolated function delete calendars/[string calendarId]/events/[string eventId]("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), "all"|"externalOnly"|"none"? sendUpdates = ()) returns Error? { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/events/${getEncodedUri(eventId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "sendUpdates": sendUpdates}; @@ -575,7 +575,7 @@ public isolated client class Client { # + maxAttendees - The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional. # + sendUpdates - Guests who should receive notifications about the event update (for example, title changes, etc.). # + supportsAttachments - Whether API client performing operation supports event attachments. Optional. The default is False. - # + return - A `calendar:Event` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Event` if successful, otherwise a `calendar:Error` resource isolated function patch calendars/[string calendarId]/events/[string eventId](Event payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), int? conferenceDataVersion = (), int? maxAttendees = (), "all"|"externalOnly"|"none"? sendUpdates = (), boolean? supportsAttachments = ()) returns Event|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/events/${getEncodedUri(eventId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "conferenceDataVersion": conferenceDataVersion, "maxAttendees": maxAttendees, "sendUpdates": sendUpdates, "supportsAttachments": supportsAttachments}; @@ -608,7 +608,7 @@ public isolated client class Client { # + timeMax - Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset. # + timeMin - Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset. # + timeZone - Time zone used in the response. Optional. The default is the time zone of the calendar. - # + return - A `calendar:Events` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Events` if successful, otherwise a `calendar:Error` resource isolated function get calendars/[string calendarId]/events/[string eventId]/instances("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), int? maxAttendees = (), int? maxResults = (), string? originalStart = (), string? pageToken = (), boolean? showDeleted = (), string? timeMax = (), string? timeMin = (), string? timeZone = ()) returns Events|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/events/${getEncodedUri(eventId)}/instances`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "maxAttendees": maxAttendees, "maxResults": maxResults, "originalStart": originalStart, "pageToken": pageToken, "showDeleted": showDeleted, "timeMax": timeMax, "timeMin": timeMin, "timeZone": timeZone}; @@ -632,7 +632,7 @@ public isolated client class Client { # + eventId - Event identifier. # + destination - Calendar identifier of the target calendar where the event is to be moved to. # + sendUpdates - Guests who should receive notifications about the change of the event's organizer. - # + return - A `calendar:Event` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Event` if successful, otherwise a `calendar:Error` resource isolated function post calendars/[string calendarId]/events/[string eventId]/move(string destination, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), "all"|"externalOnly"|"none"? sendUpdates = ()) returns Event|Error { string resourcePath = string `/calendars/${getEncodedUri(calendarId)}/events/${getEncodedUri(eventId)}/move`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "destination": destination, "sendUpdates": sendUpdates}; @@ -653,7 +653,7 @@ public isolated client class Client { # + oauth_token - OAuth 2.0 token for the current user. # + prettyPrint - Returns response with indentations and line breaks. # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - # + return - A `calendar:Colors` if successful, otherwise an `calendar:Error` + # + return - A `calendar:Colors` if successful, otherwise a `calendar:Error` resource isolated function get colors("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = ()) returns Colors|Error { string resourcePath = string `/colors`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; @@ -674,7 +674,7 @@ public isolated client class Client { # + oauth_token - OAuth 2.0 token for the current user. # + prettyPrint - Returns response with indentations and line breaks. # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - # + return - A `calendar:FreeBusyResponse` if successful, otherwise an `calendar:Error` + # + return - A `calendar:FreeBusyResponse` if successful, otherwise a `calendar:Error` resource isolated function post freeBusy(FreeBusyRequest payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = ()) returns FreeBusyResponse|Error { string resourcePath = string `/freeBusy`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; @@ -707,7 +707,7 @@ public isolated client class Client { # If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. # Learn more about incremental synchronization. # Optional. The default is to return all entries. - # + return - A `calendar:CalendarList` if successful, otherwise an `calendar:Error` + # + return - A `calendar:CalendarList` if successful, otherwise a `calendar:Error` resource isolated function get users/me/calendarList("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), int? maxResults = (), "freeBusyReader"|"owner"|"reader"|"writer"? minAccessRole = (), string? pageToken = (), boolean? showDeleted = (), boolean? showHidden = (), string? syncToken = ()) returns CalendarList|Error { string resourcePath = string `/users/me/calendarList`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "maxResults": maxResults, "minAccessRole": minAccessRole, "pageToken": pageToken, "showDeleted": showDeleted, "showHidden": showHidden, "syncToken": syncToken}; @@ -729,7 +729,7 @@ public isolated client class Client { # + prettyPrint - Returns response with indentations and line breaks. # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + colorRgbFormat - Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional. The default is False. - # + return - A `calendar:CalendarListEntry` if successful, otherwise an `calendar:Error` + # + return - A `calendar:CalendarListEntry` if successful, otherwise a `calendar:Error` resource isolated function post users/me/calendarList(CalendarListEntry payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), boolean? colorRgbFormat = ()) returns CalendarListEntry|Error { string resourcePath = string `/users/me/calendarList`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "colorRgbFormat": colorRgbFormat}; @@ -753,7 +753,7 @@ public isolated client class Client { # + prettyPrint - Returns response with indentations and line breaks. # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. - # + return - A `calendar:CalendarListEntry` if successful, otherwise an `calendar:Error` + # + return - A `calendar:CalendarListEntry` if successful, otherwise a `calendar:Error` resource isolated function get users/me/calendarList/[string calendarId]("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = ()) returns CalendarListEntry|Error { string resourcePath = string `/users/me/calendarList/${getEncodedUri(calendarId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; @@ -776,7 +776,7 @@ public isolated client class Client { # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. # + colorRgbFormat - Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional. The default is False. - # + return - A `calendar:CalendarListEntry` if successful, otherwise an `calendar:Error` + # + return - A `calendar:CalendarListEntry` if successful, otherwise a `calendar:Error` resource isolated function put users/me/calendarList/[string calendarId](CalendarListEntry payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), boolean? colorRgbFormat = ()) returns CalendarListEntry|Error { string resourcePath = string `/users/me/calendarList/${getEncodedUri(calendarId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "colorRgbFormat": colorRgbFormat}; @@ -800,7 +800,7 @@ public isolated client class Client { # + prettyPrint - Returns response with indentations and line breaks. # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. - # + return - If successful `()`, otherwise an `calendar:Error` + # + return - If successful `()`, otherwise a `calendar:Error` resource isolated function delete users/me/calendarList/[string calendarId]("json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = ()) returns Error? { string resourcePath = string `/users/me/calendarList/${getEncodedUri(calendarId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; @@ -823,7 +823,7 @@ public isolated client class Client { # + quotaUser - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. # + calendarId - Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. # + colorRgbFormat - Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional. The default is False. - # + return - A `calendar:CalendarListEntry` if successful, otherwise an `calendar:Error` + # + return - A `calendar:CalendarListEntry` if successful, otherwise a `calendar:Error` resource isolated function patch users/me/calendarList/[string calendarId](CalendarListEntry payload, "json"? alt = (), string? fields = (), string? 'key = (), string? oauth_token = (), boolean? prettyPrint = (), string? quotaUser = (), boolean? colorRgbFormat = ()) returns CalendarListEntry|Error { string resourcePath = string `/users/me/calendarList/${getEncodedUri(calendarId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "colorRgbFormat": colorRgbFormat}; From 9e37d7ff464e3347ce69a9df71aff6297ac8638c Mon Sep 17 00:00:00 2001 From: Nuvindu Date: Fri, 22 Dec 2023 08:48:07 +0530 Subject: [PATCH 2/7] Fix whitespaces in the client.bal file --- ballerina/client.bal | 120 +++++++++++++++++++++---------------------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/ballerina/client.bal b/ballerina/client.bal index e83d189..7a0b3d9 100644 --- a/ballerina/client.bal +++ b/ballerina/client.bal @@ -49,7 +49,7 @@ public isolated client class Client { http:Client httpEp = check new (serviceUrl, httpClientConfig); self.clientEp = httpEp; } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } return; } @@ -72,9 +72,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->post(resourcePath, request); + return check self.clientEp->post(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -93,9 +93,9 @@ public isolated client class Client { map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); - return check self.clientEp->get(resourcePath); + return check self.clientEp->get(resourcePath); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -118,9 +118,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->put(resourcePath, request); + return check self.clientEp->put(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -139,9 +139,9 @@ public isolated client class Client { map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); - return check self.clientEp->delete(resourcePath); + return check self.clientEp->delete(resourcePath); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -164,9 +164,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->patch(resourcePath, request); + return check self.clientEp->patch(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -192,9 +192,9 @@ public isolated client class Client { map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "maxResults": maxResults, "pageToken": pageToken, "showDeleted": showDeleted, "syncToken": syncToken}; do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); - return check self.clientEp->get(resourcePath); + return check self.clientEp->get(resourcePath); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -218,9 +218,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->post(resourcePath, request); + return check self.clientEp->post(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -240,9 +240,9 @@ public isolated client class Client { map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); - return check self.clientEp->get(resourcePath); + return check self.clientEp->get(resourcePath); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -267,9 +267,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->put(resourcePath, request); + return check self.clientEp->put(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -289,9 +289,9 @@ public isolated client class Client { map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); - return check self.clientEp->delete(resourcePath); + return check self.clientEp->delete(resourcePath); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -316,9 +316,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->patch(resourcePath, request); + return check self.clientEp->patch(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -338,9 +338,9 @@ public isolated client class Client { do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); http:Request request = new; - return check self.clientEp->post(resourcePath, request); + return check self.clientEp->post(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -397,9 +397,9 @@ public isolated client class Client { map queryParamEncoding = {"eventTypes": {style: FORM, explode: true}, "privateExtendedProperty": {style: FORM, explode: true}, "sharedExtendedProperty": {style: FORM, explode: true}}; do { resourcePath = resourcePath + check getPathForQueryParam(queryParam, queryParamEncoding); - return check self.clientEp->get(resourcePath); + return check self.clientEp->get(resourcePath); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -426,9 +426,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->post(resourcePath, request); + return check self.clientEp->post(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -453,9 +453,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->post(resourcePath, request); + return check self.clientEp->post(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -477,9 +477,9 @@ public isolated client class Client { do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); http:Request request = new; - return check self.clientEp->post(resourcePath, request); + return check self.clientEp->post(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -501,9 +501,9 @@ public isolated client class Client { map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "maxAttendees": maxAttendees, "timeZone": timeZone}; do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); - return check self.clientEp->get(resourcePath); + return check self.clientEp->get(resourcePath); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -531,9 +531,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->put(resourcePath, request); + return check self.clientEp->put(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -554,9 +554,9 @@ public isolated client class Client { map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "sendUpdates": sendUpdates}; do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); - return check self.clientEp->delete(resourcePath); + return check self.clientEp->delete(resourcePath); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -584,9 +584,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->patch(resourcePath, request); + return check self.clientEp->patch(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -614,9 +614,9 @@ public isolated client class Client { map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "maxAttendees": maxAttendees, "maxResults": maxResults, "originalStart": originalStart, "pageToken": pageToken, "showDeleted": showDeleted, "timeMax": timeMax, "timeMin": timeMin, "timeZone": timeZone}; do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); - return check self.clientEp->get(resourcePath); + return check self.clientEp->get(resourcePath); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -639,9 +639,9 @@ public isolated client class Client { do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); http:Request request = new; - return check self.clientEp->post(resourcePath, request); + return check self.clientEp->post(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -659,9 +659,9 @@ public isolated client class Client { map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); - return check self.clientEp->get(resourcePath); + return check self.clientEp->get(resourcePath); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -683,9 +683,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->post(resourcePath, request); + return check self.clientEp->post(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -713,9 +713,9 @@ public isolated client class Client { map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser, "maxResults": maxResults, "minAccessRole": minAccessRole, "pageToken": pageToken, "showDeleted": showDeleted, "showHidden": showHidden, "syncToken": syncToken}; do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); - return check self.clientEp->get(resourcePath); + return check self.clientEp->get(resourcePath); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -738,9 +738,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->post(resourcePath, request); + return check self.clientEp->post(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -758,7 +758,7 @@ public isolated client class Client { string resourcePath = string `/users/me/calendarList/${getEncodedUri(calendarId)}`; map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; do { - resourcePath = resourcePath + check getPathForQueryParam(queryParam); + resourcePath = resourcePath + check getPathForQueryParam(queryParam); return check self.clientEp->get(resourcePath); } on fail var e { return error Error(e.message(), e.cause()); @@ -785,9 +785,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->put(resourcePath, request); + return check self.clientEp->put(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -806,9 +806,9 @@ public isolated client class Client { map queryParam = {"alt": alt, "fields": fields, "key": 'key, "oauth_token": oauth_token, "prettyPrint": prettyPrint, "quotaUser": quotaUser}; do { resourcePath = resourcePath + check getPathForQueryParam(queryParam); - return check self.clientEp->delete(resourcePath); + return check self.clientEp->delete(resourcePath); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } @@ -832,9 +832,9 @@ public isolated client class Client { http:Request request = new; json jsonBody = payload.toJson(); request.setPayload(jsonBody, "application/json"); - return check self.clientEp->patch(resourcePath, request); + return check self.clientEp->patch(resourcePath, request); } on fail var e { - return error Error(e.message(), e.cause()); + return error Error(e.message(), e.cause()); } } } From d717b5e6f449cdaf415e40bfa707e4aab03a68fd Mon Sep 17 00:00:00 2001 From: Nuvindu Date: Fri, 22 Dec 2023 08:48:55 +0530 Subject: [PATCH 3/7] Remove `export` field in the Ballerina.toml file --- build-config/resources/Ballerina.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/build-config/resources/Ballerina.toml b/build-config/resources/Ballerina.toml index 4745f5e..4a3a4be 100644 --- a/build-config/resources/Ballerina.toml +++ b/build-config/resources/Ballerina.toml @@ -2,7 +2,6 @@ distribution = "2201.8.0" org = "ballerinax" name = "googleapis.calendar" -export=["googleapis.calendar"] version = "@toml.version@" license = ["Apache-2.0"] authors = ["Ballerina"] From f59ca4a00dec70588ce72a9b4f5dd302938e5632 Mon Sep 17 00:00:00 2001 From: Nuvindu Date: Fri, 22 Dec 2023 08:49:43 +0530 Subject: [PATCH 4/7] Fix github workflow file --- .github/workflows/build-with-bal-test-native.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-with-bal-test-native.yml b/.github/workflows/build-with-bal-test-native.yml index f991358..52f93bc 100644 --- a/.github/workflows/build-with-bal-test-native.yml +++ b/.github/workflows/build-with-bal-test-native.yml @@ -16,4 +16,4 @@ jobs: uses: ballerina-platform/ballerina-standard-library/.github/workflows/build-with-bal-test-graalvm-connector-template.yml@main secrets: inherit with: - additional-build-flags: "-x :googleapis.calendar-examples:build -Pgroups=mock" + additional-test-flags: "-x :googleapis.calendar-examples:build -Pgroups=mock" From 3253004980ab8afc4246ab403f4cb732c5841f55 Mon Sep 17 00:00:00 2001 From: Nuvindu Date: Fri, 22 Dec 2023 08:51:13 +0530 Subject: [PATCH 5/7] Add inline `http:Listener` to the mock service --- ballerina/modules/mock/openapi_service.bal | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ballerina/modules/mock/openapi_service.bal b/ballerina/modules/mock/openapi_service.bal index f8284ce..4c19ae5 100644 --- a/ballerina/modules/mock/openapi_service.bal +++ b/ballerina/modules/mock/openapi_service.bal @@ -16,9 +16,7 @@ import ballerina/http; -listener http:Listener ep0 = new (9090, config = {host: "localhost"}); - -service /calendar/v3 on ep0 { +service /calendar/v3 on new http:Listener(9090) { resource function post calendars("json"? alt, string? fields, string? 'key, string? oauth_token, boolean? prettyPrint, string? quotaUser, @http:Payload Calendar payload) returns OkCalendar { OkCalendar okCalendar = { From 26fd0ce02b35b8bcdeee6d696f8f24f640e1c49d Mon Sep 17 00:00:00 2001 From: Nuvindu Date: Fri, 22 Dec 2023 08:56:45 +0530 Subject: [PATCH 6/7] [Automated] Update the toml files --- ballerina/Ballerina.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/ballerina/Ballerina.toml b/ballerina/Ballerina.toml index 317caa9..f04e8fc 100644 --- a/ballerina/Ballerina.toml +++ b/ballerina/Ballerina.toml @@ -2,7 +2,6 @@ distribution = "2201.8.0" org = "ballerinax" name = "googleapis.calendar" -export=["googleapis.calendar"] version = "4.0.0" license = ["Apache-2.0"] authors = ["Ballerina"] From 0081ea4347485ea8d437bb8073d56b7d988ccc9e Mon Sep 17 00:00:00 2001 From: Nuvindu Nirmana <63797478+Nuvindu@users.noreply.github.com> Date: Fri, 22 Dec 2023 10:59:46 +0530 Subject: [PATCH 7/7] Update README.md Co-authored-by: Dilan Sachintha Nayanajith --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a9112d..daf9094 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ The `calendar` connector provides practical examples illustrating usage in vario 1. [Project Management With Calendar API](https://github.com/ballerina-platform/module-ballerinax-googleapis.calendar/tree/main/examples/project-management-with-calendar/main.bal) This example shows how to use Google calendar APIs to efficiently manage work schedule of a person. It interacts with the API for various tasks related to scheduling and organizing work-related events and meetings. 2. [Work Schedule Management With Calendar API](https://github.com/ballerina-platform/module-ballerinax-googleapis.calendar/tree/main/examples/work-schedule-management-with-calendar/main.bal) - This example shows how to use Google calendar APIs to managing personal project schedule and collaborating with team members. + This example shows how to use Google calendar APIs to manage personal project schedule and collaborate with team members. For comprehensive information about the connector's functionality, configuration, and usage in Ballerina programs, refer to the `calendar` connector's reference guide in [Ballerina Central](https://central.ballerina.io/ballerinax/googleapis.calendar/latest).