Skip to content

Commit c1c2f12

Browse files
committed
Add missing type structs
1 parent 65b5cfe commit c1c2f12

1 file changed

Lines changed: 26 additions & 11 deletions

File tree

github/enterprise_scim.go

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ const SCIMSchemasURINamespacesGroups string = "urn:ietf:params:scim:schemas:core
1212
// SCIMEnterpriseGroupAttributes represents supported SCIM Enterprise group attributes.
1313
// GitHub API docs:https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/scim#supported-scim-group-attributes
1414
type SCIMEnterpriseGroupAttributes struct {
15-
DisplayName *string `json:"displayName,omitempty"` // Human-readable name for a group.
15+
DisplayName *string `json:"displayName,omitempty"` // Human-readable name for a group.
1616
Members []*SCIMEnterpriseDisplayReference `json:"members,omitempty"` // (Optional.)
17-
ExternalID *string `json:"externalId,omitempty"` // (Optional.)
17+
ExternalID *string `json:"externalId,omitempty"` // (Optional.)
1818
// Only populated as a result of calling ListSCIMProvisionedIdentitiesOptions:
19-
Schemas []string `json:"schemas"` // (Optional.)
20-
ID *string `json:"id,omitempty"`
21-
Meta *SCIMMeta `json:"meta,omitempty"`
19+
Schemas []string `json:"schemas"` // (Optional.)
20+
ID *string `json:"id,omitempty"`
21+
Meta *SCIMMeta `json:"meta,omitempty"`
2222
}
2323

2424
// SCIMEnterpriseDisplayReference represents a JSON SCIM (System for Cross-domain Identity Management) resource.
2525
type SCIMEnterpriseDisplayReference struct {
26-
Value string `json:"value"` // (Required.)
27-
Ref string `json:"$+ref"` // (Required.)
26+
Value string `json:"value"` // (Required.)
27+
Ref string `json:"$+ref"` // (Required.)
2828
Display *string `json:"displayName,omitempty"` // (Optional.)
2929
}
3030

@@ -41,24 +41,39 @@ type SCIMEnterpriseUserAttributes struct {
4141
ID *string `json:"id,omitempty"` // Identifier generated by the GitHub's SCIM endpoint.
4242
Active *bool `json:"active,omitempty"` // Indicates whether the identity is active (true) or should be suspended (false).
4343
Groups []string `json:"groups,omitempty"` // (Optional.)
44-
Meta *SCIMEnterpriseMeta `json:"meta,omitempty"`
44+
Meta *SCIMEnterpriseMeta `json:"meta,omitempty"`
4545
}
4646

4747
// SCIMEnterpriseUserName represents SCIM enterprise user's name information.
48-
*type SCIMEnterpriseUserName struct {
48+
type SCIMEnterpriseUserName struct {
4949
GivenName string `json:"givenName"` // The first name of the user.
5050
FamilyName string `json:"familyName"` // The last name of the user.
5151
Formatted *string `json:"formatted,omitempty"` // The user's full name, including all middle names, titles, and suffixes, formatted for display (Optional)
5252
}
5353

5454
// SCIMEnterpriseUserEmail represents SCIM enterprise user's emails.
55-
*type SCIMEnterpriseUserEmail struct {
55+
type SCIMEnterpriseUserEmail struct {
5656
Value string `json:"value"` // (Required.)
5757
Primary *bool `json:"primary,omitempty"` // (Optional.)
5858
Type *string `json:"type,omitempty"` // (Optional.)
5959
}
6060

61-
// ListSCIMProvisionedGroupsForEnterprise lists SCIM provisioned groups for an enterprise.
61+
// SCIMEnterpriseUserRole is an enterprise-wide role granted to the user.
62+
type SCIMEnterpriseUserRole struct {
63+
Value string `json:"value"` // (Required.)
64+
Display *string `json:"display,omitempty"` // (Optional.)
65+
Type *string `json:"type,omitempty"` // (Optional.)
66+
Primary *bool `json:"primary,omitempty"` // (Optional.)
67+
}
68+
69+
// SCIMEnterpriseMeta represents metadata about the SCIM resource.
70+
type SCIMEnterpriseMeta struct {
71+
ResourceType *string `json:"resourceType,omitempty"`
72+
Created *Timestamp `json:"created,omitempty"`
73+
LastModified *Timestamp `json:"lastModified,omitempty"`
74+
Location *string `json:"location,omitempty"`
75+
}
76+
6277
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim#list-provisioned-scim-groups-for-an-enterprise
6378
//
6479
//meta:operation GET /scim/v2/enterprises/{enterprise}

0 commit comments

Comments
 (0)