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

110 Коммитов

Автор SHA1 Сообщение Дата
Heath Stewart 0cede91bc7
Deny clippy::large_futures and fix +nightly lint (#1895)
* Deny clippy::large_futures and fix +nightly lint

* Fix test errors

* Add clippy to cspell dictionary
2024-11-05 15:39:31 -08: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
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
Ashley Stanton-Nurse e6cc2951f1
Derive Macro for `typespec_client_core::http::Model` (#1772) 2024-09-09 12:32:11 -07: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 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
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
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 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
vincenttran-msft 0b646f1657
[Rust] [Storage] Initial Storage Scaffolding (azure_storage_blob) (#1721) 2024-07-30 17:24:24 -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
Heath Stewart acbe066e10
Return `Response<T>` from client methods (#1688)
* Define `Response<T>`

This doesn't actually work because object-safe traits can't have methods with type parameters, so refactoring is needed.

* Define separate `RawResponse`, `Response<T>`

* Fix code style check

* Fix wasm32-only code
2024-06-26 10:00:37 -07:00
Heath Stewart e3e174e146
Use package properties, dependencies (#1642)
* Use package properties, dependencies

* Fix build breaks

* Checkout source before linting
2024-04-18 15:38:26 -07:00
Heath Stewart 201aaae2c5
Remove all but core, identity (#1641)
* Remove all but core, identity

* Disable emulator tests
2024-04-18 15:29:01 -07:00
Heath Stewart 22ab1128f1
Fix build issues (#1625)
* Fix build issues, inherit workspace lints

* More fixes

* Add empty workspace.lints to resolve services/ errors

* services/autorest/Cargo.toml is a workspace
2024-03-13 15:38:02 -07:00
Brian Caswell f31f3e0a9a
fix nightly clippy issues (#1341) 2023-08-23 11:37:52 -04:00
Ryan Levick 292db8644a
Rearrange mock transport support (#980)
* Make mock initialization more straight forward

* Move mock_transport to its own crate

* Fix the docs
2022-08-08 10:21:46 +02:00
Ryan Levick 9f177118e6
Break up sdk and services into two workspaces (#87)
* Break up sdk and services into two workspaces

* Break up into two jobs
2020-11-23 10:41:01 +01:00
Ryan Levick f8d19e362b
Simplify ConsistencyLevel and CosmosStruct (#88)
* Remove Cow from ConsistencyLevel

* Simplify CosmosStruct

* Fix tests
2020-11-20 19:04:11 +01:00
Cameron Taggart 46cc082b95
initial 100 service mgmt APIs generated by AutoRust (#31)
* add azure_mgmt_storage_v2019_06_01

* headers now generated

* all local types in same mod

* include referenced types

* CamelCase for vec types

* fix referenced schemas

* add referenced schemas recursively

* multiple input files
https://github.com/ctaggart/autorust/pull/38

* create local structs

* move to rest/mgmt_storage/2019-06-01

* unlock build on other branches

* add rest/rustfmt.toml

* allOf & pub

* optional params

* default Configuration

* added mgmt_storage 2020-08-01-preview

* API_VERSION const

* api-version from config

* query params

* map with Vec::is_empty

* skip_serializing if readOnly

* remove anyhow dependency
https://github.com/ctaggart/autorust/issues/26

* remove if statement around api-version param

* switch services layout to be like go sdk

* add compute_mgmt example

* add body and header params

* add avs_mgmt

* group operations into modules

* add resources mgmt

* service api versions as features

* add two examples

* version modules

* add avs_private_cloud_list example

* vm_list example

* switch name back to azure_mgmt_${service} #42

* many compute API versions

* add 70 mgmt services

* map all respones with error handling

* +30  mgmt services, 100 total

* use spec folder names

* add readme for Azure Service Crates

* fix vmware example & add examples to readme

* add storage account list to readme

* docs are hard
2020-10-20 11:55:14 -06:00
Ryan Levick 374e834633
Rename Crates (#34)
* Rename more crates to consistent naming scheme

* sdks dir => sdk dir

* fix workspace

* Update readme links

* Rename keyvault to key_vault

* Fix scripts

* Format json

* Push scripts

* Multi line shell
2020-10-14 18:14:00 +02:00
Ryan Levick be89d2d4b5
Project Organization Refactoring (#4)
* Remove prefix on subdirectories

* Rearranged

* Add github actions

* Add features

* Update urls

* Update dependencies

* Fix small issues

* PR feedback

* Ident
2020-10-09 11:55:53 +02:00
Francesco Cogno 080dc59c5d
Azure storage queue partial implementation (#320) 2020-09-29 19:51:32 +02:00
Francesco Cogno 66b9513c4c Support for async/await 2019-11-29 15:08:29 +01:00
Francesco Cogno 6624bc6b6c First implementation of AAD auth 2019-08-08 14:03:26 +02:00
Francesco Cogno c40bafe0ad Azure REST API bump to 2018-03-28 and implemented get_account_information 2019-07-14 14:28:02 +02:00
Francesco Cogno e5cb40a03e
Crate split 2019-07-09 15:00:41 +02:00
Francesco Cogno d9efe7de2b
fixed Cargo.toml dependency 2019-05-18 17:43:35 +02:00
Francesco Cogno 4c20e26f75
Removed hyper_tls references and version bump 2019-05-18 17:35:15 +02:00
Francesco Cogno 63e865c680
Migrated storage 2019-05-18 17:09:49 +02:00
Francesco Cogno d54b95ca24 Updated version to 0.11.0 2019-03-12 10:08:57 +01:00
Max Gortman b7c43a8621 &str for headers, up dependencies
- use AsRef<str> instead of String for request headers
- refresh dependencies
2019-02-04 13:56:53 -08:00
Francesco Cogno 8883d5fd0a
release 0.10.3 2018-12-22 09:22:06 +01:00
Francesco Cogno ff6dee7e5f
Migrated to Rust 2018 2018-12-09 17:43:51 +01:00
Francesco Cogno b636dec2fb
Implemented builder pattern 2018-12-07 16:51:36 +01:00
Francesco Cogno 2218a66f78 Added support for Azure storage emulator 2018-11-05 20:37:41 +01:00
Max Gortman 45c3dcb29b Updating dependencies
new versions of md5, hyper-tls, uuid.
generally switching to x.x versions.
2018-09-30 18:25:26 -07:00
Max Gortman 8afb37eabb Update ring dependency to 0.13 2018-07-30 11:10:39 -07:00
Francesco Cogno 2a6e6c3986 Implemented blob list and get 2018-07-26 10:20:08 +02:00
Francesco Cogno bdb33a8727 builder pattern for container (uncompleted) 2018-06-17 13:23:29 +02:00
Max Gortman ccd7a9ca66 upgrade to hyper 0.12, ..
.. extra:
- optimizations around allocations,
- Cosmos DB: changed PartitionKey API
- EH sender embeds hyper client like other clients
2018-06-14 15:44:36 -07:00
Max Gortman b34af27e03 cosmos: change to builder pattern, +replace/delete, ...
also remove key serialization from AuthorizationToken's Debug
2018-06-11 08:03:38 -07:00
Francesco Cogno 5390a06731 Implemented get_block_list with tests 2018-06-09 13:38:38 +02:00
Francesco Cogno d148261ecb fixed dependencies and updated README 2018-06-06 22:32:08 +02:00
Francesco Cogno 67f32703df Some tests added 2018-06-04 13:08:48 +02:00
Francesco Cogno 6888a50290 block list 2018-06-04 11:09:02 +02:00
Francesco Cogno 9932ec1b4e Implemented block blob streaming get
Signed-off-by: Francesco Cogno <francesco.cogno@outlook.com>
2018-05-30 18:25:24 +02:00
Francesco Cogno f87b8cbddd Bumped version to 0.7.0 2018-05-22 18:34:49 +02:00
Max Gortman 5e176929ad lower tokio-core dep req 2018-05-18 14:51:34 -07:00
Max Gortman da40f489e8 pub mod reshuffling and extras...
- removed azure module from all paths
- partial flattening of a few sub modules under cosmos (to be continued)
- support for replace and delete document
2018-05-18 12:43:17 -07:00