Skip to content

Commit

Permalink
add missing properties
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4c6565 committed May 16, 2022
1 parent 04a5744 commit 1177d2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pkg/service/cloudflare/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type Account struct {
// +genie:model_response
// +genie:model_paginated
type AccountMember struct {
AccountID string `json:"account_id"`
EmailAddress string `json:"email_address"`
}

Expand Down Expand Up @@ -54,13 +55,13 @@ type Subscription struct {
// +genie:model_response
// +genie:model_paginated
type Zone struct {
ID string `json:"id"`
AccountID string `json:"account_id"`
Name string `json:"name"`
PlanSubscriptionID string `json:"plan_subscription_id"`
CloudflareZoneID string `json:"cloudflare_zone_id"`
CreatedAt connection.DateTime `json:"created_at"`
UpdatedAt connection.DateTime `json:"updated_at"`
ID string `json:"id"`
AccountID string `json:"account_id"`
Name string `json:"name"`
SubscriptionID string `json:"subscription_id"`
CloudflareZoneID string `json:"cloudflare_zone_id"`
CreatedAt connection.DateTime `json:"created_at"`
UpdatedAt connection.DateTime `json:"updated_at"`
}

// TotalSpend represents total spend
Expand Down
1 change: 1 addition & 0 deletions pkg/service/cloudflare/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type CreateAccountMemberRequest struct {

// CreateOrchestrationRequest represents a request to create new orchestration
type CreateOrchestrationRequest struct {
AccountMemberDeploymentID string `json:"account_member_deployment_id"`
ZoneName string `json:"zone_name"`
ZoneSubscriptionID string `json:"zone_subscription_id"`
AccountID string `json:"account_id"`
Expand Down

0 comments on commit 1177d2a

Please sign in to comment.