Skip to content

Commit 0c4ee17

Browse files
authored
[azure][fix] Better names (#2149)
1 parent 1c93902 commit 0c4ee17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/azure/fix_plugin_azure/resource/storage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ class AzureStorageAccount(MicrosoftResource):
816816
"blob_restore_status": S("properties", "blobRestoreStatus") >> Bend(AzureBlobRestoreStatus.mapping),
817817
"creation_time": S("properties", "creationTime"),
818818
"storage_custom_domain": S("properties", "customDomain") >> Bend(AzureCustomDomain.mapping),
819-
"default_to_o_auth_authentication": S("properties", "defaultToOAuthAuthentication"),
819+
"default_to_oauth_authentication": S("properties", "defaultToOAuthAuthentication"),
820820
"dns_endpoint_type": S("properties", "dnsEndpointType"),
821821
"storage_encryption": S("properties", "encryption") >> Bend(AzureStorageEncryption.mapping),
822822
"extended_location": S("extendedLocation") >> Bend(AzureExtendedLocation.mapping),
@@ -831,7 +831,7 @@ class AzureStorageAccount(MicrosoftResource):
831831
"is_sftp_enabled": S("properties", "isSftpEnabled"),
832832
"is_sku_conversion_blocked": S("properties", "isSkuConversionBlocked"),
833833
"key_creation_time": S("properties", "keyCreationTime") >> Bend(AzureKeyCreationTime.mapping),
834-
"key_policy": S("properties", "keyPolicy", "keyExpirationPeriodInDays"),
834+
"key_expiration_period_in_days": S("properties", "keyPolicy", "keyExpirationPeriodInDays"),
835835
"resource_kind": S("kind"),
836836
"large_file_shares_state": S("properties", "largeFileSharesState"),
837837
"last_geo_failover_time": S("properties", "lastGeoFailoverTime"),
@@ -872,7 +872,7 @@ class AzureStorageAccount(MicrosoftResource):
872872
blob_restore_status: Optional[AzureBlobRestoreStatus] = field(default=None, metadata={'description': 'Blob restore status.'}) # fmt: skip
873873
creation_time: Optional[datetime] = field(default=None, metadata={'description': 'Gets the creation date and time of the storage account in UTC.'}) # fmt: skip
874874
storage_custom_domain: Optional[AzureCustomDomain] = field(default=None, metadata={'description': 'The custom domain assigned to this storage account. This can be set via Update.'}) # fmt: skip
875-
default_to_o_auth_authentication: Optional[bool] = field(default=None, metadata={'description': 'A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property.'}) # fmt: skip
875+
default_to_oauth_authentication: Optional[bool] = field(default=None, metadata={'description': 'A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property.'}) # fmt: skip
876876
dns_endpoint_type: Optional[str] = field(default=None, metadata={'description': 'Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier.'}) # fmt: skip
877877
storage_encryption: Optional[AzureStorageEncryption] = field(default=None, metadata={'description': 'The encryption settings on the storage account.'}) # fmt: skip
878878
extended_location: Optional[AzureExtendedLocation] = field(default=None, metadata={'description': 'The complex type of the extended location.'}) # fmt: skip
@@ -888,7 +888,7 @@ class AzureStorageAccount(MicrosoftResource):
888888
is_sftp_enabled: Optional[bool] = field(default=None, metadata={'description': 'Enables Secure File Transfer Protocol, if set to true'}) # fmt: skip
889889
is_sku_conversion_blocked: Optional[bool] = field(default=None, metadata={'description': 'This property will be set to true or false on an event of ongoing migration. Default value is null.'}) # fmt: skip
890890
key_creation_time: Optional[AzureKeyCreationTime] = field(default=None, metadata={'description': 'Storage account keys creation time.'}) # fmt: skip
891-
key_policy: Optional[int] = field(default=None, metadata={'description': 'KeyPolicy assigned to the storage account.'}) # fmt: skip
891+
key_expiration_period_in_days: Optional[int] = field(default=None, metadata={'description': 'KeyPolicy assigned to the storage account.'}) # fmt: skip
892892
resource_kind: Optional[str] = field(default=None, metadata={"description": "Gets the Kind."})
893893
large_file_shares_state: Optional[str] = field(default=None, metadata={'description': 'Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled.'}) # fmt: skip
894894
last_geo_failover_time: Optional[datetime] = field(default=None, metadata={'description': 'Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS.'}) # fmt: skip

0 commit comments

Comments
 (0)