Skip to content

Use AutoREST Profile feature for switching between V1.0 and beta #72

Closed

Description

@darrelmiller
No description provided.

Activity

  1. added this to the 0.1.1 milestone on Jan 6, 2020
  2. dolauli commented on Feb 21, 2020

    @dolauli

    Following steps are required

    1. Generate profiles for your service - one for v1.0 and the other for beta
      You may find some profile samples under https://github.com/Azure/azure-rest-api-specs/tree/master/profiles/definitions for azure-powershell. To generate profile, you may refer to the script https://github.com/Azure/azure-rest-api-specs/blob/master/scripts/latest-profile-generator.ts which is used to generate latest profiles based on swagger in the repo.
    2. Refer to https://github.com/Azure/azure-powershell/blob/generation/src/Dns/readme.md and https://github.com/Azure/azure-powershell/blob/generation/src/readme.azure.md for a sample with two profiles
    3. After the code is generated, you may find how to load a profile in the *.psm1 file.
    4. You may need to implement a cmdlet to switch the profile.
  3. darrelmiller commented on Apr 22, 2020

    @darrelmiller
    ContributorAuthor
  4. peombwa commented on May 22, 2020

    @peombwa
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions