Skip to content

Commit 4e9e20f

Browse files
committed
feat(private-registry): enhance private registry model with new fields and update accessors
1 parent c7ab1b3 commit 4e9e20f

4 files changed

Lines changed: 295 additions & 22 deletions

File tree

github/github-accessors.go

Lines changed: 107 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 145 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/private_registries.go

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,44 @@ type PrivateRegistry struct {
6262
// Name of the private registry.
6363
Name *string `json:"name,omitempty"`
6464
// RegistryType is the type of private registry. You can find the list of supported types in PrivateRegistryType.
65-
RegistryType *string `json:"registry_type,omitempty"`
65+
RegistryType *PrivateRegistryType `json:"registry_type,omitempty"`
66+
// AuthType is the authentication type for the private registry.
67+
AuthType *PrivateRegistryAuthType `json:"auth_type,omitempty"`
68+
// URL is the URL of the private registry.
69+
URL *string `json:"url,omitempty"`
6670
// Username to use when authenticating with the private registry.
6771
// This field is omitted if the private registry does not require a username for authentication.
6872
Username *string `json:"username,omitempty"`
69-
// CreatedAt is the timestamp when the private registry was created.
70-
CreatedAt *Timestamp `json:"created_at,omitempty"`
71-
// UpdatedAt is the timestamp when the private registry was last updated.
72-
UpdatedAt *Timestamp `json:"updated_at,omitempty"`
73+
// ReplacesBase indicates whether this private registry should replace the base registry.
74+
ReplacesBase *bool `json:"replaces_base,omitempty"`
7375
// Visibility is the visibility of the private registry. Possible values are: "private", "all", and "selected".
7476
Visibility *PrivateRegistryVisibility `json:"visibility,omitempty"`
7577
// SelectedRepositoryIDs is an array of repository IDs that can access the organization private registry.
7678
SelectedRepositoryIDs []int64 `json:"selected_repository_ids,omitempty"`
79+
// TenantID is the tenant ID of the Azure AD application.
80+
TenantID *string `json:"tenant_id,omitempty"`
81+
// ClientID is the client ID of the Azure AD application.
82+
ClientID *string `json:"client_id,omitempty"`
83+
// AwsRegion is the AWS region.
84+
AwsRegion *string `json:"aws_region,omitempty"`
85+
// AccountID is the AWS account ID.
86+
AccountID *string `json:"account_id,omitempty"`
87+
// RoleName is the AWS IAM role name.
88+
RoleName *string `json:"role_name,omitempty"`
89+
// Domain is the CodeArtifact domain.
90+
Domain *string `json:"domain,omitempty"`
91+
// DomainOwner is the CodeArtifact domain owner.
92+
DomainOwner *string `json:"domain_owner,omitempty"`
93+
// JfrogOidcProviderName is the JFrog OIDC provider name.
94+
JfrogOidcProviderName *string `json:"jfrog_oidc_provider_name,omitempty"`
95+
// Audience is the OIDC audience.
96+
Audience *string `json:"audience,omitempty"`
97+
// IdentityMappingName is the JFrog identity mapping name.
98+
IdentityMappingName *string `json:"identity_mapping_name,omitempty"`
99+
// CreatedAt is the timestamp when the private registry was created.
100+
CreatedAt *Timestamp `json:"created_at,omitempty"`
101+
// UpdatedAt is the timestamp when the private registry was last updated.
102+
UpdatedAt *Timestamp `json:"updated_at,omitempty"`
77103
}
78104

79105
// PrivateRegistries represents a list of private registries.
@@ -88,7 +114,7 @@ type PrivateRegistries struct {
88114
type CreateOrganizationPrivateRegistry struct {
89115
// RegistryType is the type of private registry.
90116
// You can find the list of supported types in PrivateRegistryType.
91-
RegistryType string `json:"registry_type"`
117+
RegistryType PrivateRegistryType `json:"registry_type"`
92118

93119
// URL is the URL of the private registry.
94120
URL string `json:"url"`
@@ -150,7 +176,7 @@ type CreateOrganizationPrivateRegistry struct {
150176
type UpdateOrganizationPrivateRegistry struct {
151177
// RegistryType is the type of private registry.
152178
// You can find the list of supported types in PrivateRegistryType.
153-
RegistryType *string `json:"registry_type,omitempty"`
179+
RegistryType *PrivateRegistryType `json:"registry_type,omitempty"`
154180

155181
// URL is the URL of the private registry.
156182
URL *string `json:"url,omitempty"`

0 commit comments

Comments
 (0)