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

24 Коммитов

Автор SHA1 Сообщение Дата
hqhqhqhqhqhqhqhqhqhqhq 2cde4236f7
feat: Provider functions to build azure resource id (#553)
* Update main.yml

Create main.yml

Update codeql.yaml

Update main.yml

Update main.yml

Update main.yml

Update main.yml

Update main.yml

* Revert "Update main.yml"

This reverts commit e8701ffae0.

* add provider functions

* update

* feat: add provider functions for building resource ids

update

* Update build_resource_id_function_test.go

* refactor: update all scope resource id provider functions as per discussion & tests

* Update provider.go

* Update fixes for pr review

* refactor: fix unit tests and remove the need for version in resource type

* Update docs

* extension resource doc

* update docs

* fix ci review comments

* Update helper.go

* update docs

* fix go imports

---------

Co-authored-by: Heng Lu <henglu@microsoft.com>
2024-08-28 11:27:44 +08:00
hqhqhqhqhqhqhqhqhqhqhq 5506088017
feat: support jmes path query in `response_export_values` (#591)
* Update main.yml

Create main.yml

Update codeql.yaml

Update main.yml

Update main.yml

Update main.yml

Update main.yml

Update main.yml

* Revert "Update main.yml"

This reverts commit e8701ffae0.

* feat: add provider functions for building resource ids

* Update azapi_data_plane_resource.go

* Update common.go

* remove ctx as argument to `buildOutputFromBody` function

* Update doc

* Update resource.md

* Update common.go

* update

* update docs

* Delete common_test.go
2024-08-27 11:56:33 +08:00
Matt White 0bbfcbda3b
feat: user defined retryable errors (#392)
* feat: initial playing

* feat: progress

* feat: update test case

* feat: first attempt at retry

* feat: add NewResourceClientRetryableErrors scaffold

* docs: spelling

* revert: CreateOrUpdate to main

* chore: go mod

* revert: to main

* chore: remove vendor

* chore: go mod tidy

* feat: add regex valudator

* feat: update resources with retry

* ci: update lint

* ci: lint fix

* test: add mock and tests for retry client

* test: add acc test for retry

* test: add context deadline exceeded test

* test: update assertion to use method

* chore: fix linting issues

* test: improve test

* test: add test for retry client with multiple regex patterns

* chore: remove unnecessary provider gen

* fix: add backoff.Reset() to retry client and add tests to prove exponential retry is working

* refactor: change retryableerrors to retry after feedback from @ms-henglu

* fix: set data source defaults and add test to simulate eventual consistency

* chore: terrafmt

---------

Co-authored-by: Heng Lu <79895375+ms-henglu@users.noreply.github.com>
2024-08-16 14:19:03 +08:00
Matt White 62827f341f
feat: use tfplugindocs and update schema for auto doc generation (#505)
* feat: use tfplugindocs and update schema for auto doc generation

* fix: add updated output.go to docstrings package

* chore: depscheck

* fix: remove alias from data plane resource

* chore: phony for tools target

* docs: make docs

* docs: generate

* chore: remove out of date venforing

* chore: remove out of date vendoring

* add example for client config

* chore: replace vendor with main

* Revert "chore: replace vendor with main"

This reverts commit 78691f792e.

* fix: ci to work with mod

* chore: go mod

* docs: whitespace

* ci: add verbose logging on fail

* docs: remove comment

* docs: restore current version of sp client certificate guide

* docs: incorporate changes from main
2024-08-16 14:02:59 +08:00
Andrew Ochsner a490f78d04
bump hc-install (#450) 2024-04-16 10:22:32 +08:00
Heng Lu 38ff15568b
azapi supports dynamic schema (#446)
* go mod vendor

* `azapi_*` - support `payload`

* skip a test

* fall back to implied type if type mismatched

* suppress the dynamic schema diff if only type is changed

* deprecate body json solutions

* add ignore_missing_properties back
2024-04-11 13:53:42 +08:00
Heng Lu f9378933be
update azcore and azidentity (#432) 2024-03-14 12:31:12 +08:00
Heng Lu 54c7c9a7ea
`azapi_*` - support `timeouts` block (#425)
* `azapi_*` - support `timeouts` block

* make fmt

* make fmt
2024-03-11 09:56:36 +08:00
Heng Lu 9bd0ba75dd
Branch 240104 plugin framework migration (#424)
* go mod vendor

* `azapi_*` - migrate to framework

* fix bug that tags have diff when it's not set

* fix tests

* bugfix: azapi_resource_action doesn't set state if when=destroy

* update azurerm version

* address review comments
2024-03-08 13:30:11 +08:00
Heng Lu 9b4b405dbb
fix acc tests (#421)
* fix acc tests

* update goversion to 1.20

* update goversion to 1.20
2024-02-27 15:56:32 +08:00
Heng Lu 157088d27e
update azcore to 1.7.1 (#342) 2023-08-17 16:26:57 +08:00
Zhenhua Hu 2a47a90844
Support `use_msi` and `use_cli` authentication switch for AzAPI (#292) 2023-05-11 14:08:31 +08:00
Heng Lu 6775698b76
update azcore to v1.5.0 (#278) 2023-04-10 12:56:08 +08:00
Heng Lu 5cf93a04e2
`azapi` - `client_certificate_password` (#234) 2022-12-22 09:38:21 +08:00
Heng Lu 231606113a
Update azcore and azidentity to v1.0.0 (#110)
* update azidentity and azcore

* update golang 1.18

* golangci-lint
2022-05-18 14:13:27 +08:00
Heng Lu 5422bd771a
add validation on resourceId builder (#69)
* add validation on resourceId builder

* update go to 1.17
2022-03-24 14:34:18 +08:00
Heng Lu b1780feb61
add support for correlation id header (#62) 2022-03-07 16:06:43 +08:00
Heng Lu 93d770f660
rename azurerm-restapi to azapi (#61) 2022-03-04 10:43:09 +08:00
magodo 009147e5dd
Integrate azcore (#58)
* Refactor provider initialization using azcore

* Refactor the autorest transport by azcore

* pass build and test

* adding log policy - while log is still not working

* support sdk log

* modify index.html to match the provider status

* ARM_ENVIRONMENT case-insensitive

* CI lint

* disable multi-tenant feature since it is currently not working

* add doc for `skip_provider_registration`

* set sdk log level to DEBUG

* make client CRUD code consistent

* rename resource client

* generalize the response not found logic

* go import
2022-03-04 10:06:44 +08:00
Heng Lu ebba19c1ae
Branch 211216 default tags (#27)
* refactor expand flatten func

* support default tags

* go mod
2021-12-17 11:54:20 +08:00
Heng Lu 0fdd0c53bf
add "schema_validation_enabled" && add validation prevent setting same property in both hcl and body (#26)
* add "schema_validation_enabled"

* add validation prevent setting same property in both hcl and body
2021-12-16 14:35:16 +08:00
magodo c0196b49e8
Add support for MSAL auth (#24) 2021-12-15 14:07:33 +08:00
ms-henglu d20df826d6
rename to Azure (#14) 2021-11-17 12:15:12 +08:00
Heng Lu 6bad2d1150 develop 2021-10-19 15:37:02 +08:00