Skip to content

Commit 2f48e54

Browse files
authored
Merge pull request #300 from ballerina-platform/regenerate-connector
[Automated] Regenerate OpenAPI Connector
2 parents ec7f9cf + 26b922b commit 2f48e54

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

ballerina/modules/oas/client.bal

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,13 @@ public isolated client class Client {
282282
return self.clientEp->post(resourcePath, request, headers);
283283
}
284284

285+
# Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. This method doesn't perform SPF checks, so it might not work for some spam messages, such as those attempting to perform domain spoofing. This method does not send a message.
286+
#
287+
# + userId - The user's email address. The special value `me` can be used to indicate the authenticated user
288+
# + headers - Headers to be sent with the request
289+
# + queries - Queries to be sent with the request
290+
# + payload - The message to be imported
291+
# + return - Successful response
285292
resource isolated function post users/[string userId]/messages/'import(Message payload, map<string|string[]> headers = {}, *GmailUsersMessagesImportQueries queries) returns Message|error {
286293
string resourcePath = string `/users/${getEncodedUri(userId)}/messages/import`;
287294
resourcePath = resourcePath + check getPathForQueryParam(queries);

ballerina/modules/oas/types.bal

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import ballerina/http;
2222
public type HistoryLabelAdded record {
2323
# Label IDs added to the message
2424
string[] labelIds?;
25+
# An email message
2526
Message message?;
2627
};
2728

@@ -105,6 +106,7 @@ public type GmailUsersDraftsUpdateQueries record {
105106
};
106107

107108
public type HistoryMessageDeleted record {
109+
# An email message
108110
Message message?;
109111
};
110112

@@ -131,6 +133,7 @@ public type Label record {
131133
int:Signed32 messagesUnread?;
132134
# The number of unread threads with the label
133135
int:Signed32 threadsUnread?;
136+
# The color to assign to the label. Color is only available for labels that have their `type` set to `user`
134137
LabelColor color?;
135138
# The total number of threads with the label
136139
int:Signed32 threadsTotal?;
@@ -557,6 +560,7 @@ public type MessagePart record {
557560
MessagePart[] parts?;
558561
# The MIME type of the message part
559562
string mimeType?;
563+
# The body of a single MIME message part
560564
MessagePartBody body?;
561565
};
562566

@@ -593,6 +597,7 @@ public type GmailUsersLabelsDeleteQueries record {
593597
public type HistoryLabelRemoved record {
594598
# Label IDs removed from the message
595599
string[] labelIds?;
600+
# An email message
596601
Message message?;
597602
};
598603

@@ -655,6 +660,7 @@ public type ModifyThreadRequest record {
655660
};
656661

657662
public type HistoryMessageAdded record {
663+
# An email message
658664
Message message?;
659665
};
660666

@@ -666,6 +672,7 @@ public type Message record {
666672
string threadId?;
667673
# List of IDs of labels applied to this message
668674
string[] labelIds?;
675+
# A single MIME message part
669676
MessagePart payload?;
670677
# The ID of the last history record that modified this message
671678
string historyId?;
@@ -1170,6 +1177,7 @@ public type GmailUsersMessagesTrashQueries record {
11701177
public type Draft record {
11711178
# The immutable ID of the draft
11721179
string id?;
1180+
# An email message
11731181
Message message?;
11741182
};
11751183

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ releasePluginVersion=2.8.0
1010
testngVersion=7.6.1
1111
eclipseLsp4jVersion=0.12.0
1212
ballerinaGradlePluginVersion=2.3.0
13-
ballerinaLangVersion=2201.12.0
13+
ballerinaLangVersion=2201.12.2

0 commit comments

Comments
 (0)