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
29 changes: 27 additions & 2 deletions src/libs/GroundX/Generated/GroundX.BucketsClient.BucketCreate.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace GroundX
{
public partial class BucketsClient
{


private static readonly global::GroundX.EndPointSecurityRequirement s_BucketCreateSecurityRequirement0 =
new global::GroundX.EndPointSecurityRequirement
{
Authorizations = new global::GroundX.EndPointAuthorizationRequirement[]
{ new global::GroundX.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::GroundX.EndPointSecurityRequirement[] s_BucketCreateSecurityRequirements =
new global::GroundX.EndPointSecurityRequirement[]
{ s_BucketCreateSecurityRequirement0,
};
partial void PrepareBucketCreateArguments(
global::System.Net.Http.HttpClient httpClient,
global::GroundX.BucketCreateRequest request);
Expand Down Expand Up @@ -42,9 +61,15 @@ partial void ProcessBucketCreateResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::GroundX.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_BucketCreateSecurityRequirements,
operationName: "BucketCreateAsync");

var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/bucket",
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 @@ -54,7 +79,7 @@ partial void ProcessBucketCreateResponseContent(
__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
29 changes: 27 additions & 2 deletions src/libs/GroundX/Generated/GroundX.BucketsClient.BucketDelete.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace GroundX
{
public partial class BucketsClient
{


private static readonly global::GroundX.EndPointSecurityRequirement s_BucketDeleteSecurityRequirement0 =
new global::GroundX.EndPointSecurityRequirement
{
Authorizations = new global::GroundX.EndPointAuthorizationRequirement[]
{ new global::GroundX.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::GroundX.EndPointSecurityRequirement[] s_BucketDeleteSecurityRequirements =
new global::GroundX.EndPointSecurityRequirement[]
{ s_BucketDeleteSecurityRequirement0,
};
partial void PrepareBucketDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
ref int bucketId);
Expand Down Expand Up @@ -39,9 +58,15 @@ partial void ProcessBucketDeleteResponseContent(
httpClient: HttpClient,
bucketId: ref bucketId);


var __authorizations = global::GroundX.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_BucketDeleteSecurityRequirements,
operationName: "BucketDeleteAsync");

var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/bucket/{bucketId}",
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 @@ -51,7 +76,7 @@ partial void ProcessBucketDeleteResponseContent(
__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
29 changes: 27 additions & 2 deletions src/libs/GroundX/Generated/GroundX.BucketsClient.BucketGet.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace GroundX
{
public partial class BucketsClient
{


private static readonly global::GroundX.EndPointSecurityRequirement s_BucketGetSecurityRequirement0 =
new global::GroundX.EndPointSecurityRequirement
{
Authorizations = new global::GroundX.EndPointAuthorizationRequirement[]
{ new global::GroundX.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::GroundX.EndPointSecurityRequirement[] s_BucketGetSecurityRequirements =
new global::GroundX.EndPointSecurityRequirement[]
{ s_BucketGetSecurityRequirement0,
};
partial void PrepareBucketGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref int bucketId);
Expand Down Expand Up @@ -39,9 +58,15 @@ partial void ProcessBucketGetResponseContent(
httpClient: HttpClient,
bucketId: ref bucketId);


var __authorizations = global::GroundX.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_BucketGetSecurityRequirements,
operationName: "BucketGetAsync");

var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/bucket/{bucketId}",
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 @@ -51,7 +76,7 @@ partial void ProcessBucketGetResponseContent(
__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
29 changes: 27 additions & 2 deletions src/libs/GroundX/Generated/GroundX.BucketsClient.BucketList.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace GroundX
{
public partial class BucketsClient
{


private static readonly global::GroundX.EndPointSecurityRequirement s_BucketListSecurityRequirement0 =
new global::GroundX.EndPointSecurityRequirement
{
Authorizations = new global::GroundX.EndPointAuthorizationRequirement[]
{ new global::GroundX.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::GroundX.EndPointSecurityRequirement[] s_BucketListSecurityRequirements =
new global::GroundX.EndPointSecurityRequirement[]
{ s_BucketListSecurityRequirement0,
};
partial void PrepareBucketListArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? n,
Expand Down Expand Up @@ -44,13 +63,19 @@ partial void ProcessBucketListResponseContent(
n: ref n,
nextToken: ref nextToken);


var __authorizations = global::GroundX.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_BucketListSecurityRequirements,
operationName: "BucketListAsync");

var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/bucket",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("n", n?.ToString())
.AddOptionalParameter("nextToken", nextToken)
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -60,7 +85,7 @@ partial void ProcessBucketListResponseContent(
__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
29 changes: 27 additions & 2 deletions src/libs/GroundX/Generated/GroundX.BucketsClient.BucketUpdate.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace GroundX
{
public partial class BucketsClient
{


private static readonly global::GroundX.EndPointSecurityRequirement s_BucketUpdateSecurityRequirement0 =
new global::GroundX.EndPointSecurityRequirement
{
Authorizations = new global::GroundX.EndPointAuthorizationRequirement[]
{ new global::GroundX.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::GroundX.EndPointSecurityRequirement[] s_BucketUpdateSecurityRequirements =
new global::GroundX.EndPointSecurityRequirement[]
{ s_BucketUpdateSecurityRequirement0,
};
partial void PrepareBucketUpdateArguments(
global::System.Net.Http.HttpClient httpClient,
ref int bucketId,
Expand Down Expand Up @@ -47,9 +66,15 @@ partial void ProcessBucketUpdateResponseContent(
bucketId: ref bucketId,
request: request);


var __authorizations = global::GroundX.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_BucketUpdateSecurityRequirements,
operationName: "BucketUpdateAsync");

var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/bucket/{bucketId}",
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.Put,
Expand All @@ -59,7 +84,7 @@ partial void ProcessBucketUpdateResponseContent(
__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
29 changes: 27 additions & 2 deletions src/libs/GroundX/Generated/GroundX.CustomerClient.CustomerGet.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace GroundX
{
public partial class CustomerClient
{


private static readonly global::GroundX.EndPointSecurityRequirement s_CustomerGetSecurityRequirement0 =
new global::GroundX.EndPointSecurityRequirement
{
Authorizations = new global::GroundX.EndPointAuthorizationRequirement[]
{ new global::GroundX.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::GroundX.EndPointSecurityRequirement[] s_CustomerGetSecurityRequirements =
new global::GroundX.EndPointSecurityRequirement[]
{ s_CustomerGetSecurityRequirement0,
};
partial void PrepareCustomerGetArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareCustomerGetRequest(
Expand Down Expand Up @@ -33,9 +52,15 @@ partial void ProcessCustomerGetResponseContent(
PrepareCustomerGetArguments(
httpClient: HttpClient);


var __authorizations = global::GroundX.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_CustomerGetSecurityRequirements,
operationName: "CustomerGetAsync");

var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/customer",
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 @@ -45,7 +70,7 @@ partial void ProcessCustomerGetResponseContent(
__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 GroundX
{
public partial class DocumentsClient
{


private static readonly global::GroundX.EndPointSecurityRequirement s_DocumentCrawlWebsiteSecurityRequirement0 =
new global::GroundX.EndPointSecurityRequirement
{
Authorizations = new global::GroundX.EndPointAuthorizationRequirement[]
{ new global::GroundX.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::GroundX.EndPointSecurityRequirement[] s_DocumentCrawlWebsiteSecurityRequirements =
new global::GroundX.EndPointSecurityRequirement[]
{ s_DocumentCrawlWebsiteSecurityRequirement0,
};
partial void PrepareDocumentCrawlWebsiteArguments(
global::System.Net.Http.HttpClient httpClient,
global::GroundX.WebsiteCrawlRequest request);
Expand Down Expand Up @@ -42,9 +61,15 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::GroundX.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_DocumentCrawlWebsiteSecurityRequirements,
operationName: "DocumentCrawlWebsiteAsync");

var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/ingest/documents/website",
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 @@ -54,7 +79,7 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
__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
Loading