Граф коммитов

701 Коммитов

Автор SHA1 Сообщение Дата
Anu Thomas Chandy 5a4d536343 adjusting serde references in azure-core-rest module to use serde types in azure-core-serde android package 2021-02-06 12:38:21 -08:00
Anu Thomas Chandy 83d3006c2d Introducing android namespace to azure-core-serde-jackson module 2021-02-06 12:34:59 -08:00
Anu Thomas Chandy 4594b2b39b Introducing android namespace to azure-core-serde module 2021-02-06 12:32:26 -08:00
Anu Thomas Chandy c896e6c26c Simplify the control flow around response instantiations 2021-02-05 20:10:52 -08:00
Anu Thomas Chandy ec7540b11f cleaning up azure-core-serde-jackson module 2021-02-05 17:18:01 -08:00
Anu Thomas Chandy a44254210d Improved logic to resolve the content and header type and enabling the streaming tests which was blocked due to bug in type resolution 2021-02-05 16:33:18 -08:00
Anu Thomas Chandy 8f6617f189 Correcting TypeUtilTests to refer the TypeUtil in android sub-package 2021-02-05 16:31:10 -08:00
Anu Thomas Chandy 4c79aca03a JavaDoc cleanup, minor readability improvment 2021-02-05 16:30:08 -08:00
Jianping Chen 902756d5fc
[Communication]: Identifier serializer update for new model (#557)
* update identifier serializer for new model

* Remove unused class

* update for review comments

* Assert rawId not null for phoneNumberIdentifier in deserialization

* minor error message change

Co-authored-by: JP Chen <jiach@microsoft.com>
2021-02-05 14:07:48 -08:00
Anu Thomas Chandy 59678190a3 Introducing android namespace to azure-core-logging module and adjusting references from other modules 2021-02-04 14:51:38 -08:00
Anu Thomas Chandy 41ddfa8b6e improve code readability 2021-02-04 14:10:36 -08:00
Anu Thomas Chandy 40da77c0ae improve code redability 2021-02-04 13:06:16 -08:00
Anu Thomas Chandy 983a711b18 Enabling CancellationToken for service interface methods 2021-02-04 11:25:17 -08:00
Azure SDK Bot c52de0984a
Sync eng/common directory with azure-sdk-tools for PR 1366 (#556)
* Scan all duplicate artifacts which set hide to true

* Update eng/common/docgeneration/Generate-DocIndex.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update Generate-DocIndex.ps1

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-02-03 23:05:56 -08:00
Jianping Chen 718eb3adb9
[Communication]: Update release version number in gradle, readme, and changelog (#553)
* Update release version number in gradle, readme, and changelog

* Update ChangeLog

* Update ChangeLog

Co-authored-by: JP Chen <jiach@microsoft.com>
2021-02-03 15:23:07 -08:00
Azure SDK Bot ee448db857
Sync eng/common directory with azure-sdk-tools for PR 1365 (#555)
* Updated cosmos emulator yml script to remove the existing installation, install latest version and run emulator with latest version

* Added default emulator start arguments if none provided

* Updated default start params

* Updated default start params in PS script

* Updated default start params in PS script

Co-authored-by: Kushagra Thapar <kuthapar@microsoft.com>
2021-02-03 14:19:36 -08:00
Anu Thomas Chandy f73ccafa83 alidating RestProxy when HttpUrlConnection client is used. 2021-02-03 13:33:38 -08:00
Anu Thomas Chandy 2c81daa384 DELETE request can be accompanied with a body, hence enable it for http URL connection client. 2021-02-03 13:32:56 -08:00
Azure SDK Bot 6dd3d775bc
Sync eng/common directory with azure-sdk-tools for PR 1364 (#554)
* Support sub directory for artifact location

* Fix as per review comment to avoid artifact sub path

* Package property file is not created for track1 and management pacakges.

* Fix property name case

* Fix as per review comments

* Fix as per review comments

* Use Config File param value as is

* Change to make path joineasily readable

Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
2021-02-03 13:29:24 -08:00
Anu Thomas Chandy 283efec3b9 Validating RestProxy when OkHttp client is used. 2021-02-03 13:01:28 -08:00
Anu Thomas Chandy bcbfcb9ef5 Adding TestsWireMockServer to respond to HTTP client request coming through Rest Proxy. 2021-02-03 13:00:38 -08:00
Anu Thomas Chandy 95722bde8f if no HTTP body present, represent it as byte[0] for OkHttp (in consistent with behavior of using ByteString.EMPTY). 2021-02-03 12:59:03 -08:00
Anu Thomas Chandy a53fa5cb11 Empty string is a valid HTTP request body, doon't filter it out. 2021-02-03 12:57:10 -08:00
marche0133 eafe0c929d
Feature/azure communication (#552)
* Renaming (#462)

* Rename thread member to participant, rename member to participant

* Rename ReadReceipt to ChatMessageReadReceipt in model

* Rename updateChatThread to updateTopic

* Ability to add a participant, previously we can only add participants in batch

* Return messageId instead of SendChatMessageResult

* Keep system messages as they are used by trouter / cns
bring back some auto deleted imports

* Update swagger to preview-3, run autorest on new swagger
add back SendChatMessageResult
update readme

* Add converter as convenience layer to convert SendChatMessageResult into String messageId
update test, remove redundant tests
update readme

* Update sdk/communication/azure-communication-chat/README.md

* Update readme, update JavaDoc return for message ID

Co-authored-by: Marc Ma <marcma@microsoft.com>

* [Communication]: Android: Regenerate Chat clients with swagger for Preview3 (#472)

* Regenerate Chat clients; Modify tests

* Convert sendChatMessage function return to String

* Fix a stupid typo

* Add convenience method for adding a single thread participant

Co-authored-by: JP Chen <jiach@microsoft.com>

* Update package descriptions for communication chat and common to include links to README.md and CHANGELOG.md

* Add user agent into headers for ourself (Spool team) to track SDK usage. (#478)

Co-authored-by: Marc Ma <marcma@microsoft.com>

* Add Identifier surfix to all identifier classes (#499)

Co-authored-by: JP Chen <jiach@microsoft.com>

* [Communication]: Rename user credential to token credential (#500)

* Rename UserCredential to TokenCredential

* Update changelog and readme

Co-authored-by: JP Chen <jiach@microsoft.com>

* [Communication]: Consolidate CommunicationTokenCredential Constructors (#502)

* Consolidate CommunicationTokenCredential Constructors

* Remove code that requires level 24 SDK

* Update CHANGELOG.md

Co-authored-by: JP Chen <jiach@microsoft.com>

* [Communication]: Add teams user identifier (#505)

* Add communication identifier for Microsoft Teams user

* Add communication identifier for Teams User

* Revert an unintended change to build.gradle

* Revert an unintended change

Co-authored-by: JP Chen <jiach@microsoft.com>

* [Communication]: Regenerate Chat SDK (#515)

* Regenerate Chat SDK

* Revert unintended changes

* Fix message mocking

* Restore unintended change

* Update README.md and CHANGELOG.md for Chat sdk

Co-authored-by: JP Chen <jiach@microsoft.com>

* Rename id to userId in TeamsUserIdentifier (#521)

Co-authored-by: JP Chen <jiach@microsoft.com>

* Update with latest swagger, version 1.0.0-beta.5 (#538)

* Update with latest swagger, 1.0.0-beta.5
 -Support 5 types of chat message content
 -Add CommunicationError to replace Error
 -Remove priority in message
 -Rename converters

Update CHANGELOG.md
Update README.md
Update beta version

* Update the core version back to beta.4

* According to Camilo, assign random UUID to repeatabilityRequestID if repeatabilityRequestID is null

Co-authored-by: Marc Ma <marcma@microsoft.com>

* Update for GA, wrap user string id with CommunicationUserIdentifier (#542)

* Update with latest swagger, 1.0.0-beta.5
 -Support 5 types of chat message content
 -Add CommunicationError to replace Error
 -Remove priority in message
 -Rename converters

Update CHANGELOG.md
Update README.md
Update beta version

* Update the core version back to beta.4

* According to Camilo, assign random UUID to repeatabilityRequestID if repeatabilityRequestID is null

* Update for GA, wrap user string id with CommunicationUserIdentifier

* Remove redundant import
Add back a missing code change

Co-authored-by: Marc Ma <marcma@microsoft.com>

* Marc/picking communication api changes (#543)

* [Communication]: Update communication common API with new classes (#540)

* Update common API with new classes

* Address review comments

* IdentifierSerializer should throw when Id is null for TeamsUserIdentifierModel

* Address review comments

* Update communication.common version to beta.4

* Modify serializer behaviour on future kind

Co-authored-by: JP Chen <jiach@microsoft.com>

(cherry picked from commit a68aa9f46c)

* Bring new AutoRefreshUserCredential from master

Co-authored-by: Jianping Chen <jp.chen.jianping@gmail.com>
Co-authored-by: Marc Ma <marcma@microsoft.com>

* Update gradle, readme and changelog

Co-authored-by: Marc Ma <marcma@microsoft.com>
Co-authored-by: Jianping Chen <jp.chen.jianping@gmail.com>
Co-authored-by: JP Chen <jiach@microsoft.com>
2021-02-03 12:26:12 -08:00
Anu Thomas Chandy 06ec168b76 Setting up the test artifacts to enable validation of RestProxy from each HttpClient impls and adding validation based on mock http client 2021-02-03 09:02:39 -08:00
Anu Thomas Chandy 59f946ac34 RestProxy: user error from rest callback onSuccess should not be reported to onError (as they are mutally exclusive). 2021-02-03 08:55:59 -08:00
Azure SDK Bot f4d91a217c
Sync eng/common directory with azure-sdk-tools for PR 1353 (#551)
* Use a helper function to normalize the package name for readme

* Get the readme name from artifact-metadata-parsing

* Change to the readme

* Update eng/common/scripts/artifact-metadata-parsing.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-02-01 18:56:16 -08:00
Azure SDK Bot fd6e5648b2
Fix DateTime bug (#550)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-02-01 14:51:09 -08:00
Anu Thomas Chandy 7a5b755ebd Adding RestProxy, the implementation of InvocationHandler to process rest interface 2021-02-01 11:05:06 -08:00
Anu Thomas Chandy bca341c380 Adding SwaggerInterfaceParser to parse rest interface and to cache the SwaggerMethodParser for each methods in the rest interface. 2021-02-01 11:05:06 -08:00
Anu Thomas Chandy ca5d8c98f5 Adding SwaggerMethodParser to compose HttpRequestMapper and HttpResponseMapper. Both mappers needs to be cached, the composed type SwaggerMethodParser simplifies the caching story. 2021-02-01 11:05:06 -08:00
Anu Thomas Chandy 0147811914 Adding the mapper to map HttpResponse (from wire) to a Response instance in the rest module. 2021-02-01 11:05:06 -08:00
Anu Thomas Chandy 3011852169 Adding the mapper to map proxy method arguments (the one user provided to) to HttpRequest instance 2021-02-01 11:05:06 -08:00
Anu Thomas Chandy 52d37cf990 Adding the Callback type parameter used by proxy methods (though this callback receives the response, in the convenience layer it is wrapped and exposed via retrofuture CompletableFuture) 2021-02-01 11:05:05 -08:00
Anu Thomas Chandy 5603ccf661 Exporting ArrayMap|Log|Pair type in android utils to test android.utils (required when unit tests (i.e. non-instrumentation tests) to run) 2021-02-01 11:05:05 -08:00
Anu Thomas Chandy 571747f476 Adding rest Response types 2021-02-01 11:05:05 -08:00
Anu Thomas Chandy dc1b29b2e6 Adding type util for reflective operations. 2021-02-01 11:05:05 -08:00
Anu Thomas Chandy 1810ea8da4 Adding escapers to escape data in form data and path/query in url. 2021-02-01 09:31:07 -08:00
Anu Thomas Chandy c9688c2016 init rest and rest.impl package directories. 2021-02-01 09:09:09 -08:00
Anu Thomas Chandy cd93f5d4b2 Introducing android subpackage in rest module and adding proxy annootations 2021-02-01 09:00:02 -08:00
Anu Thomas Chandy fa05841ea6 Adding paging package with ContinuablePage (the base page type) to core module 2021-02-01 08:30:22 -08:00
Anu Thomas Chandy 27e4f3912f Adding Http exception package in common http mdule. 2021-02-01 08:26:45 -08:00
Azure SDK Bot 299cc01e27
Sync eng/common directory with azure-sdk-tools for PR 1351 (#549)
* tweaks to New-TestResources readme
2021-02-01 09:33:30 -06:00
Brandon Siegel cbbc6ac3c2 Update CODEOWNERS 2021-01-29 15:54:31 -08:00
Azure SDK Bot e6422902de
Sync eng/common directory with azure-sdk-tools for PR 1345 (#545)
* Enforce API approval status for GA and include SDK type in package properties

* Fix per review comment

* Fixes as per review comments to avoid changing constructor signature

* Fixes as per review comments to handle track 1 packages

* Fix yaml format error

Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
2021-01-29 13:13:36 -08:00
Reza Jooyandeh d5462f52b2
[Communication] - Prepare Common package for release (#544)
* [Communication] - Prepare Common package for release

* Update changelog and readme versions

Co-authored-by: Minnie Liu <peiliu@microsoft.com>
2021-01-28 14:36:29 -08:00
Jianping Chen a68aa9f46c
[Communication]: Update communication common API with new classes (#540)
* Update common API with new classes

* Address review comments

* IdentifierSerializer should throw when Id is null for TeamsUserIdentifierModel

* Address review comments

* Update communication.common version to beta.4

* Modify serializer behaviour on future kind

Co-authored-by: JP Chen <jiach@microsoft.com>
2021-01-28 09:56:00 -08:00
Azure SDK Bot 2233755e43
Sync eng/common directory with azure-sdk-tools for PR 1341 (#541)
* Run the link verification step even previous step failed.

* Make the tab right

* Address comments

* Run default condition if no RunOnFailure set.

* Changed back to simple condition

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
2021-01-26 18:14:31 -08:00
Azure SDK Bot 7f6c81f6cb
Fixed the problem of no display name issue (#539)
Co-authored-by: Sima Zhu <sizhu@microsoft.com>
2021-01-26 10:52:42 -08:00
Azure SDK Bot b9f8e63445
Sync eng/common directory with azure-sdk-tools for PR 1335 (#537)
* Lossen up $RELEASE_TITLE_REGEX to accomodate wrongly formated changelogs

* Update changelog logic to use ordered hashtable

* Update semver and Changelog logic

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-01-25 10:50:50 -08:00