Skip to content

Commit

Permalink
✨ Add the following new resources:
Browse files Browse the repository at this point in the history
  - azure.storage.account.queueService.properties
  - azure.storage.account.blobService.properties
  - azure.storage.account.tableService.properties
  - azure.storage.account.dataProtection

Signed-off-by: Preslav <[email protected]>
  • Loading branch information
preslavgerchev committed Jan 5, 2023
1 parent 0be23ea commit 32aa4f6
Show file tree
Hide file tree
Showing 8 changed files with 2,215 additions and 4 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ require (
github.com/99designs/keyring v1.2.1
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.2.0
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0
github.com/Azure/azure-sdk-for-go/sdk/data/aztables v1.0.1
github.com/Azure/azure-sdk-for-go/sdk/keyvault/azcertificates v0.7.1
github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.9.0
github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets v0.11.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.2.0 h1:sVW/AFBTGyJxDaMYlq0ct3jUX
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.2.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U=
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc=
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM=
github.com/Azure/azure-sdk-for-go/sdk/data/aztables v1.0.1 h1:bFa9IcjvrCber6gGgDAUZ+I2bO8J7s8JxXmu9fhi2ss=
github.com/Azure/azure-sdk-for-go/sdk/data/aztables v1.0.1/go.mod h1:l3wvZkG9oW07GLBW5Cd0WwG5asOfJ8aqE8raUvNzLpk=
github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 h1:Oj853U9kG+RLTCQXpjvOnrv0WaZHxgmZz1TlLywgOPY=
github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w=
github.com/Azure/azure-sdk-for-go/sdk/keyvault/azcertificates v0.7.1 h1:iAwW2kCWnk2FrWoIytm2pNvVvUWS9QsWi1wrQDhnbp8=
Expand Down
98 changes: 98 additions & 0 deletions resources/packs/azure/azure.lr
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,104 @@ private azure.storage.account @defaults("id name location") {
kind string
// Storage account containers
containers() []azure.storage.container
// Storage account queue properties
queueProperties() azure.storage.account.queueService.properties
// Storage account table properties
tableProperties() azure.storage.account.tableService.properties
// Storage account blob properties
blobProperties() azure.storage.account.blobService.properties
// Storage account data protection
dataProtection() azure.storage.account.dataProtection
}

// Azure Storage Account Data Protection
private azure.storage.account.dataProtection {
// the identifier of the storage account
storageAccountId string
// whether soft deletion of blobs is enabled
blobSoftDeletionEnabled bool
// the retention period in days for deleted blobs
blobRetentionDays int
// whether soft deletion of containers is enabled
containerSoftDeletionEnabled bool
// the retention period in days for deleted containers
containerRetentionDays int
}

// Azure Storage Account Blob Service Properties
private azure.storage.account.blobService.properties {
// the identifier of the service
id string
// the hourly metrics properties
hourMetrics azure.storage.account.service.properties.metrics
// the minute metrics properties
minuteMetrics azure.storage.account.service.properties.metrics
// the logging properties
logging azure.storage.account.service.properties.logging
}

// Azure Storage Account Queue Service Properties
private azure.storage.account.queueService.properties {
// the identifier of the service
id string
// the hourly metrics properties
hourMetrics azure.storage.account.service.properties.metrics
// the minute metrics properties
minuteMetrics azure.storage.account.service.properties.metrics
// the logging properties
logging azure.storage.account.service.properties.logging
}

// Azure Storage Account Table Service Properties
private azure.storage.account.tableService.properties {
// the identifier of the service
id string
// the hourly metrics properties
hourMetrics azure.storage.account.service.properties.metrics
// the minute metrics properties
minuteMetrics azure.storage.account.service.properties.metrics
// the logging properties
logging azure.storage.account.service.properties.logging
}

// Azure Storage Account Service Properties Metrics
private azure.storage.account.service.properties.metrics {
// the identifier of the metrics
id string
// indicates whether metrics generate summary statistics for called API operations
includeAPIs bool
// the retention policy for the metrics
retentionPolicy azure.storage.account.service.properties.retentionPolicy
// indicates whether the metrics are enabled
enabled bool
// the version of the metrics
version string
}

// Azure Storage Account Service Properties Retention Policy
private azure.storage.account.service.properties.retentionPolicy {
// the identifier of the retention policy
id string
// indicates the number of days that metrics or logging data is retained
retentionDays int
// indicates whether a retention policy is enabled for the Azure Storage
enabled bool
}

// Azure Storage Account Service Properties Logging
private azure.storage.account.service.properties.logging {
// the identifier of the logging configuration
id string
// indicates whether delete requests are being logged.
delete bool
// indicates whether read requests are being logged.
read bool
// indicates whether write requests are being logged.
write bool
// the logging version
version string
// the retention policy for the logging metrics
retentionPolicy azure.storage.account.service.properties.retentionPolicy
}

// Azure Storage Container
Expand Down
Loading

0 comments on commit 32aa4f6

Please sign in to comment.