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

1856 Коммитов

Автор SHA1 Сообщение Дата
Heath Stewart aa47914fe3
Update root crate repository URLs (#1820) 2024-09-24 22:01:04 +00:00
Heath Stewart 81d03bb8be
Define root crates azure and microsoft
Update READMEs for `azure` and `microsoft` crates for [Rust RFC #3243](https://rust-lang.github.io/rfcs/3243-packages-as-optional-namespaces.html).
2024-09-17 16:21:55 -07:00
Ashley Stanton-Nurse 8d15041928
fix azure_data_cosmos build with key_auth feature (#1802) 2024-09-16 11:05:11 -07:00
Ashley Stanton-Nurse 09c749a250
Add codespaces/devcontainer config files (#1800)
* Add devcontainer config files for codespaces and vscode

* add cspell extension to vscode

* pr feedback and exclude oncreate from cspell

* yet more cspell exclusions
2024-09-12 16:37:46 -07:00
Ashley Stanton-Nurse 1fbc5dd9fc
Initial CosmosDB crate (#1773)
* implement initial CosmosClient, DatabaseClient and "read database" API

* updates after rebase

* fix some warnings and test issues

* rename "adhoc" sample to "connect"

* add CODEOWNERS for CosmosDB

* use 'cosmosdb' as example prefix

* fix spacing

* a few more tidy-ups

* switch to a team in the cosmos CODEOWNERS

* clippy and lint fixes

* spelling updates

* auth policy test updates

* doc comment updates

* switch to using Model derive macro

* a couple build fixes

* ok that one was my bad

* fix conditional imports

* omit CODEOWNERS from cspell check

* use direct mentions in CODEOWNERS for now

* pr feedback

* fix derive macro broken during refactoring

* use dictionary file and update Cosmos to "Cosmos DB"
2024-09-12 13:53:57 -07:00
Cameron Taggart dfb354dbb0
support user-assigned identities in VirtualMachineManagedIdentityCredential (#1799) 2024-09-12 17:18:27 +00:00
Heath Stewart 78ac814e0f
Better centralize and remove unused dependencies (#1798)
* Better centralize and remove unused dependencies

* Fix clippy errors

* Fix wasm32 build
2024-09-12 09:19:02 -07:00
Heath Stewart 943da4e10f
Refactor request options and some related types (#1794)
Moves common request options e.g., `ContentLength` into `typespec_client_core` while reducing the number of seldom-used (specified directly) types exported from `typespec_client_core::http`.
2024-09-10 10:51:59 -07:00
Heath Stewart 6aedb1017f
General client core refactoring (#1793) 2024-09-09 13:35:29 -07:00
Ashley Stanton-Nurse e6cc2951f1
Derive Macro for `typespec_client_core::http::Model` (#1772) 2024-09-09 12:32:11 -07:00
Heath Stewart 851994b4d6
Refactor some models into typespec_client_core (#1791)
* Refactor some models into typespec_client_core

* Fix build issues
2024-09-09 10:48:04 -07:00
Larry Osterman f54f0534ba
Created cplusplus feature to isolate C++ only elements (#1786)
* Created cplusplus feature to isolate C++ only elements

* cplusplus options

* PR feedback

* Deserializable and errorkind are used for CPP

* EH changes to reflect AMQP changes

* serialization and deserialization are cplusplus features
2024-09-04 14:12:46 -07:00
Heath Stewart 759a012e79
Add copyright headers to all .rs source files (#1788)
* Add copyright headers to all .rs source files

* Add datetime to dictionary
2024-09-03 23:55:38 +00:00
Patrick Hallisey 15de102305
Sync eng/common from azure-sdk-tools (#1789)
In sync as of 58a0759796
2024-09-03 16:18:13 -07:00
Patrick Hallisey d04861b15e
Use inline variable content check for SkipPackageAnalysis switch (#1787) 2024-09-03 13:10:33 -07:00
Patrick Hallisey c39c2e42f1
Move verify-dependencies to analyze job (#1781) 2024-08-30 23:23:50 +00:00
Larry Osterman b056dd360b
AMQP changes to support message headers and properties (#1767)
* AMQP changes to support message headers and properties; AMQP changes to support type serialization; Integrated a coupleof fe2o3 bug fixes

* Pull request feedback
2024-08-30 14:02:44 -07:00
Heath Stewart cf83e3a2b1
Rename private Context to ErrorContext (#1780)
To avoid confusion with our HTTP client `Context`, even if private so it
doesn't show up in symbol searches. Resolves #1778
2024-08-29 16:36:55 -07:00
Heath Stewart 2b1c1f113b
Centralize Event Hubs dependencies (#1784)
* Centralize Event Hubs dependencies

Also fixes a few spelling issues while testing.

* Always ignore cspell.json
2024-08-29 15:36:25 -07:00
Patrick Hallisey 2fba9d599f
Sync eng/common from azure-sdk-tools (#1783)
* In sync as of da75627391
* Adjust for changes in eng/common
2024-08-29 15:36:09 -07:00
Heath Stewart 2593adb170
Fix some all-features build issues (#1782) 2024-08-29 20:48:19 +00:00
Patrick Hallisey 3c2055050e
Fix breaks in build (#1776) 2024-08-28 16:41:07 -07:00
Patrick Hallisey c1065e80b0
Fix packageInfoPath parameter (#1774) 2024-08-28 16:03:13 -07:00
Patrick Hallisey 4ff0cd28d1
Add ADO pipeline scaffolding (#1762) 2024-08-28 21:58:33 +00:00
Ashley Stanton-Nurse bddff2b6c5
Take 2: Refactoring Response<T> to collapse json/xml methods (#1724)
* use Response's type parameter as a marker type for the body, but don't actually deserialize

* make pipeline send generic to improve type inference and reduce need for map_body

* fix doctest

* change read_body/map_body into deserialize_body/deserialize_body_into

* fix issues after rebasing

* refmt and fix compile issue

* rename FromResponseBody to Model

* fix toml spacing

* address pr feedback

* set_ -> with_

* fix formatting again :(
2024-08-26 14:34:07 -07:00
Patrick Hallisey fe3cbf037c
Sync eng common to 969d7f19c7 (#1769) 2024-08-26 12:34:21 -07:00
Heath Stewart 3eac99ed00
Add back missing public exports (#1764)
* Add back missing public exports

* Correct a few more types
2024-08-22 18:58:04 +00:00
Ashley Stanton-Nurse 4bd71b04c2
make scripts more portable across linux distros (#1761) 2024-08-20 15:15:23 -07:00
vincenttran-msft 3919d43ef9
Add `BearerTokenCredentialPolicy` to `azure_core` (#1726) 2024-08-16 15:01:51 -07:00
Heath Stewart c73169f3a0
Refactors most of azure_core to typespec (#1751)
* Refactors most of azure_core to typespec

Little was modified when moving types and functions. Of what little was modified, most types were either separated from unrelated topics - like streams from HTTP - or better consolidated into fewer submodules to avoid complicating the module hierarchy.

`TelemetryOptions` was temporarily removed. Because `ClientOptions` was moved to `typespec_client_core` but telemetry considered Azure-specific by most other Azure SDK languages, we need to figure out how to pass this in an unbranded way. Since it basically just sets the `User-Agent` HTTP header, perhaps we can make it more generic and optional.

* Fix resolution errors on Noop client

* Fix build breaks from dependencies

* Add unconditional checks of Azure retry headers

This restores the checks for Azure-specific headers.
2024-08-16 11:09:57 -07:00
Patrick Hallisey 78057cb816
Sync eng/common (#1745) 2024-08-14 14:06:17 -07:00
Brian Caswell 4d5a7a0bda
move is_expired to be a method on AccessToken (#1752) 2024-08-14 16:35:17 -04:00
Larry Osterman 4e3d3d4444
Added some AMQP types that were missed in the initial conversion, but… (#1748)
* Added some AMQP types that were missed in the initial conversion, but are needed for C++ interoperability
2024-08-13 12:17:31 -07:00
Heath Stewart aca7b8c426
Fix clippy lints (#1749)
Also re-exports time::OffsetDateTime.
2024-08-13 18:28:37 +00:00
Heath Stewart be36fd8d26
Refactor date functions into client core (#1747) 2024-08-13 10:06:51 -07:00
Heath Stewart 3370430a7b
Add components to rust-toolchain.toml (#1741)
Makes sure these components are always installed when running
`rustup show` or other tools. Adding `rust-analyzer` is questionable,
but enough dev UX uses it's probaby fine and not too slow to acquire on
CI build machines.
2024-08-12 09:30:35 -07:00
Larry Osterman 9b317e1b35
Moved consumer readme to consumer directory (#1742)
* Moved consumer readme to consumer directory

* Moved consumer readme include_str to consumer mod.rs file
2024-08-08 13:37:42 -07:00
Larry Osterman 504d88806c
Added content to the readme for Rust Event Hubs (#1740)
* Added content to the readme for Rust Eventhubs - lost more to come

* Fixed readme.md inclusion

* Added content to the readme for Rust Eventhubs; added documentation for the Consumer module

* Added eventhubs to global cspell

* Cleaned up use of EventHubs service name (it's Event Hubs); moved StartPosition to consumer since it's a consumer construct, not a model construct; Cleaned up doccomments around the tree.
2024-08-06 16:53:49 -07:00
Larry Osterman 7fbd2b8783
First cut at a Rust Eventhubs client. (#1715)
* Initial prototype for eventhubs client

* AMQP Message Serialization tests

* More message serialization tests

* Pr feedback - renamed AMQP implementation feature

* Pr feedback - undid core change

* Updated copyright notices; Simplify error implementation
2024-08-06 14:09:14 -07:00
Heath Stewart a51893ccd6
Add traits with getters for ClientOptions, ClientMethodOptions (#1738)
Resolves #1734, at least temporarily.
2024-08-05 15:24:26 -07:00
Heath Stewart 055e07cb8d
Refactor json and xml mods into typespec crate (#1736)
* Refactor json and xml mods into typespec crate

* Move json, xml mods back up to typespec_client_core

* Fix docs build
2024-08-05 14:23:36 -07:00
Heath Stewart a523ab295a
Refactor general implementation into TypeSpec crates (#1710)
* Refactor general implementation into TypeSpec crates

This is part of the unbranding work across languages. For now we have decided to brand around the "TypeSpec runtime" as some other Azure SDK languages have considered.

* Fix build

* Resolve CodeStyle check issue

* Export http_response_from_body from azure_core

* Fix lint, docs errors
2024-08-02 00:32:40 +00:00
Heath Stewart 9968664b53
Configure and fix spelling issues (#1730) 2024-08-01 17:11:48 -07:00
vincenttran-msft 0b646f1657
[Rust] [Storage] Initial Storage Scaffolding (azure_storage_blob) (#1721) 2024-07-30 17:24:24 -07:00
Heath Stewart 33ebc4c43f
Add @ronniegeraghty to CODEOWNERS (#1725) 2024-07-30 15:22:32 -07:00
Heath Stewart 890667e96a
Fix year in changelog (#1719)
Co-authored-by: Robert Collins <robert.collins@cognite.com>
2024-07-30 15:02:55 -07:00
Larry Osterman a7f72044f4
Fixed DefaultAzureCredential CI pipeline error (#1717) 2024-07-26 16:55:04 -07:00
Joel Hendrix 7d89e4eb3f
Add lifetime annotation to ClientMethodOptionsBuilder trait (#1714)
* Add lifetime annotation to ClientMethodOptionsBuilder trait

This allows implementors of the trait to ensure that the lifetime of
context lives at least as long as the trait's implementor.

* remove unused generic type param
2024-07-25 15:59:13 -07:00
Heath Stewart 0a4ef71ca7
Implement client options, method options builders (#1708)
* Implement client options, method options builders

* Fix doc references
2024-07-23 12:53:13 -07:00
Heath Stewart 6c06ee8472
Move crates into subdirs under service dirs (#1705)
* Move crates into subdirs under service dirs

The exception in this commit is `typespec`, which will likely be a root
project for RFC 3243 (packages-as-namespaces) with packages thereunder.

* Fix e2e_tests.sh
2024-07-17 16:04:08 -07:00