Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IRecombeeClient
/// Authorize using bearer authentication.
/// </summary>
/// <param name="apiKey"></param>

public void AuthorizeUsingBearer(
string apiKey);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Recombee
{
public partial class ItemPropertiesClient
{


private static readonly global::Recombee.EndPointSecurityRequirement s_CreateByDatabaseIdItemsByItemIdSecurityRequirement0 =
new global::Recombee.EndPointSecurityRequirement
{
Authorizations = new global::Recombee.EndPointAuthorizationRequirement[]
{ new global::Recombee.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Recombee.EndPointSecurityRequirement[] s_CreateByDatabaseIdItemsByItemIdSecurityRequirements =
new global::Recombee.EndPointSecurityRequirement[]
{ s_CreateByDatabaseIdItemsByItemIdSecurityRequirement0,
};
partial void PrepareCreateByDatabaseIdItemsByItemIdArguments(
global::System.Net.Http.HttpClient httpClient,
ref string databaseId,
Expand Down Expand Up @@ -51,12 +70,18 @@ partial void ProcessCreateByDatabaseIdItemsByItemIdResponse(
cascadeCreate: ref cascadeCreate,
request: request);


var __authorizations = global::Recombee.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_CreateByDatabaseIdItemsByItemIdSecurityRequirements,
operationName: "CreateByDatabaseIdItemsByItemIdAsync");

var __pathBuilder = new global::Recombee.PathBuilder(
path: $"/{databaseId}/items/{itemId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("cascadeCreate", cascadeCreate?.ToString().ToLowerInvariant())
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -66,7 +91,7 @@ partial void ProcessCreateByDatabaseIdItemsByItemIdResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Recombee
{
public partial class ItemPropertiesClient
{


private static readonly global::Recombee.EndPointSecurityRequirement s_CreateByDatabaseIdMoreItemsSecurityRequirement0 =
new global::Recombee.EndPointSecurityRequirement
{
Authorizations = new global::Recombee.EndPointAuthorizationRequirement[]
{ new global::Recombee.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Recombee.EndPointSecurityRequirement[] s_CreateByDatabaseIdMoreItemsSecurityRequirements =
new global::Recombee.EndPointSecurityRequirement[]
{ s_CreateByDatabaseIdMoreItemsSecurityRequirement0,
};
partial void PrepareCreateByDatabaseIdMoreItemsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string databaseId,
Expand Down Expand Up @@ -53,9 +72,15 @@ partial void ProcessCreateByDatabaseIdMoreItemsResponseContent(
databaseId: ref databaseId,
request: request);


var __authorizations = global::Recombee.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_CreateByDatabaseIdMoreItemsSecurityRequirements,
operationName: "CreateByDatabaseIdMoreItemsAsync");

var __pathBuilder = new global::Recombee.PathBuilder(
path: $"/{databaseId}/more-items/",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -65,7 +90,7 @@ partial void ProcessCreateByDatabaseIdMoreItemsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Recombee
{
public partial class ItemPropertiesClient
{


private static readonly global::Recombee.EndPointSecurityRequirement s_DeleteByDatabaseIdItemsPropertiesByPropertyNameSecurityRequirement0 =
new global::Recombee.EndPointSecurityRequirement
{
Authorizations = new global::Recombee.EndPointAuthorizationRequirement[]
{ new global::Recombee.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Recombee.EndPointSecurityRequirement[] s_DeleteByDatabaseIdItemsPropertiesByPropertyNameSecurityRequirements =
new global::Recombee.EndPointSecurityRequirement[]
{ s_DeleteByDatabaseIdItemsPropertiesByPropertyNameSecurityRequirement0,
};
partial void PrepareDeleteByDatabaseIdItemsPropertiesByPropertyNameArguments(
global::System.Net.Http.HttpClient httpClient,
ref string databaseId,
Expand Down Expand Up @@ -38,9 +57,15 @@ partial void ProcessDeleteByDatabaseIdItemsPropertiesByPropertyNameResponse(
databaseId: ref databaseId,
propertyName: ref propertyName);


var __authorizations = global::Recombee.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_DeleteByDatabaseIdItemsPropertiesByPropertyNameSecurityRequirements,
operationName: "DeleteByDatabaseIdItemsPropertiesByPropertyNameAsync");

var __pathBuilder = new global::Recombee.PathBuilder(
path: $"/{databaseId}/items/properties/{propertyName}",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
Expand All @@ -50,7 +75,7 @@ partial void ProcessDeleteByDatabaseIdItemsPropertiesByPropertyNameResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Recombee
{
public partial class ItemPropertiesClient
{


private static readonly global::Recombee.EndPointSecurityRequirement s_GetByDatabaseIdItemsByItemIdSecurityRequirement0 =
new global::Recombee.EndPointSecurityRequirement
{
Authorizations = new global::Recombee.EndPointAuthorizationRequirement[]
{ new global::Recombee.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Recombee.EndPointSecurityRequirement[] s_GetByDatabaseIdItemsByItemIdSecurityRequirements =
new global::Recombee.EndPointSecurityRequirement[]
{ s_GetByDatabaseIdItemsByItemIdSecurityRequirement0,
};
partial void PrepareGetByDatabaseIdItemsByItemIdArguments(
global::System.Net.Http.HttpClient httpClient,
ref string databaseId,
Expand Down Expand Up @@ -43,9 +62,15 @@ partial void ProcessGetByDatabaseIdItemsByItemIdResponseContent(
databaseId: ref databaseId,
itemId: ref itemId);


var __authorizations = global::Recombee.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetByDatabaseIdItemsByItemIdSecurityRequirements,
operationName: "GetByDatabaseIdItemsByItemIdAsync");

var __pathBuilder = new global::Recombee.PathBuilder(
path: $"/{databaseId}/items/{itemId}",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -55,7 +80,7 @@ partial void ProcessGetByDatabaseIdItemsByItemIdResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Recombee
{
public partial class ItemPropertiesClient
{


private static readonly global::Recombee.EndPointSecurityRequirement s_GetByDatabaseIdItemsPropertiesByPropertyNameSecurityRequirement0 =
new global::Recombee.EndPointSecurityRequirement
{
Authorizations = new global::Recombee.EndPointAuthorizationRequirement[]
{ new global::Recombee.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Recombee.EndPointSecurityRequirement[] s_GetByDatabaseIdItemsPropertiesByPropertyNameSecurityRequirements =
new global::Recombee.EndPointSecurityRequirement[]
{ s_GetByDatabaseIdItemsPropertiesByPropertyNameSecurityRequirement0,
};
partial void PrepareGetByDatabaseIdItemsPropertiesByPropertyNameArguments(
global::System.Net.Http.HttpClient httpClient,
ref string databaseId,
Expand Down Expand Up @@ -43,9 +62,15 @@ partial void ProcessGetByDatabaseIdItemsPropertiesByPropertyNameResponseContent(
databaseId: ref databaseId,
propertyName: ref propertyName);


var __authorizations = global::Recombee.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetByDatabaseIdItemsPropertiesByPropertyNameSecurityRequirements,
operationName: "GetByDatabaseIdItemsPropertiesByPropertyNameAsync");

var __pathBuilder = new global::Recombee.PathBuilder(
path: $"/{databaseId}/items/properties/{propertyName}",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -55,7 +80,7 @@ partial void ProcessGetByDatabaseIdItemsPropertiesByPropertyNameResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Recombee
{
public partial class ItemPropertiesClient
{


private static readonly global::Recombee.EndPointSecurityRequirement s_GetByDatabaseIdItemsPropertiesListSecurityRequirement0 =
new global::Recombee.EndPointSecurityRequirement
{
Authorizations = new global::Recombee.EndPointAuthorizationRequirement[]
{ new global::Recombee.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Recombee.EndPointSecurityRequirement[] s_GetByDatabaseIdItemsPropertiesListSecurityRequirements =
new global::Recombee.EndPointSecurityRequirement[]
{ s_GetByDatabaseIdItemsPropertiesListSecurityRequirement0,
};
partial void PrepareGetByDatabaseIdItemsPropertiesListArguments(
global::System.Net.Http.HttpClient httpClient,
ref string databaseId);
Expand Down Expand Up @@ -38,9 +57,15 @@ partial void ProcessGetByDatabaseIdItemsPropertiesListResponseContent(
httpClient: HttpClient,
databaseId: ref databaseId);


var __authorizations = global::Recombee.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetByDatabaseIdItemsPropertiesListSecurityRequirements,
operationName: "GetByDatabaseIdItemsPropertiesListAsync");

var __pathBuilder = new global::Recombee.PathBuilder(
path: $"/{databaseId}/items/properties/list/",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -50,7 +75,7 @@ partial void ProcessGetByDatabaseIdItemsPropertiesListResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Recombee
{
public partial class ItemPropertiesClient
{


private static readonly global::Recombee.EndPointSecurityRequirement s_PutByDatabaseIdItemsPropertiesByPropertyNameSecurityRequirement0 =
new global::Recombee.EndPointSecurityRequirement
{
Authorizations = new global::Recombee.EndPointAuthorizationRequirement[]
{ new global::Recombee.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Recombee.EndPointSecurityRequirement[] s_PutByDatabaseIdItemsPropertiesByPropertyNameSecurityRequirements =
new global::Recombee.EndPointSecurityRequirement[]
{ s_PutByDatabaseIdItemsPropertiesByPropertyNameSecurityRequirement0,
};
partial void PreparePutByDatabaseIdItemsPropertiesByPropertyNameArguments(
global::System.Net.Http.HttpClient httpClient,
ref string databaseId,
Expand Down Expand Up @@ -43,12 +62,18 @@ partial void ProcessPutByDatabaseIdItemsPropertiesByPropertyNameResponse(
propertyName: ref propertyName,
type: ref type);


var __authorizations = global::Recombee.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_PutByDatabaseIdItemsPropertiesByPropertyNameSecurityRequirements,
operationName: "PutByDatabaseIdItemsPropertiesByPropertyNameAsync");

var __pathBuilder = new global::Recombee.PathBuilder(
path: $"/{databaseId}/items/properties/{propertyName}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("type", type.ToValueString())
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Put,
Expand All @@ -58,7 +83,7 @@ partial void ProcessPutByDatabaseIdItemsPropertiesByPropertyNameResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed partial class ItemPropertiesClient : global::Recombee.IItemPropert
/// <summary>
/// Recombee API (default region)
/// </summary>
public const string DefaultBaseUrl = "https://rapi.recombee.com";
public const string DefaultBaseUrl = "https://rapi.recombee.com/";

private bool _disposeHttpClient = true;

Expand Down
Loading