Merge pull request #2 from microsoft/feature/core-execution
- generate update for mail samples core execution
This commit is contained in:
Коммит
5a6151e2a6
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.InferenceClassification {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.InferenceClassification {
|
|||
public RequestInfo CreatePatchRequestInfo(InferenceClassification body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -52,7 +52,7 @@ namespace Graphdotnetv4.Users.InferenceClassification {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.InferenceClassification.Overrides.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.InferenceClassification.Overrides.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(InferenceClassificationOverride body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.InferenceClassification.Overrides.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.InferenceClassification.Overrides {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.InferenceClassification.Overrides {
|
|||
public RequestInfo CreatePostRequestInfo(InferenceClassificationOverride body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.MailFolders.ChildFolders {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.MailFolders.ChildFolders {
|
|||
public RequestInfo CreatePostRequestInfo(MailFolder body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.MailFolders.ChildFolders.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.MailFolders.ChildFolders.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(MailFolder body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.MailFolders.ChildFolders.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace Graphdotnetv4.Users.MailFolders.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -53,7 +53,7 @@ namespace Graphdotnetv4.Users.MailFolders.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(MailFolder body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -68,7 +68,7 @@ namespace Graphdotnetv4.Users.MailFolders.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
public RequestInfo CreatePostRequestInfo(MailFolder body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.MailFolders.MessageRules.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.MailFolders.MessageRules.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(MessageRule body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.MailFolders.MessageRules.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.MailFolders.MessageRules {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.MailFolders.MessageRules {
|
|||
public RequestInfo CreatePostRequestInfo(MessageRule body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Attachments {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Attachments {
|
|||
public RequestInfo CreatePostRequestInfo(Attachment body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Attachments.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Attachments.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(Attachment body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Attachments.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Content {
|
|||
public RequestInfo CreateGetRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
@ -28,7 +28,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Content {
|
|||
public RequestInfo CreatePutRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PUT,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Extensions {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Extensions {
|
|||
public RequestInfo CreatePostRequestInfo(Extension body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Extensions.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Extensions.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(Extension body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Extensions.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -53,7 +53,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(Message body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -68,7 +68,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages {
|
|||
public RequestInfo CreatePostRequestInfo(Message body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties.
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties.
|
|||
public RequestInfo CreatePatchRequestInfo(MultiValueLegacyExtendedProperty body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties.
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties
|
|||
public RequestInfo CreatePostRequestInfo(MultiValueLegacyExtendedProperty body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties
|
|||
public RequestInfo CreatePatchRequestInfo(SingleValueLegacyExtendedProperty body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties
|
|||
public RequestInfo CreatePostRequestInfo(SingleValueLegacyExtendedProperty body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(MultiValueLegacyExtendedProperty body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties {
|
|||
public RequestInfo CreatePostRequestInfo(MultiValueLegacyExtendedProperty body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(SingleValueLegacyExtendedProperty body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties {
|
|||
public RequestInfo CreatePostRequestInfo(SingleValueLegacyExtendedProperty body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.Messages.Attachments {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.Messages.Attachments {
|
|||
public RequestInfo CreatePostRequestInfo(Attachment body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.Messages.Attachments.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.Messages.Attachments.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(Attachment body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.Messages.Attachments.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.Messages.Content {
|
|||
public RequestInfo CreateGetRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
@ -28,7 +28,7 @@ namespace Graphdotnetv4.Users.Messages.Content {
|
|||
public RequestInfo CreatePutRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PUT,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.Messages.Extensions {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.Messages.Extensions {
|
|||
public RequestInfo CreatePostRequestInfo(Extension body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.Messages.Extensions.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.Messages.Extensions.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(Extension body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.Messages.Extensions.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace Graphdotnetv4.Users.Messages.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -53,7 +53,7 @@ namespace Graphdotnetv4.Users.Messages.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(Message body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -68,7 +68,7 @@ namespace Graphdotnetv4.Users.Messages.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.Messages {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.Messages {
|
|||
public RequestInfo CreatePostRequestInfo(Message body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.Messages.MultiValueExtendedProperties.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.Messages.MultiValueExtendedProperties.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(MultiValueLegacyExtendedProperty body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.Messages.MultiValueExtendedProperties.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.Messages.MultiValueExtendedProperties {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.Messages.MultiValueExtendedProperties {
|
|||
public RequestInfo CreatePostRequestInfo(MultiValueLegacyExtendedProperty body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Graphdotnetv4.Users.Messages.SingleValueExtendedProperties.Item {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -33,7 +33,7 @@ namespace Graphdotnetv4.Users.Messages.SingleValueExtendedProperties.Item {
|
|||
public RequestInfo CreatePatchRequestInfo(SingleValueLegacyExtendedProperty body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.PATCH,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
@ -48,7 +48,7 @@ namespace Graphdotnetv4.Users.Messages.SingleValueExtendedProperties.Item {
|
|||
public RequestInfo CreateDeleteRequestInfo(Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.DELETE,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
return requestInfo;
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Graphdotnetv4.Users.Messages.SingleValueExtendedProperties {
|
|||
public RequestInfo CreateGetRequestInfo(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.GET,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
};
|
||||
if (q != null) {
|
||||
var qParams = new GetQueryParameters();
|
||||
|
@ -37,7 +37,7 @@ namespace Graphdotnetv4.Users.Messages.SingleValueExtendedProperties {
|
|||
public RequestInfo CreatePostRequestInfo(SingleValueLegacyExtendedProperty body, Action<IDictionary<string, string>> h = default) {
|
||||
var requestInfo = new RequestInfo {
|
||||
HttpMethod = HttpMethod.POST,
|
||||
URI = new Uri(CurrentPath),
|
||||
URI = new Uri(CurrentPath + PathSegment),
|
||||
Content = body as object as Stream
|
||||
};
|
||||
h?.Invoke(requestInfo.Headers);
|
||||
|
|
|
@ -16,7 +16,8 @@ public class GraphClient {
|
|||
@javax.annotation.Nonnull
|
||||
public UsersRequestBuilder users() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new UsersRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new UsersRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
private final String pathSegment = "https://graph.microsoft.com/v1.0";
|
||||
|
@ -28,6 +29,7 @@ public class GraphClient {
|
|||
public UserRequestBuilder users(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/users/" + id;
|
||||
return new UserRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new UserRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,8 @@ public class InferenceClassificationRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public OverridesRequestBuilder overrides() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new OverridesRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new OverridesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public java.util.concurrent.CompletableFuture<InferenceClassification> get(@javax.annotation.Nonnull final java.util.function.Consumer<GetQueryParameters> q, @javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h, @javax.annotation.Nonnull final ResponseHandler responseHandler) {
|
||||
|
@ -38,7 +39,7 @@ public class InferenceClassificationRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -66,7 +67,7 @@ public class InferenceClassificationRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -90,7 +91,7 @@ public class InferenceClassificationRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -192,7 +193,7 @@ public class InferenceClassificationRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -201,7 +202,7 @@ public class InferenceClassificationRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -210,7 +211,7 @@ public class InferenceClassificationRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final InferenceClassification body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -219,7 +220,7 @@ public class InferenceClassificationRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -228,6 +229,7 @@ public class InferenceClassificationRequestBuilder {
|
|||
public InferenceClassificationOverrideRequestBuilder overrides(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/overrides/" + id;
|
||||
return new InferenceClassificationOverrideRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new InferenceClassificationOverrideRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ public class OverridesRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class OverridesRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class OverridesRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class OverridesRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class OverridesRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final InferenceClassificationOverride body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class InferenceClassificationOverrideRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class InferenceClassificationOverrideRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class InferenceClassificationOverrideRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class InferenceClassificationOverrideRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class InferenceClassificationOverrideRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class InferenceClassificationOverrideRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final InferenceClassificationOverride body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class InferenceClassificationOverrideRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -19,17 +19,20 @@ public class UserRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public InferenceClassificationRequestBuilder inferenceClassification() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new InferenceClassificationRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new InferenceClassificationRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MailFoldersRequestBuilder mailFolders() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new MailFoldersRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MailFoldersRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MessagesRequestBuilder messages() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new MessagesRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MessagesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
private final String pathSegment = "";
|
||||
|
@ -41,12 +44,14 @@ public class UserRequestBuilder {
|
|||
public MailFolderRequestBuilder mailFolders(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/mailFolders/" + id;
|
||||
return new MailFolderRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MailFolderRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MessageRequestBuilder messages(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/messages/" + id;
|
||||
return new MessageRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MessageRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ public class MailFoldersRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class MailFoldersRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -153,7 +153,7 @@ public class MailFoldersRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -162,7 +162,7 @@ public class MailFoldersRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -171,7 +171,7 @@ public class MailFoldersRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MailFolder body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -32,7 +32,7 @@ public class ChildFoldersRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class ChildFoldersRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class ChildFoldersRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class ChildFoldersRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class ChildFoldersRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MailFolder body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class MailFolderRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class MailFolderRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class MailFolderRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class MailFolderRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class MailFolderRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class MailFolderRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MailFolder body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class MailFolderRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -24,27 +24,32 @@ public class MailFolderRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public ChildFoldersRequestBuilder childFolders() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new ChildFoldersRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new ChildFoldersRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MessageRulesRequestBuilder messageRules() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new MessageRulesRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MessageRulesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MessagesRequestBuilder messages() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new MessagesRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MessagesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MultiValueExtendedPropertiesRequestBuilder multiValueExtendedProperties() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new MultiValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MultiValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public SingleValueExtendedPropertiesRequestBuilder singleValueExtendedProperties() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new SingleValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new SingleValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public java.util.concurrent.CompletableFuture<MailFolder> get(@javax.annotation.Nonnull final java.util.function.Consumer<GetQueryParameters> q, @javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h, @javax.annotation.Nonnull final ResponseHandler responseHandler) {
|
||||
|
@ -65,7 +70,7 @@ public class MailFolderRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -93,7 +98,7 @@ public class MailFolderRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -117,7 +122,7 @@ public class MailFolderRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -219,7 +224,7 @@ public class MailFolderRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -228,7 +233,7 @@ public class MailFolderRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -237,7 +242,7 @@ public class MailFolderRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MailFolder body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -246,7 +251,7 @@ public class MailFolderRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -255,30 +260,35 @@ public class MailFolderRequestBuilder {
|
|||
public MailFolderRequestBuilder childFolders(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/childFolders/" + id;
|
||||
return new MailFolderRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MailFolderRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MessageRuleRequestBuilder messageRules(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/messageRules/" + id;
|
||||
return new MessageRuleRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MessageRuleRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MessageRequestBuilder messages(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/messages/" + id;
|
||||
return new MessageRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MessageRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MultiValueLegacyExtendedPropertyRequestBuilder multiValueExtendedProperties(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/multiValueExtendedProperties/" + id;
|
||||
return new MultiValueLegacyExtendedPropertyRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MultiValueLegacyExtendedPropertyRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public SingleValueLegacyExtendedPropertyRequestBuilder singleValueExtendedProperties(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/singleValueExtendedProperties/" + id;
|
||||
return new SingleValueLegacyExtendedPropertyRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new SingleValueLegacyExtendedPropertyRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ public class MessageRulesRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class MessageRulesRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class MessageRulesRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class MessageRulesRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class MessageRulesRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MessageRule body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class MessageRuleRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class MessageRuleRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class MessageRuleRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class MessageRuleRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class MessageRuleRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class MessageRuleRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MessageRule body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class MessageRuleRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -32,7 +32,7 @@ public class MessagesRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class MessagesRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class MessagesRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class MessagesRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class MessagesRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Message body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -32,7 +32,7 @@ public class AttachmentsRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class AttachmentsRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class AttachmentsRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class AttachmentsRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class AttachmentsRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Attachment body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class AttachmentRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class AttachmentRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class AttachmentRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class AttachmentRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class AttachmentRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class AttachmentRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Attachment body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class AttachmentRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -28,7 +28,7 @@ public class ContentRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -51,7 +51,7 @@ public class ContentRequestBuilder {
|
|||
public RequestInfo createPutRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PUT;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -108,7 +108,7 @@ public class ContentRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -116,7 +116,7 @@ public class ContentRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createPutRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PUT;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -32,7 +32,7 @@ public class ExtensionsRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class ExtensionsRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class ExtensionsRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class ExtensionsRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class ExtensionsRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Extension body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class ExtensionRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class ExtensionRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class ExtensionRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class ExtensionRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class ExtensionRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class ExtensionRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Extension body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class ExtensionRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -24,27 +24,32 @@ public class MessageRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public ContentRequestBuilder content() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new ContentRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new ContentRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public AttachmentsRequestBuilder attachments() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new AttachmentsRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new AttachmentsRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public ExtensionsRequestBuilder extensions() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new ExtensionsRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new ExtensionsRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MultiValueExtendedPropertiesRequestBuilder multiValueExtendedProperties() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new MultiValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MultiValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public SingleValueExtendedPropertiesRequestBuilder singleValueExtendedProperties() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new SingleValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new SingleValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public java.util.concurrent.CompletableFuture<Message> get(@javax.annotation.Nonnull final java.util.function.Consumer<GetQueryParameters> q, @javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h, @javax.annotation.Nonnull final ResponseHandler responseHandler) {
|
||||
|
@ -65,7 +70,7 @@ public class MessageRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -93,7 +98,7 @@ public class MessageRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -117,7 +122,7 @@ public class MessageRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -219,7 +224,7 @@ public class MessageRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -228,7 +233,7 @@ public class MessageRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -237,7 +242,7 @@ public class MessageRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Message body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -246,7 +251,7 @@ public class MessageRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -255,24 +260,28 @@ public class MessageRequestBuilder {
|
|||
public AttachmentRequestBuilder attachments(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/attachments/" + id;
|
||||
return new AttachmentRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new AttachmentRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public ExtensionRequestBuilder extensions(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/extensions/" + id;
|
||||
return new ExtensionRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new ExtensionRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MultiValueLegacyExtendedPropertyRequestBuilder multiValueExtendedProperties(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/multiValueExtendedProperties/" + id;
|
||||
return new MultiValueLegacyExtendedPropertyRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MultiValueLegacyExtendedPropertyRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public SingleValueLegacyExtendedPropertyRequestBuilder singleValueExtendedProperties(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/singleValueExtendedProperties/" + id;
|
||||
return new SingleValueLegacyExtendedPropertyRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new SingleValueLegacyExtendedPropertyRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -32,7 +32,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -32,7 +32,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -32,7 +32,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -32,7 +32,7 @@ public class MessagesRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class MessagesRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class MessagesRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class MessagesRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class MessagesRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Message body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -32,7 +32,7 @@ public class AttachmentsRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class AttachmentsRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class AttachmentsRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class AttachmentsRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class AttachmentsRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Attachment body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class AttachmentRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class AttachmentRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class AttachmentRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class AttachmentRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class AttachmentRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class AttachmentRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Attachment body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class AttachmentRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -28,7 +28,7 @@ public class ContentRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -51,7 +51,7 @@ public class ContentRequestBuilder {
|
|||
public RequestInfo createPutRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PUT;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -108,7 +108,7 @@ public class ContentRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -116,7 +116,7 @@ public class ContentRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createPutRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PUT;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -32,7 +32,7 @@ public class ExtensionsRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class ExtensionsRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class ExtensionsRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class ExtensionsRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class ExtensionsRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Extension body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class ExtensionRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class ExtensionRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class ExtensionRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class ExtensionRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class ExtensionRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class ExtensionRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Extension body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class ExtensionRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -24,27 +24,32 @@ public class MessageRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public ContentRequestBuilder content() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new ContentRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new ContentRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public AttachmentsRequestBuilder attachments() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new AttachmentsRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new AttachmentsRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public ExtensionsRequestBuilder extensions() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new ExtensionsRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new ExtensionsRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MultiValueExtendedPropertiesRequestBuilder multiValueExtendedProperties() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new MultiValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MultiValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public SingleValueExtendedPropertiesRequestBuilder singleValueExtendedProperties() {
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment;
|
||||
return new SingleValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new SingleValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public java.util.concurrent.CompletableFuture<Message> get(@javax.annotation.Nonnull final java.util.function.Consumer<GetQueryParameters> q, @javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h, @javax.annotation.Nonnull final ResponseHandler responseHandler) {
|
||||
|
@ -65,7 +70,7 @@ public class MessageRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -93,7 +98,7 @@ public class MessageRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -117,7 +122,7 @@ public class MessageRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -219,7 +224,7 @@ public class MessageRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -228,7 +233,7 @@ public class MessageRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -237,7 +242,7 @@ public class MessageRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Message body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -246,7 +251,7 @@ public class MessageRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -255,24 +260,28 @@ public class MessageRequestBuilder {
|
|||
public AttachmentRequestBuilder attachments(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/attachments/" + id;
|
||||
return new AttachmentRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new AttachmentRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public ExtensionRequestBuilder extensions(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/extensions/" + id;
|
||||
return new ExtensionRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new ExtensionRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public MultiValueLegacyExtendedPropertyRequestBuilder multiValueExtendedProperties(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/multiValueExtendedProperties/" + id;
|
||||
return new MultiValueLegacyExtendedPropertyRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new MultiValueLegacyExtendedPropertyRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public SingleValueLegacyExtendedPropertyRequestBuilder singleValueExtendedProperties(@javax.annotation.Nonnull final String id) {
|
||||
Objects.requireNonNull(id);
|
||||
final String parentPath = (currentPath == null ? "" : currentPath) + pathSegment + "/singleValueExtendedProperties/" + id;
|
||||
return new SingleValueLegacyExtendedPropertyRequestBuilder() {{ currentPath = parentPath; }};
|
||||
final HttpCore parentCore = httpCore;
|
||||
return new SingleValueLegacyExtendedPropertyRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; }};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class MultiValueExtendedPropertiesRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -32,7 +32,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -60,7 +60,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -154,7 +154,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -163,7 +163,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -172,7 +172,7 @@ public class SingleValueExtendedPropertiesRequestBuilder {
|
|||
public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.POST;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
|
|
@ -31,7 +31,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
Objects.requireNonNull(q);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
final GetQueryParameters qParams = new GetQueryParameters();
|
||||
|
@ -59,7 +59,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
Objects.requireNonNull(body);
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -83,7 +83,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createDeleteRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -185,7 +185,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createGetRequestInfo(@javax.annotation.Nonnull final java.util.function.Consumer<Map<String, String>> h) throws URISyntaxException {
|
||||
Objects.requireNonNull(h);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
h.accept(requestInfo.headers);
|
||||
|
@ -194,7 +194,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createGetRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.GET;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
@ -203,7 +203,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) throws URISyntaxException {
|
||||
Objects.requireNonNull(body);
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.PATCH;
|
||||
content = (InputStream)(Object)body;
|
||||
}};
|
||||
|
@ -212,7 +212,7 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder {
|
|||
@javax.annotation.Nonnull
|
||||
public RequestInfo createDeleteRequestInfo() throws URISyntaxException {
|
||||
final RequestInfo requestInfo = new RequestInfo() {{
|
||||
uri = new URI(currentPath);
|
||||
uri = new URI(currentPath + pathSegment);
|
||||
httpMethod = HttpMethod.DELETE;
|
||||
}};
|
||||
return requestInfo;
|
||||
|
|
|
@ -5,7 +5,8 @@ import {UsersRequestBuilder} from './users/usersRequestBuilder';
|
|||
export class GraphClient {
|
||||
public get users(): UsersRequestBuilder {
|
||||
const builder = new UsersRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
private readonly pathSegment: string = "https://graph.microsoft.com/v1.0";
|
||||
|
@ -13,7 +14,8 @@ export class GraphClient {
|
|||
public httpCore?: HttpCore | undefined;
|
||||
public readonly usersById = (id: String) : UserRequestBuilder => {
|
||||
const builder = new UserRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/users/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/users/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,65 +6,67 @@ import {OverridesRequestBuilder} from './overrides/overridesRequestBuilder';
|
|||
export class InferenceClassificationRequestBuilder {
|
||||
public get overrides(): OverridesRequestBuilder {
|
||||
const builder = new OverridesRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<InferenceClassification | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<InferenceClassification>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<InferenceClassification>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: InferenceClassification, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: InferenceClassification, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: InferenceClassification, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/inferenceClassification";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
public readonly overridesById = (id: String) : InferenceClassificationOverrideRequestBuilder => {
|
||||
const builder = new InferenceClassificationOverrideRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/overrides/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/overrides/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,56 +2,56 @@ import {HttpCore, HttpMethod, RequestInfo, ResponseHandler} from '@microsoft/kio
|
|||
import {InferenceClassificationOverride} from '../../inferenceClassificationOverride';
|
||||
|
||||
export class InferenceClassificationOverrideRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<InferenceClassificationOverride | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<InferenceClassificationOverride>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<InferenceClassificationOverride>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: InferenceClassificationOverride, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: InferenceClassificationOverride, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: InferenceClassificationOverride, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -3,7 +3,7 @@ import {InferenceClassificationOverride} from '../inferenceClassificationOverrid
|
|||
import {OverridesResponse} from '../overridesResponse';
|
||||
|
||||
export class OverridesRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
search?: string,
|
||||
|
@ -16,8 +16,8 @@ export class OverridesRequestBuilder {
|
|||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<OverridesResponse>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<OverridesResponse>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
|
@ -29,28 +29,28 @@ export class OverridesRequestBuilder {
|
|||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly post = async (body: InferenceClassificationOverride, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<InferenceClassificationOverride | undefined> => {
|
||||
};
|
||||
public readonly post = (body: InferenceClassificationOverride, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<InferenceClassificationOverride | undefined> => {
|
||||
const requestInfo = this.createPostRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<InferenceClassificationOverride>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<InferenceClassificationOverride>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPostRequestInfo = (body: InferenceClassificationOverride, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.POST,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/overrides";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -8,17 +8,20 @@ import {MessagesRequestBuilder} from '../mailFolders/messages/messagesRequestBui
|
|||
export class UserRequestBuilder {
|
||||
public get inferenceClassification(): InferenceClassificationRequestBuilder {
|
||||
const builder = new InferenceClassificationRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public get mailFolders(): MailFoldersRequestBuilder {
|
||||
const builder = new MailFoldersRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public get messages(): MessagesRequestBuilder {
|
||||
const builder = new MessagesRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
private readonly pathSegment: string = "";
|
||||
|
@ -26,12 +29,14 @@ export class UserRequestBuilder {
|
|||
public httpCore?: HttpCore | undefined;
|
||||
public readonly mailFoldersById = (id: String) : MailFolderRequestBuilder => {
|
||||
const builder = new MailFolderRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/mailFolders/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/mailFolders/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
public readonly messagesById = (id: String) : MessageRequestBuilder => {
|
||||
const builder = new MessageRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/messages/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/messages/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ import {ChildFoldersResponse} from '../childFoldersResponse';
|
|||
import {MailFolder} from '../mailFolder';
|
||||
|
||||
export class ChildFoldersRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
search?: string,
|
||||
|
@ -16,8 +16,8 @@ export class ChildFoldersRequestBuilder {
|
|||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<ChildFoldersResponse>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<ChildFoldersResponse>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
|
@ -29,28 +29,28 @@ export class ChildFoldersRequestBuilder {
|
|||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly post = async (body: MailFolder, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MailFolder | undefined> => {
|
||||
};
|
||||
public readonly post = (body: MailFolder, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MailFolder | undefined> => {
|
||||
const requestInfo = this.createPostRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MailFolder>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MailFolder>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPostRequestInfo = (body: MailFolder, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.POST,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/childFolders";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -2,56 +2,56 @@ import {HttpCore, HttpMethod, RequestInfo, ResponseHandler} from '@microsoft/kio
|
|||
import {MailFolder} from '../../mailFolder';
|
||||
|
||||
export class MailFolderRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MailFolder | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MailFolder>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MailFolder>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: MailFolder, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: MailFolder, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: MailFolder, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -13,105 +13,115 @@ import {SingleValueExtendedPropertiesRequestBuilder} from '../messages/singleVal
|
|||
export class MailFolderRequestBuilder {
|
||||
public get childFolders(): ChildFoldersRequestBuilder {
|
||||
const builder = new ChildFoldersRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public get messageRules(): MessageRulesRequestBuilder {
|
||||
const builder = new MessageRulesRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public get messages(): MessagesRequestBuilder {
|
||||
const builder = new MessagesRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public get multiValueExtendedProperties(): MultiValueExtendedPropertiesRequestBuilder {
|
||||
const builder = new MultiValueExtendedPropertiesRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder {
|
||||
const builder = new SingleValueExtendedPropertiesRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MailFolder | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MailFolder>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MailFolder>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: MailFolder, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: MailFolder, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: MailFolder, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
public readonly childFoldersById = (id: String) : MailFolderRequestBuilder => {
|
||||
const builder = new MailFolderRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/childFolders/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/childFolders/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
public readonly messageRulesById = (id: String) : MessageRuleRequestBuilder => {
|
||||
const builder = new MessageRuleRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/messageRules/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/messageRules/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
public readonly messagesById = (id: String) : MessageRequestBuilder => {
|
||||
const builder = new MessageRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/messages/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/messages/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
public readonly multiValueExtendedPropertiesById = (id: String) : MultiValueLegacyExtendedPropertyRequestBuilder => {
|
||||
const builder = new MultiValueLegacyExtendedPropertyRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/multiValueExtendedProperties/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/multiValueExtendedProperties/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
public readonly singleValueExtendedPropertiesById = (id: String) : SingleValueLegacyExtendedPropertyRequestBuilder => {
|
||||
const builder = new SingleValueLegacyExtendedPropertyRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/singleValueExtendedProperties/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/singleValueExtendedProperties/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ import {MailFoldersResponse} from '../mailFoldersResponse';
|
|||
import {MailFolder} from './mailFolder';
|
||||
|
||||
export class MailFoldersRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
search?: string,
|
||||
|
@ -16,8 +16,8 @@ export class MailFoldersRequestBuilder {
|
|||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MailFoldersResponse>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MailFoldersResponse>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
|
@ -29,28 +29,28 @@ export class MailFoldersRequestBuilder {
|
|||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly post = async (body: MailFolder, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MailFolder | undefined> => {
|
||||
};
|
||||
public readonly post = (body: MailFolder, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MailFolder | undefined> => {
|
||||
const requestInfo = this.createPostRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MailFolder>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MailFolder>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPostRequestInfo = (body: MailFolder, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.POST,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/mailFolders";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -2,56 +2,56 @@ import {HttpCore, HttpMethod, RequestInfo, ResponseHandler} from '@microsoft/kio
|
|||
import {MessageRule} from '../../messageRule';
|
||||
|
||||
export class MessageRuleRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MessageRule | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MessageRule>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MessageRule>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: MessageRule, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: MessageRule, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: MessageRule, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -3,7 +3,7 @@ import {MessageRule} from '../messageRule';
|
|||
import {MessageRulesResponse} from '../messageRulesResponse';
|
||||
|
||||
export class MessageRulesRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
search?: string,
|
||||
|
@ -16,8 +16,8 @@ export class MessageRulesRequestBuilder {
|
|||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MessageRulesResponse>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MessageRulesResponse>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
|
@ -29,28 +29,28 @@ export class MessageRulesRequestBuilder {
|
|||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly post = async (body: MessageRule, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MessageRule | undefined> => {
|
||||
};
|
||||
public readonly post = (body: MessageRule, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MessageRule | undefined> => {
|
||||
const requestInfo = this.createPostRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MessageRule>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MessageRule>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPostRequestInfo = (body: MessageRule, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.POST,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/messageRules";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -3,7 +3,7 @@ import {Attachment} from '../../../attachment';
|
|||
import {AttachmentsResponse} from '../attachmentsResponse';
|
||||
|
||||
export class AttachmentsRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
search?: string,
|
||||
|
@ -16,8 +16,8 @@ export class AttachmentsRequestBuilder {
|
|||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<AttachmentsResponse>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<AttachmentsResponse>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
|
@ -29,28 +29,28 @@ export class AttachmentsRequestBuilder {
|
|||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly post = async (body: Attachment, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Attachment | undefined> => {
|
||||
};
|
||||
public readonly post = (body: Attachment, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Attachment | undefined> => {
|
||||
const requestInfo = this.createPostRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<Attachment>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<Attachment>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPostRequestInfo = (body: Attachment, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.POST,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/attachments";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -2,56 +2,56 @@ import {HttpCore, HttpMethod, RequestInfo, ResponseHandler} from '@microsoft/kio
|
|||
import {Attachment} from '../../../../attachment';
|
||||
|
||||
export class AttachmentRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Attachment | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<Attachment>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<Attachment>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: Attachment, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: Attachment, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: Attachment, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -1,34 +1,34 @@
|
|||
import {HttpCore, HttpMethod, RequestInfo, ResponseHandler} from '@microsoft/kiota-abstractions';
|
||||
|
||||
export class ContentRequestBuilder {
|
||||
public readonly get = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
public readonly get = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly put = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly put = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPutRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPutRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PUT,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/$value";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -3,7 +3,7 @@ import {Extension} from '../../../extension';
|
|||
import {ExtensionsResponse} from '../extensionsResponse';
|
||||
|
||||
export class ExtensionsRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
search?: string,
|
||||
|
@ -16,8 +16,8 @@ export class ExtensionsRequestBuilder {
|
|||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<ExtensionsResponse>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<ExtensionsResponse>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
|
@ -29,28 +29,28 @@ export class ExtensionsRequestBuilder {
|
|||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly post = async (body: Extension, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Extension | undefined> => {
|
||||
};
|
||||
public readonly post = (body: Extension, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Extension | undefined> => {
|
||||
const requestInfo = this.createPostRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<Extension>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<Extension>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPostRequestInfo = (body: Extension, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.POST,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/extensions";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -2,56 +2,56 @@ import {HttpCore, HttpMethod, RequestInfo, ResponseHandler} from '@microsoft/kio
|
|||
import {Extension} from '../../../../extension';
|
||||
|
||||
export class ExtensionRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Extension | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<Extension>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<Extension>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: Extension, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: Extension, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: Extension, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -13,100 +13,109 @@ import {SingleValueExtendedPropertiesRequestBuilder} from '../singleValueExtende
|
|||
export class MessageRequestBuilder {
|
||||
public get content(): ContentRequestBuilder {
|
||||
const builder = new ContentRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public get attachments(): AttachmentsRequestBuilder {
|
||||
const builder = new AttachmentsRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public get extensions(): ExtensionsRequestBuilder {
|
||||
const builder = new ExtensionsRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public get multiValueExtendedProperties(): MultiValueExtendedPropertiesRequestBuilder {
|
||||
const builder = new MultiValueExtendedPropertiesRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder {
|
||||
const builder = new SingleValueExtendedPropertiesRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Message | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<Message>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<Message>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: Message, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: Message, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: Message, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
public readonly attachmentsById = (id: String) : AttachmentRequestBuilder => {
|
||||
const builder = new AttachmentRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/attachments/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/attachments/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
public readonly extensionsById = (id: String) : ExtensionRequestBuilder => {
|
||||
const builder = new ExtensionRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/extensions/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/extensions/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
public readonly multiValueExtendedPropertiesById = (id: String) : MultiValueLegacyExtendedPropertyRequestBuilder => {
|
||||
const builder = new MultiValueLegacyExtendedPropertyRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/multiValueExtendedProperties/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/multiValueExtendedProperties/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
public readonly singleValueExtendedPropertiesById = (id: String) : SingleValueLegacyExtendedPropertyRequestBuilder => {
|
||||
const builder = new SingleValueLegacyExtendedPropertyRequestBuilder();
|
||||
builder.currentPath = (this.currentPath && this.currentPath) + this.pathSegment + "/singleValueExtendedProperties/" + id;
|
||||
builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/singleValueExtendedProperties/" + id;
|
||||
builder.httpCore = this.httpCore;
|
||||
return builder;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ import {Message} from '../../message';
|
|||
import {MessagesResponse} from '../messagesResponse';
|
||||
|
||||
export class MessagesRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
search?: string,
|
||||
|
@ -16,8 +16,8 @@ export class MessagesRequestBuilder {
|
|||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MessagesResponse>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MessagesResponse>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
|
@ -29,28 +29,28 @@ export class MessagesRequestBuilder {
|
|||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly post = async (body: Message, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Message | undefined> => {
|
||||
};
|
||||
public readonly post = (body: Message, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Message | undefined> => {
|
||||
const requestInfo = this.createPostRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<Message>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<Message>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPostRequestInfo = (body: Message, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.POST,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/messages";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -2,56 +2,56 @@ import {HttpCore, HttpMethod, RequestInfo, ResponseHandler} from '@microsoft/kio
|
|||
import {MultiValueLegacyExtendedProperty} from '../../../../multiValueLegacyExtendedProperty';
|
||||
|
||||
export class MultiValueLegacyExtendedPropertyRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MultiValueLegacyExtendedProperty | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MultiValueLegacyExtendedProperty>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MultiValueLegacyExtendedProperty>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: MultiValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: MultiValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: MultiValueLegacyExtendedProperty, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -3,7 +3,7 @@ import {MultiValueLegacyExtendedProperty} from '../../../multiValueLegacyExtende
|
|||
import {MultiValueExtendedPropertiesResponse} from '../multiValueExtendedPropertiesResponse';
|
||||
|
||||
export class MultiValueExtendedPropertiesRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
search?: string,
|
||||
|
@ -16,8 +16,8 @@ export class MultiValueExtendedPropertiesRequestBuilder {
|
|||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MultiValueExtendedPropertiesResponse>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MultiValueExtendedPropertiesResponse>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
|
@ -29,28 +29,28 @@ export class MultiValueExtendedPropertiesRequestBuilder {
|
|||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly post = async (body: MultiValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MultiValueLegacyExtendedProperty | undefined> => {
|
||||
};
|
||||
public readonly post = (body: MultiValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MultiValueLegacyExtendedProperty | undefined> => {
|
||||
const requestInfo = this.createPostRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MultiValueLegacyExtendedProperty>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MultiValueLegacyExtendedProperty>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPostRequestInfo = (body: MultiValueLegacyExtendedProperty, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.POST,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/multiValueExtendedProperties";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -2,56 +2,56 @@ import {HttpCore, HttpMethod, RequestInfo, ResponseHandler} from '@microsoft/kio
|
|||
import {SingleValueLegacyExtendedProperty} from '../../../../singleValueLegacyExtendedProperty';
|
||||
|
||||
export class SingleValueLegacyExtendedPropertyRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<SingleValueLegacyExtendedProperty | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<SingleValueLegacyExtendedProperty>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<SingleValueLegacyExtendedProperty>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: SingleValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: SingleValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: SingleValueLegacyExtendedProperty, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -3,7 +3,7 @@ import {SingleValueLegacyExtendedProperty} from '../../../singleValueLegacyExten
|
|||
import {SingleValueExtendedPropertiesResponse} from '../singleValueExtendedPropertiesResponse';
|
||||
|
||||
export class SingleValueExtendedPropertiesRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
search?: string,
|
||||
|
@ -16,8 +16,8 @@ export class SingleValueExtendedPropertiesRequestBuilder {
|
|||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<SingleValueExtendedPropertiesResponse>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<SingleValueExtendedPropertiesResponse>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
|
@ -29,28 +29,28 @@ export class SingleValueExtendedPropertiesRequestBuilder {
|
|||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly post = async (body: SingleValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<SingleValueLegacyExtendedProperty | undefined> => {
|
||||
};
|
||||
public readonly post = (body: SingleValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<SingleValueLegacyExtendedProperty | undefined> => {
|
||||
const requestInfo = this.createPostRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<SingleValueLegacyExtendedProperty>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<SingleValueLegacyExtendedProperty>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPostRequestInfo = (body: SingleValueLegacyExtendedProperty, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.POST,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/singleValueExtendedProperties";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -2,56 +2,56 @@ import {HttpCore, HttpMethod, RequestInfo, ResponseHandler} from '@microsoft/kio
|
|||
import {MultiValueLegacyExtendedProperty} from '../../../multiValueLegacyExtendedProperty';
|
||||
|
||||
export class MultiValueLegacyExtendedPropertyRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MultiValueLegacyExtendedProperty | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MultiValueLegacyExtendedProperty>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MultiValueLegacyExtendedProperty>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: MultiValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: MultiValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: MultiValueLegacyExtendedProperty, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -3,7 +3,7 @@ import {MultiValueLegacyExtendedProperty} from '../../multiValueLegacyExtendedPr
|
|||
import {MultiValueExtendedPropertiesResponse} from '../multiValueExtendedPropertiesResponse';
|
||||
|
||||
export class MultiValueExtendedPropertiesRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
search?: string,
|
||||
|
@ -16,8 +16,8 @@ export class MultiValueExtendedPropertiesRequestBuilder {
|
|||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MultiValueExtendedPropertiesResponse>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MultiValueExtendedPropertiesResponse>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
|
@ -29,28 +29,28 @@ export class MultiValueExtendedPropertiesRequestBuilder {
|
|||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly post = async (body: MultiValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MultiValueLegacyExtendedProperty | undefined> => {
|
||||
};
|
||||
public readonly post = (body: MultiValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MultiValueLegacyExtendedProperty | undefined> => {
|
||||
const requestInfo = this.createPostRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<MultiValueLegacyExtendedProperty>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<MultiValueLegacyExtendedProperty>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPostRequestInfo = (body: MultiValueLegacyExtendedProperty, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.POST,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/multiValueExtendedProperties";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -2,56 +2,56 @@ import {HttpCore, HttpMethod, RequestInfo, ResponseHandler} from '@microsoft/kio
|
|||
import {SingleValueLegacyExtendedProperty} from '../../../singleValueLegacyExtendedProperty';
|
||||
|
||||
export class SingleValueLegacyExtendedPropertyRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<SingleValueLegacyExtendedProperty | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<SingleValueLegacyExtendedProperty>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<SingleValueLegacyExtendedProperty>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: SingleValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: SingleValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: SingleValueLegacyExtendedProperty, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -3,7 +3,7 @@ import {SingleValueLegacyExtendedProperty} from '../../singleValueLegacyExtended
|
|||
import {SingleValueExtendedPropertiesResponse} from '../singleValueExtendedPropertiesResponse';
|
||||
|
||||
export class SingleValueExtendedPropertiesRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
search?: string,
|
||||
|
@ -16,8 +16,8 @@ export class SingleValueExtendedPropertiesRequestBuilder {
|
|||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<SingleValueExtendedPropertiesResponse>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<SingleValueExtendedPropertiesResponse>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
|
@ -29,28 +29,28 @@ export class SingleValueExtendedPropertiesRequestBuilder {
|
|||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly post = async (body: SingleValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<SingleValueLegacyExtendedProperty | undefined> => {
|
||||
};
|
||||
public readonly post = (body: SingleValueLegacyExtendedProperty, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<SingleValueLegacyExtendedProperty | undefined> => {
|
||||
const requestInfo = this.createPostRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<SingleValueLegacyExtendedProperty>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<SingleValueLegacyExtendedProperty>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPostRequestInfo = (body: SingleValueLegacyExtendedProperty, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.POST,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/singleValueExtendedProperties";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -3,7 +3,7 @@ import {Attachment} from '../../attachment';
|
|||
import {AttachmentsResponse} from '../attachmentsResponse';
|
||||
|
||||
export class AttachmentsRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
search?: string,
|
||||
|
@ -16,8 +16,8 @@ export class AttachmentsRequestBuilder {
|
|||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<AttachmentsResponse>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<AttachmentsResponse>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
top?: number,
|
||||
skip?: number,
|
||||
|
@ -29,28 +29,28 @@ export class AttachmentsRequestBuilder {
|
|||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly post = async (body: Attachment, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Attachment | undefined> => {
|
||||
};
|
||||
public readonly post = (body: Attachment, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Attachment | undefined> => {
|
||||
const requestInfo = this.createPostRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<Attachment>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<Attachment>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPostRequestInfo = (body: Attachment, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.POST,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "/attachments";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
|
@ -2,56 +2,56 @@ import {HttpCore, HttpMethod, RequestInfo, ResponseHandler} from '@microsoft/kio
|
|||
import {Attachment} from '../../../attachment';
|
||||
|
||||
export class AttachmentRequestBuilder {
|
||||
public readonly get = async (q?: {
|
||||
public readonly get = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Attachment | undefined> => {
|
||||
const requestInfo = this.createGetRequestInfo(
|
||||
q, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<Attachment>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<Attachment>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createGetRequestInfo = (q?: {
|
||||
select?: string[],
|
||||
expand?: string[]
|
||||
} | undefined, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.GET,
|
||||
queryParameters: q,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly patch = async (body: Attachment, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly patch = (body: Attachment, h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createPatchRequestInfo(
|
||||
body, h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createPatchRequestInfo = (body: Attachment, h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.PATCH,
|
||||
content: body as unknown,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
public readonly delete = async (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
};
|
||||
public readonly delete = (h?: {} | undefined, responseHandler?: ResponseHandler | undefined) : Promise<object | undefined> => {
|
||||
const requestInfo = this.createDeleteRequestInfo(
|
||||
h
|
||||
);
|
||||
return await this.httpCore?.sendAsync<object>(requestInfo, responseHandler);
|
||||
}
|
||||
return this.httpCore?.sendAsync<object>(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null'));
|
||||
};
|
||||
public readonly createDeleteRequestInfo = (h?: {} | undefined) : RequestInfo => {
|
||||
const requestInfo = {
|
||||
URI: this.currentPath ? new URL(this.currentPath): null,
|
||||
URI: (this.currentPath ?? '') + this.pathSegment,
|
||||
headers: h,
|
||||
httpMethod: HttpMethod.DELETE,
|
||||
} as RequestInfo;
|
||||
return requestInfo;
|
||||
}
|
||||
};
|
||||
private readonly pathSegment: string = "";
|
||||
public currentPath?: string | undefined;
|
||||
public httpCore?: HttpCore | undefined;
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче