Skip to content

Commit aa65d3c

Browse files
authored
Address more apiview.dev comment: Rename ImageGenActionEnum to ImageGenAction (#45512)
1 parent da809f2 commit aa65d3c

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

sdk/ai/azure-ai-projects/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ instead on client constructor (see above).
2222
* Class `TextResponseFormatConfigurationResponseFormatJsonObject` renamed to `TextResponseFormatJsonObject`.
2323
* Class `CodeInterpreterContainerAuto` was renamed to `AutoCodeInterpreterToolParam`,
2424
and has a new optional property `network_policy` of type `ContainerNetworkPolicyParam`.
25+
* class `ImageGenActionEnum` was renamed to `ImageGenAction`.
2526
* Rename `ToolChoiceParamType.WEB_SEARCH_PREVIEW2025_03_11` to `ToolChoiceParamType.WEB_SEARCH_PREVIEW_2025_03_11`.
2627
* Rename `RankerVersionType.DEFAULT2024_11_15` to `RankerVersionType.DEFAULT_2024_11_15`.
2728
* Rename method `.beta.evaluators.list_latest_versions()` to `.beta.evaluators.list()`.

sdk/ai/azure-ai-projects/apiview-properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
"azure.ai.projects.models.GrammarSyntax1": "OpenAI.GrammarSyntax1",
247247
"azure.ai.projects.models.RankerVersionType": "OpenAI.RankerVersionType",
248248
"azure.ai.projects.models.InputFidelity": "OpenAI.InputFidelity",
249-
"azure.ai.projects.models.ImageGenActionEnum": "OpenAI.ImageGenActionEnum",
249+
"azure.ai.projects.models.ImageGenAction": "OpenAI.ImageGenActionEnum",
250250
"azure.ai.projects.models.OpenApiAuthType": "Azure.AI.Projects.OpenApiAuthType",
251251
"azure.ai.projects.models.FunctionShellToolParamEnvironmentType": "OpenAI.FunctionShellToolParamEnvironmentType",
252252
"azure.ai.projects.models.ContainerSkillType": "OpenAI.ContainerSkillType",

sdk/ai/azure-ai-projects/azure/ai/projects/models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
EvaluatorType,
254254
FunctionShellToolParamEnvironmentType,
255255
GrammarSyntax1,
256-
ImageGenActionEnum,
256+
ImageGenAction,
257257
IndexType,
258258
InputFidelity,
259259
InsightType,
@@ -520,7 +520,7 @@
520520
"EvaluatorType",
521521
"FunctionShellToolParamEnvironmentType",
522522
"GrammarSyntax1",
523-
"ImageGenActionEnum",
523+
"ImageGenAction",
524524
"IndexType",
525525
"InputFidelity",
526526
"InsightType",

sdk/ai/azure-ai-projects/azure/ai/projects/models/_enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ class GrammarSyntax1(str, Enum, metaclass=CaseInsensitiveEnumMeta):
393393
"""REGEX."""
394394

395395

396-
class ImageGenActionEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta):
397-
"""Type of ImageGenActionEnum."""
396+
class ImageGenAction(str, Enum, metaclass=CaseInsensitiveEnumMeta):
397+
"""Type of ImageGenAction."""
398398

399399
GENERATE = "generate"
400400
"""GENERATE."""

sdk/ai/azure-ai-projects/azure/ai/projects/models/_models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4976,7 +4976,7 @@ class ImageGenTool(Tool, discriminator="image_generation"):
49764976
:vartype partial_images: int
49774977
:ivar action: Whether to generate a new image or edit an existing image. Default: ``auto``.
49784978
Known values are: "generate", "edit", and "auto".
4979-
:vartype action: str or ~azure.ai.projects.models.ImageGenActionEnum
4979+
:vartype action: str or ~azure.ai.projects.models.ImageGenAction
49804980
"""
49814981

49824982
type: Literal[ToolType.IMAGE_GENERATION] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore
@@ -5027,7 +5027,7 @@ class ImageGenTool(Tool, discriminator="image_generation"):
50275027
(string, optional)."""
50285028
partial_images: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"])
50295029
"""Number of partial images to generate in streaming mode, from 0 (default value) to 3."""
5030-
action: Optional[Union[str, "_models.ImageGenActionEnum"]] = rest_field(
5030+
action: Optional[Union[str, "_models.ImageGenAction"]] = rest_field(
50315031
visibility=["read", "create", "update", "delete", "query"]
50325032
)
50335033
"""Whether to generate a new image or edit an existing image. Default: ``auto``. Known values are:
@@ -5049,7 +5049,7 @@ def __init__(
50495049
input_fidelity: Optional[Union[str, "_models.InputFidelity"]] = None,
50505050
input_image_mask: Optional["_models.ImageGenToolInputImageMask"] = None,
50515051
partial_images: Optional[int] = None,
5052-
action: Optional[Union[str, "_models.ImageGenActionEnum"]] = None,
5052+
action: Optional[Union[str, "_models.ImageGenAction"]] = None,
50535053
) -> None: ...
50545054

50555055
@overload

0 commit comments

Comments
 (0)