You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/orgs/Client.swift
+22
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,17 @@ public struct Client: APIProtocol {
134
134
///
135
135
/// To see the full details about an organization, the authenticated user must be an organization owner.
136
136
///
137
+
/// The values returned by this endpoint are set by the "Update an organization" endpoint. If your organization set a default security configuration (beta), the following values retrieved from the "Update an organization" endpoint have been overwritten by that configuration:
/// For more information on security configurations, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
147
+
///
137
148
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to see the full details about an organization.
138
149
///
139
150
/// To see information about an organization's GitHub plan, GitHub Apps need the `Organization plan` permission.
@@ -226,6 +237,17 @@ public struct Client: APIProtocol {
226
237
///
227
238
/// Updates the organization's profile and member privileges.
228
239
///
240
+
/// With security configurations (beta), your organization can choose a default security configuration which will automatically apply a set of security enablement settings to new repositories in your organization based on their visibility. For targeted repositories, the following attributes will be overridden by the default security configuration:
/// For more information on setting a default security configuration, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
250
+
///
229
251
/// The authenticated user must be an organization owner to use this endpoint.
230
252
///
231
253
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint.
Copy file name to clipboardExpand all lines: Sources/orgs/Types.swift
+146-6
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,17 @@ public protocol APIProtocol: Sendable {
28
28
///
29
29
/// To see the full details about an organization, the authenticated user must be an organization owner.
30
30
///
31
+
/// The values returned by this endpoint are set by the "Update an organization" endpoint. If your organization set a default security configuration (beta), the following values retrieved from the "Update an organization" endpoint have been overwritten by that configuration:
/// For more information on security configurations, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
41
+
///
31
42
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to see the full details about an organization.
32
43
///
33
44
/// To see information about an organization's GitHub plan, GitHub Apps need the `Organization plan` permission.
@@ -41,6 +52,17 @@ public protocol APIProtocol: Sendable {
41
52
///
42
53
/// Updates the organization's profile and member privileges.
43
54
///
55
+
/// With security configurations (beta), your organization can choose a default security configuration which will automatically apply a set of security enablement settings to new repositories in your organization based on their visibility. For targeted repositories, the following attributes will be overridden by the default security configuration:
/// For more information on setting a default security configuration, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
65
+
///
44
66
/// The authenticated user must be an organization owner to use this endpoint.
45
67
///
46
68
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint.
@@ -810,6 +832,17 @@ extension APIProtocol {
810
832
///
811
833
/// To see the full details about an organization, the authenticated user must be an organization owner.
812
834
///
835
+
/// The values returned by this endpoint are set by the "Update an organization" endpoint. If your organization set a default security configuration (beta), the following values retrieved from the "Update an organization" endpoint have been overwritten by that configuration:
/// For more information on security configurations, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
845
+
///
813
846
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to see the full details about an organization.
814
847
///
815
848
/// To see information about an organization's GitHub plan, GitHub Apps need the `Organization plan` permission.
@@ -831,6 +864,17 @@ extension APIProtocol {
831
864
///
832
865
/// Updates the organization's profile and member privileges.
833
866
///
867
+
/// With security configurations (beta), your organization can choose a default security configuration which will automatically apply a set of security enablement settings to new repositories in your organization based on their visibility. For targeted repositories, the following attributes will be overridden by the default security configuration:
/// For more information on setting a default security configuration, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
877
+
///
834
878
/// The authenticated user must be an organization owner to use this endpoint.
835
879
///
836
880
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint.
@@ -6428,7 +6472,44 @@ public enum Components {
6428
6472
/// Default value of the property
6429
6473
///
6430
6474
/// - Remark: Generated from `#/components/schemas/org-custom-property/default_value`.
6431
-
public var default_value: Swift.String?
6475
+
@frozen public enum default_valuePayload: Codable, Hashable, Sendable {
6476
+
/// - Remark: Generated from `#/components/schemas/org-custom-property/default_value/case1`.
6477
+
case case1(Swift.String)
6478
+
/// - Remark: Generated from `#/components/schemas/org-custom-property/default_value/case2`.
/// To see the full details about an organization, the authenticated user must be an organization owner.
7272
7353
///
7354
+
/// The values returned by this endpoint are set by the "Update an organization" endpoint. If your organization set a default security configuration (beta), the following values retrieved from the "Update an organization" endpoint have been overwritten by that configuration:
/// For more information on security configurations, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
7364
+
///
7273
7365
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to see the full details about an organization.
7274
7366
///
7275
7367
/// To see information about an organization's GitHub plan, GitHub Apps need the `Organization plan` permission.
@@ -7431,6 +7523,17 @@ public enum Operations {
7431
7523
///
7432
7524
/// Updates the organization's profile and member privileges.
7433
7525
///
7526
+
/// With security configurations (beta), your organization can choose a default security configuration which will automatically apply a set of security enablement settings to new repositories in your organization based on their visibility. For targeted repositories, the following attributes will be overridden by the default security configuration:
/// For more information on setting a default security configuration, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
7536
+
///
7434
7537
/// The authenticated user must be an organization owner to use this endpoint.
7435
7538
///
7436
7539
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint.
@@ -7495,7 +7598,7 @@ public enum Operations {
7495
7598
///
7496
7599
/// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/name`.
7497
7600
public var name: Swift.String?
7498
-
/// The description of the company.
7601
+
/// The description of the company. The maximum size is 160 characters.
7499
7602
///
7500
7603
/// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/description`.
7501
7604
public var description: Swift.String?
@@ -7637,7 +7740,7 @@ public enum Operations {
7637
7740
/// - twitter_username: The Twitter username of the company.
7638
7741
/// - location: The location.
7639
7742
/// - name: The shorthand name of the company.
7640
-
/// - description: The description of the company.
7743
+
/// - description: The description of the company. The maximum size is 160 characters.
7641
7744
/// - has_organization_projects: Whether an organization can use organization projects.
7642
7745
/// - has_repository_projects: Whether repositories that belong to the organization can use repository projects.
7643
7746
/// - default_repository_permission: Default permission level members have for organization repositories.
@@ -18937,7 +19040,44 @@ public enum Operations {
18937
19040
/// Default value of the property
18938
19041
///
18939
19042
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/requestBody/json/default_value`.
18940
-
public var default_value: Swift.String?
19043
+
@frozen public enum default_valuePayload: Codable, Hashable, Sendable {
19044
+
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/requestBody/json/default_value/case1`.
19045
+
case case1(Swift.String)
19046
+
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/requestBody/json/default_value/case2`.
public func encode(to encoder: any Encoder) throws {
19069
+
switch self {
19070
+
case let .case1(value):
19071
+
try encoder.encodeToSingleValueContainer(value)
19072
+
case let .case2(value):
19073
+
try encoder.encodeToSingleValueContainer(value)
19074
+
}
19075
+
}
19076
+
}
19077
+
/// Default value of the property
19078
+
///
19079
+
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/requestBody/json/default_value`.
19080
+
public var default_value: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input.Body.jsonPayload.default_valuePayload?
18941
19081
/// Short description of the property
18942
19082
///
18943
19083
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/requestBody/json/description`.
0 commit comments