Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for creating Codespaces and getting available machine types #2929

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Aaron-Junker
Copy link

Resolves #2915


Before the change?

  • Adding two new functions to the Codespaces API:
MachinesCollection GetAvailableMachinesForRepo(string repoOwner, string repoName, string reference = null);
Codespace Create(string owner, string repo, NewCodespace newCodespace);
  • Plus two new types: MachinesCollection and NewCodespace

  • Plus one new StringEnum:

    public enum CodespaceLocation
    {
        [Parameter(Value = "EuropeWest")]
        EuropeWest,
        [Parameter(Value = "SoutheastAsia")]
        SoutheastAsia,
        [Parameter(Value = "UsEast")]
        UsEast,
        [Parameter(Value = "UsWest")]
        UsWest
    }
  • When retrieving a codespace the location is now also included.

After the change?

  • This new API additions allow the creation of new codespacesm
  • retrieving the location of a Codespace,
  • aswell as getting available machine types for a repository

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

[FEAT]: Codespaces: Add support for creating codespaces and get machine types
1 participant