Skip to content

Support multi-API versioned Storage dataplane SDK#2796

Merged
derekbekoe merged 2 commits intoAzure:api-profile-supportfrom
derekbekoe:storage-dataplane
Apr 7, 2017
Merged

Support multi-API versioned Storage dataplane SDK#2796
derekbekoe merged 2 commits intoAzure:api-profile-supportfrom
derekbekoe:storage-dataplane

Conversation

@derekbekoe
Copy link
Copy Markdown
Member

No description provided.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Apr 7, 2017

Codecov Report

Merging #2796 into api-profile-support will increase coverage by 0.03%.
The diff coverage is 86.4%.

Impacted file tree graph

@@                   Coverage Diff                   @@
##           api-profile-support    #2796      +/-   ##
=======================================================
+ Coverage                62.99%   63.03%   +0.03%     
=======================================================
  Files                      483      483              
  Lines                    26140    26176      +36     
  Branches                  3959     3961       +2     
=======================================================
+ Hits                     16467    16499      +32     
  Misses                    8647     8647              
- Partials                  1026     1030       +4
Impacted Files Coverage Δ
...azure-cli-core/azure/cli/core/commands/__init__.py 80.74% <100%> (-0.36%) ⬇️
...li-batch/azure/cli/command_modules/batch/custom.py 81.96% <100%> (+0.09%) ⬆️
...rage/azure/cli/command_modules/storage/_factory.py 97.72% <100%> (+0.05%) ⬆️
...torage/azure/cli/command_modules/storage/custom.py 87.55% <100%> (+0.28%) ⬆️
...cli-core/azure/cli/core/commands/client_factory.py 89.74% <100%> (ø) ⬆️
...orage/azure/cli/command_modules/storage/_format.py 27.84% <100%> (+1.87%) ⬆️
...c/azure-cli-core/azure/cli/core/profiles/shared.py 80.76% <100%> (+0.37%) ⬆️
...rage/azure/cli/command_modules/storage/commands.py 98.2% <100%> (ø) ⬆️
...orage/azure/cli/command_modules/storage/_params.py 87.53% <100%> (+0.26%) ⬆️
...-storage/azure/cli/command_modules/storage/util.py 20% <11.11%> (+0.76%) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update adb1a8f...da2240f. Read the comment docs.

Copy link
Copy Markdown
Member

@lmazuel lmazuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@derekbekoe LGTM
General comment, maybe you should anticipate the profile support and called it azure.cli.storagesdk.v2016_05_31 instead of azure.cli.storagesdk (I guess you will eventually need it)

@lmazuel
Copy link
Copy Markdown
Member

lmazuel commented Apr 7, 2017

@derekbekoe ok I think I get it, it's your general name in:

DATA_STORAGE = (None, 'azure.cli.storagesdk', None)

bu you are doing it in your package.
So ok for me :)

@lmazuel
Copy link
Copy Markdown
Member

lmazuel commented Apr 7, 2017

@derekbekoe (sorry I should think more before writing :p)

Actually, since shared.py contains now DATA_STORAGE = (None, 'azure.cli.storagesdk', None) I'm thinking.

I guess we should package this Storage package under a more generic name, so SDK users can decide to use it as well. Like azure.multiapi.storage or something. But I definitely can't integrate into the SDK a shared file with a cli mention inside.

@derekbekoe
Copy link
Copy Markdown
Member Author

Changed to use azure.multiapi.storage.

@derekbekoe derekbekoe merged this pull request into Azure:api-profile-support Apr 7, 2017
@derekbekoe derekbekoe deleted the storage-dataplane branch April 7, 2017 21:11
derekbekoe added a commit that referenced this pull request Apr 7, 2017
* Support multi-API versioned Storage dataplane SDK

* Rename multi-api module
derekbekoe added a commit that referenced this pull request Apr 10, 2017
* Support multi-API versioned Storage dataplane SDK

* Rename multi-api module
derekbekoe added a commit that referenced this pull request Apr 11, 2017
- Use published SDKs available on PyPI now
- Loading versioned models for network and resources, object model initialization changes for 2015-* profile (#2812)
- Custom ca certs - Setting Requests_ca_bundle environment variable (#2813)
- changes for 2015-* profile to work against azure stack  (#2794)
- Loading versioned Resources client and versioned models in VM
- Updating the supported api-versions for the 2015-example profile
- Fixing network, compute sdk load errors for 2015-* profiles (+5 squashed commit)
- Support multi-API versioned Storage dataplane SDK (#2796)
- Support multi-versioned mgmt SDK (#2526)
- Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId" (#2410)
- Add profile switching params and profile listing command (#2398)
- Use ARM 'resource manager' endpoint if ASM 'management' endpoint not set
@derekbekoe derekbekoe mentioned this pull request Apr 11, 2017
3 tasks
derekbekoe added a commit that referenced this pull request Apr 13, 2017
- Use published SDKs available on PyPI now
- Loading versioned models for network and resources, object model initialization changes for 2015-* profile (#2812)
- Custom ca certs - Setting Requests_ca_bundle environment variable (#2813)
- changes for 2015-* profile to work against azure stack  (#2794)
- Loading versioned Resources client and versioned models in VM
- Updating the supported api-versions for the 2015-example profile
- Fixing network, compute sdk load errors for 2015-* profiles (+5 squashed commit)
- Support multi-API versioned Storage dataplane SDK (#2796)
- Support multi-versioned mgmt SDK (#2526)
- Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId" (#2410)
- Add profile switching params and profile listing command (#2398)
- Use ARM 'resource manager' endpoint if ASM 'management' endpoint not set
derekbekoe added a commit that referenced this pull request Apr 14, 2017
* API Profile Support

- Use published SDKs available on PyPI now
- Loading versioned models for network and resources, object model initialization changes for 2015-* profile (#2812)
- Custom ca certs - Setting Requests_ca_bundle environment variable (#2813)
- changes for 2015-* profile to work against azure stack  (#2794)
- Loading versioned Resources client and versioned models in VM
- Updating the supported api-versions for the 2015-example profile
- Fixing network, compute sdk load errors for 2015-* profiles (+5 squashed commit)
- Support multi-API versioned Storage dataplane SDK (#2796)
- Support multi-versioned mgmt SDK (#2526)
- Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId" (#2410)
- Add profile switching params and profile listing command (#2398)
- Use ARM 'resource manager' endpoint if ASM 'management' endpoint not set

* Address code review feedback

Fix pylint and pep8 (+7 squashed commits)
Squashed commits:
[f1d4d52] Refactor to use joint method
[f43785a] Use generic method to get versioned SDK attributes
[2100dd2] Add log debug if enum default not found
[5767f41] Add single_placement_group back in for vmss
[05ca8bc] Revert a test change. It has been fixed in master.
[cdf4211] Simplify str override method
[281c755] Clarify use of getattr

* Fix patching the operation versions

* Fix wrong import

* Rename shared to _shared

* Add message to cloud debug message

* Remove public method ‘get_versioned_sdk_path’ from azure.cli.core.profiles

* Remove unused import

* Use setattr

* Add API version comparisons

* Add method docs

* Fix failing test
00Kai0 pushed a commit to 00Kai0/azure-cli that referenced this pull request Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants