-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust bitbucket datacenter resource to recent changes
- Loading branch information
1 parent
832e2bd
commit 0840634
Showing
8 changed files
with
237 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 32 additions & 7 deletions
39
spacelift/internal/structs/bitbucket_datacenter_integration.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,37 @@ | ||
package structs | ||
|
||
import "github.com/shurcooL/graphql" | ||
|
||
// BitbucketDatacenterIntegration represents the bitbucket datacenter integration data relevant to the provider. | ||
type BitbucketDatacenterIntegration struct { | ||
Id string `graphql:"id"` | ||
Name string `graphql:"name"` | ||
APIHost string `graphql:"apiHost"` | ||
Username string `graphql:"username"` | ||
UserFacingHost string `graphql:"userFacingHost"` | ||
WebhookSecret string `graphql:"webhookSecret"` | ||
WebhookURL string `graphql:"webhookURL"` | ||
ID string `graphql:"id"` | ||
Name string `graphql:"name"` | ||
IsDefault bool `graphql:"isDefault"` | ||
Space struct { | ||
ID string `graphql:"id"` | ||
} `graphql:"space"` | ||
Labels []string `graphql:"labels"` | ||
Description *string `graphql:"description"` | ||
APIHost string `graphql:"apiHost"` | ||
Username string `graphql:"username"` | ||
UserFacingHost string `graphql:"userFacingHost"` | ||
WebhookSecret string `graphql:"webhookSecret"` | ||
WebhookURL string `graphql:"webhookURL"` | ||
} | ||
|
||
// CustomVCSInput represents the custom VCS input data. | ||
type CustomVCSInput struct { | ||
Name graphql.String `json:"name"` | ||
SpaceID graphql.ID `json:"spaceID"` | ||
Labels *[]graphql.String `json:"labels"` | ||
Description *graphql.String `json:"description"` | ||
IsDefault *graphql.Boolean `json:"isDefault"` | ||
} | ||
|
||
// CustomVCSUpdateInput represents the custom VCS update input data. | ||
type CustomVCSUpdateInput struct { | ||
ID graphql.ID `json:"id"` | ||
SpaceID graphql.ID `json:"space"` | ||
Labels *[]graphql.String `json:"labels"` | ||
Description *graphql.String `json:"description"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.