Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Letha <letha@mondoo.com>
  • Loading branch information
slntopp committed Oct 18, 2024
1 parent be6d508 commit d524093
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
19 changes: 12 additions & 7 deletions providers/cloudflare/resources/cloudflare.lr
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ private cloudflare.zone @defaults("name account.name") {
// Original nameservers
originalNameServers []string

// The current status of the zone, allowed values: initializing pending active moved
status string
paused bool
type string

// The time the zone was created
// The current status of the zone (initializing, pending, active, or moved)
status string
// Whether the zone is paused
paused bool
// DNS zone type (full or partial)
type string

// Time the zone was created
createdOn time
// The time the zone was last modified
// Time the zone was last modified
modifiedOn time

// Zone owner account
Expand Down Expand Up @@ -86,9 +88,12 @@ private cloudflare.dns.record @defaults("type content name") {
type string
// Content of the record (hostname, IP Address, etc.)
content string
// Time to live (in seconds)
ttl int

// Time the record was created
createdOn time
// Time the record was last modified
modifiedOn time
}

Expand Down
12 changes: 12 additions & 0 deletions providers/cloudflare/resources/cloudflare.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions providers/cloudflare/resources/cloudflare.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ resources:
min_mondoo_version: 9.0.0
cloudflare.zone.account:
fields:
email: {}
id: {}
name: {}
type: {}
Expand Down

0 comments on commit d524093

Please sign in to comment.