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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ namespace Google.Gemini.NextGen
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Agent))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(string))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.Environment3, string>), TypeInfoPropertyName = "OneOfEnvironment3String2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Environment3))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(string))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.AgentTool>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AgentTool), TypeInfoPropertyName = "AgentTool2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeExecution))]
Expand All @@ -38,9 +38,9 @@ namespace Google.Gemini.NextGen
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::System.Collections.Generic.Dictionary<string, string>>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Empty))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvVar))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.EnvVar, string>), TypeInfoPropertyName = "OneOfEnvVarString2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist, global::Google.Gemini.NextGen.EnvironmentNetwork2?>), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork22")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2), TypeInfoPropertyName = "EnvironmentNetwork22")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.EnvVar, string>), TypeInfoPropertyName = "OneOfEnvVarString2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf<global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.AllowlistEntry>, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>), TypeInfoPropertyName = "OneOfIListAllowlistEntryEnvironmentNetworkEgressAllowlistAllowlist2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.AllowlistEntry>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlistAllowlist2")]
Expand All @@ -55,9 +55,9 @@ namespace Google.Gemini.NextGen
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AllowedToolsMode?), TypeInfoPropertyName = "NullableAllowedToolsMode2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf<global::System.Collections.Generic.IList<global::System.Collections.Generic.Dictionary<string, string>>, global::System.Collections.Generic.Dictionary<string, string>>?), TypeInfoPropertyName = "NullableOneOfIListDictionaryStringStringDictionaryStringString2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.EnvVar, string>?), TypeInfoPropertyName = "NullableOneOfEnvVarString2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist, global::Google.Gemini.NextGen.EnvironmentNetwork2?>?), TypeInfoPropertyName = "NullableOneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork22")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2?), TypeInfoPropertyName = "NullableEnvironmentNetwork22")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.EnvVar, string>?), TypeInfoPropertyName = "NullableOneOfEnvVarString2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf<global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.AllowlistEntry>, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>?), TypeInfoPropertyName = "NullableOneOfIListAllowlistEntryEnvironmentNetworkEgressAllowlistAllowlist2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?), TypeInfoPropertyName = "NullableEnvironmentNetworkEgressAllowlistAllowlist2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GoogleSearchSearchType?), TypeInfoPropertyName = "NullableGoogleSearchSearchType2")]
Expand Down Expand Up @@ -123,8 +123,8 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions
options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter<global::Google.Gemini.NextGen.Environment3, string>());
options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter<global::Google.Gemini.NextGen.Environment3, string>());
options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter<global::System.Collections.Generic.IList<global::System.Collections.Generic.Dictionary<string, string>>, global::System.Collections.Generic.Dictionary<string, string>>());
options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter<global::Google.Gemini.NextGen.EnvVar, string>());
options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter<global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist, global::Google.Gemini.NextGen.EnvironmentNetwork2?>());
options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter<global::Google.Gemini.NextGen.EnvVar, string>());
options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter<global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.AllowlistEntry>, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>());
options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter<global::Google.Gemini.NextGen.Environment3, string>());
options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter<global::Google.Gemini.NextGen.Environment3, string>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,21 +500,21 @@ partial void ProcessCreateResponseContent(
/// <param name="agentConfig">
/// Configuration parameters for the agent.
/// </param>
/// <param name="baseAgent">
/// The base agent to extend.
/// </param>
/// <param name="baseEnvironment">
/// The environment configuration for the agent.
/// </param>
/// <param name="description">
/// Agent description for developers to quickly read and understand.
/// </param>
/// <param name="id">
/// The unique identifier for the agent.
/// </param>
/// <param name="baseAgent">
/// The base agent to extend.
/// </param>
/// <param name="systemInstruction">
/// System instruction for the agent.
/// </param>
/// <param name="description">
/// Agent description for developers to quickly read and understand.
/// </param>
/// <param name="tools">
/// The tools available to the agent.
/// </param>
Expand All @@ -523,23 +523,23 @@ partial void ProcessCreateResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Google.Gemini.NextGen.Agent> CreateAsync(
global::Google.Gemini.NextGen.AntigravityAgentConfig? agentConfig = default,
string? baseAgent = default,
global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.Environment3, string>? baseEnvironment = default,
string? description = default,
string? id = default,
string? baseAgent = default,
string? systemInstruction = default,
string? description = default,
global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.AgentTool>? tools = default,
global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.NextGen.Agent
{
AgentConfig = agentConfig,
BaseAgent = baseAgent,
BaseEnvironment = baseEnvironment,
Description = description,
Id = id,
BaseAgent = baseAgent,
SystemInstruction = systemInstruction,
Description = description,
Tools = tools,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ namespace Google.Gemini.NextGen
[global::System.Text.Json.Serialization.JsonSerializable(typeof(object))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(int))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Credential))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialStatus), TypeInfoPropertyName = "CredentialStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialType), TypeInfoPropertyName = "CredentialType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialStatus), TypeInfoPropertyName = "CredentialStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialCreateParams), TypeInfoPropertyName = "CredentialCreateParams2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentVariableConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.HttpBearerConfig))]
Expand All @@ -36,9 +36,9 @@ namespace Google.Gemini.NextGen
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialListResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.Credential>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialStatus?), TypeInfoPropertyName = "NullableCredentialStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialType?), TypeInfoPropertyName = "NullableCredentialType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialStatus?), TypeInfoPropertyName = "NullableCredentialStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialCreateParams?), TypeInfoPropertyName = "NullableCredentialCreateParams2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialUpdate?), TypeInfoPropertyName = "NullableCredentialUpdate2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.InjectionLocation3?, global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.InjectionLocation3>>?), TypeInfoPropertyName = "NullableOneOfInjectionLocation3IListInjectionLocation32")]
Expand Down Expand Up @@ -121,13 +121,13 @@ private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Ser
public override bool CanConvert(global::System.Type typeToConvert)
{
return
typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus)
typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType)

|| typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus?)
|| typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType?)

|| typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType)
|| typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus)

|| typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType?)
|| typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus?)

|| typeToConvert == typeof(global::Google.Gemini.NextGen.InjectionLocation3)

Expand All @@ -138,24 +138,24 @@ public override bool CanConvert(global::System.Type typeToConvert)
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus))
if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType))
{
return new global::Google.Gemini.NextGen.JsonConverters.CredentialStatusJsonConverter();
return new global::Google.Gemini.NextGen.JsonConverters.CredentialTypeJsonConverter();
}

if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus?))
if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType?))
{
return new global::Google.Gemini.NextGen.JsonConverters.CredentialStatusNullableJsonConverter();
return new global::Google.Gemini.NextGen.JsonConverters.CredentialTypeNullableJsonConverter();
}

if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType))
if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus))
{
return new global::Google.Gemini.NextGen.JsonConverters.CredentialTypeJsonConverter();
return new global::Google.Gemini.NextGen.JsonConverters.CredentialStatusJsonConverter();
}

if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType?))
if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus?))
{
return new global::Google.Gemini.NextGen.JsonConverters.CredentialTypeNullableJsonConverter();
return new global::Google.Gemini.NextGen.JsonConverters.CredentialStatusNullableJsonConverter();
}

if (typeToConvert == typeof(global::Google.Gemini.NextGen.InjectionLocation3))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,32 +495,32 @@ partial void ProcessCreateEnvironmentResponseContent(
/// <summary>
/// Creates an environment.
/// </summary>
/// <param name="fromEnvironment">
/// Optional. The source environment to copy/fork from.<br/>
/// Format: `environments/{environment_id}` or `{environment_id}`.<br/>
/// When specified, `sources` and `env` must be empty.
/// </param>
/// <param name="network">
/// Network configuration for the environment.
/// </param>
/// <param name="sources">
/// Sources to be mounted into the environment.
/// </param>
/// <param name="fromEnvironment">
/// Optional. The source environment to copy/fork from.<br/>
/// Format: `environments/{environment_id}` or `{environment_id}`.<br/>
/// When specified, `sources` and `env` must be empty.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Google.Gemini.NextGen.Environment2> CreateEnvironmentAsync(
string? fromEnvironment = default,
global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist, global::Google.Gemini.NextGen.CreateEnvironmentRequestNetwork?>? network = default,
global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.Source>? sources = default,
string? fromEnvironment = default,
global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.NextGen.CreateEnvironmentRequest
{
FromEnvironment = fromEnvironment,
Network = network,
Sources = sources,
FromEnvironment = fromEnvironment,
};

return await CreateEnvironmentAsync(
Expand Down
Loading
Loading