diff --git a/src/cli/Apify.CLI/Commands/ActorsActorPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorPutCommandApiCommand.g.cs index 8ab78990..01c91736 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorPutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorPutCommandApiCommand.g.cs @@ -32,7 +32,8 @@ internal static partial class ActorsActorPutCommandApiCommand private static Option ActorPermissionLevel { get; } = new( name: @"--actor-permission-level") { - Description = @"", + Description = @"Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions). +", }; private static Option SeoTitle { get; } = new( @@ -53,7 +54,7 @@ internal static partial class ActorsActorPutCommandApiCommand Description = @"Human-readable name of the Actor, displayed in Apify Store and Console. Can contain spaces and capital letters. Recommended length is 40-50 characters. You can change this title without affecting the Actor's URL or SEO.", }; - private static Option?> Versions { get; } = new( + private static Option?> Versions { get; } = new( name: @"--versions") { Description = @"An array of `Version` objects. Each object represents a specific version of the Actor's source code: its location, builds, and environment configuration.", diff --git a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarPostCommandApiCommand.g.cs index 21c01cde..157ac9e8 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarPostCommandApiCommand.g.cs @@ -24,6 +24,7 @@ internal static partial class ActorsActorVersionsActorVersionEnvVarPostCommandAp { Description = @"The name of the environment variable", }; + private static readonly EnvVarRequestOptionSet EnvVarRequestOptionSetOptions = EnvVarRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -73,7 +74,9 @@ passed as JSON in the POST payload. "); command.Arguments.Add(ActorId); command.Arguments.Add(VersionNumber); - command.Arguments.Add(EnvVarName); + command.Arguments.Add(EnvVarName); command.Options.Add(EnvVarRequestOptionSetOptions.NameOption); + command.Options.Add(EnvVarRequestOptionSetOptions.Value); + command.Options.Add(EnvVarRequestOptionSetOptions.IsSecret); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -83,25 +86,27 @@ passed as JSON in the POST payload. var hasRequestJson = result.GetResult(RequestJson) is not null; var hasRequestFile = result.GetResult(RequestFile) is not null; var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); - if (specifiedCount != 1) + if (specifiedCount > 1) { - result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var actorId = parseResult.GetRequiredValue(ActorId); - var versionNumber = parseResult.GetRequiredValue(VersionNumber); - var envVarName = parseResult.GetRequiredValue(EnvVarName); - var request = await CliRuntime.ReadRequestAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, RequestFile, global::Apify.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); + var actorId = parseResult.GetRequiredValue(ActorId); + var versionNumber = parseResult.GetRequiredValue(VersionNumber); + var envVarName = parseResult.GetRequiredValue(EnvVarName); var name = parseResult.GetRequiredValue(EnvVarRequestOptionSetOptions.NameOption); + var value = parseResult.GetRequiredValue(EnvVarRequestOptionSetOptions.Value); + var isSecret = CliRuntime.WasSpecified(parseResult, EnvVarRequestOptionSetOptions.IsSecret) ? parseResult.GetValue(EnvVarRequestOptionSetOptions.IsSecret) : (__requestBase is { } __IsSecretBaseValue ? __IsSecretBaseValue.IsSecret : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); @@ -109,7 +114,9 @@ await CliRuntime.RunAsync(async () => actorId: actorId, versionNumber: versionNumber, envVarName: envVarName, - request: request, + name: name, + value: value, + isSecret: isSecret, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarPutCommandApiCommand.g.cs index 22d26a82..0a696b6b 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarPutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarPutCommandApiCommand.g.cs @@ -24,6 +24,7 @@ internal static partial class ActorsActorVersionsActorVersionEnvVarPutCommandApi { Description = @"The name of the environment variable", }; + private static readonly EnvVarRequestOptionSet EnvVarRequestOptionSetOptions = EnvVarRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -85,7 +86,9 @@ [Get environment variable](#/reference/actors/environment-variable-object/get-en "); command.Arguments.Add(ActorId); command.Arguments.Add(VersionNumber); - command.Arguments.Add(EnvVarName); + command.Arguments.Add(EnvVarName); command.Options.Add(EnvVarRequestOptionSetOptions.NameOption); + command.Options.Add(EnvVarRequestOptionSetOptions.Value); + command.Options.Add(EnvVarRequestOptionSetOptions.IsSecret); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -95,25 +98,27 @@ [Get environment variable](#/reference/actors/environment-variable-object/get-en var hasRequestJson = result.GetResult(RequestJson) is not null; var hasRequestFile = result.GetResult(RequestFile) is not null; var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); - if (specifiedCount != 1) + if (specifiedCount > 1) { - result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var actorId = parseResult.GetRequiredValue(ActorId); - var versionNumber = parseResult.GetRequiredValue(VersionNumber); - var envVarName = parseResult.GetRequiredValue(EnvVarName); - var request = await CliRuntime.ReadRequestAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, RequestFile, global::Apify.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); + var actorId = parseResult.GetRequiredValue(ActorId); + var versionNumber = parseResult.GetRequiredValue(VersionNumber); + var envVarName = parseResult.GetRequiredValue(EnvVarName); var name = parseResult.GetRequiredValue(EnvVarRequestOptionSetOptions.NameOption); + var value = parseResult.GetRequiredValue(EnvVarRequestOptionSetOptions.Value); + var isSecret = CliRuntime.WasSpecified(parseResult, EnvVarRequestOptionSetOptions.IsSecret) ? parseResult.GetValue(EnvVarRequestOptionSetOptions.IsSecret) : (__requestBase is { } __IsSecretBaseValue ? __IsSecretBaseValue.IsSecret : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); @@ -121,7 +126,9 @@ await CliRuntime.RunAsync(async () => actorId: actorId, versionNumber: versionNumber, envVarName: envVarName, - request: request, + name: name, + value: value, + isSecret: isSecret, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarsPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarsPostCommandApiCommand.g.cs index 8de277d5..bd976311 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarsPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarsPostCommandApiCommand.g.cs @@ -18,6 +18,7 @@ internal static partial class ActorsActorVersionsActorVersionEnvVarsPostCommandA { Description = @"Actor version.", }; + private static readonly EnvVarRequestOptionSet EnvVarRequestOptionSetOptions = EnvVarRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -80,7 +81,9 @@ The response is the [EnvVar endpoint. "); command.Arguments.Add(ActorId); - command.Arguments.Add(VersionNumber); + command.Arguments.Add(VersionNumber); command.Options.Add(EnvVarRequestOptionSetOptions.NameOption); + command.Options.Add(EnvVarRequestOptionSetOptions.Value); + command.Options.Add(EnvVarRequestOptionSetOptions.IsSecret); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -90,31 +93,35 @@ The response is the [EnvVar var hasRequestJson = result.GetResult(RequestJson) is not null; var hasRequestFile = result.GetResult(RequestFile) is not null; var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); - if (specifiedCount != 1) + if (specifiedCount > 1) { - result.AddError(@"Specify exactly one of --input, --request-json, or --request-file."); + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var actorId = parseResult.GetRequiredValue(ActorId); - var versionNumber = parseResult.GetRequiredValue(VersionNumber); - var request = await CliRuntime.ReadRequestAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, RequestFile, global::Apify.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); + var actorId = parseResult.GetRequiredValue(ActorId); + var versionNumber = parseResult.GetRequiredValue(VersionNumber); var name = parseResult.GetRequiredValue(EnvVarRequestOptionSetOptions.NameOption); + var value = parseResult.GetRequiredValue(EnvVarRequestOptionSetOptions.Value); + var isSecret = CliRuntime.WasSpecified(parseResult, EnvVarRequestOptionSetOptions.IsSecret) ? parseResult.GetValue(EnvVarRequestOptionSetOptions.IsSecret) : (__requestBase is { } __IsSecretBaseValue ? __IsSecretBaseValue.IsSecret : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); var response = await client.ActorsActorVersions.ActorVersionEnvVarsPostAsync( actorId: actorId, versionNumber: versionNumber, - request: request, + name: name, + value: value, + isSecret: isSecret, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionPostCommandApiCommand.g.cs index 36edf9f4..16fbb25e 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionPostCommandApiCommand.g.cs @@ -19,13 +19,7 @@ internal static partial class ActorsActorVersionsActorVersionPostCommandApiComma Description = @"Actor version.", }; - private static Option SourceType { get; } = new( - name: @"--source-type") - { - Description = @"Where the source code of the version lives.", - }; - - private static Option?> EnvVars { get; } = new( + private static Option?> EnvVars { get; } = new( name: @"--env-vars") { Description = @"Environment variables for the version.", @@ -36,7 +30,7 @@ internal static partial class ActorsActorVersionsActorVersionPostCommandApiComma { Description = @"Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders.", }; - private static readonly CreateOrUpdateVersionRequestOptionSet CreateOrUpdateVersionRequestOptionSetOptions = CreateOrUpdateVersionRequestOptionSet.Create(); + private static readonly UpdateVersionRequestOptionSet UpdateVersionRequestOptionSetOptions = UpdateVersionRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -84,14 +78,14 @@ public static Command Create(string? commandName = null) "); command.Arguments.Add(ActorId); command.Arguments.Add(VersionNumber); - command.Options.Add(SourceType); command.Options.Add(EnvVars); - command.Options.Add(SourceFiles); command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.VersionNumber); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.BuildTag); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.GitRepoUrl); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.TarballUrl); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.GitHubGistUrl); + command.Options.Add(SourceFiles); command.Options.Add(UpdateVersionRequestOptionSetOptions.VersionNumber); + command.Options.Add(UpdateVersionRequestOptionSetOptions.SourceType); + command.Options.Add(UpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild); + command.Options.Add(UpdateVersionRequestOptionSetOptions.BuildTag); + command.Options.Add(UpdateVersionRequestOptionSetOptions.GitRepoUrl); + command.Options.Add(UpdateVersionRequestOptionSetOptions.TarballUrl); + command.Options.Add(UpdateVersionRequestOptionSetOptions.GitHubGistUrl); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -110,7 +104,7 @@ public static Command Create(string? commandName = null) command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, @@ -119,24 +113,24 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var actorId = parseResult.GetRequiredValue(ActorId); var versionNumber = parseResult.GetRequiredValue(VersionNumber); - var sourceType = CliRuntime.WasSpecified(parseResult, SourceType) ? parseResult.GetValue(SourceType) : (__requestBase is { } __SourceTypeBaseValue ? __SourceTypeBaseValue.SourceType : default); var envVars = CliRuntime.WasSpecified(parseResult, EnvVars) ? parseResult.GetValue(EnvVars) : (__requestBase is { } __EnvVarsBaseValue ? __EnvVarsBaseValue.EnvVars : default); - var sourceFiles = CliRuntime.WasSpecified(parseResult, SourceFiles) ? parseResult.GetValue(SourceFiles) : (__requestBase is { } __SourceFilesBaseValue ? __SourceFilesBaseValue.SourceFiles : default); var requestVersionNumber = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.VersionNumber) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.VersionNumber) : (__requestBase is { } __RequestVersionNumberBaseValue ? __RequestVersionNumberBaseValue.VersionNumber : default); - var applyEnvVarsToBuild = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild) : (__requestBase is { } __ApplyEnvVarsToBuildBaseValue ? __ApplyEnvVarsToBuildBaseValue.ApplyEnvVarsToBuild : default); - var buildTag = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.BuildTag) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.BuildTag) : (__requestBase is { } __BuildTagBaseValue ? __BuildTagBaseValue.BuildTag : default); - var gitRepoUrl = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.GitRepoUrl) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.GitRepoUrl) : (__requestBase is { } __GitRepoUrlBaseValue ? __GitRepoUrlBaseValue.GitRepoUrl : default); - var tarballUrl = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.TarballUrl) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.TarballUrl) : (__requestBase is { } __TarballUrlBaseValue ? __TarballUrlBaseValue.TarballUrl : default); - var gitHubGistUrl = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.GitHubGistUrl) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.GitHubGistUrl) : (__requestBase is { } __GitHubGistUrlBaseValue ? __GitHubGistUrlBaseValue.GitHubGistUrl : default); + var sourceFiles = CliRuntime.WasSpecified(parseResult, SourceFiles) ? parseResult.GetValue(SourceFiles) : (__requestBase is { } __SourceFilesBaseValue ? __SourceFilesBaseValue.SourceFiles : default); var requestVersionNumber = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.VersionNumber) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.VersionNumber) : (__requestBase is { } __RequestVersionNumberBaseValue ? __RequestVersionNumberBaseValue.VersionNumber : default); + var sourceType = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.SourceType) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.SourceType) : (__requestBase is { } __SourceTypeBaseValue ? __SourceTypeBaseValue.SourceType : default); + var applyEnvVarsToBuild = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild) : (__requestBase is { } __ApplyEnvVarsToBuildBaseValue ? __ApplyEnvVarsToBuildBaseValue.ApplyEnvVarsToBuild : default); + var buildTag = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.BuildTag) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.BuildTag) : (__requestBase is { } __BuildTagBaseValue ? __BuildTagBaseValue.BuildTag : default); + var gitRepoUrl = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.GitRepoUrl) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.GitRepoUrl) : (__requestBase is { } __GitRepoUrlBaseValue ? __GitRepoUrlBaseValue.GitRepoUrl : default); + var tarballUrl = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.TarballUrl) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.TarballUrl) : (__requestBase is { } __TarballUrlBaseValue ? __TarballUrlBaseValue.TarballUrl : default); + var gitHubGistUrl = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.GitHubGistUrl) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.GitHubGistUrl) : (__requestBase is { } __GitHubGistUrlBaseValue ? __GitHubGistUrlBaseValue.GitHubGistUrl : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); var response = await client.ActorsActorVersions.ActorVersionPostAsync( actorId: actorId, versionNumber: versionNumber, - sourceType: sourceType, envVars: envVars, sourceFiles: sourceFiles, requestVersionNumber: requestVersionNumber, + sourceType: sourceType, applyEnvVarsToBuild: applyEnvVarsToBuild, buildTag: buildTag, gitRepoUrl: gitRepoUrl, diff --git a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionPutCommandApiCommand.g.cs index 80ef07de..8b3b8e65 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionPutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionPutCommandApiCommand.g.cs @@ -19,13 +19,7 @@ internal static partial class ActorsActorVersionsActorVersionPutCommandApiComman Description = @"Actor version.", }; - private static Option SourceType { get; } = new( - name: @"--source-type") - { - Description = @"Where the source code of the version lives.", - }; - - private static Option?> EnvVars { get; } = new( + private static Option?> EnvVars { get; } = new( name: @"--env-vars") { Description = @"Environment variables for the version.", @@ -36,7 +30,7 @@ internal static partial class ActorsActorVersionsActorVersionPutCommandApiComman { Description = @"Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders.", }; - private static readonly CreateOrUpdateVersionRequestOptionSet CreateOrUpdateVersionRequestOptionSetOptions = CreateOrUpdateVersionRequestOptionSet.Create(); + private static readonly UpdateVersionRequestOptionSet UpdateVersionRequestOptionSetOptions = UpdateVersionRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -96,14 +90,14 @@ returned by the [Get version](#/reference/actors/version-object/get-version) end "); command.Arguments.Add(ActorId); command.Arguments.Add(VersionNumber); - command.Options.Add(SourceType); command.Options.Add(EnvVars); - command.Options.Add(SourceFiles); command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.VersionNumber); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.BuildTag); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.GitRepoUrl); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.TarballUrl); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.GitHubGistUrl); + command.Options.Add(SourceFiles); command.Options.Add(UpdateVersionRequestOptionSetOptions.VersionNumber); + command.Options.Add(UpdateVersionRequestOptionSetOptions.SourceType); + command.Options.Add(UpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild); + command.Options.Add(UpdateVersionRequestOptionSetOptions.BuildTag); + command.Options.Add(UpdateVersionRequestOptionSetOptions.GitRepoUrl); + command.Options.Add(UpdateVersionRequestOptionSetOptions.TarballUrl); + command.Options.Add(UpdateVersionRequestOptionSetOptions.GitHubGistUrl); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -122,7 +116,7 @@ returned by the [Get version](#/reference/actors/version-object/get-version) end command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, @@ -131,24 +125,24 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var actorId = parseResult.GetRequiredValue(ActorId); var versionNumber = parseResult.GetRequiredValue(VersionNumber); - var sourceType = CliRuntime.WasSpecified(parseResult, SourceType) ? parseResult.GetValue(SourceType) : (__requestBase is { } __SourceTypeBaseValue ? __SourceTypeBaseValue.SourceType : default); var envVars = CliRuntime.WasSpecified(parseResult, EnvVars) ? parseResult.GetValue(EnvVars) : (__requestBase is { } __EnvVarsBaseValue ? __EnvVarsBaseValue.EnvVars : default); - var sourceFiles = CliRuntime.WasSpecified(parseResult, SourceFiles) ? parseResult.GetValue(SourceFiles) : (__requestBase is { } __SourceFilesBaseValue ? __SourceFilesBaseValue.SourceFiles : default); var requestVersionNumber = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.VersionNumber) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.VersionNumber) : (__requestBase is { } __RequestVersionNumberBaseValue ? __RequestVersionNumberBaseValue.VersionNumber : default); - var applyEnvVarsToBuild = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild) : (__requestBase is { } __ApplyEnvVarsToBuildBaseValue ? __ApplyEnvVarsToBuildBaseValue.ApplyEnvVarsToBuild : default); - var buildTag = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.BuildTag) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.BuildTag) : (__requestBase is { } __BuildTagBaseValue ? __BuildTagBaseValue.BuildTag : default); - var gitRepoUrl = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.GitRepoUrl) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.GitRepoUrl) : (__requestBase is { } __GitRepoUrlBaseValue ? __GitRepoUrlBaseValue.GitRepoUrl : default); - var tarballUrl = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.TarballUrl) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.TarballUrl) : (__requestBase is { } __TarballUrlBaseValue ? __TarballUrlBaseValue.TarballUrl : default); - var gitHubGistUrl = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.GitHubGistUrl) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.GitHubGistUrl) : (__requestBase is { } __GitHubGistUrlBaseValue ? __GitHubGistUrlBaseValue.GitHubGistUrl : default); + var sourceFiles = CliRuntime.WasSpecified(parseResult, SourceFiles) ? parseResult.GetValue(SourceFiles) : (__requestBase is { } __SourceFilesBaseValue ? __SourceFilesBaseValue.SourceFiles : default); var requestVersionNumber = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.VersionNumber) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.VersionNumber) : (__requestBase is { } __RequestVersionNumberBaseValue ? __RequestVersionNumberBaseValue.VersionNumber : default); + var sourceType = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.SourceType) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.SourceType) : (__requestBase is { } __SourceTypeBaseValue ? __SourceTypeBaseValue.SourceType : default); + var applyEnvVarsToBuild = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild) : (__requestBase is { } __ApplyEnvVarsToBuildBaseValue ? __ApplyEnvVarsToBuildBaseValue.ApplyEnvVarsToBuild : default); + var buildTag = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.BuildTag) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.BuildTag) : (__requestBase is { } __BuildTagBaseValue ? __BuildTagBaseValue.BuildTag : default); + var gitRepoUrl = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.GitRepoUrl) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.GitRepoUrl) : (__requestBase is { } __GitRepoUrlBaseValue ? __GitRepoUrlBaseValue.GitRepoUrl : default); + var tarballUrl = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.TarballUrl) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.TarballUrl) : (__requestBase is { } __TarballUrlBaseValue ? __TarballUrlBaseValue.TarballUrl : default); + var gitHubGistUrl = CliRuntime.WasSpecified(parseResult, UpdateVersionRequestOptionSetOptions.GitHubGistUrl) ? parseResult.GetValue(UpdateVersionRequestOptionSetOptions.GitHubGistUrl) : (__requestBase is { } __GitHubGistUrlBaseValue ? __GitHubGistUrlBaseValue.GitHubGistUrl : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); var response = await client.ActorsActorVersions.ActorVersionPutAsync( actorId: actorId, versionNumber: versionNumber, - sourceType: sourceType, envVars: envVars, sourceFiles: sourceFiles, requestVersionNumber: requestVersionNumber, + sourceType: sourceType, applyEnvVarsToBuild: applyEnvVarsToBuild, buildTag: buildTag, gitRepoUrl: gitRepoUrl, diff --git a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionsPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionsPostCommandApiCommand.g.cs index 8e8c1396..64782266 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionsPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionsPostCommandApiCommand.g.cs @@ -13,24 +13,59 @@ internal static partial class ActorsActorVersionsActorVersionsPostCommandApiComm Description = @"Actor ID or the username of the Actor owner and the Actor name, separated by a tilde (`~`).", }; - private static Option SourceType { get; } = new( + private static Option VersionNumber { get; } = new( + name: @"--version-number") + { + Description = @"The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning.", + Required = true, + }; + + private static Option SourceType { get; } = new( name: @"--source-type") { Description = @"Where the source code of the version lives.", + Required = true, }; - private static Option?> EnvVars { get; } = new( + private static Option?> EnvVars { get; } = new( name: @"--env-vars") { Description = @"Environment variables for the version.", }; + private static Option ApplyEnvVarsToBuild { get; } = CliRuntime.CreateNullableBoolOption( + name: @"--apply-env-vars-to-build", + description: @"Whether to inject the environment variables at build time."); + + private static Option BuildTag { get; } = new( + name: @"--build-tag") + { + Description = @"The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag.", + }; + private static Option>?> SourceFiles { get; } = new( name: @"--source-files") { Description = @"Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders.", }; - private static readonly CreateOrUpdateVersionRequestOptionSet CreateOrUpdateVersionRequestOptionSetOptions = CreateOrUpdateVersionRequestOptionSet.Create(); + + private static Option GitRepoUrl { get; } = new( + name: @"--git-repo-url") + { + Description = @"URL of the Git repository to clone the source code from. Applies when the `sourceType` is `GIT_REPO`.", + }; + + private static Option TarballUrl { get; } = new( + name: @"--tarball-url") + { + Description = @"URL of the tarball to download the source code from. Applies when the `sourceType` is `TARBALL`.", + }; + + private static Option GitHubGistUrl { get; } = new( + name: @"--git-hub-gist-url") + { + Description = @"URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`.", + }; private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -104,14 +139,15 @@ The response is the [Version object](#/reference/actors/version-object) as returned by the [Get version](#/reference/actors/version-object/get-version) endpoint. "); command.Arguments.Add(ActorId); + command.Options.Add(VersionNumber); command.Options.Add(SourceType); command.Options.Add(EnvVars); - command.Options.Add(SourceFiles); command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.VersionNumber); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.BuildTag); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.GitRepoUrl); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.TarballUrl); - command.Options.Add(CreateOrUpdateVersionRequestOptionSetOptions.GitHubGistUrl); + command.Options.Add(ApplyEnvVarsToBuild); + command.Options.Add(BuildTag); + command.Options.Add(SourceFiles); + command.Options.Add(GitRepoUrl); + command.Options.Add(TarballUrl); + command.Options.Add(GitHubGistUrl); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -130,7 +166,7 @@ returned by the [Get version](#/reference/actors/version-object/get-version) end command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, @@ -138,25 +174,26 @@ await CliRuntime.RunAsync(async () => global::Apify.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); var actorId = parseResult.GetRequiredValue(ActorId); - var sourceType = CliRuntime.WasSpecified(parseResult, SourceType) ? parseResult.GetValue(SourceType) : (__requestBase is { } __SourceTypeBaseValue ? __SourceTypeBaseValue.SourceType : default); + var versionNumber = parseResult.GetRequiredValue(VersionNumber); + var sourceType = parseResult.GetRequiredValue(SourceType); var envVars = CliRuntime.WasSpecified(parseResult, EnvVars) ? parseResult.GetValue(EnvVars) : (__requestBase is { } __EnvVarsBaseValue ? __EnvVarsBaseValue.EnvVars : default); - var sourceFiles = CliRuntime.WasSpecified(parseResult, SourceFiles) ? parseResult.GetValue(SourceFiles) : (__requestBase is { } __SourceFilesBaseValue ? __SourceFilesBaseValue.SourceFiles : default); var versionNumber = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.VersionNumber) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.VersionNumber) : (__requestBase is { } __VersionNumberBaseValue ? __VersionNumberBaseValue.VersionNumber : default); - var applyEnvVarsToBuild = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.ApplyEnvVarsToBuild) : (__requestBase is { } __ApplyEnvVarsToBuildBaseValue ? __ApplyEnvVarsToBuildBaseValue.ApplyEnvVarsToBuild : default); - var buildTag = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.BuildTag) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.BuildTag) : (__requestBase is { } __BuildTagBaseValue ? __BuildTagBaseValue.BuildTag : default); - var gitRepoUrl = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.GitRepoUrl) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.GitRepoUrl) : (__requestBase is { } __GitRepoUrlBaseValue ? __GitRepoUrlBaseValue.GitRepoUrl : default); - var tarballUrl = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.TarballUrl) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.TarballUrl) : (__requestBase is { } __TarballUrlBaseValue ? __TarballUrlBaseValue.TarballUrl : default); - var gitHubGistUrl = CliRuntime.WasSpecified(parseResult, CreateOrUpdateVersionRequestOptionSetOptions.GitHubGistUrl) ? parseResult.GetValue(CreateOrUpdateVersionRequestOptionSetOptions.GitHubGistUrl) : (__requestBase is { } __GitHubGistUrlBaseValue ? __GitHubGistUrlBaseValue.GitHubGistUrl : default); + var applyEnvVarsToBuild = CliRuntime.WasSpecified(parseResult, ApplyEnvVarsToBuild) ? parseResult.GetValue(ApplyEnvVarsToBuild) : (__requestBase is { } __ApplyEnvVarsToBuildBaseValue ? __ApplyEnvVarsToBuildBaseValue.ApplyEnvVarsToBuild : default); + var buildTag = CliRuntime.WasSpecified(parseResult, BuildTag) ? parseResult.GetValue(BuildTag) : (__requestBase is { } __BuildTagBaseValue ? __BuildTagBaseValue.BuildTag : default); + var sourceFiles = CliRuntime.WasSpecified(parseResult, SourceFiles) ? parseResult.GetValue(SourceFiles) : (__requestBase is { } __SourceFilesBaseValue ? __SourceFilesBaseValue.SourceFiles : default); + var gitRepoUrl = CliRuntime.WasSpecified(parseResult, GitRepoUrl) ? parseResult.GetValue(GitRepoUrl) : (__requestBase is { } __GitRepoUrlBaseValue ? __GitRepoUrlBaseValue.GitRepoUrl : default); + var tarballUrl = CliRuntime.WasSpecified(parseResult, TarballUrl) ? parseResult.GetValue(TarballUrl) : (__requestBase is { } __TarballUrlBaseValue ? __TarballUrlBaseValue.TarballUrl : default); + var gitHubGistUrl = CliRuntime.WasSpecified(parseResult, GitHubGistUrl) ? parseResult.GetValue(GitHubGistUrl) : (__requestBase is { } __GitHubGistUrlBaseValue ? __GitHubGistUrlBaseValue.GitHubGistUrl : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); var response = await client.ActorsActorVersions.ActorVersionsPostAsync( actorId: actorId, + versionNumber: versionNumber, sourceType: sourceType, envVars: envVars, - sourceFiles: sourceFiles, - versionNumber: versionNumber, applyEnvVarsToBuild: applyEnvVarsToBuild, buildTag: buildTag, + sourceFiles: sourceFiles, gitRepoUrl: gitRepoUrl, tarballUrl: tarballUrl, gitHubGistUrl: gitHubGistUrl, diff --git a/src/cli/Apify.CLI/Commands/ActorsActorsPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorsPostCommandApiCommand.g.cs index f32dccaf..72500949 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorsPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorsPostCommandApiCommand.g.cs @@ -27,7 +27,14 @@ internal static partial class ActorsActorsPostCommandApiCommand private static Option IsPublic { get; } = CliRuntime.CreateNullableBoolOption( name: @"--is-public", - description: @"Whether the Actor is available to users in Apify Store. If `false`, the Actor is private and only visible to you."); + description: @"Whether the Actor is available to users in Apify Store. A new Actor is always private. To publish it, build it first, then update it with `isPublic` set to `true`."); + + private static Option ActorPermissionLevel { get; } = new( + name: @"--actor-permission-level") + { + Description = @"Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions). +", + }; private static Option SeoTitle { get; } = new( name: @"--seo-title") @@ -41,7 +48,7 @@ internal static partial class ActorsActorsPostCommandApiCommand Description = @"Description of the Actor to display by search engines such as Google. Recommended length is 140-156 characters.", }; - private static Option?> Versions { get; } = new( + private static Option?> Versions { get; } = new( name: @"--versions") { Description = @"An array of `Version` objects. Each object represents a specific version of the Actor's source code: its location, builds, and environment configuration.", @@ -124,6 +131,7 @@ use the [Update Actor](/api/v2/actor-put) endpoint. command.Options.Add(DescriptionOption); command.Options.Add(Title); command.Options.Add(IsPublic); + command.Options.Add(ActorPermissionLevel); command.Options.Add(SeoTitle); command.Options.Add(SeoDescription); command.Options.Add(Versions); @@ -170,6 +178,7 @@ await CliRuntime.RunAsync(async () => var description = CliRuntime.WasSpecified(parseResult, DescriptionOption) ? parseResult.GetValue(DescriptionOption) : (__requestBase is { } __DescriptionBaseValue ? __DescriptionBaseValue.Description : default); var title = CliRuntime.WasSpecified(parseResult, Title) ? parseResult.GetValue(Title) : (__requestBase is { } __TitleBaseValue ? __TitleBaseValue.Title : default); var isPublic = CliRuntime.WasSpecified(parseResult, IsPublic) ? parseResult.GetValue(IsPublic) : (__requestBase is { } __IsPublicBaseValue ? __IsPublicBaseValue.IsPublic : default); + var actorPermissionLevel = CliRuntime.WasSpecified(parseResult, ActorPermissionLevel) ? parseResult.GetValue(ActorPermissionLevel) : (__requestBase is { } __ActorPermissionLevelBaseValue ? __ActorPermissionLevelBaseValue.ActorPermissionLevel : default); var seoTitle = CliRuntime.WasSpecified(parseResult, SeoTitle) ? parseResult.GetValue(SeoTitle) : (__requestBase is { } __SeoTitleBaseValue ? __SeoTitleBaseValue.SeoTitle : default); var seoDescription = CliRuntime.WasSpecified(parseResult, SeoDescription) ? parseResult.GetValue(SeoDescription) : (__requestBase is { } __SeoDescriptionBaseValue ? __SeoDescriptionBaseValue.SeoDescription : default); var versions = CliRuntime.WasSpecified(parseResult, Versions) ? parseResult.GetValue(Versions) : (__requestBase is { } __VersionsBaseValue ? __VersionsBaseValue.Versions : default); @@ -240,6 +249,7 @@ await CliRuntime.RunAsync(async () => description: description, title: title, isPublic: isPublic, + actorPermissionLevel: actorPermissionLevel, seoTitle: seoTitle, seoDescription: seoDescription, versions: versions, diff --git a/src/cli/Apify.CLI/Commands/EnvVarRequestOptionSet.g.cs b/src/cli/Apify.CLI/Commands/EnvVarRequestOptionSet.g.cs new file mode 100644 index 00000000..0cdf56ea --- /dev/null +++ b/src/cli/Apify.CLI/Commands/EnvVarRequestOptionSet.g.cs @@ -0,0 +1,31 @@ +#nullable enable + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal sealed record EnvVarRequestOptionSet( + Option NameOption, + Option Value, + Option IsSecret) +{ + public static EnvVarRequestOptionSet Create(string? prefix = null) + { + var normalizedPrefix = string.IsNullOrWhiteSpace(prefix) + ? string.Empty + : prefix.Trim().Trim('-') + "-"; + return new EnvVarRequestOptionSet( + NameOption: new Option($"--{normalizedPrefix}name") + { + Description = @"The name of the environment variable. Can't contain `=`.", + Required = true, + }, + Value: new Option($"--{normalizedPrefix}value") + { + Description = @"The value of the environment variable.", + Required = true, + }, + IsSecret: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}is-secret", description: @"Whether the environment variable is encrypted. Secret values aren't returned by the API.") + ); + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/ScheduleNotificationsOptionSet.g.cs b/src/cli/Apify.CLI/Commands/ScheduleNotificationsOptionSet.g.cs new file mode 100644 index 00000000..441cc665 --- /dev/null +++ b/src/cli/Apify.CLI/Commands/ScheduleNotificationsOptionSet.g.cs @@ -0,0 +1,19 @@ +#nullable enable + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal sealed record ScheduleNotificationsOptionSet( + Option Email) +{ + public static ScheduleNotificationsOptionSet Create(string? prefix = null) + { + var normalizedPrefix = string.IsNullOrWhiteSpace(prefix) + ? string.Empty + : prefix.Trim().Trim('-') + "-"; + return new ScheduleNotificationsOptionSet( + Email: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}email", description: @"") + ); + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/SchedulesSchedulePutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/SchedulesSchedulePutCommandApiCommand.g.cs index 5641f1a3..74dddf2e 100644 --- a/src/cli/Apify.CLI/Commands/SchedulesSchedulePutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/SchedulesSchedulePutCommandApiCommand.g.cs @@ -19,6 +19,8 @@ internal static partial class SchedulesSchedulePutCommandApiCommand Description = @"", }; private static readonly CreateOrUpdateScheduleRequestOptionSet CreateOrUpdateScheduleRequestOptionSetOptions = CreateOrUpdateScheduleRequestOptionSet.Create(); + + private static readonly ScheduleNotificationsOptionSet NotificationsOptions = ScheduleNotificationsOptionSet.Create(@"notifications"); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -82,7 +84,7 @@ [Get schedule](#/reference/schedules/schedule-object/get-schedule) endpoint. command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.CronExpression); command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.Timezone); command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.DescriptionOption); - command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.Title); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.Title); command.Options.Add(NotificationsOptions.Email); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -116,6 +118,17 @@ await CliRuntime.RunAsync(async () => var timezone = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.Timezone) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.Timezone) : (__requestBase is { } __TimezoneBaseValue ? __TimezoneBaseValue.Timezone : default); var description = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.DescriptionOption) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.DescriptionOption) : (__requestBase is { } __DescriptionBaseValue ? __DescriptionBaseValue.Description : default); var title = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.Title) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.Title) : (__requestBase is { } __TitleBaseValue ? __TitleBaseValue.Title : default); + + var __NotificationsBase = __requestBase is { } __NotificationsBaseValue ? __NotificationsBaseValue.Notifications : default; var notificationsEmail = CliRuntime.WasSpecified(parseResult, NotificationsOptions.Email) ? parseResult.GetValue(NotificationsOptions.Email) : (__NotificationsBase is { } __NotificationsemailBaseValue ? __NotificationsemailBaseValue.Email : default); + var __NotificationsSpecified = CliRuntime.WasSpecified(parseResult, NotificationsOptions.Email); + var notifications = + __NotificationsSpecified || __NotificationsBase is not null + ? new global::Apify.ScheduleNotifications + { + Email = notificationsEmail, + + } + : __NotificationsBase; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); @@ -129,6 +142,7 @@ await CliRuntime.RunAsync(async () => timezone: timezone, description: description, title: title, + notifications: notifications, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/SchedulesSchedulesPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/SchedulesSchedulesPostCommandApiCommand.g.cs index 8ff99f16..d7924c49 100644 --- a/src/cli/Apify.CLI/Commands/SchedulesSchedulesPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/SchedulesSchedulesPostCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class SchedulesSchedulesPostCommandApiCommand Description = @"", }; private static readonly CreateOrUpdateScheduleRequestOptionSet CreateOrUpdateScheduleRequestOptionSetOptions = CreateOrUpdateScheduleRequestOptionSet.Create(); + + private static readonly ScheduleNotificationsOptionSet NotificationsOptions = ScheduleNotificationsOptionSet.Create(@"notifications"); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -70,7 +72,7 @@ as JSON in the payload. The response is the created schedule object. command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.CronExpression); command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.Timezone); command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.DescriptionOption); - command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.Title); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.Title); command.Options.Add(NotificationsOptions.Email); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -103,6 +105,17 @@ await CliRuntime.RunAsync(async () => var timezone = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.Timezone) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.Timezone) : (__requestBase is { } __TimezoneBaseValue ? __TimezoneBaseValue.Timezone : default); var description = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.DescriptionOption) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.DescriptionOption) : (__requestBase is { } __DescriptionBaseValue ? __DescriptionBaseValue.Description : default); var title = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.Title) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.Title) : (__requestBase is { } __TitleBaseValue ? __TitleBaseValue.Title : default); + + var __NotificationsBase = __requestBase is { } __NotificationsBaseValue ? __NotificationsBaseValue.Notifications : default; var notificationsEmail = CliRuntime.WasSpecified(parseResult, NotificationsOptions.Email) ? parseResult.GetValue(NotificationsOptions.Email) : (__NotificationsBase is { } __NotificationsemailBaseValue ? __NotificationsemailBaseValue.Email : default); + var __NotificationsSpecified = CliRuntime.WasSpecified(parseResult, NotificationsOptions.Email); + var notifications = + __NotificationsSpecified || __NotificationsBase is not null + ? new global::Apify.ScheduleNotifications + { + Email = notificationsEmail, + + } + : __NotificationsBase; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); @@ -115,6 +128,7 @@ await CliRuntime.RunAsync(async () => timezone: timezone, description: description, title: title, + notifications: notifications, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/CreateOrUpdateVersionRequestOptionSet.g.cs b/src/cli/Apify.CLI/Commands/UpdateVersionRequestOptionSet.g.cs similarity index 80% rename from src/cli/Apify.CLI/Commands/CreateOrUpdateVersionRequestOptionSet.g.cs rename to src/cli/Apify.CLI/Commands/UpdateVersionRequestOptionSet.g.cs index ba195c01..0d958626 100644 --- a/src/cli/Apify.CLI/Commands/CreateOrUpdateVersionRequestOptionSet.g.cs +++ b/src/cli/Apify.CLI/Commands/UpdateVersionRequestOptionSet.g.cs @@ -4,24 +4,29 @@ namespace Apify.CLI.Commands; -internal sealed record CreateOrUpdateVersionRequestOptionSet( +internal sealed record UpdateVersionRequestOptionSet( Option VersionNumber, + Option SourceType, Option ApplyEnvVarsToBuild, Option BuildTag, Option GitRepoUrl, Option TarballUrl, Option GitHubGistUrl) { - public static CreateOrUpdateVersionRequestOptionSet Create(string? prefix = null) + public static UpdateVersionRequestOptionSet Create(string? prefix = null) { var normalizedPrefix = string.IsNullOrWhiteSpace(prefix) ? string.Empty : prefix.Trim().Trim('-') + "-"; - return new CreateOrUpdateVersionRequestOptionSet( + return new UpdateVersionRequestOptionSet( VersionNumber: new Option($"--{normalizedPrefix}version-number") { Description = @"The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning.", }, + SourceType: new Option($"--{normalizedPrefix}source-type") + { + Description = @"Where the source code of the version lives.", + }, ApplyEnvVarsToBuild: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}apply-env-vars-to-build", description: @"Whether to inject the environment variables at build time."), BuildTag: new Option($"--{normalizedPrefix}build-tag") { diff --git a/src/libs/Apify/Generated/Apify.ActorBuilds.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorBuilds.JsonSerializerContext.g.cs index 50e01752..944e35e8 100644 --- a/src/libs/Apify/Generated/Apify.ActorBuilds.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorBuilds.JsonSerializerContext.g.cs @@ -23,10 +23,10 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType), TypeInfoPropertyName = "ErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorDetail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType), TypeInfoPropertyName = "VersionSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFileFormat), TypeInfoPropertyName = "SourceCodeFileFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType), TypeInfoPropertyName = "VersionSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus), TypeInfoPropertyName = "ActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildMeta))] @@ -50,9 +50,9 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType?), TypeInfoPropertyName = "NullableVersionSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFileFormat?), TypeInfoPropertyName = "NullableSourceCodeFileFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType?), TypeInfoPropertyName = "NullableVersionSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus?), TypeInfoPropertyName = "NullableActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin?), TypeInfoPropertyName = "NullableRunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuilds?), TypeInfoPropertyName = "NullableListOfBuilds2")] @@ -135,14 +135,14 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Apify.ErrorType?) - || typeToConvert == typeof(global::Apify.VersionSourceType) - - || typeToConvert == typeof(global::Apify.VersionSourceType?) - || typeToConvert == typeof(global::Apify.SourceCodeFileFormat) || typeToConvert == typeof(global::Apify.SourceCodeFileFormat?) + || typeToConvert == typeof(global::Apify.VersionSourceType) + + || typeToConvert == typeof(global::Apify.VersionSourceType?) + || typeToConvert == typeof(global::Apify.ActorJobStatus) || typeToConvert == typeof(global::Apify.ActorJobStatus?) @@ -166,24 +166,24 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Apify.JsonConverters.ErrorTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::Apify.VersionSourceType)) + if (typeToConvert == typeof(global::Apify.SourceCodeFileFormat)) { - return new global::Apify.JsonConverters.VersionSourceTypeJsonConverter(); + return new global::Apify.JsonConverters.SourceCodeFileFormatJsonConverter(); } - if (typeToConvert == typeof(global::Apify.VersionSourceType?)) + if (typeToConvert == typeof(global::Apify.SourceCodeFileFormat?)) { - return new global::Apify.JsonConverters.VersionSourceTypeNullableJsonConverter(); + return new global::Apify.JsonConverters.SourceCodeFileFormatNullableJsonConverter(); } - if (typeToConvert == typeof(global::Apify.SourceCodeFileFormat)) + if (typeToConvert == typeof(global::Apify.VersionSourceType)) { - return new global::Apify.JsonConverters.SourceCodeFileFormatJsonConverter(); + return new global::Apify.JsonConverters.VersionSourceTypeJsonConverter(); } - if (typeToConvert == typeof(global::Apify.SourceCodeFileFormat?)) + if (typeToConvert == typeof(global::Apify.VersionSourceType?)) { - return new global::Apify.JsonConverters.SourceCodeFileFormatNullableJsonConverter(); + return new global::Apify.JsonConverters.VersionSourceTypeNullableJsonConverter(); } if (typeToConvert == typeof(global::Apify.ActorJobStatus)) diff --git a/src/libs/Apify/Generated/Apify.Actors.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.Actors.JsonSerializerContext.g.cs index 7b1b67b4..6b3af975 100644 --- a/src/libs/Apify/Generated/Apify.Actors.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.Actors.JsonSerializerContext.g.cs @@ -30,23 +30,27 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType), TypeInfoPropertyName = "ErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorDetail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType), TypeInfoPropertyName = "VersionSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVar))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorPermissionLevel), TypeInfoPropertyName = "ActorPermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WritableVersionSourceType), TypeInfoPropertyName = "WritableVersionSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVarRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFileFormat), TypeInfoPropertyName = "SourceCodeFileFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFolder))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfSourceCodeFileSourceCodeFolder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Version))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorPermissionLevel), TypeInfoPropertyName = "ActorPermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateVersionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DefaultRunOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorStandby))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ExampleRunInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateActorRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType), TypeInfoPropertyName = "VersionSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVar))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Version))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CommonActorPricingInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TieredPricingPerEventEntry))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -70,12 +74,11 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaggedBuilds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorNotice), TypeInfoPropertyName = "ActorNotice2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateOrUpdateVersionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdatedBuildProperty))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateActorRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorsGetSortBy), TypeInfoPropertyName = "ActorsGetSortBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorValidateInputPostResponse))] @@ -85,11 +88,12 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActors?), TypeInfoPropertyName = "NullableListOfActors2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType?), TypeInfoPropertyName = "NullableVersionSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorPermissionLevel?), TypeInfoPropertyName = "NullableActorPermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WritableVersionSourceType?), TypeInfoPropertyName = "NullableWritableVersionSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFileFormat?), TypeInfoPropertyName = "NullableSourceCodeFileFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf?), TypeInfoPropertyName = "NullableAnyOfSourceCodeFileSourceCodeFolder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorPermissionLevel?), TypeInfoPropertyName = "NullableActorPermissionLevel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType?), TypeInfoPropertyName = "NullableVersionSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PayPerEventActorPricingInfo?), TypeInfoPropertyName = "NullablePayPerEventActorPricingInfo2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PricePerDatasetItemActorPricingInfo?), TypeInfoPropertyName = "NullablePricePerDatasetItemActorPricingInfo2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.FlatPricePerMonthActorPricingInfo?), TypeInfoPropertyName = "NullableFlatPricePerMonthActorPricingInfo2")] @@ -100,11 +104,12 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorsGetSortBy?), TypeInfoPropertyName = "NullableActorsGetSortBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class ActorsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -187,17 +192,21 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Apify.ErrorType?) - || typeToConvert == typeof(global::Apify.VersionSourceType) + || typeToConvert == typeof(global::Apify.ActorPermissionLevel) - || typeToConvert == typeof(global::Apify.VersionSourceType?) + || typeToConvert == typeof(global::Apify.ActorPermissionLevel?) + + || typeToConvert == typeof(global::Apify.WritableVersionSourceType) + + || typeToConvert == typeof(global::Apify.WritableVersionSourceType?) || typeToConvert == typeof(global::Apify.SourceCodeFileFormat) || typeToConvert == typeof(global::Apify.SourceCodeFileFormat?) - || typeToConvert == typeof(global::Apify.ActorPermissionLevel) + || typeToConvert == typeof(global::Apify.VersionSourceType) - || typeToConvert == typeof(global::Apify.ActorPermissionLevel?) + || typeToConvert == typeof(global::Apify.VersionSourceType?) || typeToConvert == typeof(global::Apify.ActorRunPricingInfoDiscriminatorPricingModel) @@ -226,14 +235,24 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Apify.JsonConverters.ErrorTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::Apify.VersionSourceType)) + if (typeToConvert == typeof(global::Apify.ActorPermissionLevel)) { - return new global::Apify.JsonConverters.VersionSourceTypeJsonConverter(); + return new global::Apify.JsonConverters.ActorPermissionLevelJsonConverter(); } - if (typeToConvert == typeof(global::Apify.VersionSourceType?)) + if (typeToConvert == typeof(global::Apify.ActorPermissionLevel?)) { - return new global::Apify.JsonConverters.VersionSourceTypeNullableJsonConverter(); + return new global::Apify.JsonConverters.ActorPermissionLevelNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.WritableVersionSourceType)) + { + return new global::Apify.JsonConverters.WritableVersionSourceTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.WritableVersionSourceType?)) + { + return new global::Apify.JsonConverters.WritableVersionSourceTypeNullableJsonConverter(); } if (typeToConvert == typeof(global::Apify.SourceCodeFileFormat)) @@ -246,14 +265,14 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Apify.JsonConverters.SourceCodeFileFormatNullableJsonConverter(); } - if (typeToConvert == typeof(global::Apify.ActorPermissionLevel)) + if (typeToConvert == typeof(global::Apify.VersionSourceType)) { - return new global::Apify.JsonConverters.ActorPermissionLevelJsonConverter(); + return new global::Apify.JsonConverters.VersionSourceTypeJsonConverter(); } - if (typeToConvert == typeof(global::Apify.ActorPermissionLevel?)) + if (typeToConvert == typeof(global::Apify.VersionSourceType?)) { - return new global::Apify.JsonConverters.ActorPermissionLevelNullableJsonConverter(); + return new global::Apify.JsonConverters.VersionSourceTypeNullableJsonConverter(); } if (typeToConvert == typeof(global::Apify.ActorRunPricingInfoDiscriminatorPricingModel)) diff --git a/src/libs/Apify/Generated/Apify.ActorsActorBuilds.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorBuilds.JsonSerializerContext.g.cs index 236f7c2a..84f06e3f 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorBuilds.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorBuilds.JsonSerializerContext.g.cs @@ -23,10 +23,10 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType), TypeInfoPropertyName = "ErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorDetail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType), TypeInfoPropertyName = "VersionSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFileFormat), TypeInfoPropertyName = "SourceCodeFileFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType), TypeInfoPropertyName = "VersionSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus), TypeInfoPropertyName = "ActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildMeta))] @@ -50,9 +50,9 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType?), TypeInfoPropertyName = "NullableVersionSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFileFormat?), TypeInfoPropertyName = "NullableSourceCodeFileFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType?), TypeInfoPropertyName = "NullableVersionSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus?), TypeInfoPropertyName = "NullableActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin?), TypeInfoPropertyName = "NullableRunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuilds?), TypeInfoPropertyName = "NullableListOfBuilds2")] @@ -135,14 +135,14 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Apify.ErrorType?) - || typeToConvert == typeof(global::Apify.VersionSourceType) - - || typeToConvert == typeof(global::Apify.VersionSourceType?) - || typeToConvert == typeof(global::Apify.SourceCodeFileFormat) || typeToConvert == typeof(global::Apify.SourceCodeFileFormat?) + || typeToConvert == typeof(global::Apify.VersionSourceType) + + || typeToConvert == typeof(global::Apify.VersionSourceType?) + || typeToConvert == typeof(global::Apify.ActorJobStatus) || typeToConvert == typeof(global::Apify.ActorJobStatus?) @@ -166,24 +166,24 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Apify.JsonConverters.ErrorTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::Apify.VersionSourceType)) + if (typeToConvert == typeof(global::Apify.SourceCodeFileFormat)) { - return new global::Apify.JsonConverters.VersionSourceTypeJsonConverter(); + return new global::Apify.JsonConverters.SourceCodeFileFormatJsonConverter(); } - if (typeToConvert == typeof(global::Apify.VersionSourceType?)) + if (typeToConvert == typeof(global::Apify.SourceCodeFileFormat?)) { - return new global::Apify.JsonConverters.VersionSourceTypeNullableJsonConverter(); + return new global::Apify.JsonConverters.SourceCodeFileFormatNullableJsonConverter(); } - if (typeToConvert == typeof(global::Apify.SourceCodeFileFormat)) + if (typeToConvert == typeof(global::Apify.VersionSourceType)) { - return new global::Apify.JsonConverters.SourceCodeFileFormatJsonConverter(); + return new global::Apify.JsonConverters.VersionSourceTypeJsonConverter(); } - if (typeToConvert == typeof(global::Apify.SourceCodeFileFormat?)) + if (typeToConvert == typeof(global::Apify.VersionSourceType?)) { - return new global::Apify.JsonConverters.SourceCodeFileFormatNullableJsonConverter(); + return new global::Apify.JsonConverters.VersionSourceTypeNullableJsonConverter(); } if (typeToConvert == typeof(global::Apify.ActorJobStatus)) diff --git a/src/libs/Apify/Generated/Apify.ActorsActorVersions.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorVersions.JsonSerializerContext.g.cs index e3e4a07b..95fc2f5c 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorVersions.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorVersions.JsonSerializerContext.g.cs @@ -20,32 +20,36 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType), TypeInfoPropertyName = "ErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorDetail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType), TypeInfoPropertyName = "VersionSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVar))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WritableVersionSourceType), TypeInfoPropertyName = "WritableVersionSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVarRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFileFormat), TypeInfoPropertyName = "SourceCodeFileFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFolder))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfSourceCodeFileSourceCodeFolder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateVersionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType), TypeInfoPropertyName = "VersionSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVar))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Version))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateOrUpdateVersionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfVersions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfVersionsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateVersionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfEnvVars))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfEnvVarsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVarRequest), TypeInfoPropertyName = "EnvVarRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVarResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType?), TypeInfoPropertyName = "NullableVersionSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WritableVersionSourceType?), TypeInfoPropertyName = "NullableWritableVersionSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFileFormat?), TypeInfoPropertyName = "NullableSourceCodeFileFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf?), TypeInfoPropertyName = "NullableAnyOfSourceCodeFileSourceCodeFolder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVarRequest?), TypeInfoPropertyName = "NullableEnvVarRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType?), TypeInfoPropertyName = "NullableVersionSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class ActorsActorVersionsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -95,7 +99,6 @@ private ActorsActorVersionsSourceGenerationContext(global::System.Text.Json.Json [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { - options.Converters.Add(new global::Apify.JsonConverters.EnvVarRequestJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); @@ -125,13 +128,17 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Apify.ErrorType?) - || typeToConvert == typeof(global::Apify.VersionSourceType) + || typeToConvert == typeof(global::Apify.WritableVersionSourceType) - || typeToConvert == typeof(global::Apify.VersionSourceType?) + || typeToConvert == typeof(global::Apify.WritableVersionSourceType?) || typeToConvert == typeof(global::Apify.SourceCodeFileFormat) - || typeToConvert == typeof(global::Apify.SourceCodeFileFormat?); + || typeToConvert == typeof(global::Apify.SourceCodeFileFormat?) + + || typeToConvert == typeof(global::Apify.VersionSourceType) + + || typeToConvert == typeof(global::Apify.VersionSourceType?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -148,14 +155,14 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Apify.JsonConverters.ErrorTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::Apify.VersionSourceType)) + if (typeToConvert == typeof(global::Apify.WritableVersionSourceType)) { - return new global::Apify.JsonConverters.VersionSourceTypeJsonConverter(); + return new global::Apify.JsonConverters.WritableVersionSourceTypeJsonConverter(); } - if (typeToConvert == typeof(global::Apify.VersionSourceType?)) + if (typeToConvert == typeof(global::Apify.WritableVersionSourceType?)) { - return new global::Apify.JsonConverters.VersionSourceTypeNullableJsonConverter(); + return new global::Apify.JsonConverters.WritableVersionSourceTypeNullableJsonConverter(); } if (typeToConvert == typeof(global::Apify.SourceCodeFileFormat)) @@ -167,6 +174,16 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::Apify.JsonConverters.SourceCodeFileFormatNullableJsonConverter(); } + + if (typeToConvert == typeof(global::Apify.VersionSourceType)) + { + return new global::Apify.JsonConverters.VersionSourceTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.VersionSourceType?)) + { + return new global::Apify.JsonConverters.VersionSourceTypeNullableJsonConverter(); + } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarPost.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarPost.g.cs index d90518b2..1a956ccc 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarPost.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarPost.g.cs @@ -117,6 +117,8 @@ partial void ProcessActorVersionEnvVarPostResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + PrepareArguments( client: HttpClient); PrepareActorVersionEnvVarPostArguments( @@ -788,6 +790,15 @@ partial void ProcessActorVersionEnvVarPostResponseContent( /// /// Example: MY_ENV_VAR /// + /// + /// The name of the environment variable. Can't contain `=`. + /// + /// + /// The value of the environment variable. + /// + /// + /// Whether the environment variable is encrypted. Secret values aren't returned by the API. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -795,11 +806,17 @@ partial void ProcessActorVersionEnvVarPostResponseContent( string actorId, string versionNumber, string envVarName, + string name, + string value, + bool? isSecret = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Apify.EnvVarRequest { + Name = name, + Value = value, + IsSecret = isSecret, }; return await ActorVersionEnvVarPostAsync( diff --git a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs index 0d395023..05179aa8 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs @@ -135,6 +135,8 @@ partial void ProcessActorVersionEnvVarPutResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + PrepareArguments( client: HttpClient); PrepareActorVersionEnvVarPutArguments( @@ -815,6 +817,15 @@ partial void ProcessActorVersionEnvVarPutResponseContent( /// /// Example: MY_ENV_VAR /// + /// + /// The name of the environment variable. Can't contain `=`. + /// + /// + /// The value of the environment variable. + /// + /// + /// Whether the environment variable is encrypted. Secret values aren't returned by the API. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -822,11 +833,17 @@ partial void ProcessActorVersionEnvVarPutResponseContent( string actorId, string versionNumber, string envVarName, + string name, + string value, + bool? isSecret = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Apify.EnvVarRequest { + Name = name, + Value = value, + IsSecret = isSecret, }; return await ActorVersionEnvVarPutAsync( diff --git a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarsPost.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarsPost.g.cs index f3d462ab..dda3b698 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarsPost.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarsPost.g.cs @@ -128,6 +128,8 @@ partial void ProcessActorVersionEnvVarsPostResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + PrepareArguments( client: HttpClient); PrepareActorVersionEnvVarsPostArguments( @@ -805,17 +807,32 @@ partial void ProcessActorVersionEnvVarsPostResponseContent( /// /// Example: 0.1 /// + /// + /// The name of the environment variable. Can't contain `=`. + /// + /// + /// The value of the environment variable. + /// + /// + /// Whether the environment variable is encrypted. Secret values aren't returned by the API. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ActorVersionEnvVarsPostAsync( string actorId, string versionNumber, + string name, + string value, + bool? isSecret = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Apify.EnvVarRequest { + Name = name, + Value = value, + IsSecret = isSecret, }; return await ActorVersionEnvVarsPostAsync( diff --git a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionPost.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionPost.g.cs index 62ed112f..1d62dbfc 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionPost.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionPost.g.cs @@ -29,13 +29,13 @@ partial void PrepareActorVersionPostArguments( global::System.Net.Http.HttpClient httpClient, ref string actorId, ref string versionNumber, - global::Apify.CreateOrUpdateVersionRequest request); + global::Apify.UpdateVersionRequest request); partial void PrepareActorVersionPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string actorId, string versionNumber, - global::Apify.CreateOrUpdateVersionRequest request); + global::Apify.UpdateVersionRequest request); partial void ProcessActorVersionPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -64,7 +64,7 @@ partial void ProcessActorVersionPostResponseContent( string actorId, string versionNumber, - global::Apify.CreateOrUpdateVersionRequest request, + global::Apify.UpdateVersionRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -98,7 +98,7 @@ partial void ProcessActorVersionPostResponseContent( string actorId, string versionNumber, - global::Apify.CreateOrUpdateVersionRequest request, + global::Apify.UpdateVersionRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -802,8 +802,8 @@ partial void ProcessActorVersionPostResponseContent( string actorId, string versionNumber, string? requestVersionNumber = default, - global::Apify.VersionSourceType? sourceType = default, - global::System.Collections.Generic.IList? envVars = default, + global::Apify.WritableVersionSourceType? sourceType = default, + global::System.Collections.Generic.IList? envVars = default, bool? applyEnvVarsToBuild = default, string? buildTag = default, global::System.Collections.Generic.IList>? sourceFiles = default, @@ -813,7 +813,7 @@ partial void ProcessActorVersionPostResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Apify.CreateOrUpdateVersionRequest + var __request = new global::Apify.UpdateVersionRequest { VersionNumber = requestVersionNumber, SourceType = sourceType, diff --git a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionPut.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionPut.g.cs index 18213988..b5f4a3b9 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionPut.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionPut.g.cs @@ -29,13 +29,13 @@ partial void PrepareActorVersionPutArguments( global::System.Net.Http.HttpClient httpClient, ref string actorId, ref string versionNumber, - global::Apify.CreateOrUpdateVersionRequest request); + global::Apify.UpdateVersionRequest request); partial void PrepareActorVersionPutRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string actorId, string versionNumber, - global::Apify.CreateOrUpdateVersionRequest request); + global::Apify.UpdateVersionRequest request); partial void ProcessActorVersionPutResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -72,7 +72,7 @@ partial void ProcessActorVersionPutResponseContent( string actorId, string versionNumber, - global::Apify.CreateOrUpdateVersionRequest request, + global::Apify.UpdateVersionRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -114,7 +114,7 @@ partial void ProcessActorVersionPutResponseContent( string actorId, string versionNumber, - global::Apify.CreateOrUpdateVersionRequest request, + global::Apify.UpdateVersionRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -826,8 +826,8 @@ partial void ProcessActorVersionPutResponseContent( string actorId, string versionNumber, string? requestVersionNumber = default, - global::Apify.VersionSourceType? sourceType = default, - global::System.Collections.Generic.IList? envVars = default, + global::Apify.WritableVersionSourceType? sourceType = default, + global::System.Collections.Generic.IList? envVars = default, bool? applyEnvVarsToBuild = default, string? buildTag = default, global::System.Collections.Generic.IList>? sourceFiles = default, @@ -837,7 +837,7 @@ partial void ProcessActorVersionPutResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Apify.CreateOrUpdateVersionRequest + var __request = new global::Apify.UpdateVersionRequest { VersionNumber = requestVersionNumber, SourceType = sourceType, diff --git a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionsPost.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionsPost.g.cs index 85799f1c..cad8cf57 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionsPost.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionsPost.g.cs @@ -28,12 +28,12 @@ public partial class ActorsActorVersionsClient partial void PrepareActorVersionsPostArguments( global::System.Net.Http.HttpClient httpClient, ref string actorId, - global::Apify.CreateOrUpdateVersionRequest request); + global::Apify.CreateVersionRequest request); partial void PrepareActorVersionsPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string actorId, - global::Apify.CreateOrUpdateVersionRequest request); + global::Apify.CreateVersionRequest request); partial void ProcessActorVersionsPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -80,7 +80,7 @@ partial void ProcessActorVersionsPostResponseContent( public async global::System.Threading.Tasks.Task ActorVersionsPostAsync( string actorId, - global::Apify.CreateOrUpdateVersionRequest request, + global::Apify.CreateVersionRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -131,7 +131,7 @@ partial void ProcessActorVersionsPostResponseContent( public async global::System.Threading.Tasks.Task> ActorVersionsPostAsResponseAsync( string actorId, - global::Apify.CreateOrUpdateVersionRequest request, + global::Apify.CreateVersionRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -850,9 +850,9 @@ partial void ProcessActorVersionsPostResponseContent( /// public async global::System.Threading.Tasks.Task ActorVersionsPostAsync( string actorId, - string? versionNumber = default, - global::Apify.VersionSourceType? sourceType = default, - global::System.Collections.Generic.IList? envVars = default, + string versionNumber, + global::Apify.WritableVersionSourceType sourceType, + global::System.Collections.Generic.IList? envVars = default, bool? applyEnvVarsToBuild = default, string? buildTag = default, global::System.Collections.Generic.IList>? sourceFiles = default, @@ -862,7 +862,7 @@ partial void ProcessActorVersionsPostResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Apify.CreateOrUpdateVersionRequest + var __request = new global::Apify.CreateVersionRequest { VersionNumber = versionNumber, SourceType = sourceType, diff --git a/src/libs/Apify/Generated/Apify.ActorsClient.ActorPut.g.cs b/src/libs/Apify/Generated/Apify.ActorsClient.ActorPut.g.cs index 1f606189..954fd8db 100644 --- a/src/libs/Apify/Generated/Apify.ActorsClient.ActorPut.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsClient.ActorPut.g.cs @@ -883,7 +883,9 @@ partial void ProcessActorPutResponseContent( /// /// Whether the Actor is available to users in Apify Store. If `false`, the Actor is private and only visible to you. /// - /// + /// + /// Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions). + /// /// /// Name of the Actor to display by search engines such as Google. Can be different from the Actor's name displayed in Apify Store and Console. Recommended length is 40-50 characters. /// @@ -928,7 +930,7 @@ partial void ProcessActorPutResponseContent( string? seoTitle = default, string? seoDescription = default, string? title = default, - global::System.Collections.Generic.IList? versions = default, + global::System.Collections.Generic.IList? versions = default, global::System.Collections.Generic.IList? pricingInfos = default, global::System.Collections.Generic.IList? categories = default, global::Apify.DefaultRunOptions? defaultRunOptions = default, diff --git a/src/libs/Apify/Generated/Apify.ActorsClient.ActorsPost.g.cs b/src/libs/Apify/Generated/Apify.ActorsClient.ActorsPost.g.cs index a85661b9..b2aa1ca0 100644 --- a/src/libs/Apify/Generated/Apify.ActorsClient.ActorsPost.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsClient.ActorsPost.g.cs @@ -735,7 +735,10 @@ partial void ProcessActorsPostResponseContent( /// Human-readable name of the Actor, displayed in Apify Store and Console. Can contain spaces and capital letters. Recommended length is 40-50 characters. You can change this title without affecting the Actor's URL or SEO. /// /// - /// Whether the Actor is available to users in Apify Store. If `false`, the Actor is private and only visible to you. + /// Whether the Actor is available to users in Apify Store. A new Actor is always private. To publish it, build it first, then update it with `isPublic` set to `true`. + /// + /// + /// Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions). /// /// /// Name of the Actor to display by search engines such as Google. Can be different from the Actor's name displayed in Apify Store and Console. Recommended length is 40-50 characters. @@ -769,9 +772,10 @@ partial void ProcessActorsPostResponseContent( string? description = default, string? title = default, bool? isPublic = default, + global::Apify.ActorPermissionLevel? actorPermissionLevel = default, string? seoTitle = default, string? seoDescription = default, - global::System.Collections.Generic.IList? versions = default, + global::System.Collections.Generic.IList? versions = default, global::System.Collections.Generic.IList? categories = default, global::Apify.DefaultRunOptions? defaultRunOptions = default, global::Apify.ActorStandby? actorStandby = default, @@ -786,6 +790,7 @@ partial void ProcessActorsPostResponseContent( Description = description, Title = title, IsPublic = isPublic, + ActorPermissionLevel = actorPermissionLevel, SeoTitle = seoTitle, SeoDescription = seoDescription, Versions = versions, diff --git a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarPost.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarPost.g.cs index 472ac464..1d856c51 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarPost.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarPost.g.cs @@ -76,6 +76,15 @@ public partial interface IActorsActorVersionsClient /// /// Example: MY_ENV_VAR /// + /// + /// The name of the environment variable. Can't contain `=`. + /// + /// + /// The value of the environment variable. + /// + /// + /// Whether the environment variable is encrypted. Secret values aren't returned by the API. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -83,6 +92,9 @@ public partial interface IActorsActorVersionsClient string actorId, string versionNumber, string envVarName, + string name, + string value, + bool? isSecret = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs index 27507e66..bd64e758 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs @@ -103,6 +103,15 @@ public partial interface IActorsActorVersionsClient /// /// Example: MY_ENV_VAR /// + /// + /// The name of the environment variable. Can't contain `=`. + /// + /// + /// The value of the environment variable. + /// + /// + /// Whether the environment variable is encrypted. Secret values aren't returned by the API. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -110,6 +119,9 @@ public partial interface IActorsActorVersionsClient string actorId, string versionNumber, string envVarName, + string name, + string value, + bool? isSecret = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarsPost.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarsPost.g.cs index ccadd3fd..4fe9efa4 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarsPost.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarsPost.g.cs @@ -98,12 +98,24 @@ public partial interface IActorsActorVersionsClient /// /// Example: 0.1 /// + /// + /// The name of the environment variable. Can't contain `=`. + /// + /// + /// The value of the environment variable. + /// + /// + /// Whether the environment variable is encrypted. Secret values aren't returned by the API. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ActorVersionEnvVarsPostAsync( string actorId, string versionNumber, + string name, + string value, + bool? isSecret = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionPost.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionPost.g.cs index 206b43bf..67ec7e7e 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionPost.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionPost.g.cs @@ -23,7 +23,7 @@ public partial interface IActorsActorVersionsClient string actorId, string versionNumber, - global::Apify.CreateOrUpdateVersionRequest request, + global::Apify.UpdateVersionRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -45,7 +45,7 @@ public partial interface IActorsActorVersionsClient string actorId, string versionNumber, - global::Apify.CreateOrUpdateVersionRequest request, + global::Apify.UpdateVersionRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -93,8 +93,8 @@ public partial interface IActorsActorVersionsClient string actorId, string versionNumber, string? requestVersionNumber = default, - global::Apify.VersionSourceType? sourceType = default, - global::System.Collections.Generic.IList? envVars = default, + global::Apify.WritableVersionSourceType? sourceType = default, + global::System.Collections.Generic.IList? envVars = default, bool? applyEnvVarsToBuild = default, string? buildTag = default, global::System.Collections.Generic.IList>? sourceFiles = default, diff --git a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionPut.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionPut.g.cs index 0e048a26..8f172bab 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionPut.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionPut.g.cs @@ -31,7 +31,7 @@ public partial interface IActorsActorVersionsClient string actorId, string versionNumber, - global::Apify.CreateOrUpdateVersionRequest request, + global::Apify.UpdateVersionRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -61,7 +61,7 @@ public partial interface IActorsActorVersionsClient string actorId, string versionNumber, - global::Apify.CreateOrUpdateVersionRequest request, + global::Apify.UpdateVersionRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -117,8 +117,8 @@ public partial interface IActorsActorVersionsClient string actorId, string versionNumber, string? requestVersionNumber = default, - global::Apify.VersionSourceType? sourceType = default, - global::System.Collections.Generic.IList? envVars = default, + global::Apify.WritableVersionSourceType? sourceType = default, + global::System.Collections.Generic.IList? envVars = default, bool? applyEnvVarsToBuild = default, string? buildTag = default, global::System.Collections.Generic.IList>? sourceFiles = default, diff --git a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionsPost.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionsPost.g.cs index 70ec3f08..5c6f3bfe 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionsPost.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionsPost.g.cs @@ -41,7 +41,7 @@ public partial interface IActorsActorVersionsClient global::System.Threading.Tasks.Task ActorVersionsPostAsync( string actorId, - global::Apify.CreateOrUpdateVersionRequest request, + global::Apify.CreateVersionRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -81,7 +81,7 @@ public partial interface IActorsActorVersionsClient global::System.Threading.Tasks.Task> ActorVersionsPostAsResponseAsync( string actorId, - global::Apify.CreateOrUpdateVersionRequest request, + global::Apify.CreateVersionRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -146,9 +146,9 @@ public partial interface IActorsActorVersionsClient /// global::System.Threading.Tasks.Task ActorVersionsPostAsync( string actorId, - string? versionNumber = default, - global::Apify.VersionSourceType? sourceType = default, - global::System.Collections.Generic.IList? envVars = default, + string versionNumber, + global::Apify.WritableVersionSourceType sourceType, + global::System.Collections.Generic.IList? envVars = default, bool? applyEnvVarsToBuild = default, string? buildTag = default, global::System.Collections.Generic.IList>? sourceFiles = default, diff --git a/src/libs/Apify/Generated/Apify.IActorsClient.ActorPut.g.cs b/src/libs/Apify/Generated/Apify.IActorsClient.ActorPut.g.cs index 72bf1eae..1e47204c 100644 --- a/src/libs/Apify/Generated/Apify.IActorsClient.ActorPut.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsClient.ActorPut.g.cs @@ -179,7 +179,9 @@ public partial interface IActorsClient /// /// Whether the Actor is available to users in Apify Store. If `false`, the Actor is private and only visible to you. /// - /// + /// + /// Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions). + /// /// /// Name of the Actor to display by search engines such as Google. Can be different from the Actor's name displayed in Apify Store and Console. Recommended length is 40-50 characters. /// @@ -224,7 +226,7 @@ public partial interface IActorsClient string? seoTitle = default, string? seoDescription = default, string? title = default, - global::System.Collections.Generic.IList? versions = default, + global::System.Collections.Generic.IList? versions = default, global::System.Collections.Generic.IList? pricingInfos = default, global::System.Collections.Generic.IList? categories = default, global::Apify.DefaultRunOptions? defaultRunOptions = default, diff --git a/src/libs/Apify/Generated/Apify.IActorsClient.ActorsPost.g.cs b/src/libs/Apify/Generated/Apify.IActorsClient.ActorsPost.g.cs index bc2d2839..cdd1b50c 100644 --- a/src/libs/Apify/Generated/Apify.IActorsClient.ActorsPost.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsClient.ActorsPost.g.cs @@ -73,7 +73,10 @@ public partial interface IActorsClient /// Human-readable name of the Actor, displayed in Apify Store and Console. Can contain spaces and capital letters. Recommended length is 40-50 characters. You can change this title without affecting the Actor's URL or SEO. /// /// - /// Whether the Actor is available to users in Apify Store. If `false`, the Actor is private and only visible to you. + /// Whether the Actor is available to users in Apify Store. A new Actor is always private. To publish it, build it first, then update it with `isPublic` set to `true`. + /// + /// + /// Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions). /// /// /// Name of the Actor to display by search engines such as Google. Can be different from the Actor's name displayed in Apify Store and Console. Recommended length is 40-50 characters. @@ -107,9 +110,10 @@ public partial interface IActorsClient string? description = default, string? title = default, bool? isPublic = default, + global::Apify.ActorPermissionLevel? actorPermissionLevel = default, string? seoTitle = default, string? seoDescription = default, - global::System.Collections.Generic.IList? versions = default, + global::System.Collections.Generic.IList? versions = default, global::System.Collections.Generic.IList? categories = default, global::Apify.DefaultRunOptions? defaultRunOptions = default, global::Apify.ActorStandby? actorStandby = default, diff --git a/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulePut.g.cs b/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulePut.g.cs index 259d79fe..ab0adc1a 100644 --- a/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulePut.g.cs +++ b/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulePut.g.cs @@ -79,6 +79,9 @@ public partial interface ISchedulesClient /// /// /// + /// + /// Notification settings for this schedule. + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -92,6 +95,7 @@ public partial interface ISchedulesClient string? timezone = default, string? description = default, string? title = default, + global::Apify.ScheduleNotifications? notifications = default, global::System.Collections.Generic.IList? actions = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulesPost.g.cs b/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulesPost.g.cs index fe1681ff..a832a9ce 100644 --- a/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulesPost.g.cs +++ b/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulesPost.g.cs @@ -56,6 +56,9 @@ public partial interface ISchedulesClient /// /// /// + /// + /// Notification settings for this schedule. + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -68,6 +71,7 @@ public partial interface ISchedulesClient string? timezone = default, string? description = default, string? title = default, + global::Apify.ScheduleNotifications? notifications = default, global::System.Collections.Generic.IList? actions = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.EnvVarRequest.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.EnvVarRequest.g.cs deleted file mode 100644 index 31fcfeed..00000000 --- a/src/libs/Apify/Generated/Apify.JsonConverters.EnvVarRequest.g.cs +++ /dev/null @@ -1,108 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Apify.JsonConverters -{ - /// - public class EnvVarRequestJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Apify.EnvVarRequest Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - - global::Apify.EnvVar? envVar = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.EnvVar), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.EnvVar).Name}"); - envVar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - object? envVarRequestVariant2 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - envVarRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - var __value = new global::Apify.EnvVarRequest( - envVar, - - envVarRequestVariant2 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Apify.EnvVarRequest value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - writer.WriteStartObject(); - var __writtenPropertyNames = new global::System.Collections.Generic.HashSet(global::System.StringComparer.Ordinal); - if (value.IsEnvVar) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.EnvVar), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.EnvVar).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickEnvVar(), typeInfo); - if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) - { - throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); - } - - foreach (var __property in __element0.EnumerateObject()) - { - if (__writtenPropertyNames.Add(__property.Name)) - { - __property.WriteTo(writer); - } - } - } - if (value.IsEnvVarRequestVariant2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickEnvVarRequestVariant2(), typeInfo); - if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) - { - throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); - } - - foreach (var __property in __element1.EnumerateObject()) - { - if (__writtenPropertyNames.Add(__property.Name)) - { - __property.WriteTo(writer); - } - } - } - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.WritableVersionSourceType.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.WritableVersionSourceType.g.cs new file mode 100644 index 00000000..745e3724 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.WritableVersionSourceType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class WritableVersionSourceTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.WritableVersionSourceType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.WritableVersionSourceTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.WritableVersionSourceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.WritableVersionSourceType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.WritableVersionSourceType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Apify.WritableVersionSourceTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.WritableVersionSourceTypeNullable.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.WritableVersionSourceTypeNullable.g.cs new file mode 100644 index 00000000..672f09f0 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.WritableVersionSourceTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class WritableVersionSourceTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.WritableVersionSourceType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.WritableVersionSourceTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.WritableVersionSourceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.WritableVersionSourceType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.WritableVersionSourceType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Apify.WritableVersionSourceTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.JsonSerializerContext.g.cs index bb729d5c..352a465a 100644 --- a/src/libs/Apify/Generated/Apify.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.JsonSerializerContext.g.cs @@ -15,17 +15,21 @@ namespace Apify typeof(global::Apify.JsonConverters.ErrorTypeNullableJsonConverter), - typeof(global::Apify.JsonConverters.VersionSourceTypeJsonConverter), + typeof(global::Apify.JsonConverters.ActorPermissionLevelJsonConverter), - typeof(global::Apify.JsonConverters.VersionSourceTypeNullableJsonConverter), + typeof(global::Apify.JsonConverters.ActorPermissionLevelNullableJsonConverter), + + typeof(global::Apify.JsonConverters.WritableVersionSourceTypeJsonConverter), + + typeof(global::Apify.JsonConverters.WritableVersionSourceTypeNullableJsonConverter), typeof(global::Apify.JsonConverters.SourceCodeFileFormatJsonConverter), typeof(global::Apify.JsonConverters.SourceCodeFileFormatNullableJsonConverter), - typeof(global::Apify.JsonConverters.ActorPermissionLevelJsonConverter), + typeof(global::Apify.JsonConverters.VersionSourceTypeJsonConverter), - typeof(global::Apify.JsonConverters.ActorPermissionLevelNullableJsonConverter), + typeof(global::Apify.JsonConverters.VersionSourceTypeNullableJsonConverter), typeof(global::Apify.JsonConverters.ActorRunPricingInfoDiscriminatorPricingModelJsonConverter), @@ -167,8 +171,6 @@ namespace Apify typeof(global::Apify.JsonConverters.ActorRunPricingInfoJsonConverter), - typeof(global::Apify.JsonConverters.EnvVarRequestJsonConverter), - typeof(global::Apify.JsonConverters.ListOfWebhooksJsonConverter), typeof(global::Apify.JsonConverters.ListOfBuildsJsonConverter), @@ -273,23 +275,27 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType), TypeInfoPropertyName = "ErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorDetail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType), TypeInfoPropertyName = "VersionSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVar))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorPermissionLevel), TypeInfoPropertyName = "ActorPermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WritableVersionSourceType), TypeInfoPropertyName = "WritableVersionSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVarRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFileFormat), TypeInfoPropertyName = "SourceCodeFileFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SourceCodeFolder))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfSourceCodeFileSourceCodeFolder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Version))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorPermissionLevel), TypeInfoPropertyName = "ActorPermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateVersionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DefaultRunOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorStandby))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ExampleRunInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateActorRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionSourceType), TypeInfoPropertyName = "VersionSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVar))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Version))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CommonActorPricingInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TieredPricingPerEventEntry))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -313,19 +319,18 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaggedBuilds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorNotice), TypeInfoPropertyName = "ActorNotice2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateOrUpdateVersionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdatedBuildProperty))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateActorRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfVersions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfVersionsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateVersionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfEnvVars))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfEnvVarsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVarRequest), TypeInfoPropertyName = "EnvVarRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVarResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookEventType), TypeInfoPropertyName = "WebhookEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookCondition))] @@ -507,6 +512,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfSchedulesVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfSchedulesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleNotifications))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionRunActor))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionRunActorTask))] @@ -522,7 +528,6 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionDiscriminatorType), TypeInfoPropertyName = "ScheduleActionDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Schedule), TypeInfoPropertyName = "Schedule2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleVariant2Notifications))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleLogEntry))] @@ -615,11 +620,12 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PostChargeRunResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/Apify/Generated/Apify.JsonSerializerContextTypes.g.cs b/src/libs/Apify/Generated/Apify.JsonSerializerContextTypes.g.cs index 14387492..e7220d43 100644 --- a/src/libs/Apify/Generated/Apify.JsonSerializerContextTypes.g.cs +++ b/src/libs/Apify/Generated/Apify.JsonSerializerContextTypes.g.cs @@ -101,43 +101,43 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.VersionSourceType? Type17 { get; set; } + public global::Apify.ActorPermissionLevel? Type17 { get; set; } /// /// /// - public global::Apify.EnvVar? Type18 { get; set; } + public global::Apify.WritableVersionSourceType? Type18 { get; set; } /// /// /// - public global::Apify.SourceCodeFileFormat? Type19 { get; set; } + public global::Apify.EnvVarRequest? Type19 { get; set; } /// /// /// - public global::Apify.SourceCodeFile? Type20 { get; set; } + public global::Apify.SourceCodeFileFormat? Type20 { get; set; } /// /// /// - public global::Apify.SourceCodeFolder? Type21 { get; set; } + public global::Apify.SourceCodeFile? Type21 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type22 { get; set; } + public global::Apify.SourceCodeFolder? Type22 { get; set; } /// /// /// - public global::Apify.AnyOf? Type23 { get; set; } + public global::System.Collections.Generic.IList>? Type23 { get; set; } /// /// /// - public global::Apify.Version? Type24 { get; set; } + public global::Apify.AnyOf? Type24 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type25 { get; set; } + public global::Apify.CreateVersionRequest? Type25 { get; set; } /// /// /// - public global::Apify.ActorPermissionLevel? Type26 { get; set; } + public global::System.Collections.Generic.IList? Type26 { get; set; } /// /// /// @@ -161,7 +161,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type32 { get; set; } + public global::System.Collections.Generic.IList? Type32 { get; set; } /// /// /// @@ -169,1295 +169,1307 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.CommonActorPricingInfo? Type34 { get; set; } + public global::Apify.VersionSourceType? Type34 { get; set; } /// /// /// - public global::Apify.TieredPricingPerEventEntry? Type35 { get; set; } + public global::Apify.EnvVar? Type35 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type36 { get; set; } + public global::Apify.Version? Type36 { get; set; } /// /// /// - public global::Apify.ActorChargeEvent? Type37 { get; set; } + public global::System.Collections.Generic.IList? Type37 { get; set; } /// /// /// - public global::Apify.PayPerEventActorPricingInfo? Type38 { get; set; } + public global::Apify.CommonActorPricingInfo? Type38 { get; set; } /// /// /// - public global::Apify.PayPerEventActorPricingInfoVariant2? Type39 { get; set; } + public global::Apify.TieredPricingPerEventEntry? Type39 { get; set; } /// /// /// - public global::Apify.PayPerEventActorPricingInfoVariant2PricingPerEvent? Type40 { get; set; } + public global::System.Collections.Generic.Dictionary? Type40 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type41 { get; set; } + public global::Apify.ActorChargeEvent? Type41 { get; set; } /// /// /// - public global::Apify.TieredPricingPerDatasetItemEntry? Type42 { get; set; } + public global::Apify.PayPerEventActorPricingInfo? Type42 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type43 { get; set; } + public global::Apify.PayPerEventActorPricingInfoVariant2? Type43 { get; set; } /// /// /// - public global::Apify.PricePerDatasetItemActorPricingInfo? Type44 { get; set; } + public global::Apify.PayPerEventActorPricingInfoVariant2PricingPerEvent? Type44 { get; set; } /// /// /// - public global::Apify.PricePerDatasetItemActorPricingInfoVariant2? Type45 { get; set; } + public global::System.Collections.Generic.Dictionary? Type45 { get; set; } /// /// /// - public global::Apify.FlatPricePerMonthActorPricingInfo? Type46 { get; set; } + public global::Apify.TieredPricingPerDatasetItemEntry? Type46 { get; set; } /// /// /// - public global::Apify.FlatPricePerMonthActorPricingInfoVariant2? Type47 { get; set; } + public global::System.Collections.Generic.Dictionary? Type47 { get; set; } /// /// /// - public global::Apify.FreeActorPricingInfo? Type48 { get; set; } + public global::Apify.PricePerDatasetItemActorPricingInfo? Type48 { get; set; } /// /// /// - public global::Apify.FreeActorPricingInfoVariant2? Type49 { get; set; } + public global::Apify.PricePerDatasetItemActorPricingInfoVariant2? Type49 { get; set; } /// /// /// - public global::Apify.ActorRunPricingInfo? Type50 { get; set; } + public global::Apify.FlatPricePerMonthActorPricingInfo? Type50 { get; set; } /// /// /// - public global::Apify.ActorRunPricingInfoDiscriminator? Type51 { get; set; } + public global::Apify.FlatPricePerMonthActorPricingInfoVariant2? Type51 { get; set; } /// /// /// - public global::Apify.ActorRunPricingInfoDiscriminatorPricingModel? Type52 { get; set; } + public global::Apify.FreeActorPricingInfo? Type52 { get; set; } /// /// /// - public global::Apify.TaggedBuildInfo? Type53 { get; set; } + public global::Apify.FreeActorPricingInfoVariant2? Type53 { get; set; } /// /// /// - public global::Apify.TaggedBuilds? Type54 { get; set; } + public global::Apify.ActorRunPricingInfo? Type54 { get; set; } /// /// /// - public global::Apify.ActorNotice? Type55 { get; set; } + public global::Apify.ActorRunPricingInfoDiscriminator? Type55 { get; set; } /// /// /// - public global::Apify.ActorResource? Type56 { get; set; } + public global::Apify.ActorRunPricingInfoDiscriminatorPricingModel? Type56 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type57 { get; set; } + public global::Apify.TaggedBuildInfo? Type57 { get; set; } /// /// /// - public global::Apify.ActorResponse? Type58 { get; set; } + public global::Apify.TaggedBuilds? Type58 { get; set; } /// /// /// - public global::Apify.CreateOrUpdateVersionRequest? Type59 { get; set; } + public global::Apify.ActorNotice? Type59 { get; set; } /// /// /// - public global::Apify.UpdatedBuildProperty? Type60 { get; set; } + public global::Apify.ActorResource? Type60 { get; set; } /// /// /// - public global::Apify.UpdateActorRequest? Type61 { get; set; } + public global::System.Collections.Generic.IList? Type61 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type62 { get; set; } + public global::System.Collections.Generic.IList? Type62 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type63 { get; set; } + public global::Apify.ActorResponse? Type63 { get; set; } /// /// /// - public global::Apify.ListOfVersions? Type64 { get; set; } + public global::Apify.UpdatedBuildProperty? Type64 { get; set; } /// /// /// - public global::Apify.ListOfVersionsResponse? Type65 { get; set; } + public global::Apify.UpdateActorRequest? Type65 { get; set; } /// /// /// - public global::Apify.VersionResponse? Type66 { get; set; } + public global::System.Collections.Generic.Dictionary? Type66 { get; set; } /// /// /// - public global::Apify.ListOfEnvVars? Type67 { get; set; } + public global::Apify.ListOfVersions? Type67 { get; set; } /// /// /// - public global::Apify.ListOfEnvVarsResponse? Type68 { get; set; } + public global::Apify.ListOfVersionsResponse? Type68 { get; set; } /// /// /// - public global::Apify.EnvVarRequest? Type69 { get; set; } + public global::Apify.VersionResponse? Type69 { get; set; } /// /// /// - public global::Apify.EnvVarResponse? Type70 { get; set; } + public global::Apify.UpdateVersionRequest? Type70 { get; set; } /// /// /// - public global::Apify.WebhookEventType? Type71 { get; set; } + public global::Apify.ListOfEnvVars? Type71 { get; set; } /// /// /// - public global::Apify.WebhookCondition? Type72 { get; set; } + public global::Apify.ListOfEnvVarsResponse? Type72 { get; set; } /// /// /// - public global::Apify.WebhookDispatchStatus? Type73 { get; set; } + public global::Apify.EnvVarResponse? Type73 { get; set; } /// /// /// - public global::Apify.WebhookLastDispatch? Type74 { get; set; } + public global::Apify.WebhookEventType? Type74 { get; set; } /// /// /// - public global::Apify.WebhookStats? Type75 { get; set; } + public global::Apify.WebhookCondition? Type75 { get; set; } /// /// /// - public global::Apify.WebhookListItem? Type76 { get; set; } + public global::Apify.WebhookDispatchStatus? Type76 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type77 { get; set; } + public global::Apify.WebhookLastDispatch? Type77 { get; set; } /// /// /// - public global::Apify.ListOfWebhooks? Type78 { get; set; } + public global::Apify.WebhookStats? Type78 { get; set; } /// /// /// - public global::Apify.ListOfWebhooksVariant2? Type79 { get; set; } + public global::Apify.WebhookListItem? Type79 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type80 { get; set; } + public global::System.Collections.Generic.IList? Type80 { get; set; } /// /// /// - public global::Apify.ListOfWebhooksResponse? Type81 { get; set; } + public global::Apify.ListOfWebhooks? Type81 { get; set; } /// /// /// - public global::Apify.ActorJobStatus? Type82 { get; set; } + public global::Apify.ListOfWebhooksVariant2? Type82 { get; set; } /// /// /// - public global::Apify.RunOrigin? Type83 { get; set; } + public global::System.Collections.Generic.IList? Type83 { get; set; } /// /// /// - public global::Apify.BuildMeta? Type84 { get; set; } + public global::Apify.ListOfWebhooksResponse? Type84 { get; set; } /// /// /// - public global::Apify.BuildListItem? Type85 { get; set; } + public global::Apify.ActorJobStatus? Type85 { get; set; } /// /// /// - public global::Apify.ListOfBuilds? Type86 { get; set; } + public global::Apify.RunOrigin? Type86 { get; set; } /// /// /// - public global::Apify.ListOfBuildsVariant2? Type87 { get; set; } + public global::Apify.BuildMeta? Type87 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type88 { get; set; } + public global::Apify.BuildListItem? Type88 { get; set; } /// /// /// - public global::Apify.ListOfBuildsResponse? Type89 { get; set; } + public global::Apify.ListOfBuilds? Type89 { get; set; } /// /// /// - public global::Apify.BuildStats? Type90 { get; set; } + public global::Apify.ListOfBuildsVariant2? Type90 { get; set; } /// /// /// - public global::Apify.BuildOptions? Type91 { get; set; } + public global::System.Collections.Generic.IList? Type91 { get; set; } /// /// /// - public global::Apify.BuildUsage? Type92 { get; set; } + public global::Apify.ListOfBuildsResponse? Type92 { get; set; } /// /// /// - public global::Apify.ActorDefinition? Type93 { get; set; } + public global::Apify.BuildStats? Type93 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type94 { get; set; } + public global::Apify.BuildOptions? Type94 { get; set; } /// /// /// - public global::Apify.ActorDefinitionStorages? Type95 { get; set; } + public global::Apify.BuildUsage? Type95 { get; set; } /// /// /// - public global::Apify.OneOf? Type96 { get; set; } + public global::Apify.ActorDefinition? Type96 { get; set; } /// /// /// - public global::Apify.Build? Type97 { get; set; } + public global::System.Collections.Generic.Dictionary? Type97 { get; set; } /// /// /// - public global::Apify.BuildActVersion? Type98 { get; set; } + public global::Apify.ActorDefinitionStorages? Type98 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type99 { get; set; } + public global::Apify.OneOf? Type99 { get; set; } /// /// /// - public global::Apify.BuildResponse? Type100 { get; set; } + public global::Apify.Build? Type100 { get; set; } /// /// /// - public global::Apify.RunMeta? Type101 { get; set; } + public global::Apify.BuildActVersion? Type101 { get; set; } /// /// /// - public global::Apify.RunListItem? Type102 { get; set; } + public global::System.Collections.Generic.IList? Type102 { get; set; } /// /// /// - public global::Apify.ListOfRuns? Type103 { get; set; } + public global::Apify.BuildResponse? Type103 { get; set; } /// /// /// - public global::Apify.ListOfRunsVariant2? Type104 { get; set; } + public global::Apify.RunMeta? Type104 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type105 { get; set; } + public global::Apify.RunListItem? Type105 { get; set; } /// /// /// - public global::Apify.ListOfRunsResponse? Type106 { get; set; } + public global::Apify.ListOfRuns? Type106 { get; set; } /// /// /// - public global::Apify.WebhookRepresentation? Type107 { get; set; } + public global::Apify.ListOfRunsVariant2? Type107 { get; set; } /// /// /// - public global::Apify.RunStats? Type108 { get; set; } + public global::System.Collections.Generic.IList? Type108 { get; set; } /// /// /// - public global::Apify.RunOptions? Type109 { get; set; } + public global::Apify.ListOfRunsResponse? Type109 { get; set; } /// /// /// - public global::Apify.GeneralAccess? Type110 { get; set; } + public global::Apify.WebhookRepresentation? Type110 { get; set; } /// /// /// - public global::Apify.RunUsage? Type111 { get; set; } + public global::Apify.RunStats? Type111 { get; set; } /// /// /// - public global::Apify.RunUsageUsd? Type112 { get; set; } + public global::Apify.RunOptions? Type112 { get; set; } /// /// /// - public global::Apify.RunMetamorphEvent? Type113 { get; set; } + public global::Apify.GeneralAccess? Type113 { get; set; } /// /// /// - public global::Apify.Run? Type114 { get; set; } + public global::Apify.RunUsage? Type114 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type115 { get; set; } + public global::Apify.RunUsageUsd? Type115 { get; set; } /// /// /// - public global::Apify.RunStorageIds? Type116 { get; set; } + public global::Apify.RunMetamorphEvent? Type116 { get; set; } /// /// /// - public global::Apify.RunStorageIdsDatasets? Type117 { get; set; } + public global::Apify.Run? Type117 { get; set; } /// /// /// - public global::Apify.RunStorageIdsKeyValueStores? Type118 { get; set; } + public global::System.Collections.Generic.Dictionary? Type118 { get; set; } /// /// /// - public global::Apify.RunStorageIdsRequestQueues? Type119 { get; set; } + public global::Apify.RunStorageIds? Type119 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type120 { get; set; } + public global::Apify.RunStorageIdsDatasets? Type120 { get; set; } /// /// /// - public global::Apify.RunResponse? Type121 { get; set; } + public global::Apify.RunStorageIdsKeyValueStores? Type121 { get; set; } /// /// /// - public global::Apify.DatasetStats? Type122 { get; set; } + public global::Apify.RunStorageIdsRequestQueues? Type122 { get; set; } /// /// /// - public global::Apify.DatasetResource? Type123 { get; set; } + public global::System.Collections.Generic.IList? Type123 { get; set; } /// /// /// - public global::Apify.DatasetResponse? Type124 { get; set; } + public global::Apify.RunResponse? Type124 { get; set; } /// /// /// - public global::Apify.UpdateDatasetRequest? Type125 { get; set; } + public global::Apify.DatasetStats? Type125 { get; set; } /// /// /// - public global::Apify.PutItemsRequest? Type126 { get; set; } + public global::Apify.DatasetResource? Type126 { get; set; } /// /// /// - public global::Apify.DatasetItemValidationError? Type127 { get; set; } + public global::Apify.DatasetResponse? Type127 { get; set; } /// /// /// - public global::Apify.InvalidDatasetItem? Type128 { get; set; } + public global::Apify.UpdateDatasetRequest? Type128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type129 { get; set; } + public global::Apify.PutItemsRequest? Type129 { get; set; } /// /// /// - public global::Apify.DatasetSchemaValidationErrorData? Type130 { get; set; } + public global::Apify.DatasetItemValidationError? Type130 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type131 { get; set; } + public global::Apify.InvalidDatasetItem? Type131 { get; set; } /// /// /// - public global::Apify.DatasetSchemaValidationError? Type132 { get; set; } + public global::System.Collections.Generic.IList? Type132 { get; set; } /// /// /// - public global::Apify.PutItemsErrorResponse? Type133 { get; set; } + public global::Apify.DatasetSchemaValidationErrorData? Type133 { get; set; } /// /// /// - public global::Apify.DatasetFieldStatistics? Type134 { get; set; } + public global::System.Collections.Generic.IList? Type134 { get; set; } /// /// /// - public global::Apify.DatasetStatistics? Type135 { get; set; } + public global::Apify.DatasetSchemaValidationError? Type135 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type136 { get; set; } + public global::Apify.PutItemsErrorResponse? Type136 { get; set; } /// /// /// - public global::Apify.DatasetStatisticsResponse? Type137 { get; set; } + public global::Apify.DatasetFieldStatistics? Type137 { get; set; } /// /// /// - public global::Apify.KeyValueStoreStats? Type138 { get; set; } + public global::Apify.DatasetStatistics? Type138 { get; set; } /// /// /// - public global::Apify.KeyValueStoreResource? Type139 { get; set; } + public global::System.Collections.Generic.Dictionary? Type139 { get; set; } /// /// /// - public global::Apify.KeyValueStoreResponse? Type140 { get; set; } + public global::Apify.DatasetStatisticsResponse? Type140 { get; set; } /// /// /// - public global::Apify.UpdateKeyValueStoreRequest? Type141 { get; set; } + public global::Apify.KeyValueStoreStats? Type141 { get; set; } /// /// /// - public global::Apify.KeyValueStoreKey? Type142 { get; set; } + public global::Apify.KeyValueStoreResource? Type142 { get; set; } /// /// /// - public global::Apify.ListOfKeys? Type143 { get; set; } + public global::Apify.KeyValueStoreResponse? Type143 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type144 { get; set; } + public global::Apify.UpdateKeyValueStoreRequest? Type144 { get; set; } /// /// /// - public global::Apify.ListOfKeysResponse? Type145 { get; set; } + public global::Apify.KeyValueStoreKey? Type145 { get; set; } /// /// /// - public global::Apify.RecordResponse? Type146 { get; set; } + public global::Apify.ListOfKeys? Type146 { get; set; } /// /// /// - public global::Apify.PutRecordRequest? Type147 { get; set; } + public global::System.Collections.Generic.IList? Type147 { get; set; } /// /// /// - public global::Apify.RequestQueueStats? Type148 { get; set; } + public global::Apify.ListOfKeysResponse? Type148 { get; set; } /// /// /// - public global::Apify.RequestQueueResource? Type149 { get; set; } + public global::Apify.RecordResponse? Type149 { get; set; } /// /// /// - public global::Apify.RequestQueueResponse? Type150 { get; set; } + public global::Apify.PutRecordRequest? Type150 { get; set; } /// /// /// - public global::Apify.UpdateRequestQueueRequest? Type151 { get; set; } + public global::Apify.RequestQueueStats? Type151 { get; set; } /// /// /// - public global::Apify.HttpMethod? Type152 { get; set; } + public global::Apify.RequestQueueResource? Type152 { get; set; } /// /// /// - public global::Apify.RequestUserData? Type153 { get; set; } + public global::Apify.RequestQueueResponse? Type153 { get; set; } /// /// /// - public global::Apify.RequestBase? Type154 { get; set; } + public global::Apify.UpdateRequestQueueRequest? Type154 { get; set; } /// /// /// - public global::Apify.RequestResource? Type155 { get; set; } + public global::Apify.HttpMethod? Type155 { get; set; } /// /// /// - public global::Apify.RequestResourceVariant2? Type156 { get; set; } + public global::Apify.RequestUserData? Type156 { get; set; } /// /// /// - public global::Apify.ListOfRequests? Type157 { get; set; } + public global::Apify.RequestBase? Type157 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type158 { get; set; } + public global::Apify.RequestResource? Type158 { get; set; } /// /// /// - public global::Apify.ListOfRequestsResponse? Type159 { get; set; } + public global::Apify.RequestResourceVariant2? Type159 { get; set; } /// /// /// - public global::Apify.RequestWithoutId? Type160 { get; set; } + public global::Apify.ListOfRequests? Type160 { get; set; } /// /// /// - public global::Apify.RequestRegistration? Type161 { get; set; } + public global::System.Collections.Generic.IList? Type161 { get; set; } /// /// /// - public global::Apify.AddRequestResponse? Type162 { get; set; } + public global::Apify.ListOfRequestsResponse? Type162 { get; set; } /// /// /// - public global::Apify.AddedRequest? Type163 { get; set; } + public global::Apify.RequestWithoutId? Type163 { get; set; } /// /// /// - public global::Apify.UnprocessedRequest? Type164 { get; set; } + public global::Apify.RequestRegistration? Type164 { get; set; } /// /// /// - public global::Apify.BatchAddResult? Type165 { get; set; } + public global::Apify.AddRequestResponse? Type165 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type166 { get; set; } + public global::Apify.AddedRequest? Type166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type167 { get; set; } + public global::Apify.UnprocessedRequest? Type167 { get; set; } /// /// /// - public global::Apify.BatchAddResponse? Type168 { get; set; } + public global::Apify.BatchAddResult? Type168 { get; set; } /// /// /// - public global::Apify.RequestToDeleteById? Type169 { get; set; } + public global::System.Collections.Generic.IList? Type169 { get; set; } /// /// /// - public global::Apify.RequestToDeleteByUniqueKey? Type170 { get; set; } + public global::System.Collections.Generic.IList? Type170 { get; set; } /// /// /// - public global::Apify.RequestToDelete? Type171 { get; set; } + public global::Apify.BatchAddResponse? Type171 { get; set; } /// /// /// - public global::Apify.DeletedRequestById? Type172 { get; set; } + public global::Apify.RequestToDeleteById? Type172 { get; set; } /// /// /// - public global::Apify.DeletedRequestByUniqueKey? Type173 { get; set; } + public global::Apify.RequestToDeleteByUniqueKey? Type173 { get; set; } /// /// /// - public global::Apify.DeletedRequest? Type174 { get; set; } + public global::Apify.RequestToDelete? Type174 { get; set; } /// /// /// - public global::Apify.BatchDeleteResult? Type175 { get; set; } + public global::Apify.DeletedRequestById? Type175 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type176 { get; set; } + public global::Apify.DeletedRequestByUniqueKey? Type176 { get; set; } /// /// /// - public global::Apify.BatchDeleteResponse? Type177 { get; set; } + public global::Apify.DeletedRequest? Type177 { get; set; } /// /// /// - public global::Apify.UnlockRequestsResult? Type178 { get; set; } + public global::Apify.BatchDeleteResult? Type178 { get; set; } /// /// /// - public global::Apify.UnlockRequestsResponse? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::Apify.RequestResponse? Type180 { get; set; } + public global::Apify.BatchDeleteResponse? Type180 { get; set; } /// /// /// - public global::Apify.UpdateRequestResponse? Type181 { get; set; } + public global::Apify.UnlockRequestsResult? Type181 { get; set; } /// /// /// - public global::Apify.RequestLockInfo? Type182 { get; set; } + public global::Apify.UnlockRequestsResponse? Type182 { get; set; } /// /// /// - public global::Apify.ProlongRequestLockResponse? Type183 { get; set; } + public global::Apify.RequestResponse? Type183 { get; set; } /// /// /// - public global::Apify.RequestQueueHeadItem? Type184 { get; set; } + public global::Apify.UpdateRequestResponse? Type184 { get; set; } /// /// /// - public global::Apify.RequestQueueHead? Type185 { get; set; } + public global::Apify.RequestLockInfo? Type185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type186 { get; set; } + public global::Apify.ProlongRequestLockResponse? Type186 { get; set; } /// /// /// - public global::Apify.RequestQueueHeadResponse? Type187 { get; set; } + public global::Apify.RequestQueueHeadItem? Type187 { get; set; } /// /// /// - public global::Apify.LockedRequestQueueHeadItem? Type188 { get; set; } + public global::Apify.RequestQueueHead? Type188 { get; set; } /// /// /// - public global::Apify.LockedRequestQueueHead? Type189 { get; set; } + public global::System.Collections.Generic.IList? Type189 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type190 { get; set; } + public global::Apify.RequestQueueHeadResponse? Type190 { get; set; } /// /// /// - public global::Apify.LockedRequestQueueHeadResponse? Type191 { get; set; } + public global::Apify.LockedRequestQueueHeadItem? Type191 { get; set; } /// /// /// - public global::Apify.TaskStats? Type192 { get; set; } + public global::Apify.LockedRequestQueueHead? Type192 { get; set; } /// /// /// - public global::Apify.TaskListItem? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::Apify.ListOfTasks? Type194 { get; set; } + public global::Apify.LockedRequestQueueHeadResponse? Type194 { get; set; } /// /// /// - public global::Apify.ListOfTasksVariant2? Type195 { get; set; } + public global::Apify.TaskStats? Type195 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type196 { get; set; } + public global::Apify.TaskListItem? Type196 { get; set; } /// /// /// - public global::Apify.ListOfTasksResponse? Type197 { get; set; } + public global::Apify.ListOfTasks? Type197 { get; set; } /// /// /// - public global::Apify.TaskOptions? Type198 { get; set; } + public global::Apify.ListOfTasksVariant2? Type198 { get; set; } /// /// /// - public global::Apify.TaskInput? Type199 { get; set; } + public global::System.Collections.Generic.IList? Type199 { get; set; } /// /// /// - public global::Apify.TaskPublicConfig? Type200 { get; set; } + public global::Apify.ListOfTasksResponse? Type200 { get; set; } /// /// /// - public global::Apify.CreateTaskRequest? Type201 { get; set; } + public global::Apify.TaskOptions? Type201 { get; set; } /// /// /// - public global::Apify.AnyOf>? Type202 { get; set; } + public global::Apify.TaskInput? Type202 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type203 { get; set; } + public global::Apify.TaskPublicConfig? Type203 { get; set; } /// /// /// - public global::Apify.Task? Type204 { get; set; } + public global::Apify.CreateTaskRequest? Type204 { get; set; } /// /// /// - public global::Apify.TaskResponse? Type205 { get; set; } + public global::Apify.AnyOf>? Type205 { get; set; } /// /// /// - public global::Apify.UpdateTaskRequest? Type206 { get; set; } + public global::System.Collections.Generic.IList? Type206 { get; set; } /// /// /// - public global::Apify.WebhookResource? Type207 { get; set; } + public global::Apify.Task? Type207 { get; set; } /// /// /// - public global::Apify.UpdateRunRequest? Type208 { get; set; } + public global::Apify.TaskResponse? Type208 { get; set; } /// /// /// - public global::Apify.ChargeRunRequest? Type209 { get; set; } + public global::Apify.UpdateTaskRequest? Type209 { get; set; } /// /// /// - public global::Apify.StorageOwnership? Type210 { get; set; } + public global::Apify.WebhookResource? Type210 { get; set; } /// /// /// - public global::Apify.ListOfKeyValueStores? Type211 { get; set; } + public global::Apify.UpdateRunRequest? Type211 { get; set; } /// /// /// - public global::Apify.ListOfKeyValueStoresVariant2? Type212 { get; set; } + public global::Apify.ChargeRunRequest? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type213 { get; set; } + public global::Apify.StorageOwnership? Type213 { get; set; } /// /// /// - public global::Apify.ListOfKeyValueStoresResponse? Type214 { get; set; } + public global::Apify.ListOfKeyValueStores? Type214 { get; set; } /// /// /// - public global::Apify.DatasetListItem? Type215 { get; set; } + public global::Apify.ListOfKeyValueStoresVariant2? Type215 { get; set; } /// /// /// - public global::Apify.ListOfDatasets? Type216 { get; set; } + public global::System.Collections.Generic.IList? Type216 { get; set; } /// /// /// - public global::Apify.ListOfDatasetsVariant2? Type217 { get; set; } + public global::Apify.ListOfKeyValueStoresResponse? Type217 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type218 { get; set; } + public global::Apify.DatasetListItem? Type218 { get; set; } /// /// /// - public global::Apify.ListOfDatasetsResponse? Type219 { get; set; } + public global::Apify.ListOfDatasets? Type219 { get; set; } /// /// /// - public global::Apify.RequestQueueListItem? Type220 { get; set; } + public global::Apify.ListOfDatasetsVariant2? Type220 { get; set; } /// /// /// - public global::Apify.ListOfRequestQueues? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public global::Apify.ListOfRequestQueuesVariant2? Type222 { get; set; } + public global::Apify.ListOfDatasetsResponse? Type222 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::Apify.RequestQueueListItem? Type223 { get; set; } /// /// /// - public global::Apify.ListOfRequestQueuesResponse? Type224 { get; set; } + public global::Apify.ListOfRequestQueues? Type224 { get; set; } /// /// /// - public global::Apify.CreateWebhookRequest? Type225 { get; set; } + public global::Apify.ListOfRequestQueuesVariant2? Type225 { get; set; } /// /// /// - public global::Apify.WebhookResponse? Type226 { get; set; } + public global::System.Collections.Generic.IList? Type226 { get; set; } /// /// /// - public global::Apify.UpdateWebhookRequest? Type227 { get; set; } + public global::Apify.ListOfRequestQueuesResponse? Type227 { get; set; } /// /// /// - public global::Apify.WebhookDispatchWebhookSummary? Type228 { get; set; } + public global::Apify.CreateWebhookRequest? Type228 { get; set; } /// /// /// - public global::Apify.WebhookDispatch? Type229 { get; set; } + public global::Apify.WebhookResponse? Type229 { get; set; } /// /// /// - public global::Apify.WebhookDispatchEventData? Type230 { get; set; } + public global::Apify.UpdateWebhookRequest? Type230 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type231 { get; set; } + public global::Apify.WebhookDispatchWebhookSummary? Type231 { get; set; } /// /// /// - public global::Apify.WebhookDispatchCall? Type232 { get; set; } + public global::Apify.WebhookDispatch? Type232 { get; set; } /// /// /// - public global::Apify.WebhookDispatchResponse? Type233 { get; set; } + public global::Apify.WebhookDispatchEventData? Type233 { get; set; } /// /// /// - public global::Apify.ListOfWebhookDispatches? Type234 { get; set; } + public global::System.Collections.Generic.IList? Type234 { get; set; } /// /// /// - public global::Apify.ListOfWebhookDispatchesVariant2? Type235 { get; set; } + public global::Apify.WebhookDispatchCall? Type235 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type236 { get; set; } + public global::Apify.WebhookDispatchResponse? Type236 { get; set; } /// /// /// - public global::Apify.ListOfWebhookDispatchesResponse? Type237 { get; set; } + public global::Apify.ListOfWebhookDispatches? Type237 { get; set; } /// /// /// - public global::Apify.ScheduleBase? Type238 { get; set; } + public global::Apify.ListOfWebhookDispatchesVariant2? Type238 { get; set; } /// /// /// - public global::Apify.ScheduleListItemActionRunActor? Type239 { get; set; } + public global::System.Collections.Generic.IList? Type239 { get; set; } /// /// /// - public global::Apify.ScheduleListItemActionRunActorTask? Type240 { get; set; } + public global::Apify.ListOfWebhookDispatchesResponse? Type240 { get; set; } /// /// /// - public global::Apify.ScheduleListItemAction? Type241 { get; set; } + public global::Apify.ScheduleBase? Type241 { get; set; } /// /// /// - public global::Apify.ScheduleListItemActionDiscriminator? Type242 { get; set; } + public global::Apify.ScheduleListItemActionRunActor? Type242 { get; set; } /// /// /// - public global::Apify.ScheduleListItemActionDiscriminatorType? Type243 { get; set; } + public global::Apify.ScheduleListItemActionRunActorTask? Type243 { get; set; } /// /// /// - public global::Apify.ScheduleListItem? Type244 { get; set; } + public global::Apify.ScheduleListItemAction? Type244 { get; set; } /// /// /// - public global::Apify.ScheduleListItemVariant2? Type245 { get; set; } + public global::Apify.ScheduleListItemActionDiscriminator? Type245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type246 { get; set; } + public global::Apify.ScheduleListItemActionDiscriminatorType? Type246 { get; set; } /// /// /// - public global::Apify.ListOfSchedules? Type247 { get; set; } + public global::Apify.ScheduleListItem? Type247 { get; set; } /// /// /// - public global::Apify.ListOfSchedulesVariant2? Type248 { get; set; } + public global::Apify.ScheduleListItemVariant2? Type248 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type249 { get; set; } + public global::System.Collections.Generic.IList? Type249 { get; set; } /// /// /// - public global::Apify.ListOfSchedulesResponse? Type250 { get; set; } + public global::Apify.ListOfSchedules? Type250 { get; set; } /// /// /// - public global::Apify.ScheduleActionRunInput? Type251 { get; set; } + public global::Apify.ListOfSchedulesVariant2? Type251 { get; set; } /// /// /// - public global::Apify.ScheduleCreateActionRunActor? Type252 { get; set; } + public global::System.Collections.Generic.IList? Type252 { get; set; } /// /// /// - public global::Apify.ScheduleCreateActionRunActorTask? Type253 { get; set; } + public global::Apify.ListOfSchedulesResponse? Type253 { get; set; } /// /// /// - public global::Apify.ScheduleCreateAction? Type254 { get; set; } + public global::Apify.ScheduleNotifications? Type254 { get; set; } /// /// /// - public global::Apify.ScheduleCreateActionDiscriminator? Type255 { get; set; } + public global::Apify.ScheduleActionRunInput? Type255 { get; set; } /// /// /// - public global::Apify.ScheduleCreateActionDiscriminatorType? Type256 { get; set; } + public global::Apify.ScheduleCreateActionRunActor? Type256 { get; set; } /// /// /// - public global::Apify.CreateOrUpdateScheduleRequest? Type257 { get; set; } + public global::Apify.ScheduleCreateActionRunActorTask? Type257 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type258 { get; set; } + public global::Apify.ScheduleCreateAction? Type258 { get; set; } /// /// /// - public global::Apify.ScheduleActionRunActor? Type259 { get; set; } + public global::Apify.ScheduleCreateActionDiscriminator? Type259 { get; set; } /// /// /// - public global::Apify.ScheduleActionRunActorTask? Type260 { get; set; } + public global::Apify.ScheduleCreateActionDiscriminatorType? Type260 { get; set; } /// /// /// - public global::Apify.ScheduleAction? Type261 { get; set; } + public global::Apify.CreateOrUpdateScheduleRequest? Type261 { get; set; } /// /// /// - public global::Apify.ScheduleActionDiscriminator? Type262 { get; set; } + public global::System.Collections.Generic.IList? Type262 { get; set; } /// /// /// - public global::Apify.ScheduleActionDiscriminatorType? Type263 { get; set; } + public global::Apify.ScheduleActionRunActor? Type263 { get; set; } /// /// /// - public global::Apify.Schedule? Type264 { get; set; } + public global::Apify.ScheduleActionRunActorTask? Type264 { get; set; } /// /// /// - public global::Apify.ScheduleVariant2? Type265 { get; set; } + public global::Apify.ScheduleAction? Type265 { get; set; } /// /// /// - public global::Apify.ScheduleVariant2Notifications? Type266 { get; set; } + public global::Apify.ScheduleActionDiscriminator? Type266 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type267 { get; set; } + public global::Apify.ScheduleActionDiscriminatorType? Type267 { get; set; } /// /// /// - public global::Apify.ScheduleResponse? Type268 { get; set; } + public global::Apify.Schedule? Type268 { get; set; } /// /// /// - public global::Apify.ScheduleLogEntry? Type269 { get; set; } + public global::Apify.ScheduleVariant2? Type269 { get; set; } /// /// /// - public global::Apify.ScheduleLogResponse? Type270 { get; set; } + public global::System.Collections.Generic.IList? Type270 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type271 { get; set; } + public global::Apify.ScheduleResponse? Type271 { get; set; } /// /// /// - public global::Apify.CurrentPricingInfo? Type272 { get; set; } + public global::Apify.ScheduleLogEntry? Type272 { get; set; } /// /// /// - public global::Apify.StoreActor? Type273 { get; set; } + public global::Apify.ScheduleLogResponse? Type273 { get; set; } /// /// /// - public global::Apify.ListOfStoreActors? Type274 { get; set; } + public global::System.Collections.Generic.IList? Type274 { get; set; } /// /// /// - public global::Apify.ListOfStoreActorsVariant2? Type275 { get; set; } + public global::Apify.CurrentPricingInfo? Type275 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type276 { get; set; } + public global::Apify.StoreActor? Type276 { get; set; } /// /// /// - public global::Apify.ListOfStoreActorsResponse? Type277 { get; set; } + public global::Apify.ListOfStoreActors? Type277 { get; set; } /// /// /// - public global::Apify.UserProfile? Type278 { get; set; } + public global::Apify.ListOfStoreActorsVariant2? Type278 { get; set; } /// /// /// - public global::Apify.UserPublicInfo? Type279 { get; set; } + public global::System.Collections.Generic.IList? Type279 { get; set; } /// /// /// - public global::Apify.UserPublicInfoResponse? Type280 { get; set; } + public global::Apify.ListOfStoreActorsResponse? Type280 { get; set; } /// /// /// - public global::Apify.ProxyGroup? Type281 { get; set; } + public global::Apify.UserProfile? Type281 { get; set; } /// /// /// - public global::Apify.ProxyResource? Type282 { get; set; } + public global::Apify.UserPublicInfo? Type282 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type283 { get; set; } + public global::Apify.UserPublicInfoResponse? Type283 { get; set; } /// /// /// - public global::Apify.UserPlan? Type284 { get; set; } + public global::Apify.ProxyGroup? Type284 { get; set; } /// /// /// - public global::Apify.EffectivePlatformFeature? Type285 { get; set; } + public global::Apify.ProxyResource? Type285 { get; set; } /// /// /// - public global::Apify.EffectivePlatformFeatures? Type286 { get; set; } + public global::System.Collections.Generic.IList? Type286 { get; set; } /// /// /// - public global::Apify.UserPrivateInfo? Type287 { get; set; } + public global::Apify.UserPlan? Type287 { get; set; } /// /// /// - public global::Apify.UserPrivateInfoResponse? Type288 { get; set; } + public global::Apify.EffectivePlatformFeature? Type288 { get; set; } /// /// /// - public global::Apify.UsageCycle? Type289 { get; set; } + public global::Apify.EffectivePlatformFeatures? Type289 { get; set; } /// /// /// - public global::Apify.PriceTier? Type290 { get; set; } + public global::Apify.UserPrivateInfo? Type290 { get; set; } /// /// /// - public global::Apify.UsageItem? Type291 { get; set; } + public global::Apify.UserPrivateInfoResponse? Type291 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type292 { get; set; } + public global::Apify.UsageCycle? Type292 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type293 { get; set; } + public global::Apify.PriceTier? Type293 { get; set; } /// /// /// - public global::Apify.DailyServiceUsage? Type294 { get; set; } + public global::Apify.UsageItem? Type294 { get; set; } /// /// /// - public global::Apify.MonthlyUsage? Type295 { get; set; } + public global::System.Collections.Generic.IList? Type295 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type296 { get; set; } + public global::System.Collections.Generic.Dictionary? Type296 { get; set; } /// /// /// - public global::Apify.MonthlyUsageResponse? Type297 { get; set; } + public global::Apify.DailyServiceUsage? Type297 { get; set; } /// /// /// - public global::Apify.Limits? Type298 { get; set; } + public global::Apify.MonthlyUsage? Type298 { get; set; } /// /// /// - public global::Apify.CurrentUsage? Type299 { get; set; } + public global::System.Collections.Generic.IList? Type299 { get; set; } /// /// /// - public global::Apify.AccountLimits? Type300 { get; set; } + public global::Apify.MonthlyUsageResponse? Type300 { get; set; } /// /// /// - public global::Apify.AccountLimitsResponse? Type301 { get; set; } + public global::Apify.Limits? Type301 { get; set; } /// /// /// - public global::Apify.UpdateLimitsRequest? Type302 { get; set; } + public global::Apify.CurrentUsage? Type302 { get; set; } /// /// /// - public global::Apify.BrowserInfoResponse? Type303 { get; set; } + public global::Apify.AccountLimits? Type303 { get; set; } /// /// /// - public global::Apify.OneOf>? Type304 { get; set; } + public global::Apify.AccountLimitsResponse? Type304 { get; set; } /// /// /// - public global::Apify.EncodeAndSignResult? Type305 { get; set; } + public global::Apify.UpdateLimitsRequest? Type305 { get; set; } /// /// /// - public global::Apify.EncodeAndSignResponse? Type306 { get; set; } + public global::Apify.BrowserInfoResponse? Type306 { get; set; } /// /// /// - public global::Apify.DecodeAndVerifyRequest? Type307 { get; set; } + public global::Apify.OneOf>? Type307 { get; set; } /// /// /// - public global::Apify.DecodeAndVerifyResult? Type308 { get; set; } + public global::Apify.EncodeAndSignResult? Type308 { get; set; } /// /// /// - public global::Apify.DecodeAndVerifyResponse? Type309 { get; set; } + public global::Apify.EncodeAndSignResponse? Type309 { get; set; } /// /// /// - public global::Apify.OneOf>? Type310 { get; set; } + public global::Apify.DecodeAndVerifyRequest? Type310 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type311 { get; set; } + public global::Apify.DecodeAndVerifyResult? Type311 { get; set; } /// /// /// - public global::Apify.AllOf? Type312 { get; set; } + public global::Apify.DecodeAndVerifyResponse? Type312 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type313 { get; set; } + public global::Apify.OneOf>? Type313 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type314 { get; set; } + public global::System.Collections.Generic.IList? Type314 { get; set; } /// /// /// - public global::Apify.AllOf? Type315 { get; set; } + public global::Apify.AllOf? Type315 { get; set; } /// /// /// - public global::Apify.AllOf? Type316 { get; set; } + public global::System.Collections.Generic.IList? Type316 { get; set; } /// /// /// - public global::Apify.ActorsGetSortBy? Type317 { get; set; } + public global::System.Collections.Generic.IList? Type317 { get; set; } /// /// /// - public byte[]? Type318 { get; set; } + public global::Apify.AllOf? Type318 { get; set; } /// /// /// - public global::Apify.ActorsRunsPostForcePermissionLevel? Type319 { get; set; } + public global::Apify.AllOf? Type319 { get; set; } /// /// /// - public global::Apify.ActorRunsLastDatasetItemsPostContentEncoding? Type320 { get; set; } + public global::Apify.ActorsGetSortBy? Type320 { get; set; } /// /// /// - public global::Apify.ActorRunsLastKeyValueStoreRecordPutContentEncoding? Type321 { get; set; } + public byte[]? Type321 { get; set; } /// /// /// - public global::Apify.ActorRunsLastKeyValueStoreRecordPostContentEncoding? Type322 { get; set; } + public global::Apify.ActorsRunsPostForcePermissionLevel? Type322 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type323 { get; set; } + public global::Apify.ActorRunsLastDatasetItemsPostContentEncoding? Type323 { get; set; } /// /// /// - public global::Apify.ActorRunsLastRequestQueueRequestsGetFilterItem? Type324 { get; set; } + public global::Apify.ActorRunsLastKeyValueStoreRecordPutContentEncoding? Type324 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastDatasetItemsPostContentEncoding? Type325 { get; set; } + public global::Apify.ActorRunsLastKeyValueStoreRecordPostContentEncoding? Type325 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastKeyValueStoreRecordPutContentEncoding? Type326 { get; set; } + public global::System.Collections.Generic.IList? Type326 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastKeyValueStoreRecordPostContentEncoding? Type327 { get; set; } + public global::Apify.ActorRunsLastRequestQueueRequestsGetFilterItem? Type327 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type328 { get; set; } + public global::Apify.ActorTaskRunsLastDatasetItemsPostContentEncoding? Type328 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastRequestQueueRequestsGetFilterItem? Type329 { get; set; } + public global::Apify.ActorTaskRunsLastKeyValueStoreRecordPutContentEncoding? Type329 { get; set; } /// /// /// - public global::Apify.ActorRunDatasetItemsPostContentEncoding? Type330 { get; set; } + public global::Apify.ActorTaskRunsLastKeyValueStoreRecordPostContentEncoding? Type330 { get; set; } /// /// /// - public global::Apify.ActorRunKeyValueStoreRecordPutContentEncoding? Type331 { get; set; } + public global::System.Collections.Generic.IList? Type331 { get; set; } /// /// /// - public global::Apify.ActorRunKeyValueStoreRecordPostContentEncoding? Type332 { get; set; } + public global::Apify.ActorTaskRunsLastRequestQueueRequestsGetFilterItem? Type332 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type333 { get; set; } + public global::Apify.ActorRunDatasetItemsPostContentEncoding? Type333 { get; set; } /// /// /// - public global::Apify.ActorRunRequestQueueRequestsGetFilterItem? Type334 { get; set; } + public global::Apify.ActorRunKeyValueStoreRecordPutContentEncoding? Type334 { get; set; } /// /// /// - public global::Apify.KeyValueStoreRecordPutContentEncoding? Type335 { get; set; } + public global::Apify.ActorRunKeyValueStoreRecordPostContentEncoding? Type335 { get; set; } /// /// /// - public global::Apify.KeyValueStoreRecordPostContentEncoding? Type336 { get; set; } + public global::System.Collections.Generic.IList? Type336 { get; set; } /// /// /// - public global::Apify.DatasetItemsPostContentEncoding? Type337 { get; set; } + public global::Apify.ActorRunRequestQueueRequestsGetFilterItem? Type337 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type338 { get; set; } + public global::Apify.KeyValueStoreRecordPutContentEncoding? Type338 { get; set; } /// /// /// - public global::Apify.RequestQueueRequestsGetFilterItem? Type339 { get; set; } + public global::Apify.KeyValueStoreRecordPostContentEncoding? Type339 { get; set; } /// /// /// - public global::Apify.StoreGetPricingModel? Type340 { get; set; } + public global::Apify.DatasetItemsPostContentEncoding? Type340 { get; set; } /// /// /// - public global::Apify.StoreGetResponseFormat? Type341 { get; set; } + public global::System.Collections.Generic.IList? Type341 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type342 { get; set; } + public global::Apify.RequestQueueRequestsGetFilterItem? Type342 { get; set; } /// /// /// - public global::Apify.ActorValidateInputPostResponse? Type343 { get; set; } + public global::Apify.StoreGetPricingModel? Type343 { get; set; } /// /// /// - public global::Apify.AnyOf? Type344 { get; set; } + public global::Apify.StoreGetResponseFormat? Type344 { get; set; } /// /// /// - public global::Apify.ActorTaskGetResponse? Type345 { get; set; } + public global::System.Collections.Generic.IList? Type345 { get; set; } /// /// /// - public global::Apify.ActorTaskPutResponse? Type346 { get; set; } + public global::Apify.ActorValidateInputPostResponse? Type346 { get; set; } /// /// /// - public global::Apify.ActorTaskWebhooksGetResponse? Type347 { get; set; } + public global::Apify.AnyOf? Type347 { get; set; } /// /// /// - public global::Apify.AllOf? Type348 { get; set; } + public global::Apify.ActorTaskGetResponse? Type348 { get; set; } /// /// /// - public global::Apify.ActorTaskWebhooksGetResponseData? Type349 { get; set; } + public global::Apify.ActorTaskPutResponse? Type349 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type350 { get; set; } + public global::Apify.ActorTaskWebhooksGetResponse? Type350 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsGetResponse? Type351 { get; set; } + public global::Apify.AllOf? Type351 { get; set; } /// /// /// - public global::Apify.AllOf? Type352 { get; set; } + public global::Apify.ActorTaskWebhooksGetResponseData? Type352 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsGetResponseData? Type353 { get; set; } + public global::System.Collections.Generic.IList? Type353 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsPostResponse? Type354 { get; set; } + public global::Apify.ActorTaskRunsGetResponse? Type354 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastGetResponse? Type355 { get; set; } + public global::Apify.AllOf? Type355 { get; set; } /// /// /// - public global::Apify.PostChargeRunResponse? Type356 { get; set; } + public global::Apify.ActorTaskRunsGetResponseData? Type356 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskRunsPostResponse? Type357 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskRunsLastGetResponse? Type358 { get; set; } + /// + /// + /// + public global::Apify.PostChargeRunResponse? Type359 { get; set; } /// /// @@ -1470,11 +1482,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType2 { get; set; } + public global::System.Collections.Generic.List? ListType2 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType3 { get; set; } + public global::System.Collections.Generic.List? ListType3 { get; set; } /// /// /// @@ -1482,182 +1494,186 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType5 { get; set; } + public global::System.Collections.Generic.List? ListType5 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType6 { get; set; } + public global::System.Collections.Generic.List? ListType7 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType7 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::Apify.AnyOf>? ListType23 { get; set; } + public global::Apify.AnyOf>? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::Apify.OneOf>? ListType39 { get; set; } + public global::Apify.OneOf>? ListType40 { get; set; } /// /// /// - public global::Apify.OneOf>? ListType40 { get; set; } + public global::Apify.OneOf>? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.CreateActorRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.CreateActorRequest.g.cs index 8ab5e153..cb49dd0e 100644 --- a/src/libs/Apify/Generated/Apify.Models.CreateActorRequest.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.CreateActorRequest.g.cs @@ -29,11 +29,18 @@ public sealed partial class CreateActorRequest public string? Title { get; set; } /// - /// Whether the Actor is available to users in Apify Store. If `false`, the Actor is private and only visible to you. + /// Whether the Actor is available to users in Apify Store. A new Actor is always private. To publish it, build it first, then update it with `isPublic` set to `true`. /// [global::System.Text.Json.Serialization.JsonPropertyName("isPublic")] public bool? IsPublic { get; set; } + /// + /// Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actorPermissionLevel")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.ActorPermissionLevelJsonConverter))] + public global::Apify.ActorPermissionLevel? ActorPermissionLevel { get; set; } + /// /// Name of the Actor to display by search engines such as Google. Can be different from the Actor's name displayed in Apify Store and Console. Recommended length is 40-50 characters. /// @@ -57,7 +64,7 @@ public sealed partial class CreateActorRequest /// An array of `Version` objects. Each object represents a specific version of the Actor's source code: its location, builds, and environment configuration. /// [global::System.Text.Json.Serialization.JsonPropertyName("versions")] - public global::System.Collections.Generic.IList? Versions { get; set; } + public global::System.Collections.Generic.IList? Versions { get; set; } /// /// A list of categories that best define the Actor. Reflected in Apify Store's search and filtering options. @@ -108,7 +115,10 @@ public sealed partial class CreateActorRequest /// Human-readable name of the Actor, displayed in Apify Store and Console. Can contain spaces and capital letters. Recommended length is 40-50 characters. You can change this title without affecting the Actor's URL or SEO. /// /// - /// Whether the Actor is available to users in Apify Store. If `false`, the Actor is private and only visible to you. + /// Whether the Actor is available to users in Apify Store. A new Actor is always private. To publish it, build it first, then update it with `isPublic` set to `true`. + /// + /// + /// Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions). /// /// /// Name of the Actor to display by search engines such as Google. Can be different from the Actor's name displayed in Apify Store and Console. Recommended length is 40-50 characters. @@ -142,9 +152,10 @@ public CreateActorRequest( string? description, string? title, bool? isPublic, + global::Apify.ActorPermissionLevel? actorPermissionLevel, string? seoTitle, string? seoDescription, - global::System.Collections.Generic.IList? versions, + global::System.Collections.Generic.IList? versions, global::System.Collections.Generic.IList? categories, global::Apify.DefaultRunOptions? defaultRunOptions, global::Apify.ActorStandby? actorStandby, @@ -155,6 +166,7 @@ public CreateActorRequest( this.Description = description; this.Title = title; this.IsPublic = isPublic; + this.ActorPermissionLevel = actorPermissionLevel; this.SeoTitle = seoTitle; this.SeoDescription = seoDescription; this.Versions = versions; diff --git a/src/libs/Apify/Generated/Apify.Models.CreateOrUpdateScheduleRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.CreateOrUpdateScheduleRequest.g.cs index 450ba253..494291c0 100644 --- a/src/libs/Apify/Generated/Apify.Models.CreateOrUpdateScheduleRequest.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.CreateOrUpdateScheduleRequest.g.cs @@ -50,6 +50,12 @@ public sealed partial class CreateOrUpdateScheduleRequest [global::System.Text.Json.Serialization.JsonPropertyName("title")] public string? Title { get; set; } + /// + /// Notification settings for this schedule. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("notifications")] + public global::Apify.ScheduleNotifications? Notifications { get; set; } + /// /// /// @@ -72,6 +78,9 @@ public sealed partial class CreateOrUpdateScheduleRequest /// /// /// + /// + /// Notification settings for this schedule. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -84,6 +93,7 @@ public CreateOrUpdateScheduleRequest( string? timezone, string? description, string? title, + global::Apify.ScheduleNotifications? notifications, global::System.Collections.Generic.IList? actions) { this.Name = name; @@ -93,6 +103,7 @@ public CreateOrUpdateScheduleRequest( this.Timezone = timezone; this.Description = description; this.Title = title; + this.Notifications = notifications; this.Actions = actions; } diff --git a/src/libs/Apify/Generated/Apify.Models.CreateOrUpdateVersionRequest.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.CreateVersionRequest.Json.g.cs similarity index 87% rename from src/libs/Apify/Generated/Apify.Models.CreateOrUpdateVersionRequest.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.CreateVersionRequest.Json.g.cs index f4e4afa0..fd112985 100644 --- a/src/libs/Apify/Generated/Apify.Models.CreateOrUpdateVersionRequest.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.CreateVersionRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class CreateOrUpdateVersionRequest + public sealed partial class CreateVersionRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.CreateOrUpdateVersionRequest? FromJson( + public static global::Apify.CreateVersionRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.CreateOrUpdateVersionRequest), - jsonSerializerContext) as global::Apify.CreateOrUpdateVersionRequest; + typeof(global::Apify.CreateVersionRequest), + jsonSerializerContext) as global::Apify.CreateVersionRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.CreateOrUpdateVersionRequest? FromJson( + public static global::Apify.CreateVersionRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.CreateOrUpdateVersionRequest? FromJson( + public static global::Apify.CreateVersionRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.CreateOrUpdateVersionRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.CreateOrUpdateVersionRequest; + typeof(global::Apify.CreateVersionRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.CreateVersionRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.CreateVersionRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.CreateVersionRequest.g.cs new file mode 100644 index 00000000..b74fbed9 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.CreateVersionRequest.g.cs @@ -0,0 +1,137 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class CreateVersionRequest + { + /// + /// The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("versionNumber")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string VersionNumber { get; set; } + + /// + /// Where the source code of the version lives. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sourceType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.WritableVersionSourceTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Apify.WritableVersionSourceType SourceType { get; set; } + + /// + /// Environment variables for the version. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("envVars")] + public global::System.Collections.Generic.IList? EnvVars { get; set; } + + /// + /// Whether to inject the environment variables at build time. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("applyEnvVarsToBuild")] + public bool? ApplyEnvVarsToBuild { get; set; } + + /// + /// The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("buildTag")] + public string? BuildTag { get; set; } + + /// + /// Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sourceFiles")] + public global::System.Collections.Generic.IList>? SourceFiles { get; set; } + + /// + /// URL of the Git repository to clone the source code from. Applies when the `sourceType` is `GIT_REPO`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("gitRepoUrl")] + public string? GitRepoUrl { get; set; } + + /// + /// URL of the tarball to download the source code from. Applies when the `sourceType` is `TARBALL`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tarballUrl")] + public string? TarballUrl { get; set; } + + /// + /// URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("gitHubGistUrl")] + public string? GitHubGistUrl { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning. + /// + /// + /// Where the source code of the version lives. + /// + /// + /// Environment variables for the version. + /// + /// + /// Whether to inject the environment variables at build time. + /// + /// + /// The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag. + /// + /// + /// Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders. + /// + /// + /// URL of the Git repository to clone the source code from. Applies when the `sourceType` is `GIT_REPO`. + /// + /// + /// URL of the tarball to download the source code from. Applies when the `sourceType` is `TARBALL`. + /// + /// + /// URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVersionRequest( + string versionNumber, + global::Apify.WritableVersionSourceType sourceType, + global::System.Collections.Generic.IList? envVars, + bool? applyEnvVarsToBuild, + string? buildTag, + global::System.Collections.Generic.IList>? sourceFiles, + string? gitRepoUrl, + string? tarballUrl, + string? gitHubGistUrl) + { + this.VersionNumber = versionNumber ?? throw new global::System.ArgumentNullException(nameof(versionNumber)); + this.SourceType = sourceType; + this.EnvVars = envVars; + this.ApplyEnvVarsToBuild = applyEnvVarsToBuild; + this.BuildTag = buildTag; + this.SourceFiles = sourceFiles; + this.GitRepoUrl = gitRepoUrl; + this.TarballUrl = tarballUrl; + this.GitHubGistUrl = gitHubGistUrl; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVersionRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.EnvVarRequest.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.EnvVarRequest.Json.g.cs index a78e4b09..ea5c191c 100644 --- a/src/libs/Apify/Generated/Apify.Models.EnvVarRequest.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.EnvVarRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public readonly partial struct EnvVarRequest + public sealed partial class EnvVarRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -54,7 +54,7 @@ public string ToJson( return global::System.Text.Json.JsonSerializer.Deserialize( json, typeof(global::Apify.EnvVarRequest), - jsonSerializerContext) as global::Apify.EnvVarRequest?; + jsonSerializerContext) as global::Apify.EnvVarRequest; } /// @@ -101,7 +101,7 @@ public string ToJson( return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, typeof(global::Apify.EnvVarRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.EnvVarRequest?; + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.EnvVarRequest; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.EnvVarRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.EnvVarRequest.g.cs index 77ce2bca..94a128a8 100644 --- a/src/libs/Apify/Generated/Apify.Models.EnvVarRequest.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.EnvVarRequest.g.cs @@ -1,4 +1,3 @@ -#pragma warning disable CS0618 // Type or member is obsolete #nullable enable @@ -7,266 +6,65 @@ namespace Apify /// /// /// - public readonly partial struct EnvVarRequest : global::System.IEquatable + public sealed partial class EnvVarRequest { /// - /// + /// The name of the environment variable. Can't contain `=`. /// -#if NET6_0_OR_GREATER - public global::Apify.EnvVar? EnvVar { get; init; } -#else - public global::Apify.EnvVar? EnvVar { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EnvVar))] -#endif - public bool IsEnvVar => EnvVar != null; - - /// - /// - /// - public bool TryPickEnvVar( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Apify.EnvVar? value) - { - value = EnvVar; - return IsEnvVar; - } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } /// - /// + /// The value of the environment variable. /// - public global::Apify.EnvVar PickEnvVar() => EnvVar is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'EnvVar' but the value was {ToString()}."); + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Value { get; set; } /// - /// + /// Whether the environment variable is encrypted. Secret values aren't returned by the API. /// -#if NET6_0_OR_GREATER - public object? EnvVarRequestVariant2 { get; init; } -#else - public object? EnvVarRequestVariant2 { get; } -#endif + [global::System.Text.Json.Serialization.JsonPropertyName("isSecret")] + public bool? IsSecret { get; set; } /// - /// + /// Additional properties that are not explicitly defined in the schema /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EnvVarRequestVariant2))] -#endif - public bool IsEnvVarRequestVariant2 => EnvVarRequestVariant2 != null; + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// + /// Initializes a new instance of the class. /// - public bool TryPickEnvVarRequestVariant2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] + /// + /// The name of the environment variable. Can't contain `=`. + /// + /// + /// The value of the environment variable. + /// + /// + /// Whether the environment variable is encrypted. Secret values aren't returned by the API. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - out object? value) - { - value = EnvVarRequestVariant2; - return IsEnvVarRequestVariant2; - } - - /// - /// - /// - public object PickEnvVarRequestVariant2() => EnvVarRequestVariant2 is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'EnvVarRequestVariant2' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator EnvVarRequest(global::Apify.EnvVar value) => new EnvVarRequest((global::Apify.EnvVar?)value); - - /// - /// - /// - public static implicit operator global::Apify.EnvVar?(EnvVarRequest @this) => @this.EnvVar; - - /// - /// - /// - public EnvVarRequest(global::Apify.EnvVar? value) - { - EnvVar = value; - } - - /// - /// - /// - public static EnvVarRequest FromEnvVar(global::Apify.EnvVar? value) => new EnvVarRequest(value); - - /// - /// - /// public EnvVarRequest( - global::Apify.EnvVar? envVar, - object? envVarRequestVariant2 - ) + string name, + string value, + bool? isSecret) { - EnvVar = envVar; - EnvVarRequestVariant2 = envVarRequestVariant2; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + this.IsSecret = isSecret; } /// - /// - /// - public object? Object => - EnvVarRequestVariant2 as object ?? - EnvVar as object - ; - - /// - /// - /// - public override string? ToString() => - EnvVar?.ToString() ?? - EnvVarRequestVariant2?.ToString() - ; - - /// - /// + /// Initializes a new instance of the class. /// - public bool Validate() + public EnvVarRequest() { - return IsEnvVar && IsEnvVarRequestVariant2; } - /// - /// - /// - public TResult? Match( - global::System.Func? envVar = null, - global::System.Func? envVarRequestVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (EnvVar is { } __value0 && envVar != null) - { - return envVar(__value0); - } - else if (EnvVarRequestVariant2 is { } __value1 && envVarRequestVariant2 != null) - { - return envVarRequestVariant2(__value1); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? envVar = null, - - global::System.Action? envVarRequestVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (EnvVar is { } __value0) - { - envVar?.Invoke(__value0); - } - else if (EnvVarRequestVariant2 is { } __value1) - { - envVarRequestVariant2?.Invoke(__value1); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? envVar = null, - global::System.Action? envVarRequestVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (EnvVar is { } __value0) - { - envVar?.Invoke(__value0); - } - else if (EnvVarRequestVariant2 is { } __value1) - { - envVarRequestVariant2?.Invoke(__value1); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - EnvVar, - typeof(global::Apify.EnvVar), - EnvVarRequestVariant2, - typeof(object), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(EnvVarRequest other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(EnvVar, other.EnvVar) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(EnvVarRequestVariant2, other.EnvVarRequestVariant2) - ; - } - - /// - /// - /// - public static bool operator ==(EnvVarRequest obj1, EnvVarRequest obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(EnvVarRequest obj1, EnvVarRequest obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is EnvVarRequest o && Equals(o); - } } -} +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.EnvVarRequestVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.EnvVarRequestVariant2.g.cs deleted file mode 100644 index 8c69f23b..00000000 --- a/src/libs/Apify/Generated/Apify.Models.EnvVarRequestVariant2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Apify -{ - /// - /// - /// - public sealed partial class EnvVarRequestVariant2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.EnvVarRequestVariant2.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleNotifications.Json.g.cs similarity index 88% rename from src/libs/Apify/Generated/Apify.Models.EnvVarRequestVariant2.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleNotifications.Json.g.cs index 437bfbd3..910483ff 100644 --- a/src/libs/Apify/Generated/Apify.Models.EnvVarRequestVariant2.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleNotifications.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class EnvVarRequestVariant2 + public sealed partial class ScheduleNotifications { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.EnvVarRequestVariant2? FromJson( + public static global::Apify.ScheduleNotifications? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.EnvVarRequestVariant2), - jsonSerializerContext) as global::Apify.EnvVarRequestVariant2; + typeof(global::Apify.ScheduleNotifications), + jsonSerializerContext) as global::Apify.ScheduleNotifications; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.EnvVarRequestVariant2? FromJson( + public static global::Apify.ScheduleNotifications? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.EnvVarRequestVariant2? FromJson( + public static global::Apify.ScheduleNotifications? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.EnvVarRequestVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.EnvVarRequestVariant2; + typeof(global::Apify.ScheduleNotifications), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleNotifications; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleVariant2Notifications.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleNotifications.g.cs similarity index 83% rename from src/libs/Apify/Generated/Apify.Models.ScheduleVariant2Notifications.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleNotifications.g.cs index 4b5e60a6..432a4d3b 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleVariant2Notifications.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleNotifications.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// Notification settings for this schedule. /// - public sealed partial class ScheduleVariant2Notifications + public sealed partial class ScheduleNotifications { /// /// @@ -21,22 +21,22 @@ public sealed partial class ScheduleVariant2Notifications public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ScheduleVariant2Notifications( + public ScheduleNotifications( bool? email) { this.Email = email; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ScheduleVariant2Notifications() + public ScheduleNotifications() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleVariant2.g.cs index f6d4e8aa..68258f1f 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleVariant2.g.cs @@ -24,7 +24,7 @@ public sealed partial class ScheduleVariant2 /// Notification settings for this schedule. /// [global::System.Text.Json.Serialization.JsonPropertyName("notifications")] - public global::Apify.ScheduleVariant2Notifications? Notifications { get; set; } + public global::Apify.ScheduleNotifications? Notifications { get; set; } /// /// @@ -55,7 +55,7 @@ public ScheduleVariant2( global::System.Collections.Generic.IList actions, string? description, string? title, - global::Apify.ScheduleVariant2Notifications? notifications) + global::Apify.ScheduleNotifications? notifications) { this.Description = description; this.Title = title; diff --git a/src/libs/Apify/Generated/Apify.Models.UpdateActorRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.UpdateActorRequest.g.cs index 95f684fb..1b6d57cd 100644 --- a/src/libs/Apify/Generated/Apify.Models.UpdateActorRequest.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UpdateActorRequest.g.cs @@ -29,9 +29,10 @@ public sealed partial class UpdateActorRequest public bool? IsPublic { get; set; } /// - /// + /// Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions). /// [global::System.Text.Json.Serialization.JsonPropertyName("actorPermissionLevel")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.ActorPermissionLevelJsonConverter))] public global::Apify.ActorPermissionLevel? ActorPermissionLevel { get; set; } /// @@ -63,7 +64,7 @@ public sealed partial class UpdateActorRequest /// An array of `Version` objects. Each object represents a specific version of the Actor's source code: its location, builds, and environment configuration. /// [global::System.Text.Json.Serialization.JsonPropertyName("versions")] - public global::System.Collections.Generic.IList? Versions { get; set; } + public global::System.Collections.Generic.IList? Versions { get; set; } /// /// @@ -127,7 +128,9 @@ public sealed partial class UpdateActorRequest /// /// Whether the Actor is available to users in Apify Store. If `false`, the Actor is private and only visible to you. /// - /// + /// + /// Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions). + /// /// /// Name of the Actor to display by search engines such as Google. Can be different from the Actor's name displayed in Apify Store and Console. Recommended length is 40-50 characters. /// @@ -171,7 +174,7 @@ public UpdateActorRequest( string? seoTitle, string? seoDescription, string? title, - global::System.Collections.Generic.IList? versions, + global::System.Collections.Generic.IList? versions, global::System.Collections.Generic.IList? pricingInfos, global::System.Collections.Generic.IList? categories, global::Apify.DefaultRunOptions? defaultRunOptions, diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleVariant2Notifications.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.UpdateVersionRequest.Json.g.cs similarity index 87% rename from src/libs/Apify/Generated/Apify.Models.ScheduleVariant2Notifications.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.UpdateVersionRequest.Json.g.cs index ace0192d..7956da2e 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleVariant2Notifications.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UpdateVersionRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class ScheduleVariant2Notifications + public sealed partial class UpdateVersionRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ScheduleVariant2Notifications? FromJson( + public static global::Apify.UpdateVersionRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ScheduleVariant2Notifications), - jsonSerializerContext) as global::Apify.ScheduleVariant2Notifications; + typeof(global::Apify.UpdateVersionRequest), + jsonSerializerContext) as global::Apify.UpdateVersionRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ScheduleVariant2Notifications? FromJson( + public static global::Apify.UpdateVersionRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ScheduleVariant2Notifications? FromJson( + public static global::Apify.UpdateVersionRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ScheduleVariant2Notifications), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleVariant2Notifications; + typeof(global::Apify.UpdateVersionRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UpdateVersionRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.CreateOrUpdateVersionRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.UpdateVersionRequest.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.CreateOrUpdateVersionRequest.g.cs rename to src/libs/Apify/Generated/Apify.Models.UpdateVersionRequest.g.cs index b1b63016..1dc6a7bf 100644 --- a/src/libs/Apify/Generated/Apify.Models.CreateOrUpdateVersionRequest.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UpdateVersionRequest.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class CreateOrUpdateVersionRequest + public sealed partial class UpdateVersionRequest { /// /// The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning. @@ -18,13 +18,14 @@ public sealed partial class CreateOrUpdateVersionRequest /// Where the source code of the version lives. /// [global::System.Text.Json.Serialization.JsonPropertyName("sourceType")] - public global::Apify.VersionSourceType? SourceType { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.WritableVersionSourceTypeJsonConverter))] + public global::Apify.WritableVersionSourceType? SourceType { get; set; } /// /// Environment variables for the version. /// [global::System.Text.Json.Serialization.JsonPropertyName("envVars")] - public global::System.Collections.Generic.IList? EnvVars { get; set; } + public global::System.Collections.Generic.IList? EnvVars { get; set; } /// /// Whether to inject the environment variables at build time. @@ -69,7 +70,7 @@ public sealed partial class CreateOrUpdateVersionRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning. @@ -101,10 +102,10 @@ public sealed partial class CreateOrUpdateVersionRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateOrUpdateVersionRequest( + public UpdateVersionRequest( string? versionNumber, - global::Apify.VersionSourceType? sourceType, - global::System.Collections.Generic.IList? envVars, + global::Apify.WritableVersionSourceType? sourceType, + global::System.Collections.Generic.IList? envVars, bool? applyEnvVarsToBuild, string? buildTag, global::System.Collections.Generic.IList>? sourceFiles, @@ -124,9 +125,9 @@ public CreateOrUpdateVersionRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateOrUpdateVersionRequest() + public UpdateVersionRequest() { } diff --git a/src/libs/Apify/Generated/Apify.Models.WritableVersionSourceType.g.cs b/src/libs/Apify/Generated/Apify.Models.WritableVersionSourceType.g.cs new file mode 100644 index 00000000..3e72118f --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WritableVersionSourceType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace Apify +{ + /// + /// The version source types accepted in request bodies. Same as `VersionSourceType`, without `SOURCE_CODE`. + /// + public enum WritableVersionSourceType + { + /// + /// + /// + GithubGist, + /// + /// + /// + GitRepo, + /// + /// + /// + SourceFiles, + /// + /// + /// + Tarball, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WritableVersionSourceTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WritableVersionSourceType value) + { + return value switch + { + WritableVersionSourceType.GithubGist => "GITHUB_GIST", + WritableVersionSourceType.GitRepo => "GIT_REPO", + WritableVersionSourceType.SourceFiles => "SOURCE_FILES", + WritableVersionSourceType.Tarball => "TARBALL", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WritableVersionSourceType? ToEnum(string value) + { + return value switch + { + "GITHUB_GIST" => WritableVersionSourceType.GithubGist, + "GIT_REPO" => WritableVersionSourceType.GitRepo, + "SOURCE_FILES" => WritableVersionSourceType.SourceFiles, + "TARBALL" => WritableVersionSourceType.Tarball, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Schedules.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.Schedules.JsonSerializerContext.g.cs index 637e3997..8f6e57ae 100644 --- a/src/libs/Apify/Generated/Apify.Schedules.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.Schedules.JsonSerializerContext.g.cs @@ -38,6 +38,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfSchedulesVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfSchedulesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleNotifications))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionRunActor))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionRunActorTask))] @@ -53,7 +54,6 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionDiscriminatorType), TypeInfoPropertyName = "ScheduleActionDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Schedule), TypeInfoPropertyName = "Schedule2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleVariant2Notifications))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleLogEntry))] diff --git a/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulePut.g.cs b/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulePut.g.cs index a97f120f..3a957292 100644 --- a/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulePut.g.cs +++ b/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulePut.g.cs @@ -820,6 +820,9 @@ partial void ProcessSchedulePutResponseContent( /// /// /// + /// + /// Notification settings for this schedule. + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -833,6 +836,7 @@ partial void ProcessSchedulePutResponseContent( string? timezone = default, string? description = default, string? title = default, + global::Apify.ScheduleNotifications? notifications = default, global::System.Collections.Generic.IList? actions = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -846,6 +850,7 @@ partial void ProcessSchedulePutResponseContent( Timezone = timezone, Description = description, Title = title, + Notifications = notifications, Actions = actions, }; diff --git a/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulesPost.g.cs b/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulesPost.g.cs index f5ecfc26..8d18bf8f 100644 --- a/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulesPost.g.cs +++ b/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulesPost.g.cs @@ -792,6 +792,9 @@ partial void ProcessSchedulesPostResponseContent( /// /// /// + /// + /// Notification settings for this schedule. + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -804,6 +807,7 @@ partial void ProcessSchedulesPostResponseContent( string? timezone = default, string? description = default, string? title = default, + global::Apify.ScheduleNotifications? notifications = default, global::System.Collections.Generic.IList? actions = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -817,6 +821,7 @@ partial void ProcessSchedulesPostResponseContent( Timezone = timezone, Description = description, Title = title, + Notifications = notifications, Actions = actions, }; diff --git a/src/libs/Apify/Generated/autosdk.generated-examples.json b/src/libs/Apify/Generated/autosdk.generated-examples.json index 1b2386c2..a71387ac 100644 --- a/src/libs/Apify/Generated/autosdk.generated-examples.json +++ b/src/libs/Apify/Generated/autosdk.generated-examples.json @@ -1810,7 +1810,7 @@ "Slug": "schedule-put", "Description": "Updates a schedule using values specified by a schedule object passed as\nJSON in the POST payload. If the object does not define a specific property,\nits value will not be updated.\n\nThe response is the full schedule object as returned by the\n[Get schedule](#/reference/schedules/schedule-object/get-schedule) endpoint.\n\n**The request needs to specify the \u0060Content-Type: application/json\u0060 HTTP\nheader!**\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL. ([More\ninfo](#/introduction/authentication)).", "Language": "http", - "Code": "### Update schedule\n# @name schedule_put\nPUT {{host}}/v2/schedules/{{scheduleId}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022name\u0022: \u0022string\u0022,\n \u0022isEnabled\u0022: true,\n \u0022isExclusive\u0022: true,\n \u0022cronExpression\u0022: \u0022string\u0022,\n \u0022timezone\u0022: \u0022string\u0022,\n \u0022description\u0022: \u0022string\u0022,\n \u0022title\u0022: \u0022string\u0022,\n \u0022actions\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022,\n \u0022actorId\u0022: \u0022string\u0022,\n \u0022runInput\u0022: {},\n \u0022runOptions\u0022: {}\n }\n ]\n}\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 409\n# Description: Conflict - the request could not be completed due to a conflict with the current state of the resource.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Code": "### Update schedule\n# @name schedule_put\nPUT {{host}}/v2/schedules/{{scheduleId}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022name\u0022: \u0022string\u0022,\n \u0022isEnabled\u0022: true,\n \u0022isExclusive\u0022: true,\n \u0022cronExpression\u0022: \u0022string\u0022,\n \u0022timezone\u0022: \u0022string\u0022,\n \u0022description\u0022: \u0022string\u0022,\n \u0022title\u0022: \u0022string\u0022,\n \u0022notifications\u0022: {\n \u0022email\u0022: true\n },\n \u0022actions\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022,\n \u0022actorId\u0022: \u0022string\u0022,\n \u0022runInput\u0022: {},\n \u0022runOptions\u0022: {}\n }\n ]\n}\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 409\n# Description: Conflict - the request could not be completed due to a conflict with the current state of the resource.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "schedule_put", "Setup": null @@ -1832,7 +1832,7 @@ "Slug": "schedules-post", "Description": "Creates a new schedule with settings provided by the schedule object passed\nas JSON in the payload. The response is the created schedule object.\n\nThe request needs to specify the \u0060Content-Type: application/json\u0060 HTTP header!\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL. ([More\ninfo](#/introduction/authentication)).", "Language": "http", - "Code": "### Create schedule\n# @name schedules_post\nPOST {{host}}/v2/schedules\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022name\u0022: \u0022string\u0022,\n \u0022isEnabled\u0022: true,\n \u0022isExclusive\u0022: true,\n \u0022cronExpression\u0022: \u0022string\u0022,\n \u0022timezone\u0022: \u0022string\u0022,\n \u0022description\u0022: \u0022string\u0022,\n \u0022title\u0022: \u0022string\u0022,\n \u0022actions\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022,\n \u0022actorId\u0022: \u0022string\u0022,\n \u0022runInput\u0022: {},\n \u0022runOptions\u0022: {}\n }\n ]\n}\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 409\n# Description: Conflict - the request could not be completed due to a conflict with the current state of the resource.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Code": "### Create schedule\n# @name schedules_post\nPOST {{host}}/v2/schedules\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022name\u0022: \u0022string\u0022,\n \u0022isEnabled\u0022: true,\n \u0022isExclusive\u0022: true,\n \u0022cronExpression\u0022: \u0022string\u0022,\n \u0022timezone\u0022: \u0022string\u0022,\n \u0022description\u0022: \u0022string\u0022,\n \u0022title\u0022: \u0022string\u0022,\n \u0022notifications\u0022: {\n \u0022email\u0022: true\n },\n \u0022actions\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022,\n \u0022actorId\u0022: \u0022string\u0022,\n \u0022runInput\u0022: {},\n \u0022runOptions\u0022: {}\n }\n ]\n}\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 409\n# Description: Conflict - the request could not be completed due to a conflict with the current state of the resource.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "schedules_post", "Setup": null diff --git a/src/libs/Apify/openapi.yaml b/src/libs/Apify/openapi.yaml index e0a16102..3b8f5b98 100644 --- a/src/libs/Apify/openapi.yaml +++ b/src/libs/Apify/openapi.yaml @@ -966,7 +966,6 @@ "value": { "name": "MyActor", "isPublic": false, - "versions": [], "taggedBuilds": { "latest": { "buildId": "z2EryhbfhgSyqj6Hn" @@ -979,7 +978,6 @@ "value": { "name": "MyActor", "isPublic": false, - "versions": [], "taggedBuilds": { "latest": null } @@ -990,7 +988,6 @@ "value": { "name": "MyActor", "isPublic": false, - "versions": [], "taggedBuilds": { "latest": { "buildId": "z2EryhbfhgSyqj6Hn" @@ -1297,7 +1294,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateOrUpdateVersionRequest" + "$ref": "#/components/schemas/CreateVersionRequest" }, "example": { "versionNumber": "0.1", @@ -1441,7 +1438,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateOrUpdateVersionRequest" + "$ref": "#/components/schemas/UpdateVersionRequest" }, "example": { "versionNumber": "0.0", @@ -1533,7 +1530,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateOrUpdateVersionRequest" + "$ref": "#/components/schemas/UpdateVersionRequest" }, "example": { "versionNumber": "0.0", @@ -20872,21 +20869,33 @@ } } }, - "VersionSourceType": { - "title": "VersionSourceType", + "ActorPermissionLevel": { + "type": "string", + "description": "Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions).\n", + "enum": [ + "LIMITED_PERMISSIONS", + "FULL_PERMISSIONS" + ], + "examples": [ + "LIMITED_PERMISSIONS" + ] + }, + "WritableVersionSourceType": { + "title": "WritableVersionSourceType", + "description": "The version source types accepted in request bodies. Same as `VersionSourceType`, without `SOURCE_CODE`.", "enum": [ "SOURCE_FILES", "GIT_REPO", "TARBALL", - "GITHUB_GIST", - "SOURCE_CODE" + "GITHUB_GIST" ], "type": "string" }, - "EnvVar": { - "title": "EnvVar", + "EnvVarRequest": { + "title": "EnvVarRequest", "required": [ - "name" + "name", + "value" ], "type": "object", "properties": { @@ -20895,14 +20904,14 @@ "examples": [ "MY_ENV_VAR" ], - "description": "The name of the environment variable." + "description": "The name of the environment variable. Can't contain `=`." }, "value": { "type": "string", "examples": [ "my-value" ], - "description": "The value of the environment variable. If `isSecret` is `true`, this value isn't returned by the API." + "description": "The value of the environment variable." }, "isSecret": { "type": [ @@ -20993,45 +21002,31 @@ ] } }, - "Version": { - "title": "Version", - "type": "object", + "CreateVersionRequest": { + "title": "CreateVersionRequest", "required": [ "versionNumber", "sourceType" ], + "type": "object", "properties": { "versionNumber": { "type": "string", "pattern": "^([0-9]|[1-9][0-9])\\.([0-9]|[1-9][0-9])$", "examples": [ - "0.0" + "1.6" ], "description": "The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning." }, "sourceType": { - "anyOf": [ - { - "$ref": "#/components/schemas/VersionSourceType" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/WritableVersionSourceType", "description": "Where the source code of the version lives." }, "envVars": { - "anyOf": [ - { - "type": "array", - "items": { - "$ref": "#/components/schemas/EnvVar" - } - }, - { - "type": "null" - } - ], + "type": "array", + "items": { + "$ref": "#/components/schemas/EnvVarRequest" + }, "description": "Environment variables for the version." }, "applyEnvVarsToBuild": { @@ -21059,39 +21054,19 @@ "description": "Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders." }, "gitRepoUrl": { - "type": [ - "string", - "null" - ], + "type": "string", "description": "URL of the Git repository to clone the source code from. Applies when the `sourceType` is `GIT_REPO`." }, "tarballUrl": { - "type": [ - "string", - "null" - ], - "description": "URL to download the source code from as a tarball or ZIP file. Applies when the `sourceType` is `TARBALL`." + "type": "string", + "description": "URL of the tarball to download the source code from. Applies when the `sourceType` is `TARBALL`." }, "gitHubGistUrl": { - "type": [ - "string", - "null" - ], + "type": "string", "description": "URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`." } } }, - "ActorPermissionLevel": { - "type": "string", - "description": "Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions).\n", - "enum": [ - "LIMITED_PERMISSIONS", - "FULL_PERMISSIONS" - ], - "examples": [ - "LIMITED_PERMISSIONS" - ] - }, "DefaultRunOptions": { "title": "DefaultRunOptions", "type": "object", @@ -21259,14 +21234,14 @@ "description": "Human-readable name of the Actor, displayed in Apify Store and Console. Can contain spaces and capital letters. Recommended length is 40-50 characters. You can change this title without affecting the Actor's URL or SEO." }, "isPublic": { - "type": [ - "boolean", - "null" - ], + "type": "boolean", "examples": [ false ], - "description": "Whether the Actor is available to users in Apify Store. If `false`, the Actor is private and only visible to you." + "description": "Whether the Actor is available to users in Apify Store. A new Actor is always private. To publish it, build it first, then update it with `isPublic` set to `true`." + }, + "actorPermissionLevel": { + "$ref": "#/components/schemas/ActorPermissionLevel" }, "seoTitle": { "type": [ @@ -21296,17 +21271,11 @@ "deprecated": true }, "versions": { - "anyOf": [ - { - "type": "array", - "items": { - "$ref": "#/components/schemas/Version" - } - }, - { - "type": "null" - } - ], + "type": "array", + "minItems": 1, + "items": { + "$ref": "#/components/schemas/CreateVersionRequest" + }, "description": "An array of `Version` objects. Each object represents a specific version of the Actor's source code: its location, builds, and environment configuration." }, "categories": { @@ -21358,6 +21327,138 @@ } } }, + "VersionSourceType": { + "title": "VersionSourceType", + "enum": [ + "SOURCE_FILES", + "GIT_REPO", + "TARBALL", + "GITHUB_GIST", + "SOURCE_CODE" + ], + "type": "string" + }, + "EnvVar": { + "title": "EnvVar", + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "examples": [ + "MY_ENV_VAR" + ], + "description": "The name of the environment variable." + }, + "value": { + "type": "string", + "examples": [ + "my-value" + ], + "description": "The value of the environment variable. If `isSecret` is `true`, this value isn't returned by the API." + }, + "isSecret": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ], + "description": "Whether the environment variable is encrypted. Secret values aren't returned by the API." + } + } + }, + "Version": { + "title": "Version", + "type": "object", + "required": [ + "versionNumber", + "sourceType" + ], + "properties": { + "versionNumber": { + "type": "string", + "pattern": "^([0-9]|[1-9][0-9])\\.([0-9]|[1-9][0-9])$", + "examples": [ + "0.0" + ], + "description": "The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning." + }, + "sourceType": { + "anyOf": [ + { + "$ref": "#/components/schemas/VersionSourceType" + }, + { + "type": "null" + } + ], + "description": "Where the source code of the version lives." + }, + "envVars": { + "anyOf": [ + { + "type": "array", + "items": { + "$ref": "#/components/schemas/EnvVar" + } + }, + { + "type": "null" + } + ], + "description": "Environment variables for the version." + }, + "applyEnvVarsToBuild": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ], + "description": "Whether to inject the environment variables at build time." + }, + "buildTag": { + "type": [ + "string", + "null" + ], + "examples": [ + "latest" + ], + "description": "The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag." + }, + "sourceFiles": { + "$ref": "#/components/schemas/VersionSourceFiles", + "description": "Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders." + }, + "gitRepoUrl": { + "type": [ + "string", + "null" + ], + "description": "URL of the Git repository to clone the source code from. Applies when the `sourceType` is `GIT_REPO`." + }, + "tarballUrl": { + "type": [ + "string", + "null" + ], + "description": "URL to download the source code from as a tarball or ZIP file. Applies when the `sourceType` is `TARBALL`." + }, + "gitHubGistUrl": { + "type": [ + "string", + "null" + ], + "description": "URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`." + } + } + }, "CommonActorPricingInfo": { "title": "CommonActorPricingInfo", "type": "object", @@ -21995,93 +22096,6 @@ } } }, - "CreateOrUpdateVersionRequest": { - "title": "CreateOrUpdateVersionRequest", - "type": "object", - "properties": { - "versionNumber": { - "type": [ - "string", - "null" - ], - "pattern": "^([0-9]|[1-9][0-9])\\.([0-9]|[1-9][0-9])$", - "examples": [ - "1.6" - ], - "description": "The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning." - }, - "sourceType": { - "anyOf": [ - { - "$ref": "#/components/schemas/VersionSourceType" - }, - { - "type": "null" - } - ], - "description": "Where the source code of the version lives." - }, - "envVars": { - "anyOf": [ - { - "type": "array", - "items": { - "$ref": "#/components/schemas/EnvVar" - } - }, - { - "type": "null" - } - ], - "description": "Environment variables for the version." - }, - "applyEnvVarsToBuild": { - "type": [ - "boolean", - "null" - ], - "examples": [ - false - ], - "description": "Whether to inject the environment variables at build time." - }, - "buildTag": { - "type": [ - "string", - "null" - ], - "examples": [ - "latest" - ], - "description": "The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag." - }, - "sourceFiles": { - "$ref": "#/components/schemas/VersionSourceFiles", - "description": "Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders." - }, - "gitRepoUrl": { - "type": [ - "string", - "null" - ], - "description": "URL of the Git repository to clone the source code from. Applies when the `sourceType` is `GIT_REPO`." - }, - "tarballUrl": { - "type": [ - "string", - "null" - ], - "description": "URL of the tarball to download the source code from. Applies when the `sourceType` is `TARBALL`." - }, - "gitHubGistUrl": { - "type": [ - "string", - "null" - ], - "description": "URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`." - } - } - }, "UpdatedBuildProperty": { "title": "UpdatedBuildProperty", "type": [ @@ -22128,14 +22142,7 @@ "description": "Whether the Actor is available to users in Apify Store. If `false`, the Actor is private and only visible to you." }, "actorPermissionLevel": { - "anyOf": [ - { - "$ref": "#/components/schemas/ActorPermissionLevel" - }, - { - "type": "null" - } - ] + "$ref": "#/components/schemas/ActorPermissionLevel" }, "seoTitle": { "type": [ @@ -22176,8 +22183,9 @@ }, "versions": { "type": "array", + "minItems": 1, "items": { - "$ref": "#/components/schemas/CreateOrUpdateVersionRequest" + "$ref": "#/components/schemas/CreateVersionRequest" }, "description": "An array of `Version` objects. Each object represents a specific version of the Actor's source code: its location, builds, and environment configuration." }, @@ -22307,6 +22315,67 @@ } } }, + "UpdateVersionRequest": { + "title": "UpdateVersionRequest", + "type": "object", + "properties": { + "versionNumber": { + "type": "string", + "pattern": "^([0-9]|[1-9][0-9])\\.([0-9]|[1-9][0-9])$", + "examples": [ + "1.6" + ], + "description": "The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning." + }, + "sourceType": { + "$ref": "#/components/schemas/WritableVersionSourceType", + "description": "Where the source code of the version lives." + }, + "envVars": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EnvVarRequest" + }, + "description": "Environment variables for the version." + }, + "applyEnvVarsToBuild": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ], + "description": "Whether to inject the environment variables at build time." + }, + "buildTag": { + "type": [ + "string", + "null" + ], + "examples": [ + "latest" + ], + "description": "The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag." + }, + "sourceFiles": { + "$ref": "#/components/schemas/VersionSourceFiles", + "description": "Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders." + }, + "gitRepoUrl": { + "type": "string", + "description": "URL of the Git repository to clone the source code from. Applies when the `sourceType` is `GIT_REPO`." + }, + "tarballUrl": { + "type": "string", + "description": "URL of the tarball to download the source code from. Applies when the `sourceType` is `TARBALL`." + }, + "gitHubGistUrl": { + "type": "string", + "description": "URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`." + } + } + }, "ListOfEnvVars": { "title": "ListOfEnvVars", "type": "object", @@ -22342,19 +22411,6 @@ } } }, - "EnvVarRequest": { - "title": "EnvVarRequest", - "allOf": [ - { - "$ref": "#/components/schemas/EnvVar" - }, - { - "required": [ - "value" - ] - } - ] - }, "EnvVarResponse": { "title": "EnvVarResponse", "required": [ @@ -28059,6 +28115,19 @@ } } }, + "ScheduleNotifications": { + "title": "ScheduleNotifications", + "type": "object", + "description": "Notification settings for this schedule.", + "properties": { + "email": { + "type": "boolean", + "examples": [ + true + ] + } + } + }, "ScheduleActionRunInput": { "title": "ScheduleActionRunInput", "type": "object", @@ -28233,6 +28302,9 @@ "null" ] }, + "notifications": { + "$ref": "#/components/schemas/ScheduleNotifications" + }, "actions": { "type": [ "array", @@ -28373,17 +28445,7 @@ ] }, "notifications": { - "title": "ScheduleNotifications", - "type": "object", - "description": "Notification settings for this schedule.", - "properties": { - "email": { - "type": "boolean", - "examples": [ - true - ] - } - } + "$ref": "#/components/schemas/ScheduleNotifications" }, "actions": { "type": "array",