diff --git a/fastly/domainmanagement/v1/tools/status/api_get.go b/fastly/domainmanagement/v1/tools/status/api_get.go index fe8ada301..35d9395cb 100644 --- a/fastly/domainmanagement/v1/tools/status/api_get.go +++ b/fastly/domainmanagement/v1/tools/status/api_get.go @@ -38,7 +38,7 @@ func Get(ctx context.Context, c *fastly.Client, g *GetInput) (*Status, error) { ro.Params["scope"] = string(*g.Scope) } - path := fastly.ToSafeURL("domains", "v1", "tools", "status") + path := fastly.ToSafeURL("domain-management", "v1", "tools", "status") resp, err := c.Get(ctx, path, ro) if err != nil { return nil, err diff --git a/fastly/domainmanagement/v1/tools/status/fixtures/get.yaml b/fastly/domainmanagement/v1/tools/status/fixtures/get.yaml index 92cdf59e2..d2c993e3b 100644 --- a/fastly/domainmanagement/v1/tools/status/fixtures/get.yaml +++ b/fastly/domainmanagement/v1/tools/status/fixtures/get.yaml @@ -1,46 +1,46 @@ --- version: 1 interactions: -- request: - body: "" - form: {} - headers: - User-Agent: - - FastlyGo/10.0.1 (+github.com/fastly/go-fastly; go1.24.2) - url: https://api.fastly.com/domains/v1/tools/status?domain=fastly-sdk-gofastly-testing.com - method: GET - response: - body: | - {"domain":"fastly-sdk-gofastly-testing.com","zone":"com","status":"undelegated inactive","tags":"generic"} - headers: - Accept-Ranges: - - bytes - Age: - - "1" - Cache-Control: - - no-store - Content-Type: - - application/json; charset=utf-8 - Date: - - Tue, 06 May 2025 16:45:36 GMT - Pragma: - - no-cache - Server: - - fastly - Strict-Transport-Security: - - max-age=31536000 - Vary: - - Accept-Encoding - Via: - - 1.1 varnish - X-Cache: - - MISS, MISS - X-Cache-Hits: - - "0" - X-Served-By: - - cache-lga21927-LGA, cache-lga21977-LGA - X-Timer: - - S1746549936.938745,VS0,VE550 - status: 200 OK - code: 200 - duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - FastlyGo/10.0.1 (+github.com/fastly/go-fastly; go1.24.2) + url: https://api.fastly.com/domain-management/v1/tools/status?domain=fastly-sdk-gofastly-testing.com + method: GET + response: + body: | + {"domain":"fastly-sdk-gofastly-testing.com","zone":"com","status":"undelegated inactive","tags":"generic"} + headers: + Accept-Ranges: + - bytes + Age: + - "1" + Cache-Control: + - no-store + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 May 2025 16:45:36 GMT + Pragma: + - no-cache + Server: + - fastly + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Accept-Encoding + Via: + - 1.1 varnish + X-Cache: + - MISS, MISS + X-Cache-Hits: + - "0" + X-Served-By: + - cache-lga21927-LGA, cache-lga21977-LGA + X-Timer: + - S1746549936.938745,VS0,VE550 + status: 200 OK + code: 200 + duration: "" diff --git a/fastly/domainmanagement/v1/tools/status/fixtures/get_error.yaml b/fastly/domainmanagement/v1/tools/status/fixtures/get_error.yaml index f69218148..3809e5d24 100644 --- a/fastly/domainmanagement/v1/tools/status/fixtures/get_error.yaml +++ b/fastly/domainmanagement/v1/tools/status/fixtures/get_error.yaml @@ -1,45 +1,45 @@ --- version: 1 interactions: -- request: - body: "" - form: {} - headers: - User-Agent: - - FastlyGo/10.1.0 (+github.com/fastly/go-fastly; go1.24.2) - url: https://api.fastly.com/domains/v1/tools/status?domain=fastly-sdk-gofastly-testing - method: GET - response: - body: '{"title":"Domain not found","status":400,"detail":"fastly-sdk-gofastly-testing"}' - headers: - Accept-Ranges: - - bytes - Age: - - "1" - Cache-Control: - - no-store - Content-Type: - - application/problem+json - Date: - - Wed, 21 May 2025 14:33:47 GMT - Pragma: - - no-cache - Server: - - fastly - Strict-Transport-Security: - - max-age=31536000 - Vary: - - Accept-Encoding - Via: - - 1.1 varnish - X-Cache: - - MISS, MISS - X-Cache-Hits: - - "0" - X-Served-By: - - cache-ewr-kewr1740082-EWR, cache-ewr-kewr1740040-EWR - X-Timer: - - S1747838028.703547,VS0,VE281 - status: 400 Bad Request - code: 400 - duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - FastlyGo/10.1.0 (+github.com/fastly/go-fastly; go1.24.2) + url: https://api.fastly.com/domain-management/v1/tools/status?domain=fastly-sdk-gofastly-testing + method: GET + response: + body: '{"title":"Domain not found","status":400,"detail":"fastly-sdk-gofastly-testing"}' + headers: + Accept-Ranges: + - bytes + Age: + - "1" + Cache-Control: + - no-store + Content-Type: + - application/problem+json + Date: + - Wed, 21 May 2025 14:33:47 GMT + Pragma: + - no-cache + Server: + - fastly + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Accept-Encoding + Via: + - 1.1 varnish + X-Cache: + - MISS, MISS + X-Cache-Hits: + - "0" + X-Served-By: + - cache-ewr-kewr1740082-EWR, cache-ewr-kewr1740040-EWR + X-Timer: + - S1747838028.703547,VS0,VE281 + status: 400 Bad Request + code: 400 + duration: "" diff --git a/fastly/domainmanagement/v1/tools/status/fixtures/get_estimate.yaml b/fastly/domainmanagement/v1/tools/status/fixtures/get_estimate.yaml index f9693f624..c5a1bf702 100644 --- a/fastly/domainmanagement/v1/tools/status/fixtures/get_estimate.yaml +++ b/fastly/domainmanagement/v1/tools/status/fixtures/get_estimate.yaml @@ -1,46 +1,46 @@ --- version: 1 interactions: -- request: - body: "" - form: {} - headers: - User-Agent: - - FastlyGo/10.0.1 (+github.com/fastly/go-fastly; go1.24.2) - url: https://api.fastly.com/domains/v1/tools/status?domain=fastly-sdk-gofastly-testing.com&scope=estimate - method: GET - response: - body: | - {"scope":"estimate","domain":"fastly-sdk-gofastly-testing.com","zone":"com","status":"undelegated","tags":"generic"} - headers: - Accept-Ranges: - - bytes - Age: - - "1" - Cache-Control: - - no-store - Content-Type: - - application/json; charset=utf-8 - Date: - - Tue, 06 May 2025 16:45:36 GMT - Pragma: - - no-cache - Server: - - fastly - Strict-Transport-Security: - - max-age=31536000 - Vary: - - Accept-Encoding - Via: - - 1.1 varnish - X-Cache: - - MISS, MISS - X-Cache-Hits: - - "0" - X-Served-By: - - cache-lga21990-LGA, cache-lga21977-LGA - X-Timer: - - S1746549936.938774,VS0,VE545 - status: 200 OK - code: 200 - duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - FastlyGo/10.0.1 (+github.com/fastly/go-fastly; go1.24.2) + url: https://api.fastly.com/domain-management/v1/tools/status?domain=fastly-sdk-gofastly-testing.com&scope=estimate + method: GET + response: + body: | + {"scope":"estimate","domain":"fastly-sdk-gofastly-testing.com","zone":"com","status":"undelegated","tags":"generic"} + headers: + Accept-Ranges: + - bytes + Age: + - "1" + Cache-Control: + - no-store + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 May 2025 16:45:36 GMT + Pragma: + - no-cache + Server: + - fastly + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Accept-Encoding + Via: + - 1.1 varnish + X-Cache: + - MISS, MISS + X-Cache-Hits: + - "0" + X-Served-By: + - cache-lga21990-LGA, cache-lga21977-LGA + X-Timer: + - S1746549936.938774,VS0,VE545 + status: 200 OK + code: 200 + duration: "" diff --git a/fastly/domainmanagement/v1/tools/status/fixtures/get_offers.yaml b/fastly/domainmanagement/v1/tools/status/fixtures/get_offers.yaml index 88fe00920..4dda2cc5d 100644 --- a/fastly/domainmanagement/v1/tools/status/fixtures/get_offers.yaml +++ b/fastly/domainmanagement/v1/tools/status/fixtures/get_offers.yaml @@ -1,46 +1,46 @@ --- version: 1 interactions: -- request: - body: "" - form: {} - headers: - User-Agent: - - FastlyGo/10.0.1 (+github.com/fastly/go-fastly; go1.24.2) - url: https://api.fastly.com/domains/v1/tools/status?domain=domainr-testing.org&scope=estimate - method: GET - response: - body: | - {"scope":"estimate","domain":"domainr-testing.org","zone":"org","status":"marketed priced transferable active","tags":"generic","offers":[{"vendor":"am.godaddy.com","price":"25000.00","currency":"USD"}]} - headers: - Accept-Ranges: - - bytes - Age: - - "77" - Cache-Control: - - no-store - Content-Type: - - application/json; charset=utf-8 - Date: - - Tue, 06 May 2025 20:14:22 GMT - Pragma: - - no-cache - Server: - - fastly - Strict-Transport-Security: - - max-age=31536000 - Vary: - - Accept-Encoding - Via: - - 1.1 varnish - X-Cache: - - HIT, MISS - X-Cache-Hits: - - "0" - X-Served-By: - - cache-lga21962-LGA, cache-lga21961-LGA - X-Timer: - - S1746562462.242932,VS0,VE174 - status: 200 OK - code: 200 - duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - FastlyGo/10.0.1 (+github.com/fastly/go-fastly; go1.24.2) + url: https://api.fastly.com/domain-management/v1/tools/status?domain=domainr-testing.org&scope=estimate + method: GET + response: + body: | + {"scope":"estimate","domain":"domainr-testing.org","zone":"org","status":"marketed priced transferable active","tags":"generic","offers":[{"vendor":"am.godaddy.com","price":"25000.00","currency":"USD"}]} + headers: + Accept-Ranges: + - bytes + Age: + - "77" + Cache-Control: + - no-store + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 May 2025 20:14:22 GMT + Pragma: + - no-cache + Server: + - fastly + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Accept-Encoding + Via: + - 1.1 varnish + X-Cache: + - HIT, MISS + X-Cache-Hits: + - "0" + X-Served-By: + - cache-lga21962-LGA, cache-lga21961-LGA + X-Timer: + - S1746562462.242932,VS0,VE174 + status: 200 OK + code: 200 + duration: "" diff --git a/fastly/domainmanagement/v1/tools/suggest/api_get.go b/fastly/domainmanagement/v1/tools/suggest/api_get.go index 2296350b2..80f13fb47 100644 --- a/fastly/domainmanagement/v1/tools/suggest/api_get.go +++ b/fastly/domainmanagement/v1/tools/suggest/api_get.go @@ -50,7 +50,7 @@ func Get(ctx context.Context, c *fastly.Client, g *GetInput) (*Suggestions, erro ro.Params["vendor"] = *g.Vendor } - path := fastly.ToSafeURL("domains", "v1", "tools", "suggest") + path := fastly.ToSafeURL("domain-management", "v1", "tools", "suggest") resp, err := c.Get(ctx, path, ro) if err != nil { return nil, err diff --git a/fastly/domainmanagement/v1/tools/suggest/fixtures/get.yaml b/fastly/domainmanagement/v1/tools/suggest/fixtures/get.yaml index f3013820d..359dcdf79 100644 --- a/fastly/domainmanagement/v1/tools/suggest/fixtures/get.yaml +++ b/fastly/domainmanagement/v1/tools/suggest/fixtures/get.yaml @@ -1,46 +1,46 @@ --- version: 1 interactions: -- request: - body: "" - form: {} - headers: - User-Agent: - - FastlyGo/10.0.1 (+github.com/fastly/go-fastly; go1.24.2) - url: https://api.fastly.com/domains/v1/tools/suggest?defaults=com&keywords=testing&query=fastly+testing - method: GET - response: - body: | - {"results":[{"domain":"fastlytest.ing","subdomain":"fastlytest.","zone":"ing"},{"domain":"fastlytesting.com","subdomain":"fastlytesting.","zone":"com"},{"domain":"fastlytesti.ng","subdomain":"fastlytesti.","zone":"ng"},{"domain":"fastlytest.i.ng","subdomain":"fastlytest.","zone":"i.ng"},{"domain":"fastlytesting.net","subdomain":"fastlytesting.","zone":"net"},{"domain":"fastlytesting.org","subdomain":"fastlytesting.","zone":"org"},{"domain":"fastlytesting.us","subdomain":"fastlytesting.","zone":"us"},{"domain":"fastlytesting.co.us","subdomain":"fastlytesting.","zone":"co.us"},{"domain":"fastlytest.in","subdomain":"fastlytest.","zone":"in","path":"/g"},{"domain":"fastlyte.st","subdomain":"fastlyte.","zone":"st","path":"/ing"},{"domain":"fastlyt.es","subdomain":"fastlyt.","zone":"es","path":"/ting"},{"domain":"fastl.yt","subdomain":"fastl.","zone":"yt","path":"/esting"},{"domain":"fast.ly","subdomain":"fast.","zone":"ly","path":"/testing"},{"domain":"fas.tl","subdomain":"fas.","zone":"tl","path":"/ytesting"},{"domain":"fa.st","subdomain":"fa.","zone":"st","path":"/lytesting"},{"domain":"f.as","subdomain":"f.","zone":"as","path":"/tlytesting"},{"domain":"fast","zone":"fast","path":"/lytesting"}]} - headers: - Accept-Ranges: - - bytes - Age: - - "1" - Cache-Control: - - no-store - Content-Type: - - application/json; charset=utf-8 - Date: - - Mon, 05 May 2025 20:37:36 GMT - Pragma: - - no-cache - Server: - - fastly - Strict-Transport-Security: - - max-age=31536000 - Vary: - - Accept-Encoding - Via: - - 1.1 varnish - X-Cache: - - MISS, MISS - X-Cache-Hits: - - "0" - X-Served-By: - - cache-ewr-kewr1740064-EWR, cache-ewr-kewr1740090-EWR - X-Timer: - - S1746477456.043588,VS0,VE241 - status: 200 OK - code: 200 - duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - FastlyGo/10.0.1 (+github.com/fastly/go-fastly; go1.24.2) + url: https://api.fastly.com/domain-management/v1/tools/suggest?defaults=com&keywords=testing&query=fastly+testing + method: GET + response: + body: | + {"results":[{"domain":"fastlytest.ing","subdomain":"fastlytest.","zone":"ing"},{"domain":"fastlytesting.com","subdomain":"fastlytesting.","zone":"com"},{"domain":"fastlytesti.ng","subdomain":"fastlytesti.","zone":"ng"},{"domain":"fastlytest.i.ng","subdomain":"fastlytest.","zone":"i.ng"},{"domain":"fastlytesting.net","subdomain":"fastlytesting.","zone":"net"},{"domain":"fastlytesting.org","subdomain":"fastlytesting.","zone":"org"},{"domain":"fastlytesting.us","subdomain":"fastlytesting.","zone":"us"},{"domain":"fastlytesting.co.us","subdomain":"fastlytesting.","zone":"co.us"},{"domain":"fastlytest.in","subdomain":"fastlytest.","zone":"in","path":"/g"},{"domain":"fastlyte.st","subdomain":"fastlyte.","zone":"st","path":"/ing"},{"domain":"fastlyt.es","subdomain":"fastlyt.","zone":"es","path":"/ting"},{"domain":"fastl.yt","subdomain":"fastl.","zone":"yt","path":"/esting"},{"domain":"fast.ly","subdomain":"fast.","zone":"ly","path":"/testing"},{"domain":"fas.tl","subdomain":"fas.","zone":"tl","path":"/ytesting"},{"domain":"fa.st","subdomain":"fa.","zone":"st","path":"/lytesting"},{"domain":"f.as","subdomain":"f.","zone":"as","path":"/tlytesting"},{"domain":"fast","zone":"fast","path":"/lytesting"}]} + headers: + Accept-Ranges: + - bytes + Age: + - "1" + Cache-Control: + - no-store + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 05 May 2025 20:37:36 GMT + Pragma: + - no-cache + Server: + - fastly + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Accept-Encoding + Via: + - 1.1 varnish + X-Cache: + - MISS, MISS + X-Cache-Hits: + - "0" + X-Served-By: + - cache-ewr-kewr1740064-EWR, cache-ewr-kewr1740090-EWR + X-Timer: + - S1746477456.043588,VS0,VE241 + status: 200 OK + code: 200 + duration: ""