Skip to content

Commit efd93b2

Browse files
authored
Merge pull request #465 from ovh/yomovh/order_doc_improvement
Improve the order documentation
2 parents f9cf081 + b26f98e commit efd93b2

13 files changed

+38
-25
lines changed

Diff for: ovh/resource_cloud_project_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ import (
1414
)
1515

1616
const testAccCloudProjectBasic = `
17+
data "ovh_me" "myaccount" {}
18+
1719
data "ovh_order_cart" "mycart" {
18-
ovh_subsidiary = "fr"
19-
description = "%s"
20+
ovh_subsidiary = data.ovh_me.myaccount.ovh_subsidiary
2021
}
2122
2223
data "ovh_order_cart_product_plan" "cloud" {
@@ -127,7 +128,6 @@ func TestAccResourceCloudProject_basic(t *testing.T) {
127128
config := fmt.Sprintf(
128129
testAccCloudProjectBasic,
129130
desc,
130-
desc,
131131
)
132132
resource.Test(t, resource.TestCase{
133133
PreCheck: func() { testAccPreCheckOrderCloudProject(t) },

Diff for: website/docs/d/order_cart.html.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ Use this data source to create a temporary order cart to retrieve information or
99
## Example Usage
1010

1111
```hcl
12+
data "ovh_me" "myaccount" {}
13+
1214
data "ovh_order_cart" "mycart" {
13-
ovh_subsidiary = "fr"
14-
description = "my cart"
15+
ovh_subsidiary = data.ovh_me.myaccount.ovh_subsidiary
1516
}
1617
```
1718

Diff for: website/docs/d/order_cart_product.html.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ Use this data source to retrieve information of order cart product products.
99
## Example Usage
1010

1111
```hcl
12+
data "ovh_me" "myaccount" {}
13+
1214
data "ovh_order_cart" "mycart" {
13-
ovh_subsidiary = "fr"
14-
description = "my cart"
15+
ovh_subsidiary = data.ovh_me.myaccount.ovh_subsidiary
1516
}
1617
1718
data "ovh_order_cart_product" "plans" {

Diff for: website/docs/d/order_cart_product_options.html.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ Use this data source to retrieve information of order cart product options.
99
## Example Usage
1010

1111
```hcl
12+
data "ovh_me" "myaccount" {}
13+
1214
data "ovh_order_cart" "mycart" {
13-
ovh_subsidiary = "fr"
14-
description = "my cart"
15+
ovh_subsidiary = data.ovh_me.myaccount.ovh_subsidiary
1516
}
1617
1718
data "ovh_order_cart_product_options" "options" {

Diff for: website/docs/d/order_cart_product_options_plan.html.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ Use this data source to retrieve information of order cart product options plan.
99
## Example Usage
1010

1111
```hcl
12+
data "ovh_me" "myaccount" {}
13+
1214
data "ovh_order_cart" "mycart" {
13-
ovh_subsidiary = "fr"
14-
description = "my cart"
15+
ovh_subsidiary = data.ovh_me.myaccount.ovh_subsidiary
1516
}
1617
1718
data "ovh_order_cart_product_options_plan" "plan" {

Diff for: website/docs/d/order_cart_product_plan.html.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ Use this data source to retrieve information of order cart product plan.
99
## Example Usage
1010

1111
```hcl
12+
data "ovh_me" "myaccount" {}
13+
1214
data "ovh_order_cart" "mycart" {
13-
ovh_subsidiary = "fr"
14-
description = "my cart"
15+
ovh_subsidiary = data.ovh_me.myaccount.ovh_subsidiary
1516
}
1617
1718
data "ovh_order_cart_product_plan" "plan" {

Diff for: website/docs/r/cloud_project.html.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ Orders a public cloud project.
1313
## Example Usage
1414

1515
```hcl
16+
data "ovh_me" "myaccount" {}
17+
1618
data "ovh_order_cart" "mycart" {
17-
ovh_subsidiary = "fr"
18-
description = "my cloud order cart"
19+
ovh_subsidiary = data.ovh_me.myaccount.ovh_subsidiary
1920
}
2021
2122
data "ovh_order_cart_product_plan" "cloud" {

Diff for: website/docs/r/hosting_privatedatabase.html.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ Creates an OVHcloud managed private cloud database.
1313
## Example Usage
1414

1515
```hcl
16+
data "ovh_me" "myaccount" {}
17+
1618
data "ovh_order_cart" "mycart" {
17-
ovh_subsidiary = "fr"
18-
description = "my privatedatabase order cart"
19+
ovh_subsidiary = data.ovh_me.myaccount.ovh_subsidiary
1920
}
2021
2122
data "ovh_order_cart_product_plan" "database" {

Diff for: website/docs/r/ip_service.html.markdown

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ Use with caution.
1818
## Example Usage
1919

2020
```hcl
21+
data "ovh_me" "myaccount" {}
22+
2123
data "ovh_order_cart" "mycart" {
2224
ovh_subsidiary = "fr"
23-
description = "order ip block"
2425
}
2526
2627
data "ovh_order_cart_product_plan" "ipblock" {

Diff for: website/docs/r/iploadbalancing.html.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ Use with caution.
1717
## Example Usage
1818

1919
```hcl
20+
data "ovh_me" "myaccount" {}
21+
2022
data "ovh_order_cart" "mycart" {
21-
ovh_subsidiary = "fr"
22-
description = "mycart"
23+
ovh_subsidiary = data.ovh_me.myaccount.ovh_subsidiary
2324
}
2425
2526
data "ovh_order_cart_product_plan" "iplb" {

Diff for: website/docs/r/ovh_domain_zone.html.markdown

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ Creates a domain zone.
1313
## Example Usage
1414

1515
```hcl
16+
data "ovh_me" "myaccount" {}
17+
1618
data "ovh_order_cart" "mycart" {
17-
ovh_subsidiary = "fr"
19+
ovh_subsidiary = data.ovh_me.myaccount.ovh_subsidiary
1820
}
1921
2022
data "ovh_order_cart_product_plan" "zone" {

Diff for: website/docs/r/vrack.html.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ Orders a vrack.
1515
## Example Usage
1616

1717
```hcl
18+
data "ovh_me" "myaccount" {}
19+
1820
data "ovh_order_cart" "mycart" {
19-
ovh_subsidiary = "fr"
20-
description = "my vrack order cart"
21+
ovh_subsidiary = data.ovh_me.myaccount.ovh_subsidiary
2122
}
2223
2324
data "ovh_order_cart_product_plan" "vrack" {

Diff for: website/docs/r/vrack_ip.html.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ Attach an IP block to a VRack.
1010
## Example Usage
1111

1212
```hcl
13+
data "ovh_me" "myaccount" {}
14+
1315
data "ovh_order_cart" "mycart" {
14-
ovh_subsidiary = "fr"
15-
description = "my cart"
16+
ovh_subsidiary = data.ovh_me.myaccount.ovh_subsidiary
1617
}
1718
1819
data "ovh_order_cart_product_plan" "vrack" {

0 commit comments

Comments
 (0)