mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
chore(azure): Remove all unnecessary init methods in @dataclass (#3324)
This commit is contained in:
@@ -60,10 +60,3 @@ class Role:
|
|||||||
type: str
|
type: str
|
||||||
assignable_scopes: list[str]
|
assignable_scopes: list[str]
|
||||||
permissions: list[Permission]
|
permissions: list[Permission]
|
||||||
|
|
||||||
def __init__(self, id, name, type, assignable_scopes, permissions):
|
|
||||||
self.id = id
|
|
||||||
self.name = name
|
|
||||||
self.type = type
|
|
||||||
self.assignable_scopes = assignable_scopes
|
|
||||||
self.permissions = permissions
|
|
||||||
|
|||||||
@@ -67,21 +67,3 @@ class SQL_Server:
|
|||||||
administrators: ServerExternalAdministrator
|
administrators: ServerExternalAdministrator
|
||||||
auditing_policies: ServerBlobAuditingPolicy
|
auditing_policies: ServerBlobAuditingPolicy
|
||||||
firewall_rules: FirewallRule
|
firewall_rules: FirewallRule
|
||||||
|
|
||||||
def __init__(
|
|
||||||
self,
|
|
||||||
id,
|
|
||||||
name,
|
|
||||||
public_network_access,
|
|
||||||
minimal_tls_version,
|
|
||||||
administrators,
|
|
||||||
auditing_policies,
|
|
||||||
firewall_rules,
|
|
||||||
):
|
|
||||||
self.id = id
|
|
||||||
self.name = name
|
|
||||||
self.public_network_access = public_network_access
|
|
||||||
self.minimal_tls_version = minimal_tls_version
|
|
||||||
self.administrators = administrators
|
|
||||||
self.auditing_policies = auditing_policies
|
|
||||||
self.firewall_rules = firewall_rules
|
|
||||||
|
|||||||
@@ -51,23 +51,3 @@ class Storage_Account:
|
|||||||
network_rule_set: NetworkRuleSet
|
network_rule_set: NetworkRuleSet
|
||||||
encryption_type: str
|
encryption_type: str
|
||||||
minimum_tls_version: str
|
minimum_tls_version: str
|
||||||
|
|
||||||
def __init__(
|
|
||||||
self,
|
|
||||||
id,
|
|
||||||
name,
|
|
||||||
enable_https_traffic_only,
|
|
||||||
infrastructure_encryption,
|
|
||||||
allow_blob_public_access,
|
|
||||||
network_rule_set,
|
|
||||||
encryption_type,
|
|
||||||
minimum_tls_version,
|
|
||||||
):
|
|
||||||
self.id = id
|
|
||||||
self.name = name
|
|
||||||
self.enable_https_traffic_only = enable_https_traffic_only
|
|
||||||
self.infrastructure_encryption = infrastructure_encryption
|
|
||||||
self.allow_blob_public_access = allow_blob_public_access
|
|
||||||
self.network_rule_set = network_rule_set
|
|
||||||
self.encryption_type = encryption_type
|
|
||||||
self.minimum_tls_version = minimum_tls_version
|
|
||||||
|
|||||||
Reference in New Issue
Block a user