Skip to content

Commit

Permalink
[azure][fix]: Fix unnecessary abstract class kinds (#2191)
Browse files Browse the repository at this point in the history
  • Loading branch information
1101-1 authored Sep 16, 2024
1 parent 62a867e commit ac8c4a0
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions plugins/azure/fix_plugin_azure/resource/machinelearning.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def connect_in_graph(self, builder: GraphBuilder, source: Json) -> None:


@define(eq=False, slots=False)
class AzureMachineLearningCodeContainerBase(MicrosoftResource, AzureProxyResource):
class AzureMachineLearningCodeContainerBase(AzureProxyResource):
kind: ClassVar[str] = "azure_machine_learning_code_container_base"
kind_display: ClassVar[str] = "Azure Machine Learning Code Container Base"
kind_service: ClassVar[Optional[str]] = service_name
Expand All @@ -149,7 +149,7 @@ class AzureMachineLearningCodeContainerBase(MicrosoftResource, AzureProxyResourc


@define(eq=False, slots=False)
class AzureMachineLearningWorkspaceCodeContainer(AzureMachineLearningCodeContainerBase):
class AzureMachineLearningWorkspaceCodeContainer(AzureMachineLearningCodeContainerBase, MicrosoftResource):
# Defined to split registry and workspace resource
kind: ClassVar[str] = "azure_machine_learning_workspace_code_container"
kind_display: ClassVar[str] = "Azure Machine Learning Workspace Code Container"
Expand Down Expand Up @@ -185,7 +185,7 @@ def collect_versions() -> None:


@define(eq=False, slots=False)
class AzureMachineLearningRegistryCodeContainer(AzureMachineLearningCodeContainerBase):
class AzureMachineLearningRegistryCodeContainer(AzureMachineLearningCodeContainerBase, MicrosoftResource):
# Defined to split registry and workspace resource
kind: ClassVar[str] = "azure_machine_learning_registry_code_container"
kind_display: ClassVar[str] = "Azure Machine Learning Registry Code Container"
Expand Down Expand Up @@ -221,7 +221,7 @@ def collect_versions() -> None:


@define(eq=False, slots=False)
class AzureMachineLearningCodeVersionBase(CheckVersionIsArchived, MicrosoftResource, AzureProxyResource):
class AzureMachineLearningCodeVersionBase(CheckVersionIsArchived, AzureProxyResource):
kind: ClassVar[str] = "azure_machine_learning_code_version_base"
kind_display: ClassVar[str] = "Azure Machine Learning Code Version Base"
kind_service: ClassVar[Optional[str]] = service_name
Expand All @@ -248,22 +248,22 @@ class AzureMachineLearningCodeVersionBase(CheckVersionIsArchived, MicrosoftResou


@define(eq=False, slots=False)
class AzureMachineLearningWorkspaceCodeVersion(AzureMachineLearningCodeVersionBase):
class AzureMachineLearningWorkspaceCodeVersion(AzureMachineLearningCodeVersionBase, MicrosoftResource):
# Defined to split registry and workspace resource
kind: ClassVar[str] = "azure_machine_learning_workspace_code_version"
kind_display: ClassVar[str] = "Azure Machine Learning Workspace Code Version"


@define(eq=False, slots=False)
class AzureMachineLearningRegistryCodeVersion(AzureMachineLearningCodeVersionBase):
class AzureMachineLearningRegistryCodeVersion(AzureMachineLearningCodeVersionBase, MicrosoftResource):
# Defined to split registry and workspace resource
kind: ClassVar[str] = "azure_machine_learning_registry_code_version"
kind_display: ClassVar[str] = "Azure Machine Learning Registry Code Version"
metadata: ClassVar[Dict[str, Any]] = {"icon": "version", "group": "generative_ai"}


@define(eq=False, slots=False)
class AzureMachineLearningComponentContainerBase(MicrosoftResource, AzureProxyResource):
class AzureMachineLearningComponentContainerBase(AzureProxyResource):
kind: ClassVar[str] = "azure_machine_learning_component_container_base"
kind_display: ClassVar[str] = "Azure Machine Learning Component Container Base"
kind_service: ClassVar[Optional[str]] = service_name
Expand All @@ -290,7 +290,7 @@ class AzureMachineLearningComponentContainerBase(MicrosoftResource, AzureProxyRe


@define(eq=False, slots=False)
class AzureMachineLearningWorkspaceComponentContainer(AzureMachineLearningComponentContainerBase):
class AzureMachineLearningWorkspaceComponentContainer(AzureMachineLearningComponentContainerBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_workspace_component_container"
Expand Down Expand Up @@ -327,7 +327,7 @@ def collect_versions() -> None:


@define(eq=False, slots=False)
class AzureMachineLearningRegistryComponentContainer(AzureMachineLearningComponentContainerBase):
class AzureMachineLearningRegistryComponentContainer(AzureMachineLearningComponentContainerBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_registry_component_container"
Expand Down Expand Up @@ -364,7 +364,7 @@ def collect_versions() -> None:


@define(eq=False, slots=False)
class AzureMachineLearningComponentVersionBase(CheckVersionIsArchived, MicrosoftResource, AzureProxyResource):
class AzureMachineLearningComponentVersionBase(CheckVersionIsArchived, AzureProxyResource):
kind: ClassVar[str] = "azure_machine_learning_component_version_base"
kind_display: ClassVar[str] = "Azure Machine Learning Component Version Base"
kind_service: ClassVar[Optional[str]] = service_name
Expand Down Expand Up @@ -392,15 +392,15 @@ class AzureMachineLearningComponentVersionBase(CheckVersionIsArchived, Microsoft


@define(eq=False, slots=False)
class AzureMachineLearningWorkspaceComponentVersion(AzureMachineLearningComponentVersionBase):
class AzureMachineLearningWorkspaceComponentVersion(AzureMachineLearningComponentVersionBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_workspace_component_version"
kind_display: ClassVar[str] = "Azure Machine Learning Workspace Component Version"


@define(eq=False, slots=False)
class AzureMachineLearningRegistryComponentVersion(AzureMachineLearningComponentVersionBase):
class AzureMachineLearningRegistryComponentVersion(AzureMachineLearningComponentVersionBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_registry_component_version"
Expand Down Expand Up @@ -590,7 +590,7 @@ def connect_in_graph(self, builder: GraphBuilder, source: Json) -> None:


@define(eq=False, slots=False)
class AzureMachineLearningDataContainerBase(MicrosoftResource, AzureProxyResource):
class AzureMachineLearningDataContainerBase(AzureProxyResource):
kind: ClassVar[str] = "azure_machine_learning_data_container_base"
kind_display: ClassVar[str] = "Azure Machine Learning Data Container Base"
kind_service: ClassVar[Optional[str]] = service_name
Expand All @@ -617,7 +617,7 @@ class AzureMachineLearningDataContainerBase(MicrosoftResource, AzureProxyResourc


@define(eq=False, slots=False)
class AzureMachineLearningWorkspaceDataContainer(AzureMachineLearningDataContainerBase):
class AzureMachineLearningWorkspaceDataContainer(AzureMachineLearningDataContainerBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_workspace_data_container"
Expand Down Expand Up @@ -654,7 +654,7 @@ def collect_versions() -> None:


@define(eq=False, slots=False)
class AzureMachineLearningRegistryDataContainer(AzureMachineLearningDataContainerBase):
class AzureMachineLearningRegistryDataContainer(AzureMachineLearningDataContainerBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_registry_data_container"
Expand Down Expand Up @@ -691,7 +691,7 @@ def collect_versions() -> None:


@define(eq=False, slots=False)
class AzureMachineLearningDataVersionBase(CheckVersionIsArchived, MicrosoftResource, AzureProxyResource):
class AzureMachineLearningDataVersionBase(CheckVersionIsArchived, AzureProxyResource):
kind: ClassVar[str] = "azure_machine_learning_data_version_base"
kind_display: ClassVar[str] = "Azure Machine Learning Data Version Base"
kind_service: ClassVar[Optional[str]] = service_name
Expand Down Expand Up @@ -721,15 +721,15 @@ class AzureMachineLearningDataVersionBase(CheckVersionIsArchived, MicrosoftResou


@define(eq=False, slots=False)
class AzureMachineLearningWorkspaceDataVersion(AzureMachineLearningDataVersionBase):
class AzureMachineLearningWorkspaceDataVersion(AzureMachineLearningDataVersionBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_workspace_data_version"
kind_display: ClassVar[str] = "Azure Machine Learning Workspace Data Version"


@define(eq=False, slots=False)
class AzureMachineLearningRegistryDataVersion(AzureMachineLearningDataVersionBase):
class AzureMachineLearningRegistryDataVersion(AzureMachineLearningDataVersionBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_registry_data_version"
Expand Down Expand Up @@ -844,7 +844,7 @@ class AzureInferenceContainerProperties:


@define(eq=False, slots=False)
class AzureMachineLearningEnvironmentContainerBase(MicrosoftResource, AzureProxyResource):
class AzureMachineLearningEnvironmentContainerBase(AzureProxyResource):
kind: ClassVar[str] = "azure_machine_learning_environment_container_base"
kind_display: ClassVar[str] = "Azure Machine Learning Environment Container Base"
kind_service: ClassVar[Optional[str]] = service_name
Expand All @@ -871,7 +871,9 @@ class AzureMachineLearningEnvironmentContainerBase(MicrosoftResource, AzureProxy


@define(eq=False, slots=False)
class AzureMachineLearningWorkspaceEnvironmentContainer(AzureMachineLearningEnvironmentContainerBase):
class AzureMachineLearningWorkspaceEnvironmentContainer(
AzureMachineLearningEnvironmentContainerBase, MicrosoftResource
):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_workspace_environment_container"
Expand Down Expand Up @@ -908,7 +910,7 @@ def collect_versions() -> None:


@define(eq=False, slots=False)
class AzureMachineLearningRegistryEnvironmentContainer(AzureMachineLearningEnvironmentContainerBase):
class AzureMachineLearningRegistryEnvironmentContainer(AzureMachineLearningEnvironmentContainerBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_registry_environment_container"
Expand Down Expand Up @@ -945,7 +947,7 @@ def collect_versions() -> None:


@define(eq=False, slots=False)
class AzureMachineLearningEnvironmentVersionBase(CheckVersionIsArchived, MicrosoftResource, AzureProxyResource):
class AzureMachineLearningEnvironmentVersionBase(CheckVersionIsArchived, AzureProxyResource):
kind: ClassVar[str] = "azure_machine_learning_environment_version_base"
kind_display: ClassVar[str] = "Azure Machine Learning Environment Version Base"
kind_service: ClassVar[Optional[str]] = service_name
Expand Down Expand Up @@ -987,15 +989,15 @@ class AzureMachineLearningEnvironmentVersionBase(CheckVersionIsArchived, Microso


@define(eq=False, slots=False)
class AzureMachineLearningWorkspaceEnvironmentVersion(AzureMachineLearningEnvironmentVersionBase):
class AzureMachineLearningWorkspaceEnvironmentVersion(AzureMachineLearningEnvironmentVersionBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_workspace_environment_version"
kind_display: ClassVar[str] = "Azure Machine Learning Workspace Environment Version"


@define(eq=False, slots=False)
class AzureMachineLearningRegistryEnvironmentVersion(AzureMachineLearningEnvironmentVersionBase):
class AzureMachineLearningRegistryEnvironmentVersion(AzureMachineLearningEnvironmentVersionBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_registry_environment_version"
Expand Down Expand Up @@ -1552,7 +1554,7 @@ class AzureMachineLearningLabelingJob(MicrosoftResource):


@define(eq=False, slots=False)
class AzureMachineLearningModelContainerBase(MicrosoftResource, AzureProxyResource):
class AzureMachineLearningModelContainerBase(AzureProxyResource):
kind: ClassVar[str] = "azure_machine_learning_model_container_base"
kind_display: ClassVar[str] = "Azure Machine Learning Model Container Base"
kind_service: ClassVar[Optional[str]] = service_name
Expand All @@ -1579,7 +1581,7 @@ class AzureMachineLearningModelContainerBase(MicrosoftResource, AzureProxyResour


@define(eq=False, slots=False)
class AzureMachineLearningWorkspaceModelContainer(AzureMachineLearningModelContainerBase):
class AzureMachineLearningWorkspaceModelContainer(AzureMachineLearningModelContainerBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_workspace_model_container"
Expand Down Expand Up @@ -1616,7 +1618,7 @@ def collect_versions() -> None:


@define(eq=False, slots=False)
class AzureMachineLearningRegistryModelContainer(AzureMachineLearningModelContainerBase):
class AzureMachineLearningRegistryModelContainer(AzureMachineLearningModelContainerBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_registry_model_container"
Expand Down Expand Up @@ -1660,7 +1662,7 @@ class AzureFlavorData:


@define(eq=False, slots=False)
class AzureMachineLearningModelVersionBase(CheckVersionIsArchived, MicrosoftResource, AzureProxyResource):
class AzureMachineLearningModelVersionBase(CheckVersionIsArchived, AzureProxyResource):
kind: ClassVar[str] = "azure_machine_learning_base_model_version"
kind_display: ClassVar[str] = "Azure Machine Learning Base Model Version"
kind_service: ClassVar[Optional[str]] = service_name
Expand Down Expand Up @@ -1696,15 +1698,15 @@ class AzureMachineLearningModelVersionBase(CheckVersionIsArchived, MicrosoftReso


@define(eq=False, slots=False)
class AzureMachineLearningWorkspaceModelVersion(AzureMachineLearningModelVersionBase):
class AzureMachineLearningWorkspaceModelVersion(AzureMachineLearningModelVersionBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_workspace_model_version"
kind_display: ClassVar[str] = "Azure Machine Learning Workspace Model Version"


@define(eq=False, slots=False)
class AzureMachineLearningRegistryModelVersion(AzureMachineLearningModelVersionBase):
class AzureMachineLearningRegistryModelVersion(AzureMachineLearningModelVersionBase, MicrosoftResource):
# Defined to split registry and workspace resource

kind: ClassVar[str] = "azure_machine_learning_registry_model_version"
Expand Down

0 comments on commit ac8c4a0

Please sign in to comment.