Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
a25793b
move old sdk under legacy
l0lawrence Apr 24, 2023
ad72024
gen typespec code
l0lawrence Apr 24, 2023
f81c227
naming changes from archboard
l0lawrence Apr 27, 2023
486735f
samples
l0lawrence Apr 27, 2023
1fa0d92
update patch naming
l0lawrence Apr 27, 2023
e284adf
update imports with new gen
l0lawrence Apr 27, 2023
5efd365
update samples
l0lawrence Apr 27, 2023
aebdf0c
update client naming on aio
l0lawrence Apr 27, 2023
276d51a
update receive op
l0lawrence Apr 27, 2023
81161a8
update async to close client
l0lawrence Apr 27, 2023
d419cf2
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
l0lawrence Apr 27, 2023
32efd54
update receive()
l0lawrence May 1, 2023
b1eeca8
update gen code
l0lawrence May 1, 2023
5634655
moving around samples
l0lawrence May 1, 2023
36976bd
updating samples
l0lawrence May 1, 2023
328a71a
update samples
l0lawrence May 1, 2023
ba088a2
update patch and samples
l0lawrence May 1, 2023
bdf3bc0
patch internalmodels
l0lawrence May 1, 2023
57c6ada
spacing
l0lawrence May 1, 2023
4100767
updating model patch
l0lawrence May 1, 2023
69a61e1
update patch models
l0lawrence May 1, 2023
594ba71
add both models back
l0lawrence May 1, 2023
abd97bc
update docstring
l0lawrence May 1, 2023
cb4d9a2
update docs
l0lawrence May 1, 2023
3429e60
updating patch for receive
l0lawrence May 2, 2023
9d7cf66
old EG models
l0lawrence May 2, 2023
199542a
add reject samples
l0lawrence May 2, 2023
8f77e83
patch
l0lawrence May 2, 2023
a31e9fa
update format
l0lawrence May 2, 2023
710f8c3
update patch
l0lawrence May 4, 2023
bdec4b8
eventgrid_client exceptions
l0lawrence May 4, 2023
5bca49d
update test imports
l0lawrence May 4, 2023
b9a4d6f
update total sample
l0lawrence May 4, 2023
b0e50c3
receive patch fix
l0lawrence May 4, 2023
135b0c7
add in more tests
l0lawrence May 4, 2023
19573e2
update test file
l0lawrence May 8, 2023
24b2535
remove locktoken model
l0lawrence May 9, 2023
9a12471
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
l0lawrence May 9, 2023
dc2d26c
remove LockToken in patch
l0lawrence May 9, 2023
cec8bd0
remove event delivery delay
l0lawrence May 11, 2023
a26c1e7
eg client exceptions
l0lawrence May 11, 2023
cf80540
.8.5 generation, and deliveryCount
l0lawrence May 12, 2023
c1f1ae7
rename sample
l0lawrence May 15, 2023
8538458
update version for beta
l0lawrence May 15, 2023
4e7b141
changelog
l0lawrence May 15, 2023
7713d3b
updating for gen
l0lawrence May 15, 2023
e9eab96
regen
l0lawrence May 16, 2023
36ac074
generate via commit
l0lawrence May 16, 2023
b58773e
publish result
l0lawrence May 16, 2023
459b403
fix docstring
l0lawrence May 16, 2023
e091bb9
publish docstring
l0lawrence May 16, 2023
eb50871
return type
l0lawrence May 16, 2023
1edd9ac
publish result
l0lawrence May 16, 2023
7fb9946
return publish result -- is none
l0lawrence May 16, 2023
f1f18f5
format
l0lawrence May 16, 2023
1646322
update Publish result model
l0lawrence May 16, 2023
0da1768
deliverycount patch
l0lawrence May 16, 2023
7ef5bbe
update from main
l0lawrence May 16, 2023
07da8c7
Merge branch 'feature/eventgrid' of https://github.com/Azure/azure-sd…
l0lawrence May 16, 2023
ed4c53c
add copyright
l0lawrence May 16, 2023
da155ae
added to readme
l0lawrence May 16, 2023
11708ec
remove from readme
l0lawrence May 16, 2023
6acc4bc
force publish_result response
l0lawrence May 16, 2023
5c97aed
update patch tp unindent
l0lawrence May 16, 2023
994ab41
cspell
l0lawrence May 16, 2023
060c9ce
update mypy.ini
l0lawrence May 16, 2023
d72039c
import order
l0lawrence May 16, 2023
e16a255
mark livetest
l0lawrence May 16, 2023
df0430f
update operations init
l0lawrence May 16, 2023
830fd1d
rename async
l0lawrence May 16, 2023
30bc939
mypy
l0lawrence May 16, 2023
fb0479e
ignore mypy
l0lawrence May 16, 2023
2a050e1
pylint
l0lawrence May 16, 2023
26dfdef
pylint
l0lawrence May 16, 2023
37e7341
ignore pylint for now to avoid gen code errors
l0lawrence May 16, 2023
99bbe93
ignore samples until ARM setup
l0lawrence May 17, 2023
bcf7d34
update patches
l0lawrence May 17, 2023
4927ac1
remove publish result
l0lawrence May 17, 2023
4bde87e
remove PublishResult
l0lawrence May 17, 2023
78605f2
remove publishresult
l0lawrence May 17, 2023
b050474
comma
l0lawrence May 17, 2023
e0ff0ed
update publishResult
l0lawrence May 18, 2023
34ff7a3
Merge branch 'llaw/build_eventgrid' of https://github.com/l0lawrence/…
l0lawrence May 18, 2023
4f26e01
change to .value
l0lawrence May 18, 2023
80f0384
gen code " to '
l0lawrence May 18, 2023
58b4d7e
remove comment
l0lawrence May 18, 2023
fea7384
ran black
l0lawrence May 18, 2023
c557de0
update changelog
l0lawrence May 19, 2023
522e90c
update sample readme
l0lawrence May 19, 2023
7349da4
gen code without query name
l0lawrence May 19, 2023
204a6d6
gen code
l0lawrence May 19, 2023
adb9f45
update tsp commit
l0lawrence May 19, 2023
0fdc51f
remove publishresult
l0lawrence May 19, 2023
1442893
readme disclaimer
l0lawrence May 19, 2023
b820027
update changelog
l0lawrence May 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
…into llaw/build_eventgrid
  • Loading branch information
