Repository navigation
Conversation
| :type: app_profile_id: str | ||
| :param app_profile_id: The unique name for the new app profile. | ||
|
|
||
| :type: etag: str |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| creating the app profile. | ||
|
|
||
| :type: metadata: [Sequence[Tuple[str, str]]] | ||
| :param: metadata: (Optional) Additional metadata that is provided to |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| :param: metadata: (Optional) Additional metadata that is provided to | ||
| the method. | ||
|
|
||
| :type: routing_policy_type: int |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| def update_app_profile(self, app_profile_id, update_mask, etag='', | ||
| description='', ignore_warnings=None, metadata=None, | ||
| routing_policy_type=ROUTING_POLICY_TYPE_ANY, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| :param: ignore_warnings: (Optional) If true, ignore safety checks when | ||
| creating the app profile. | ||
|
|
||
| :type: metadata: [Sequence[Tuple[str, str]]] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
sduskis
left a comment
There was a problem hiding this comment.
Overall, I have concerns about the way the create / update protobuf objects are created. Can you please add unit tests to make sure that the protobuf requests objects are what you would expect, and also add system tests to make sure that the end-to-end functionality works as expected?
| :param: routing_policy_type: There are two routing policies | ||
| ROUTING_POLICY_TYPE_ANY = 1 and | ||
| ROUTING_POLICY_TYPE_SINGLE = 2. | ||
| By default it is ROUTING_POLICY_TYPE_ANY |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| :param: routing_policy_type: There are two routing policies | ||
| ROUTING_POLICY_TYPE_ANY = 1 and | ||
| ROUTING_POLICY_TYPE_SINGLE = 2. | ||
| By default it is ROUTING_POLICY_TYPE_ANY |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| app_profile = instance_pb2.AppProfile( | ||
| name=name, description=description, | ||
| multi_cluster_routing_use_any=multi_cluster_routing_use_any, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| # Perform the method and check the result. | ||
| app_profile_id = 'appProfileId1262094415' | ||
| result = instance.create_app_profile(app_profile_id=app_profile_id, | ||
| routing_policy_type=1) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| # Perform the method and check the result. | ||
| app_profile_id = 'appProfileId1262094415' | ||
| result = instance.create_app_profile(app_profile_id=app_profile_id, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Add methods to the Instance class to manage app profiles: