-
Notifications
You must be signed in to change notification settings - Fork 12
Cps 44 Product Configuration params, templates and other updates #68
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
Merged
vgrebenschikov
merged 12 commits into
cloudblue:master
from
JaviCerveraIngram:CPS-44-product
Sep 30, 2019
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
583e6a6
Started work
JaviCerveraIngram f9e5f0f
Merge branch 'CPS-46-refactor-models' into CPS-44-product
JaviCerveraIngram 9785215
Finished merging
JaviCerveraIngram 53f9dd7
Fixed import crashes.
JaviCerveraIngram 0acdc72
Added missing fields and methods to models.
JaviCerveraIngram e500b5c
Fixed import bug.
JaviCerveraIngram 08eafe4
IF config products is an empty string, the array of products will be …
JaviCerveraIngram 8e68d16
Merge branch 'master' into CPS-44-product
JaviCerveraIngram 0b82bab
Added some unit tests
JaviCerveraIngram 97d8c1e
ContactInfo.state now optional, since it was coming empty from some r…
JaviCerveraIngram 15a6f69
Fixed some imports
JaviCerveraIngram f07095d
Update product.py
JaviCerveraIngram File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,22 @@ | ||
| # -*- coding: utf-8 -*- | ||
|
|
||
| # This file is part of the Ingram Micro Cloud Blue Connect SDK. | ||
| # Copyright (c) 2019 Ingram Micro. All Rights Reserved. | ||
|
|
||
| from .base import BaseModel | ||
| from .schemas import CountrySchema | ||
|
|
||
|
|
||
| class Country(BaseModel): | ||
| """ An instance of a hub. """ | ||
|
|
||
| _schema = CountrySchema() | ||
|
|
||
| name = None # type: str | ||
| """ (str) Country name """ | ||
|
|
||
| icon = None # type: str | ||
| """ (str) Icon path. """ | ||
|
|
||
| zone = None # type: str | ||
| """ (str) Geographical zone. """ |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,38 @@ | ||
| # -*- coding: utf-8 -*- | ||
|
|
||
| # This file is part of the Ingram Micro Cloud Blue Connect SDK. | ||
| # Copyright (c) 2019 Ingram Micro. All Rights Reserved. | ||
|
|
||
| from .base import BaseModel | ||
| from .constraints import Constraints | ||
| from .events import Events | ||
| from .item import Item | ||
| from .marketplace import Marketplace | ||
| from .param import Param | ||
| from .schemas import ProductConfigurationParameterSchema | ||
|
|
||
|
|
||
| class ProductConfigurationParameter(BaseModel): | ||
| """ Representation of Configuration Phase Parameter (CPP) Data object """ | ||
|
|
||
| _schema = ProductConfigurationParameterSchema() | ||
|
|
||
| value = None # type: str | ||
| """ (str|None) Configuration parameter value. """ | ||
|
|
||
| parameter = None # type: Param | ||
| """ (:py:class:`.Param`) Full representation of parameter. """ | ||
|
|
||
| marketplace = None # type: Marketplace | ||
| """ (:py:class:`.Marketplace` | None) Reference to Marketplace. """ | ||
|
|
||
| item = None # type: Item | ||
| """ (:py:class:`.Item` | None) Reference to Item. """ | ||
|
|
||
| events = None # type: Events | ||
| """ (:py:class:`.Events`) Product events. """ | ||
|
|
||
| # Undocumented fields (they appear in PHP SDK) | ||
|
|
||
| constraints = None # type: Constraints | ||
| """ (:py:class:`.Constraints`) Constraints. """ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.