l0lawrence committed May 9, 2023
commit 9a124711c718b30846e878d73c2ddda9c8d54b74
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
/sdk/attestation/azure-security-attestation/ @anilba06 @Azure/azure-sdk-write-attestation @gkostal

# PRLabel: %Batch
/sdk/batch/ @cRui861 @paterasMSFT @dpwatrous @gingi @zfengms @NickKouds
/sdk/batch/ @jingjlii @JJJessieWang @wanghoppe @dpwatrous @wiboris

# PRLabel: %CognitiveServices
/sdk/cognitiveservices/ @kristapratico
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/event-processor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ on:
# pull request merged is the closed event with github.event.pull_request.merged = true
pull_request_target:
types: [closed, labeled, opened, reopened, review_requested, synchronize, unlabeled]
pull_request_review:
types: [submitted]

# This removes all unnecessary permissions, the ones needed will be set below.
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
Expand Down Expand Up @@ -57,7 +55,7 @@ jobs:
run: >
dotnet tool install
Azure.Sdk.Tools.GitHubEventProcessor
--version 1.0.0-dev.20230422.1
--version 1.0.0-dev.20230505.2
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
--global
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduled-event-processor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: >
dotnet tool install
Azure.Sdk.Tools.GitHubEventProcessor
--version 1.0.0-dev.20230422.1
--version 1.0.0-dev.20230505.2
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
--global
shell: bash
Expand Down
9 changes: 9 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
"tools/azure-sdk-tools/devtools_testutils/fake_credentials.py",
"tools/azure-sdk-tools/packaging_tools/**",
"tools/azure-sdk-tools/setup.py",
"sdk/webpubsub/azure-messaging-webpubsubclient/azure/messaging/webpubsubclient/_serialization.py",
"sdk/webpubsub/azure-messaging-webpubsubclient/azure/messaging/webpubsubclient/_model_base.py",
"tools/azure-sdk-tools/tests/test_servicemetadata.py"
],
"words": [
Expand Down Expand Up @@ -174,6 +176,7 @@
"dont",
"dotenv",
"dowhile",
"DPAPI",
"dpkg",
"dtlk",
"dtlksd",
Expand Down Expand Up @@ -1463,6 +1466,12 @@
"wday",
"deseralize"
]
},
{
"filename": "sdk/webpubsub/azure-messaging-webpubsubclient/azure/messaging/webpubsubclient/_client.py",
"words": [
"awps"
]
}
],
"allowCompoundWords": true
Expand Down
2 changes: 2 additions & 0 deletions eng/common/pipelines/templates/steps/detect-api-changes.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
parameters:
ArtifactPath: $(Build.ArtifactStagingDirectory)
Artifacts: []
ArtifactName: 'packages'

