Skip to content

Commit 300f42d

Browse files
authored
arvancloud: replace arvancloud.com by arvancloud.ir (#1771)
1 parent a7b11e0 commit 300f42d

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

docs/content/dns/zz_gen_arvancloud.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ slug: arvancloud
66
dnsprovider:
77
since: "v3.8.0"
88
code: "arvancloud"
9-
url: "https://arvancloud.com"
9+
url: "https://arvancloud.ir"
1010
---
1111

1212
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
1313
<!-- providers/dns/arvancloud/arvancloud.toml -->
1414
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
1515

1616

17-
Configuration for [ArvanCloud](https://arvancloud.com).
17+
Configuration for [ArvanCloud](https://arvancloud.ir).
1818

1919

2020
<!--more-->
@@ -60,7 +60,7 @@ More information [here]({{< ref "dns#configuration-and-credentials" >}}).
6060

6161
## More information
6262

63-
- [API documentation](https://www.arvancloud.com/docs/api/cdn/4.0)
63+
- [API documentation](https://www.arvancloud.ir/docs/api/cdn/4.0)
6464

6565
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
6666
<!-- providers/dns/arvancloud/arvancloud.toml -->

providers/dns/arvancloud/arvancloud.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Name = "ArvanCloud"
22
Description = ''''''
3-
URL = "https://arvancloud.com"
3+
URL = "https://arvancloud.ir"
44
Code = "arvancloud"
55
Since = "v3.8.0"
66

@@ -19,4 +19,4 @@ lego --email [email protected] --dns arvancloud --domains my.example.org run
1919
ARVANCLOUD_HTTP_TIMEOUT = "API request timeout"
2020

2121
[Links]
22-
API = "https://www.arvancloud.com/docs/api/cdn/4.0"
22+
API = "https://www.arvancloud.ir/docs/api/cdn/4.0"

providers/dns/arvancloud/internal/client.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
// defaultBaseURL represents the API endpoint to call.
15-
const defaultBaseURL = "https://napi.arvancloud.com"
15+
const defaultBaseURL = "https://napi.arvancloud.ir"
1616

1717
const authHeader = "Authorization"
1818

@@ -49,7 +49,7 @@ func (c *Client) GetTxtRecord(domain, name, value string) (*DNSRecord, error) {
4949
return nil, fmt.Errorf("could not find record: Domain: %s; Record: %s", domain, name)
5050
}
5151

52-
// https://www.arvancloud.com/docs/api/cdn/4.0#operation/dns_records.list
52+
// https://www.arvancloud.ir/docs/api/cdn/4.0#operation/dns_records.list
5353
func (c *Client) getRecords(domain, search string) ([]DNSRecord, error) {
5454
endpoint, err := c.createEndpoint("cdn", "4.0", "domains", domain, "dns-records")
5555
if err != nil {
@@ -95,7 +95,7 @@ func (c *Client) getRecords(domain, search string) ([]DNSRecord, error) {
9595
}
9696

9797
// CreateRecord creates a DNS record.
98-
// https://www.arvancloud.com/docs/api/cdn/4.0#operation/dns_records.create
98+
// https://www.arvancloud.ir/docs/api/cdn/4.0#operation/dns_records.create
9999
func (c *Client) CreateRecord(domain string, record DNSRecord) (*DNSRecord, error) {
100100
reqBody, err := json.Marshal(record)
101101
if err != nil {
@@ -137,7 +137,7 @@ func (c *Client) CreateRecord(domain string, record DNSRecord) (*DNSRecord, erro
137137
}
138138

139139
// DeleteRecord deletes a DNS record.
140-
// https://www.arvancloud.com/docs/api/cdn/4.0#operation/dns_records.remove
140+
// https://www.arvancloud.ir/docs/api/cdn/4.0#operation/dns_records.remove
141141
func (c *Client) DeleteRecord(domain, id string) error {
142142
endpoint, err := c.createEndpoint("cdn", "4.0", "domains", domain, "dns-records", id)
143143
if err != nil {

providers/dns/arvancloud/internal/fixtures/get_txt_record.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,16 +227,16 @@
227227
}
228228
],
229229
"links": {
230-
"first": "https://napi.arvancloud.com/4.0/domains/example.ir/dns-records?page=1",
231-
"last": "https://napi.arvancloud.com/4.0/domains/example.ir/dns-records?page=1",
230+
"first": "https://napi.arvancloud.ir/4.0/domains/example.ir/dns-records?page=1",
231+
"last": "https://napi.arvancloud.ir/4.0/domains/example.ir/dns-records?page=1",
232232
"prev": null,
233233
"next": null
234234
},
235235
"meta": {
236236
"current_page": 1,
237237
"from": 1,
238238
"last_page": 1,
239-
"path": "https://napi.arvancloud.com/4.0/domains/example.ir/dns-records",
239+
"path": "https://napi.arvancloud.ir/4.0/domains/example.ir/dns-records",
240240
"per_page": 300,
241241
"to": 8,
242242
"total": 8

0 commit comments

Comments
 (0)