Provisioning: Update APIs in main (#102345)

This commit is contained in:
Ryan McKinley
2025-03-18 14:55:22 +02:00
committed by GitHub
parent c28b49e5d1
commit ff6a97f1a1
5 changed files with 33 additions and 9 deletions
@@ -12,6 +12,7 @@ type GitHubRepositoryConfigApplyConfiguration struct {
Token *string `json:"token,omitempty"`
EncryptedToken []byte `json:"encryptedToken,omitempty"`
GenerateDashboardPreviews *bool `json:"generateDashboardPreviews,omitempty"`
Path *string `json:"path,omitempty"`
}
// GitHubRepositoryConfigApplyConfiguration constructs a declarative configuration of the GitHubRepositoryConfig type for use with
@@ -61,3 +62,11 @@ func (b *GitHubRepositoryConfigApplyConfiguration) WithGenerateDashboardPreviews
b.GenerateDashboardPreviews = &value
return b
}
// WithPath sets the Path field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Path field is set to the value of the last call.
func (b *GitHubRepositoryConfigApplyConfiguration) WithPath(value string) *GitHubRepositoryConfigApplyConfiguration {
b.Path = &value
return b
}