steps:
- pwsh: |
Expand All @@ -20,6 +21,7 @@ steps:
-PullRequestNumber $(System.PullRequest.PullRequestNumber)
-RepoFullName $(Build.Repository.Name)
-APIViewUri $(ApiChangeDetectRequestUrl)
-ArtifactName ${{ parameters.ArtifactName }}
pwsh: true
displayName: Detect API changes
condition: and(succeededOrFailed(), eq(variables['Build.Reason'],'PullRequest'))
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,15 @@ steps:
exit 1
}
}
displayName: Prevent changes to eng/common outside of azure-sdk-tools repo
if ((!"$(System.PullRequest.SourceBranch)".StartsWith("sync-.github/workflows")) -and "$(System.PullRequest.TargetBranch)" -match "^(refs/heads/)?$(DefaultBranch)$")
{
$filesInCommonDir = & "eng/common/scripts/get-changedfiles.ps1" -DiffPath '.github/workflows/*'
if (($LASTEXITCODE -eq 0) -and ($filesInCommonDir.Count -gt 0))
{
Write-Host "##vso[task.LogIssue type=error;]Changes to files under '.github/workflows' directory should not be made in this Repo`n${filesInCommonDir}"
Write-Host "##vso[task.LogIssue type=error;]Please follow workflow at https://github.com/Azure/azure-sdk-tools/blob/main/doc/workflows/engsys_workflows.md"
exit 1
}
}
displayName: Prevent changes to eng/common and .github/workflows outside of azure-sdk-tools repo
condition: and(succeeded(), ne(variables['Skip.EngCommonWorkflowEnforcer'], 'true'), not(endsWith(variables['Build.Repository.Name'], '-pr')))
11 changes: 6 additions & 5 deletions eng/common/scripts/Delete-RemoteBranches.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ param(
$CentralRepoId,
# We start from the sync PRs, use the branch name to get the PR number of central repo. E.g. sync-eng/common-(<branchName>)-(<PrNumber>). Have group name on PR number.
# For sync-eng/common work, we use regex as "^sync-eng/common.*-(?<PrNumber>\d+).*$".
# For sync-.github/workflows work, we use regex as "^sync-.github/workflows.*-(?<PrNumber>\d+).*$".
$BranchRegex,
# Date format: e.g. Tuesday, April 12, 2022 1:36:02 PM. Allow to use other date format.
[AllowNull()]
Expand Down Expand Up @@ -69,7 +70,7 @@ foreach ($res in $responses)
LogError "No PR number found in the branch name. Please check the branch name [ $branchName ]. Skipping..."
continue
}

