Skip to content

Commit 4e9ad4b

Browse files
committed
Hide unnecessary properties in response for review and tsv list
1 parent 994e4e5 commit 4e9ad4b

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

src/workload-orchestration/azext_workload_orchestration/aaz/latest/workload_orchestration/target/_review_solution_version.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,9 @@ def _build_schema_on_200(cls):
364364
properties.specification = AAZDictType(
365365
flags={"required": True},
366366
)
367-
properties.stages = AAZListType(
368-
flags={"read_only": True},
369-
)
367+
# properties.stages = AAZListType(
368+
# flags={"read_only": True},
369+
# )
370370
properties.state = AAZStrType(
371371
flags={"read_only": True},
372372
)
@@ -386,9 +386,9 @@ def _build_schema_on_200(cls):
386386
specification = cls._schema_on_200.properties.specification
387387
specification.Element = AAZAnyType()
388388

389-
stages = cls._schema_on_200.properties.stages
390-
stages.Element = AAZObjectType()
391-
_ReviewSolutionVersionHelper._build_schema_stage_map_read(stages.Element)
389+
# stages = cls._schema_on_200.properties.stages
390+
# stages.Element = AAZObjectType()
391+
# _ReviewSolutionVersionHelper._build_schema_stage_map_read(stages.Element)
392392

393393
system_data = cls._schema_on_200.system_data
394394
system_data.created_at = AAZStrType(
@@ -539,9 +539,9 @@ def _build_schema_stage_map_read(cls, _schema):
539539
_schema.child_stages = cls._schema_stage_map_read.child_stages
540540
_schema.display_state = cls._schema_stage_map_read.display_state
541541
_schema.end_time = cls._schema_stage_map_read.end_time
542-
_schema.stage = cls._schema_stage_map_read.stage
542+
# _schema.stage = cls._schema_stage_map_read.stage
543543
_schema.start_time = cls._schema_stage_map_read.start_time
544-
_schema.status = cls._schema_stage_map_read.status
544+
# _schema.status = cls._schema_stage_map_read.status
545545
return
546546

547547
cls._schema_stage_map_read = _schema_stage_map_read = AAZObjectType(
@@ -561,16 +561,16 @@ def _build_schema_stage_map_read(cls, _schema):
561561
serialized_name="endTime",
562562
flags={"read_only": True},
563563
)
564-
stage_map_read.stage = AAZStrType(
565-
flags={"read_only": True},
566-
)
564+
# stage_map_read.stage = AAZStrType(
565+
# flags={"read_only": True},
566+
# )
567567
stage_map_read.start_time = AAZStrType(
568568
serialized_name="startTime",
569569
flags={"read_only": True},
570570
)
571-
stage_map_read.status = AAZStrType(
572-
flags={"read_only": True},
573-
)
571+
# stage_map_read.status = AAZStrType(
572+
# flags={"read_only": True},
573+
# )
574574

575575
child_stages = _schema_stage_map_read.child_stages
576576
child_stages.Element = AAZObjectType()
@@ -579,9 +579,9 @@ def _build_schema_stage_map_read(cls, _schema):
579579
_schema.child_stages = cls._schema_stage_map_read.child_stages
580580
_schema.display_state = cls._schema_stage_map_read.display_state
581581
_schema.end_time = cls._schema_stage_map_read.end_time
582-
_schema.stage = cls._schema_stage_map_read.stage
582+
# _schema.stage = cls._schema_stage_map_read.stage
583583
_schema.start_time = cls._schema_stage_map_read.start_time
584-
_schema.status = cls._schema_stage_map_read.status
584+
# _schema.status = cls._schema_stage_map_read.status
585585

586586

587587
__all__ = ["ReviewSolutionVersion"]

src/workload-orchestration/azext_workload_orchestration/aaz/latest/workload_orchestration/target/_solution_revision_list.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ def _build_schema_on_200(cls):
270270
properties.specification = AAZDictType(
271271
flags={"required": True},
272272
)
273-
properties.stages = AAZListType(
274-
flags={"read_only": True},
275-
)
273+
# properties.stages = AAZListType(
274+
# flags={"read_only": True},
275+
# )
276276
properties.state = AAZStrType(
277277
flags={"read_only": True},
278278
)
@@ -292,9 +292,9 @@ def _build_schema_on_200(cls):
292292
specification = cls._schema_on_200.value.Element.properties.specification
293293
specification.Element = AAZAnyType()
294294

295-
stages = cls._schema_on_200.value.Element.properties.stages
296-
stages.Element = AAZObjectType()
297-
_ListRevisionsHelper._build_schema_stage_map_read(stages.Element)
295+
# stages = cls._schema_on_200.value.Element.properties.stages
296+
# stages.Element = AAZObjectType()
297+
# _ListRevisionsHelper._build_schema_stage_map_read(stages.Element)
298298

299299
system_data = cls._schema_on_200.value.Element.system_data
300300
system_data.created_at = AAZStrType(
@@ -430,9 +430,9 @@ def _build_schema_stage_map_read(cls, _schema):
430430
_schema.child_stages = cls._schema_stage_map_read.child_stages
431431
_schema.display_state = cls._schema_stage_map_read.display_state
432432
_schema.end_time = cls._schema_stage_map_read.end_time
433-
_schema.stage = cls._schema_stage_map_read.stage
433+
# _schema.stage = cls._schema_stage_map_read.stage
434434
_schema.start_time = cls._schema_stage_map_read.start_time
435-
_schema.status = cls._schema_stage_map_read.status
435+
# _schema.status = cls._schema_stage_map_read.status
436436
return
437437

438438
cls._schema_stage_map_read = _schema_stage_map_read = AAZObjectType(
@@ -452,16 +452,16 @@ def _build_schema_stage_map_read(cls, _schema):
452452
serialized_name="endTime",
453453
flags={"read_only": True},
454454
)
455-
stage_map_read.stage = AAZStrType(
456-
flags={"read_only": True},
457-
)
455+
# stage_map_read.stage = AAZStrType(
456+
# flags={"read_only": True},
457+
# )
458458
stage_map_read.start_time = AAZStrType(
459459
serialized_name="startTime",
460460
flags={"read_only": True},
461461
)
462-
stage_map_read.status = AAZStrType(
463-
flags={"read_only": True},
464-
)
462+
# stage_map_read.status = AAZStrType(
463+
# flags={"read_only": True},
464+
# )
465465

466466
child_stages = _schema_stage_map_read.child_stages
467467
child_stages.Element = AAZObjectType()
@@ -470,9 +470,9 @@ def _build_schema_stage_map_read(cls, _schema):
470470
_schema.child_stages = cls._schema_stage_map_read.child_stages
471471
_schema.display_state = cls._schema_stage_map_read.display_state
472472
_schema.end_time = cls._schema_stage_map_read.end_time
473-
_schema.stage = cls._schema_stage_map_read.stage
473+
# _schema.stage = cls._schema_stage_map_read.stage
474474
_schema.start_time = cls._schema_stage_map_read.start_time
475-
_schema.status = cls._schema_stage_map_read.status
475+
# _schema.status = cls._schema_stage_map_read.status
476476

477477

478478
__all__ = ["ListRevisions"]

0 commit comments

Comments
 (0)