Skip to content

Commit b79e0d4

Browse files
Commit via running: make Sources/private-registries
1 parent 41cc3c1 commit b79e0d4

File tree

1 file changed

+51
-3
lines changed

1 file changed

+51
-3
lines changed

Sources/private-registries/Types.swift

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ public enum Components {
330330
case case2(Swift.Int?)
331331
/// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`.
332332
case case3([Swift.String]?)
333-
public init(from decoder: any Decoder) throws {
334-
var errors: [any Error] = []
333+
public init(from decoder: any Swift.Decoder) throws {
334+
var errors: [any Swift.Error] = []
335335
do {
336336
self = .case1(try decoder.decodeFromSingleValueContainer())
337337
return
@@ -356,7 +356,7 @@ public enum Components {
356356
errors: errors
357357
)
358358
}
359-
public func encode(to encoder: any Encoder) throws {
359+
public func encode(to encoder: any Swift.Encoder) throws {
360360
switch self {
361361
case let .case1(value):
362362
try encoder.encodeToSingleValueContainer(value)
@@ -459,10 +459,18 @@ public enum Components {
459459
///
460460
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/registry_type`.
461461
public var registryType: Components.Schemas.OrgPrivateRegistryConfiguration.RegistryTypePayload
462+
/// The URL of the private registry.
463+
///
464+
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/url`.
465+
public var url: Swift.String?
462466
/// The username to use when authenticating with the private registry.
463467
///
464468
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/username`.
465469
public var username: Swift.String?
470+
/// Whether this private registry replaces the base registry (e.g., npmjs.org for npm, rubygems.org for rubygems). When `true`, Dependabot will only use this registry and will not fall back to the public registry. When `false` (default), Dependabot will use this registry for scoped packages but may fall back to the public registry for other packages.
471+
///
472+
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/replaces_base`.
473+
public var replacesBase: Swift.Bool?
466474
/// Which type of organization repositories have access to the private registry.
467475
///
468476
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/visibility`.
@@ -484,29 +492,37 @@ public enum Components {
484492
/// - Parameters:
485493
/// - name: The name of the private registry configuration.
486494
/// - registryType: The registry type.
495+
/// - url: The URL of the private registry.
487496
/// - username: The username to use when authenticating with the private registry.
497+
/// - replacesBase: Whether this private registry replaces the base registry (e.g., npmjs.org for npm, rubygems.org for rubygems). When `true`, Dependabot will only use this registry and will not fall back to the public registry. When `false` (default), Dependabot will use this registry for scoped packages but may fall back to the public registry for other packages.
488498
/// - visibility: Which type of organization repositories have access to the private registry.
489499
/// - createdAt:
490500
/// - updatedAt:
491501
public init(
492502
name: Swift.String,
493503
registryType: Components.Schemas.OrgPrivateRegistryConfiguration.RegistryTypePayload,
504+
url: Swift.String? = nil,
494505
username: Swift.String? = nil,
506+
replacesBase: Swift.Bool? = nil,
495507
visibility: Components.Schemas.OrgPrivateRegistryConfiguration.VisibilityPayload,
496508
createdAt: Foundation.Date,
497509
updatedAt: Foundation.Date
498510
) {
499511
self.name = name
500512
self.registryType = registryType
513+
self.url = url
501514
self.username = username
515+
self.replacesBase = replacesBase
502516
self.visibility = visibility
503517
self.createdAt = createdAt
504518
self.updatedAt = updatedAt
505519
}
506520
public enum CodingKeys: String, CodingKey {
507521
case name
508522
case registryType = "registry_type"
523+
case url
509524
case username
525+
case replacesBase = "replaces_base"
510526
case visibility
511527
case createdAt = "created_at"
512528
case updatedAt = "updated_at"
@@ -544,10 +560,18 @@ public enum Components {
544560
///
545561
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/registry_type`.
546562
public var registryType: Components.Schemas.OrgPrivateRegistryConfigurationWithSelectedRepositories.RegistryTypePayload
563+
/// The URL of the private registry.
564+
///
565+
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/url`.
566+
public var url: Swift.String?
547567
/// The username to use when authenticating with the private registry.
548568
///
549569
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/username`.
550570
public var username: Swift.String?
571+
/// Whether this private registry replaces the base registry (e.g., npmjs.org for npm, rubygems.org for rubygems). When `true`, Dependabot will only use this registry and will not fall back to the public registry. When `false` (default), Dependabot will use this registry for scoped packages but may fall back to the public registry for other packages.
572+
///
573+
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/replaces_base`.
574+
public var replacesBase: Swift.Bool?
551575
/// Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.
552576
///
553577
/// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/visibility`.
@@ -573,23 +597,29 @@ public enum Components {
573597
/// - Parameters:
574598
/// - name: The name of the private registry configuration.
575599
/// - registryType: The registry type.
600+
/// - url: The URL of the private registry.
576601
/// - username: The username to use when authenticating with the private registry.
602+
/// - replacesBase: Whether this private registry replaces the base registry (e.g., npmjs.org for npm, rubygems.org for rubygems). When `true`, Dependabot will only use this registry and will not fall back to the public registry. When `false` (default), Dependabot will use this registry for scoped packages but may fall back to the public registry for other packages.
577603
/// - visibility: Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.
578604
/// - selectedRepositoryIds: An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`.
579605
/// - createdAt:
580606
/// - updatedAt:
581607
public init(
582608
name: Swift.String,
583609
registryType: Components.Schemas.OrgPrivateRegistryConfigurationWithSelectedRepositories.RegistryTypePayload,
610+
url: Swift.String? = nil,
584611
username: Swift.String? = nil,
612+
replacesBase: Swift.Bool? = nil,
585613
visibility: Components.Schemas.OrgPrivateRegistryConfigurationWithSelectedRepositories.VisibilityPayload,
586614
selectedRepositoryIds: [Swift.Int]? = nil,
587615
createdAt: Foundation.Date,
588616
updatedAt: Foundation.Date
589617
) {
590618
self.name = name
591619
self.registryType = registryType
620+
self.url = url
592621
self.username = username
622+
self.replacesBase = replacesBase
593623
self.visibility = visibility
594624
self.selectedRepositoryIds = selectedRepositoryIds
595625
self.createdAt = createdAt
@@ -598,7 +628,9 @@ public enum Components {
598628
public enum CodingKeys: String, CodingKey {
599629
case name
600630
case registryType = "registry_type"
631+
case url
601632
case username
633+
case replacesBase = "replaces_base"
602634
case visibility
603635
case selectedRepositoryIds = "selected_repository_ids"
604636
case createdAt = "created_at"
@@ -1079,6 +1111,10 @@ public enum Operations {
10791111
///
10801112
/// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/username`.
10811113
public var username: Swift.String?
1114+
/// Whether this private registry should replace the base registry (e.g., npmjs.org for npm, rubygems.org for rubygems). When set to `true`, Dependabot will only use this registry and will not fall back to the public registry. When set to `false` (default), Dependabot will use this registry for scoped packages but may fall back to the public registry for other packages.
1115+
///
1116+
/// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/replaces_base`.
1117+
public var replacesBase: Swift.Bool?
10821118
/// The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.
10831119
///
10841120
/// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/encrypted_value`.
@@ -1109,6 +1145,7 @@ public enum Operations {
11091145
/// - registryType: The registry type.
11101146
/// - url: The URL of the private registry.
11111147
/// - username: The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.
1148+
/// - replacesBase: Whether this private registry should replace the base registry (e.g., npmjs.org for npm, rubygems.org for rubygems). When set to `true`, Dependabot will only use this registry and will not fall back to the public registry. When set to `false` (default), Dependabot will use this registry for scoped packages but may fall back to the public registry for other packages.
11121149
/// - encryptedValue: The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.
11131150
/// - keyId: The ID of the key you used to encrypt the secret.
11141151
/// - visibility: Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.
@@ -1117,6 +1154,7 @@ public enum Operations {
11171154
registryType: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Body.JsonPayload.RegistryTypePayload,
11181155
url: Swift.String,
11191156
username: Swift.String? = nil,
1157+
replacesBase: Swift.Bool? = nil,
11201158
encryptedValue: Swift.String,
11211159
keyId: Swift.String,
11221160
visibility: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Body.JsonPayload.VisibilityPayload,
@@ -1125,6 +1163,7 @@ public enum Operations {
11251163
self.registryType = registryType
11261164
self.url = url
11271165
self.username = username
1166+
self.replacesBase = replacesBase
11281167
self.encryptedValue = encryptedValue
11291168
self.keyId = keyId
11301169
self.visibility = visibility
@@ -1134,6 +1173,7 @@ public enum Operations {
11341173
case registryType = "registry_type"
11351174
case url
11361175
case username
1176+
case replacesBase = "replaces_base"
11371177
case encryptedValue = "encrypted_value"
11381178
case keyId = "key_id"
11391179
case visibility
@@ -1744,6 +1784,10 @@ public enum Operations {
17441784
///
17451785
/// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/username`.
17461786
public var username: Swift.String?
1787+
/// Whether this private registry should replace the base registry (e.g., npmjs.org for npm, rubygems.org for rubygems). When set to `true`, Dependabot will only use this registry and will not fall back to the public registry. When set to `false` (default), Dependabot will use this registry for scoped packages but may fall back to the public registry for other packages.
1788+
///
1789+
/// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/replaces_base`.
1790+
public var replacesBase: Swift.Bool?
17471791
/// The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.
17481792
///
17491793
/// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/encrypted_value`.
@@ -1774,6 +1818,7 @@ public enum Operations {
17741818
/// - registryType: The registry type.
17751819
/// - url: The URL of the private registry.
17761820
/// - username: The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.
1821+
/// - replacesBase: Whether this private registry should replace the base registry (e.g., npmjs.org for npm, rubygems.org for rubygems). When set to `true`, Dependabot will only use this registry and will not fall back to the public registry. When set to `false` (default), Dependabot will use this registry for scoped packages but may fall back to the public registry for other packages.
17771822
/// - encryptedValue: The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.
17781823
/// - keyId: The ID of the key you used to encrypt the secret.
17791824
/// - visibility: Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.
@@ -1782,6 +1827,7 @@ public enum Operations {
17821827
registryType: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Body.JsonPayload.RegistryTypePayload? = nil,
17831828
url: Swift.String? = nil,
17841829
username: Swift.String? = nil,
1830+
replacesBase: Swift.Bool? = nil,
17851831
encryptedValue: Swift.String? = nil,
17861832
keyId: Swift.String? = nil,
17871833
visibility: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Body.JsonPayload.VisibilityPayload? = nil,
@@ -1790,6 +1836,7 @@ public enum Operations {
17901836
self.registryType = registryType
17911837
self.url = url
17921838
self.username = username
1839+
self.replacesBase = replacesBase
17931840
self.encryptedValue = encryptedValue
17941841
self.keyId = keyId
17951842
self.visibility = visibility
@@ -1799,6 +1846,7 @@ public enum Operations {
17991846
case registryType = "registry_type"
18001847
case url
18011848
case username
1849+
case replacesBase = "replaces_base"
18021850
case encryptedValue = "encrypted_value"
18031851
case keyId = "key_id"
18041852
case visibility

0 commit comments

Comments
 (0)