-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Octokit Bot
committed
Dec 5, 2023
1 parent
8971919
commit 5edec8a
Showing
42 changed files
with
1,245 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
github/octokit/models/app_permissions_organization_copilot_seat_management.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package models | ||
import ( | ||
"errors" | ||
) | ||
// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in beta and is subject to change. | ||
type AppPermissions_organization_copilot_seat_management int | ||
|
||
const ( | ||
WRITE_APPPERMISSIONS_ORGANIZATION_COPILOT_SEAT_MANAGEMENT AppPermissions_organization_copilot_seat_management = iota | ||
) | ||
|
||
func (i AppPermissions_organization_copilot_seat_management) String() string { | ||
return []string{"write"}[i] | ||
} | ||
func ParseAppPermissions_organization_copilot_seat_management(v string) (any, error) { | ||
result := WRITE_APPPERMISSIONS_ORGANIZATION_COPILOT_SEAT_MANAGEMENT | ||
switch v { | ||
case "write": | ||
result = WRITE_APPPERMISSIONS_ORGANIZATION_COPILOT_SEAT_MANAGEMENT | ||
default: | ||
return 0, errors.New("Unknown AppPermissions_organization_copilot_seat_management value: " + v) | ||
} | ||
return &result, nil | ||
} | ||
func SerializeAppPermissions_organization_copilot_seat_management(values []AppPermissions_organization_copilot_seat_management) []string { | ||
result := make([]string, len(values)) | ||
for i, v := range values { | ||
result[i] = v.String() | ||
} | ||
return result | ||
} | ||
func (i AppPermissions_organization_copilot_seat_management) isMultiValue() bool { | ||
return false | ||
} |
Oops, something went wrong.