try {
$centralPR = Get-GitHubPullRequest -RepoId $CentralRepoId -PullRequestNumber $pullRequestNumber -AuthToken $AuthToken
LogDebug "Found central PR pull request: $($centralPR.html_url)"
Expand All @@ -78,7 +79,7 @@ foreach ($res in $responses)
continue
}
}
catch
catch
{
# If there is no central PR for the PR number, log error and skip.
LogError "Get-GitHubPullRequests failed with exception:`n$_"
Expand Down Expand Up @@ -107,15 +108,15 @@ foreach ($res in $responses)
LogDebug "The branch $branch last commit date [ $commitDate ] is newer than the date $LastCommitOlderThan. Skipping."
continue
}

LogDebug "Branch [ $branchName ] in repo [ $RepoId ] has a last commit date [ $commitDate ] that is older than $LastCommitOlderThan. "
}
catch {
LogError "Get-GithubReferenceCommitDate failed with exception:`n$_"
exit 1
}
}
}

try {
if ($PSCmdlet.ShouldProcess("[ $branchName ] in [ $RepoId ]", "Deleting branches on cleanup script")) {
Remove-GitHubSourceReferences -RepoId $RepoId -Ref $branch -AuthToken $AuthToken
Expand Down
2 changes: 1 addition & 1 deletion eng/common/testproxy/target_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0-dev.20230417.1
1.0.0-dev.20230427.1
2 changes: 1 addition & 1 deletion eng/common/testproxy/transition-scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ To utilize this methodology, the user must set input argument `TestProxyExe` to

Other requirements:

- [x] Install [docker](https://docs.docker.com/engine/install/) or [podman](https://podman.io/getting-started/installation.html)
- [x] Install [docker](https://docs.docker.com/engine/install/) or [podman](https://podman.io/)
- [x] Set the environment variable `GIT_TOKEN` a valid token representing YOUR user

## Permissions
Expand Down
16 changes: 16 additions & 0 deletions eng/pipelines/docindex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ jobs:
displayName: Generate ToC for main branch
condition: and(succeeded(), or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Force.MainUpdate'], 'true')))

- task: Powershell@2
inputs:
pwsh: true
filePath: eng/common/scripts/Verify-RequiredDocsJsonMembers.ps1
arguments: >-
-DocRepoLocation $(DocRepoLocation)
displayName: Verify Required Docs Json Members

# Push changes to docs repo
- template: /eng/common/pipelines/templates/steps/set-default-branch.yml
parameters:
Expand Down Expand Up @@ -127,6 +135,14 @@ jobs:
-OutputLocation $(DocRepoLocation)/docs-ref-mapping/reference-unified.yml
displayName: Generate ToC for Daily Docs

- task: Powershell@2
inputs:
pwsh: true
filePath: eng/common/scripts/Verify-RequiredDocsJsonMembers.ps1
arguments: >-
-DocRepoLocation $(DocRepoLocation)
displayName: Verify Required Docs Json Members

- template: /eng/common/pipelines/templates/steps/git-push-changes.yml
parameters:
BaseRepoBranch: $(DailyDocsBranchName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ubuntu-20.04": { "OSVmImage": "MMSUbuntu20.04", "Pool": "azsdk-pool-mms-ubuntu-2004-general" },
"macos-11": { "OSVmImage": "macos-11", "Pool": "Azure Pipelines" }
},
"PythonVersion": [ "pypy3.7", "3.8", "3.10"],
"PythonVersion": [ "pypy3.7", "3.8" ],
"CoverageArg": "--disablecov"
},
"include": [
Expand All @@ -29,6 +29,17 @@
"PythonVersion": "3.7",
"CoverageArg": "--disablecov"
},
{
"CoverageConfig": {
"ubuntu2004_310_coverage": {
"OSVmImage": "MMSUbuntu20.04",
"Pool": "azsdk-pool-mms-ubuntu-2004-general",
"PythonVersion": "3.10",
"CoverageArg": "",
"TestSamples": "false"
}
}
},
{
"Agent": {
"windows-2022": { "OSVmImage": "MMS2022", "Pool": "azsdk-pool-mms-win-2022-general" }
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/stages/platform-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"windows-2022": { "OSVmImage": "MMS2022", "Pool": "azsdk-pool-mms-win-2022-general" },
"macos-11": { "OSVmImage": "macos-11", "Pool": "Azure Pipelines" }
},
"PythonVersion": [ "pypy3.7", "3.7", "3.8", "3.9", "3.10" ],
"PythonVersion": [ "pypy3.7", "3.7", "3.8", "3.10" ],
"CoverageArg": "--disablecov",
"TestSamples": "false"
},
Expand Down
13 changes: 11 additions & 2 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@ function UpdateDocsMsPackages($DocConfigFile, $Mode, $DocsMetadata, $PackageSour
continue
}

if ($package.package_info.name.EndsWith("-nspkg")) {
Write-Host "Skipping $($package.package_info.name) because it's a namespace package."
continue
}

# Do not filter by GA/Preview status because we want differentiate between
# tracked and non-tracked packages
$matchingPublishedPackageArray = $DocsMetadata.Where( { $_.Package -eq $packageName })
Expand Down Expand Up @@ -430,11 +435,15 @@ function UpdateDocsMsPackages($DocConfigFile, $Mode, $DocsMetadata, $PackageSour
$remainingPackages = @()
if ($Mode -eq 'preview') {
$remainingPackages = $DocsMetadata.Where({
$_.VersionPreview.Trim() -and !$outputPackagesHash.ContainsKey($_.Package)
$_.VersionPreview.Trim() `
-and !$outputPackagesHash.ContainsKey($_.Package) `
-and !$_.Package.EndsWith("-nspkg")
})
} else {
$remainingPackages = $DocsMetadata.Where({
$_.VersionGA.Trim() -and !$outputPackagesHash.ContainsKey($_.Package)
$_.VersionGA.Trim() `
-and !$outputPackagesHash.ContainsKey($_.Package) `
-and !$_.Package.EndsWith("-nspkg")
})
}

Expand Down
2 changes: 1 addition & 1 deletion eng/tox/run_pylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
)
except CalledProcessError as e:
logging.error(
"{} exited with linting error {}".format(pkg_details.name, e.returncode)
"{} exited with linting error {}. Please see this link for more information https://aka.ms/azsdk/python/pylint-guide".format(pkg_details.name, e.returncode)
)
exit(1)
2 changes: 1 addition & 1 deletion scripts/issue_helper/go.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from common import Common

_GO_OWNER = {'ArcturusZhang', 'lirenhe', 'Alancere', 'github-actions'}
_GO_OWNER = {'ArcturusZhang', 'lirenhe', 'Alancere', 'github-actions[bot]'}
_GO_REPO = 'Azure/azure-sdk-for-go'
_FILE_OUT_NAME_GO = 'sdk_issue_go.md'

Expand Down
2 changes: 1 addition & 1 deletion scripts/issue_helper/java.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from common import Common

_JAVA_OWNER = {'weidongxu-microsoft', 'haolingdong-msft', 'XiaofeiCao', 'github-actions'}
_JAVA_OWNER = {'weidongxu-microsoft', 'haolingdong-msft', 'XiaofeiCao', 'github-actions[bot]'}
_JAVA_REPO = 'Azure/azure-sdk-for-java'
_FILE_OUT_NAME_JAVA = 'sdk_issue_java.md'

Expand Down
2 changes: 1 addition & 1 deletion scripts/issue_helper/js.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from common import Common

_JS_OWNER = {'colawwj', 'qiaozha', 'lirenhe', 'MaryGao', 'github-actions'}
_JS_OWNER = {'colawwj', 'qiaozha', 'lirenhe', 'MaryGao', 'github-actions[bot]'}
_JS_REPO = 'Azure/azure-sdk-for-js'
_FILE_OUT_NAME_JS = 'sdk_issue_js.md'

Expand Down
2 changes: 1 addition & 1 deletion scripts/issue_helper/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from common import Common

_PYTHON_OWNER = {'msyyc', 'Wzb123456789', 'github-actions'}
_PYTHON_OWNER = {'msyyc', 'Wzb123456789', 'github-actions[bot]'}
_PYTHON_REPO = 'Azure/azure-sdk-for-python'
_FILE_OUT_NAME_PYTHON = 'sdk_issue_python.md'

Expand Down
2 changes: 1 addition & 1 deletion scripts/release_helper/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
_MultiAPI = 'MultiAPI'
# record published issues
_FILE_OUT = 'published_issues_python.csv'
_HINTS = ["FirstGA", "FirstBeta", "HoldOn", "OnTime"]
_HINTS = ["FirstGA", "FirstBeta", "HoldOn", "OnTime", "ForCLI"]


class IssueProcessPython(IssueProcess):
Expand Down
22 changes: 13 additions & 9 deletions sdk/communication/azure-communication-callautomation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ pip install azure-communication-callautomation
## Key concepts
| Name | Description |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| CallAutomationClient | `CallAutomationClient` is the primary interface for developers using this client library. It can be used to initiate calls by `createCall` or `answerCall`. |
| CallConnectionClient | `CallConnectionClient` represents a ongoing call. Once the call is established with `createCall` or `answerCall`, further actions can be performed for the call, such as `transfer` or `addParticipant`. |
| CallMediaClient | `CallMediaClient` can be used to do media related actions, such as `play`, to play media file. This can be retrieved from established `CallConnectionClient`. |
| CallRecordingClient | `CallRecordingClient` can be used to do recording related actions, such as `startRecording`. This can be retrieved from `CallAutomationClient`. |
| Callback Events | Callback events are events sent back during duration of the call. It gives information and state of the call, such as `CallConnected`. `CallbackUrl` must be provided during `createCall` and `answerCall`, and callback events will be sent to this url. You can use `callAutomationEventParser` to parse these events when it arrives. |
| CallAutomationClient | `CallAutomationClient` is the primary interface for developers using this client library. It can be used to initiate calls by `createCall` or `answerCall`. It can also be used to do recording actions such as `startRecording` | |
| CallConnectionClient | `CallConnectionClient` represents a ongoing call. Once the call is established with `createCall` or `answerCall`, further actions can be performed for the call, such as `transfer` or `play_media`. | |
| Callback Events | Callback events are events sent back during duration of the call. It gives information and state of the call, such as `CallConnected`. `CallbackUrl` must be provided during `createCall` and `answerCall`, and callback events will be sent to this url. |
| Incoming Call Event | When incoming call happens (that can be answered with `answerCall`), incoming call eventgrid event will be sent. This is different from Callback events above, and should be setup on Azure portal. See [Incoming Call][incomingcall] for detail. |

## Examples
Expand Down Expand Up @@ -59,14 +57,20 @@ call_invite = CallInvite(target=user)
callback_url = "https://<MY-EVENT-HANDLER-URL>/events"

# send out the invitation, creating call
response = client.create_call(call_invite, callback_url)
result = client.create_call(call_invite, callback_url)

# this id can be used to do further actions in the call
call_connection_id = result.call_connection_id
```

### Play Media
```Python
# from callconnection of response above, play media of media file
my_file = FileSource(uri="https://<FILE-SOURCE>/<SOME-FILE>.wav")
const response = call_connection.get_call_media().play_to_all(my_file)
# using call connection id, get call connection
call_connection = client.get_call_connection(call_connection_id)

# from callconnection of result above, play media to all participants
my_file = FileSource(url="https://<FILE-SOURCE>/<SOME-FILE>.wav")
call_connection.play_to_all(my_file)
```

## Troubleshooting
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.