Skip to content

Commit 2cf979c

Browse files
add example for oracle subscription
1 parent 43a1a17 commit 2cf979c

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

src/oracle-database/azext_oracle_database/aaz/latest/oracle_database/autonomous_database/_create.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,6 @@ def _build_schema_on_200_201(cls):
717717
properties.customer_contacts = AAZListType(
718718
serialized_name="customerContacts",
719719
)
720-
properties.data_base_type = AAZStrType(
721-
serialized_name="dataBaseType",
722-
)
723720
properties.data_safe_status = AAZStrType(
724721
serialized_name="dataSafeStatus",
725722
flags={"read_only": True},

src/oracle-database/azext_oracle_database/aaz/latest/oracle_database/db_system/_list.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
)
1717
class List(AAZCommand):
1818
"""List DbSystem resources by subscription ID
19-
20-
:example: DbSystems_List
21-
az oracle-database db-system list
2219
"""
2320

2421
_aaz_info = {
@@ -165,9 +162,7 @@ def _build_schema_on_200(cls):
165162
_element.name = AAZStrType(
166163
flags={"read_only": True},
167164
)
168-
_element.properties = AAZObjectType(
169-
flags={"client_flatten": True},
170-
)
165+
_element.properties = AAZObjectType()
171166
_element.system_data = AAZObjectType(
172167
serialized_name="systemData",
173168
flags={"read_only": True},
@@ -212,6 +207,7 @@ def _build_schema_on_200(cls):
212207
properties.domain = AAZStrType()
213208
properties.grid_image_ocid = AAZStrType(
214209
serialized_name="gridImageOcid",
210+
flags={"read_only": True},
215211
)
216212
properties.hostname = AAZStrType(
217213
flags={"required": True},
@@ -421,9 +417,7 @@ def _build_schema_on_200(cls):
421417
_element.name = AAZStrType(
422418
flags={"read_only": True},
423419
)
424-
_element.properties = AAZObjectType(
425-
flags={"client_flatten": True},
426-
)
420+
_element.properties = AAZObjectType()
427421
_element.system_data = AAZObjectType(
428422
serialized_name="systemData",
429423
flags={"read_only": True},
@@ -468,6 +462,7 @@ def _build_schema_on_200(cls):
468462
properties.domain = AAZStrType()
469463
properties.grid_image_ocid = AAZStrType(
470464
serialized_name="gridImageOcid",
465+
flags={"read_only": True},
471466
)
472467
properties.hostname = AAZStrType(
473468
flags={"required": True},

src/oracle-database/azext_oracle_database/aaz/latest/oracle_database/oracle_subscription/_add_azure_subscription.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class AddAzureSubscription(AAZCommand):
1818
"""Add Azure Subscriptions
19+
20+
:example: Add Azure Subscriptions to the OracleSubscription
21+
az oracle-database oracle-subscription add-azure-subscription --azure-subscription-ids "[00000000-0000-0000-0000-000000000001]"
1922
"""
2023

2124
_aaz_info = {

0 commit comments

Comments
 (0)