Skip to content

Commit 0be13d0

Browse files
Merge pull request #256 from microsoft/dev +resetdemo
signalr for dynamic updates
2 parents 4892261 + 4427a6d commit 0be13d0

File tree

186 files changed

+6051
-2387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+6051
-2387
lines changed

.github/workflows/pre_release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,30 @@ jobs:
7575
with:
7676
python-version: '3.9'
7777

78+
- name: Install bicep
79+
run: |
80+
# Fetch the latest Bicep CLI binary
81+
curl -Lo bicep https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64
82+
# Mark it as executable
83+
chmod +x ./bicep
84+
# Add bicep to your PATH (requires admin)
85+
sudo mv ./bicep /usr/local/bin/bicep
86+
# Verify you can now access the 'bicep' command
87+
bicep --help
88+
# Done!
89+
90+
- name: Create Release Asset - azuredeploy.json
91+
run: |
92+
pushd deploy/bicep
93+
bicep build main.bicep --outfile ../azuredeploy.json
94+
popd
95+
96+
- name: Create Release Asset - azuredeploy.web.json
97+
run: |
98+
pushd deploy/bicep
99+
bicep build webUI.bicep --outfile ../azuredeploy.web.json
100+
popd
101+
78102
- uses: actions/setup-node@v2
79103
with:
80104
node-version: '12'

TeamCloud.cmd

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ echo / / / _ \/ __ `/ __ `__ \/ / / / __ \/ / / / __ /
1010
echo / / / __/ /_/ / / / / / / /___/ / /_/ / /_/ / /_/ /
1111
echo /_/ \___/\__,_/_/ /_/ /_/\____/_/\____/\__,_/\__,_/
1212
echo.
13-
echo ______
14-
echo / ____/___ _____ __
15-
echo / / / __ \/ ___/ _ \
16-
echo / /___/ /_/ / / / __/
17-
echo \____/\____/_/ \___/
18-
echo.
1913

2014
echo - Starting Azure Storage Emulator
2115
start "" cmd /C azurestorageemulator start

client/tc/azext_tc/vendored_sdks/teamcloud/aio/operations/_team_cloud_client_operations.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,58 @@ async def delete_deployment_scope(
10101010
return deserialized
10111011
delete_deployment_scope.metadata = {'url': '/orgs/{organizationId}/scopes/{id}'} # type: ignore
10121012

1013+
async def negotiate_signal_r(
1014+
self,
1015+
organization_id: str,
1016+
project_id: str,
1017+
**kwargs
1018+
) -> None:
1019+
"""Negotiates the SignalR connection.
1020+
1021+
Negotiates the SignalR connection.
1022+
1023+
:param organization_id:
1024+
:type organization_id: str
1025+
:param project_id:
1026+
:type project_id: str
1027+
:keyword callable cls: A custom type or function that will be passed the direct response
1028+
:return: None, or the result of cls(response)
1029+
:rtype: None
1030+
:raises: ~azure.core.exceptions.HttpResponseError
1031+
"""
1032+
cls = kwargs.pop('cls', None) # type: ClsType[None]
1033+
error_map = {
1034+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
1035+
}
1036+
error_map.update(kwargs.pop('error_map', {}))
1037+
1038+
# Construct URL
1039+
url = self.negotiate_signal_r.metadata['url'] # type: ignore
1040+
path_format_arguments = {
1041+
'organizationId': self._serialize.url("organization_id", organization_id, 'str'),
1042+
'projectId': self._serialize.url("project_id", project_id, 'str'),
1043+
}
1044+
url = self._client.format_url(url, **path_format_arguments)
1045+
1046+
# Construct parameters
1047+
query_parameters = {} # type: Dict[str, Any]
1048+
1049+
# Construct headers
1050+
header_parameters = {} # type: Dict[str, Any]
1051+
1052+
request = self._client.post(url, query_parameters, header_parameters)
1053+
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
1054+
response = pipeline_response.http_response
1055+
1056+
if response.status_code not in [200, 401, 403]:
1057+
map_error(status_code=response.status_code, response=response, error_map=error_map)
1058+
raise HttpResponseError(response=response)
1059+
1060+
if cls:
1061+
return cls(pipeline_response, None, {})
1062+
1063+
negotiate_signal_r.metadata = {'url': '/orgs/{organizationId}/projects/{projectId}/negotiate'} # type: ignore
1064+
10131065
async def get_organizations(
10141066
self,
10151067
**kwargs

client/tc/azext_tc/vendored_sdks/teamcloud/models/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
from ._models_py3 import ComponentTaskDataResult
1616
from ._models_py3 import ComponentTaskDefinition
1717
from ._models_py3 import ComponentTaskListDataResult
18+
from ._models_py3 import ComponentTaskRunner
1819
from ._models_py3 import ComponentTaskTemplate
1920
from ._models_py3 import ComponentTemplate
2021
from ._models_py3 import ComponentTemplateDataResult
2122
from ._models_py3 import ComponentTemplateListDataResult
23+
from ._models_py3 import ComponentTemplatePermissions
2224
from ._models_py3 import DeploymentScope
2325
from ._models_py3 import DeploymentScopeDataResult
2426
from ._models_py3 import DeploymentScopeDefinition
@@ -60,10 +62,12 @@
6062
from ._models import ComponentTaskDataResult # type: ignore
6163
from ._models import ComponentTaskDefinition # type: ignore
6264
from ._models import ComponentTaskListDataResult # type: ignore
65+
from ._models import ComponentTaskRunner # type: ignore
6366
from ._models import ComponentTaskTemplate # type: ignore
6467
from ._models import ComponentTemplate # type: ignore
6568
from ._models import ComponentTemplateDataResult # type: ignore
6669
from ._models import ComponentTemplateListDataResult # type: ignore
70+
from ._models import ComponentTemplatePermissions # type: ignore
6771
from ._models import DeploymentScope # type: ignore
6872
from ._models import DeploymentScopeDataResult # type: ignore
6973
from ._models import DeploymentScopeDefinition # type: ignore
@@ -122,10 +126,12 @@
122126
'ComponentTaskDataResult',
123127
'ComponentTaskDefinition',
124128
'ComponentTaskListDataResult',
129+
'ComponentTaskRunner',
125130
'ComponentTaskTemplate',
126131
'ComponentTemplate',
127132
'ComponentTemplateDataResult',
128133
'ComponentTemplateListDataResult',
134+
'ComponentTemplatePermissions',
129135
'DeploymentScope',
130136
'DeploymentScopeDataResult',
131137
'DeploymentScopeDefinition',

0 commit comments

Comments
 (0)