Skip to content

Commit a476bf5

Browse files
Commit via running: make Sources/enterprise-teams
1 parent ce08c70 commit a476bf5

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

Sources/enterprise-teams/Types.swift

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,26 @@ public enum Operations {
620620
///
621621
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/POST/requestBody/json/sync_to_organizations`.
622622
public var syncToOrganizations: Operations.EnterpriseTeamsCreate.Input.Body.JsonPayload.SyncToOrganizationsPayload?
623+
/// Specifies which organizations in the enterprise should have access to this team. Can be one of `disabled`, `selected`, or `all`.
624+
/// `disabled`: The team is not assigned to any organizations. This is the default when you create a new team.
625+
/// `selected`: The team is assigned to specific organizations. You can then use the [add organization assignments API](https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations#add-organization-assignments) endpoint.
626+
/// `all`: The team is assigned to all current and future organizations in the enterprise.
627+
///
628+
///
629+
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/POST/requestBody/json/organization_selection_type`.
630+
@frozen public enum OrganizationSelectionTypePayload: String, Codable, Hashable, Sendable, CaseIterable {
631+
case disabled = "disabled"
632+
case selected = "selected"
633+
case all = "all"
634+
}
635+
/// Specifies which organizations in the enterprise should have access to this team. Can be one of `disabled`, `selected`, or `all`.
636+
/// `disabled`: The team is not assigned to any organizations. This is the default when you create a new team.
637+
/// `selected`: The team is assigned to specific organizations. You can then use the [add organization assignments API](https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations#add-organization-assignments) endpoint.
638+
/// `all`: The team is assigned to all current and future organizations in the enterprise.
639+
///
640+
///
641+
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/POST/requestBody/json/organization_selection_type`.
642+
public var organizationSelectionType: Operations.EnterpriseTeamsCreate.Input.Body.JsonPayload.OrganizationSelectionTypePayload?
623643
/// The ID of the IdP group to assign team membership with. You can get this value from the [REST API endpoints for SCIM](https://docs.github.com/rest/scim#list-provisioned-scim-groups-for-an-enterprise).
624644
///
625645
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/POST/requestBody/json/group_id`.
@@ -630,22 +650,26 @@ public enum Operations {
630650
/// - name: The name of the team.
631651
/// - description: A description of the team.
632652
/// - syncToOrganizations: Retired: this field is no longer supported.
653+
/// - organizationSelectionType: Specifies which organizations in the enterprise should have access to this team. Can be one of `disabled`, `selected`, or `all`.
633654
/// - groupId: The ID of the IdP group to assign team membership with. You can get this value from the [REST API endpoints for SCIM](https://docs.github.com/rest/scim#list-provisioned-scim-groups-for-an-enterprise).
634655
public init(
635656
name: Swift.String,
636657
description: Swift.String? = nil,
637658
syncToOrganizations: Operations.EnterpriseTeamsCreate.Input.Body.JsonPayload.SyncToOrganizationsPayload? = nil,
659+
organizationSelectionType: Operations.EnterpriseTeamsCreate.Input.Body.JsonPayload.OrganizationSelectionTypePayload? = nil,
638660
groupId: Swift.String? = nil
639661
) {
640662
self.name = name
641663
self.description = description
642664
self.syncToOrganizations = syncToOrganizations
665+
self.organizationSelectionType = organizationSelectionType
643666
self.groupId = groupId
644667
}
645668
public enum CodingKeys: String, CodingKey {
646669
case name
647670
case description
648671
case syncToOrganizations = "sync_to_organizations"
672+
case organizationSelectionType = "organization_selection_type"
649673
case groupId = "group_id"
650674
}
651675
}
@@ -1009,6 +1033,26 @@ public enum Operations {
10091033
///
10101034
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/{team_slug}/PATCH/requestBody/json/sync_to_organizations`.
10111035
public var syncToOrganizations: Operations.EnterpriseTeamsUpdate.Input.Body.JsonPayload.SyncToOrganizationsPayload?
1036+
/// Specifies which organizations in the enterprise should have access to this team. Can be one of `disabled`, `selected`, or `all`.
1037+
/// `disabled`: The team is not assigned to any organizations. This is the default when you create a new team.
1038+
/// `selected`: The team is assigned to specific organizations. You can then use the [add organization assignments API](https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations#add-organization-assignments).
1039+
/// `all`: The team is assigned to all current and future organizations in the enterprise.
1040+
///
1041+
///
1042+
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/{team_slug}/PATCH/requestBody/json/organization_selection_type`.
1043+
@frozen public enum OrganizationSelectionTypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1044+
case disabled = "disabled"
1045+
case selected = "selected"
1046+
case all = "all"
1047+
}
1048+
/// Specifies which organizations in the enterprise should have access to this team. Can be one of `disabled`, `selected`, or `all`.
1049+
/// `disabled`: The team is not assigned to any organizations. This is the default when you create a new team.
1050+
/// `selected`: The team is assigned to specific organizations. You can then use the [add organization assignments API](https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations#add-organization-assignments).
1051+
/// `all`: The team is assigned to all current and future organizations in the enterprise.
1052+
///
1053+
///
1054+
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/{team_slug}/PATCH/requestBody/json/organization_selection_type`.
1055+
public var organizationSelectionType: Operations.EnterpriseTeamsUpdate.Input.Body.JsonPayload.OrganizationSelectionTypePayload?
10121056
/// The ID of the IdP group to assign team membership with. The new IdP group will replace the existing one, or replace existing direct members if the team isn't currently linked to an IdP group.
10131057
///
10141058
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/teams/{team_slug}/PATCH/requestBody/json/group_id`.
@@ -1019,22 +1063,26 @@ public enum Operations {
10191063
/// - name: A new name for the team.
10201064
/// - description: A new description for the team.
10211065
/// - syncToOrganizations: Retired: this field is no longer supported.
1066+
/// - organizationSelectionType: Specifies which organizations in the enterprise should have access to this team. Can be one of `disabled`, `selected`, or `all`.
10221067
/// - groupId: The ID of the IdP group to assign team membership with. The new IdP group will replace the existing one, or replace existing direct members if the team isn't currently linked to an IdP group.
10231068
public init(
10241069
name: Swift.String? = nil,
10251070
description: Swift.String? = nil,
10261071
syncToOrganizations: Operations.EnterpriseTeamsUpdate.Input.Body.JsonPayload.SyncToOrganizationsPayload? = nil,
1072+
organizationSelectionType: Operations.EnterpriseTeamsUpdate.Input.Body.JsonPayload.OrganizationSelectionTypePayload? = nil,
10271073
groupId: Swift.String? = nil
10281074
) {
10291075
self.name = name
10301076
self.description = description
10311077
self.syncToOrganizations = syncToOrganizations
1078+
self.organizationSelectionType = organizationSelectionType
10321079
self.groupId = groupId
10331080
}
10341081
public enum CodingKeys: String, CodingKey {
10351082
case name
10361083
case description
10371084
case syncToOrganizations = "sync_to_organizations"
1085+
case organizationSelectionType = "organization_selection_type"
10381086
case groupId = "group_id"
10391087
}
10401088
}

0 commit comments

Comments
 (0)