Skip to content

Commit

Permalink
Merge pull request #23 from oleghalin/main
Browse files Browse the repository at this point in the history
fix: types for latest AWX version
  • Loading branch information
josh-silvas authored Dec 5, 2024
2 parents 856c441 + 8c3bba8 commit ff592e4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.3.0
v1.3.1
40 changes: 20 additions & 20 deletions tools/goawx/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ type JobEvent struct {
// User represents an user.
type User struct {
ID int `json:"id"`
Type int `json:"type"`
Type string `json:"string"`
URL string `json:"url"`
Related *Related `json:"related"`
SummaryFields *Summary `json:"summary_fields"`
Expand Down Expand Up @@ -731,25 +731,25 @@ type Group struct {
//
//nolint:maligned
type Host struct {
ID int `json:"id"`
Type string `json:"type"`
URL string `json:"url"`
Related *Related `json:"related"`
SummaryFields *Summary `json:"summary_fields"`
Created time.Time `json:"created"`
Modified time.Time `json:"modified"`
Name string `json:"name"`
Description string `json:"description"`
Inventory int `json:"inventory"`
Enabled bool `json:"enabled"`
InstanceID string `json:"instance_id"`
Variables string `json:"variables"`
HasActiveFailures bool `json:"has_active_failures"`
HasInventorySources bool `json:"has_inventory_sources"`
LastJob *Job `json:"last_job"`
LastJobHostSummary *HostSummary `json:"last_job_host_summary"`
InsightsSystemID interface{} `json:"insights_system_id"`
AnsibleFactsModified interface{} `json:"ansible_facts_modified"`
ID int `json:"id"`
Type string `json:"type"`
URL string `json:"url"`
Related *Related `json:"related"`
SummaryFields *Summary `json:"summary_fields"`
Created time.Time `json:"created"`
Modified time.Time `json:"modified"`
Name string `json:"name"`
Description string `json:"description"`
Inventory int `json:"inventory"`
Enabled bool `json:"enabled"`
InstanceID string `json:"instance_id"`
Variables string `json:"variables"`
HasActiveFailures bool `json:"has_active_failures"`
HasInventorySources bool `json:"has_inventory_sources"`
LastJob int `json:"last_job"`
LastJobHostSummary int `json:"last_job_host_summary"`
InsightsSystemID string `json:"insights_system_id"`
AnsibleFactsModified interface{} `json:"ansible_facts_modified"`
}

// Organization represents an organization in AWX.
Expand Down

0 comments on commit ff592e4

Please sign in to comment.