Skip to content

Commit

Permalink
fix linter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
vsramki committed Jul 9, 2024
1 parent 759d4bb commit b02d613
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 265 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ def _build_arguments_schema(cls, *args, **kwargs):
help="Autonomous Database ID",
)
_args_schema.autonomous_maintenance_schedule_type = AAZStrArg(
options=["--autonomous-maintenance-schedule-type"],
options=["--schedule-type", "--autonomous-maintenance-schedule-type"],
arg_group="Properties",
help="The maintenance schedule type of the Autonomous Database Serverless.",
enum={"Early": "Early", "Regular": "Regular"},
)
_args_schema.backup_retention_period_in_days = AAZIntArg(
options=["--backup-retention-period-in-days"],
options=["--retention-days", "--backup-retention-period-in-days"],
arg_group="Properties",
help="Retention period, in days, for long-term backups",
)
Expand Down Expand Up @@ -138,7 +138,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
help="Customer Contacts.",
)
_args_schema.data_storage_size_in_gbs = AAZIntArg(
options=["--data-storage-size-in-gbs"],
options=["--storage-gbs", "--data-storage-size-in-gbs"],
arg_group="Properties",
help="The size, in gigabytes, of the data volume that will be created and attached to the database.",
fmt=AAZIntArgFormat(
Expand All @@ -147,7 +147,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.data_storage_size_in_tbs = AAZIntArg(
options=["--data-storage-size-in-tbs"],
options=["--storage-tbs", "--data-storage-size-in-tbs"],
arg_group="Properties",
help="The quantity of data in the database, in terabytes.",
fmt=AAZIntArgFormat(
Expand Down Expand Up @@ -186,27 +186,27 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.is_auto_scaling_enabled = AAZBoolArg(
options=["--is-auto-scaling-enabled"],
options=["--cpu-auto-scaling", "--is-auto-scaling-enabled"],
arg_group="Properties",
help="Indicates if auto scaling is enabled for the Autonomous Database CPU core count.",
)
_args_schema.is_auto_scaling_for_storage_enabled = AAZBoolArg(
options=["--is-auto-scaling-for-storage-enabled"],
options=["--store-auto-scaling", "--is-auto-scaling-for-storage-enabled"],
arg_group="Properties",
help="Indicates if auto scaling is enabled for the Autonomous Database storage.",
)
_args_schema.is_local_data_guard_enabled = AAZBoolArg(
options=["--is-local-data-guard-enabled"],
options=["--local-data-guard", "--is-local-data-guard-enabled"],
arg_group="Properties",
help="Indicates whether the Autonomous Database has local or called in-region Data Guard enabled.",
)
_args_schema.is_mtls_connection_required = AAZBoolArg(
options=["--is-mtls-connection-required"],
options=["--mtls-reqd", "--is-mtls-connection-required"],
arg_group="Properties",
help="Specifies if the Autonomous Database requires mTLS connections.",
)
_args_schema.is_preview_version_with_service_terms_accepted = AAZBoolArg(
options=["--is-preview-version-with-service-terms-accepted"],
options=["--preview-accepted", "--is-preview-version-with-service-terms-accepted"],
arg_group="Properties",
help="Specifies if the Autonomous Database preview version is being provisioned.",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.autonomous_maintenance_schedule_type = AAZStrArg(
options=["--autonomous-maintenance-schedule-type"],
options=["--schedule-type", "--autonomous-maintenance-schedule-type"],
arg_group="Properties",
help="The maintenance schedule type of the Autonomous Database Serverless.",
nullable=True,
enum={"Early": "Early", "Regular": "Regular"},
)
_args_schema.backup_retention_period_in_days = AAZIntArg(
options=["--backup-retention-period-in-days"],
options=["--retention-days", "--backup-retention-period-in-days"],
arg_group="Properties",
help="Retention period, in days, for long-term backups",
nullable=True,
Expand Down Expand Up @@ -127,7 +127,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
nullable=True,
)
_args_schema.data_storage_size_in_gbs = AAZIntArg(
options=["--data-storage-size-in-gbs"],
options=["--storage-gbs", "--data-storage-size-in-gbs"],
arg_group="Properties",
help="The size, in gigabytes, of the data volume that will be created and attached to the database.",
nullable=True,
Expand All @@ -137,7 +137,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.data_storage_size_in_tbs = AAZIntArg(
options=["--data-storage-size-in-tbs"],
options=["--storage-tbs", "--data-storage-size-in-tbs"],
arg_group="Properties",
help="The quantity of data in the database, in terabytes.",
nullable=True,
Expand All @@ -164,25 +164,25 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.is_auto_scaling_enabled = AAZBoolArg(
options=["--is-auto-scaling-enabled"],
options=["--cpu-auto-scaling", "--is-auto-scaling-enabled"],
arg_group="Properties",
help="Indicates if auto scaling is enabled for the Autonomous Database CPU core count.",
nullable=True,
)
_args_schema.is_auto_scaling_for_storage_enabled = AAZBoolArg(
options=["--is-auto-scaling-for-storage-enabled"],
options=["--store-auto-scaling", "--is-auto-scaling-for-storage-enabled"],
arg_group="Properties",
help="Indicates if auto scaling is enabled for the Autonomous Database storage.",
nullable=True,
)
_args_schema.is_local_data_guard_enabled = AAZBoolArg(
options=["--is-local-data-guard-enabled"],
options=["--local-data-guard", "--is-local-data-guard-enabled"],
arg_group="Properties",
help="Indicates whether the Autonomous Database has local or called in-region Data Guard enabled.",
nullable=True,
)
_args_schema.is_mtls_connection_required = AAZBoolArg(
options=["--is-mtls-connection-required"],
options=["--mtls-reqd", "--is-mtls-connection-required"],
arg_group="Properties",
help="Specifies if the Autonomous Database requires mTLS connections.",
nullable=True,
Expand All @@ -195,7 +195,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
enum={"BringYourOwnLicense": "BringYourOwnLicense", "LicenseIncluded": "LicenseIncluded"},
)
_args_schema.local_adg_auto_failover_max_data_loss_limit = AAZIntArg(
options=["--local-adg-auto-failover-max-data-loss-limit"],
options=["--failover-limit", "--local-adg-auto-failover-max-data-loss-limit"],
arg_group="Properties",
help="Parameter that allows users to select an acceptable maximum data loss limit in seconds, up to which Automatic Failover will be triggered when necessary for a Local Autonomous Data Guard",
nullable=True,
Expand All @@ -205,7 +205,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.long_term_backup_schedule = AAZObjectArg(
options=["--long-term-backup-schedule"],
options=["--backup-schedule", "--long-term-backup-schedule"],
arg_group="Properties",
help="Details for the long-term backup schedule.",
nullable=True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
help="The user-friendly name for the backup. The name does not have to be unique.",
)
_args_schema.retention_period_in_days = AAZIntArg(
options=["--retention-period-in-days"],
options=["--retention-days", "--retention-period-in-days"],
arg_group="Properties",
help="Retention period, in days, for long-term backups.",
fmt=AAZIntArgFormat(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.retention_period_in_days = AAZIntArg(
options=["--retention-period-in-days"],
options=["--retention-days", "--retention-period-in-days"],
arg_group="Properties",
help="Retention period, in days, for long-term backups.",
nullable=True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.cloudexadatainfrastructurename = AAZStrArg(
options=["--cloudexadatainfrastructurename"],
options=["--exainfraname", "--cloudexadatainfrastructurename"],
help="CloudExadataInfrastructure name",
required=True,
fmt=AAZStrArgFormat(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from ._create import *
from ._delete import *
from ._list import *
from ._list_private_ip_address import *
from ._remove_vm import *
from ._show import *
from ._update import *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.cloud_exadata_infrastructure_id = AAZResourceIdArg(
options=["--cloud-exadata-infrastructure-id"],
options=["--exa-infra-id", "--cloud-exadata-infrastructure-id"],
arg_group="Properties",
help="Cloud Exadata Infrastructure ID",
)
Expand All @@ -89,22 +89,22 @@ def _build_arguments_schema(cls, *args, **kwargs):
help="The number of CPU cores enabled on the cloud VM cluster.",
)
_args_schema.data_collection_options = AAZObjectArg(
options=["--data-collection-options"],
options=["--collection-options", "--data-collection-options"],
arg_group="Properties",
help="Indicates user preferences for the various diagnostic collection options for the VM cluster/Cloud VM cluster/VMBM DBCS.",
)
_args_schema.data_storage_percentage = AAZIntArg(
options=["--data-storage-percentage"],
options=["--storage-percent", "--data-storage-percentage"],
arg_group="Properties",
help="The percentage assigned to DATA storage (user data and database files). The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. ",
help="The percentage assigned to DATA storage (user data and database files). The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage.",
)
_args_schema.data_storage_size_in_tbs = AAZFloatArg(
options=["--data-storage-size-in-tbs"],
options=["--storage-tbs", "--data-storage-size-in-tbs"],
arg_group="Properties",
help="The data disk group size to be allocated in TBs.",
)
_args_schema.db_node_storage_size_in_gbs = AAZIntArg(
options=["--db-node-storage-size-in-gbs"],
options=["--node-storage-gbs", "--db-node-storage-size-in-gbs"],
arg_group="Properties",
help="The local node storage to be allocated in GBs.",
)
Expand Down Expand Up @@ -142,15 +142,15 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.is_local_backup_enabled = AAZBoolArg(
options=["--is-local-backup-enabled"],
options=["--local-backup-enabled", "--is-local-backup-enabled"],
arg_group="Properties",
help="If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster. ",
help="If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster.",
default=False,
)
_args_schema.is_sparse_diskgroup_enabled = AAZBoolArg(
options=["--is-sparse-diskgroup-enabled"],
options=["--sparse-diskgroup", "--is-sparse-diskgroup-enabled"],
arg_group="Properties",
help="If true, sparse disk group is configured for the cloud VM cluster. If false, sparse disk group is not created. ",
help="If true, sparse disk group is configured for the cloud VM cluster. If false, sparse disk group is not created.",
default=False,
)
_args_schema.license_model = AAZStrArg(
Expand Down Expand Up @@ -180,7 +180,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
help="The TCP Single Client Access Name (SCAN) port. The default port is 1521.",
)
_args_schema.scan_listener_port_tcp_ssl = AAZIntArg(
options=["--scan-listener-port-tcp-ssl"],
options=["--scan-tcps-port", "--scan-listener-port-tcp-ssl"],
arg_group="Properties",
help="The TCPS Single Client Access Name (SCAN) port. The default port is 2484.",
)
Expand Down
Loading

0 comments on commit b02d613

Please sign in to comment.