diff --git a/CHANGELOG.md b/CHANGELOG.md index 9691f77ba..bdc38b160 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ ### Enhancements: +- feat(domainmanagement): add support for routing config domain link ([#875](https://github.com/fastly/go-fastly/pull/875)) + ### Bug fixes: ### Dependencies: diff --git a/fastly/domainmanagement/v1/domains/api_response.go b/fastly/domainmanagement/v1/domains/api_response.go index 5665b7a12..0749ce872 100644 --- a/fastly/domainmanagement/v1/domains/api_response.go +++ b/fastly/domainmanagement/v1/domains/api_response.go @@ -24,6 +24,9 @@ type Data struct { // FQDN is the fully-qualified domain name of the domain. Read-only // after creation. FQDN string `json:"fqdn"` + // RoutingConfigurationID is the routing config identifier associated with + // the domain, or nil if there is no association. + RoutingConfigurationID *string `json:"routing_configuration_id"` // ServiceID is the service_id associated with the domain or nil if there // is no association. ServiceID *string `json:"service_id"` diff --git a/fastly/domainmanagement/v1/domains/api_test.go b/fastly/domainmanagement/v1/domains/api_test.go index eb94c3aa2..9946a513a 100644 --- a/fastly/domainmanagement/v1/domains/api_test.go +++ b/fastly/domainmanagement/v1/domains/api_test.go @@ -3,9 +3,13 @@ package domains import ( "context" "errors" + "strings" "testing" "github.com/fastly/go-fastly/v17/fastly" + "github.com/fastly/go-fastly/v17/fastly/domainmanagement/v1/routingconfigs" + "github.com/fastly/go-fastly/v17/fastly/domainmanagement/v1/routingconfigs/paths" + "github.com/fastly/go-fastly/v17/fastly/domainmanagement/v1/routingconfigs/paths/rules" ) func TestClient_Domain(t *testing.T) { @@ -50,7 +54,7 @@ func TestClient_Domain(t *testing.T) { } else { var okErr bool for _, he := range httpError.Errors { - if he.Detail == "fqdn has already been taken" { + if strings.Contains(he.Detail, "already been taken") { okErr = true break } @@ -93,14 +97,62 @@ func TestClient_Domain(t *testing.T) { t.Errorf("bad fqdn: %q (%q)", d.FQDN, gd.FQDN) } + // Create and activate a routing config to associate with the domain in + // the Update step below (association requires an active routing config). + var rc *routingconfigs.Data + rcName := "gofastly-sdk-testing-domain-routing-config" + fastly.Record(t, "create_routing_config", func(c *fastly.Client) { + rc, err = routingconfigs.Create(context.TODO(), c, &routingconfigs.CreateInput{ + Name: new(rcName), + }) + }) + if err != nil { + t.Fatal(err) + } + + var rp *paths.Data + fastly.Record(t, "create_routing_config_path", func(c *fastly.Client) { + rp, err = paths.Create(context.TODO(), c, &paths.CreateInput{ + RoutingConfigID: &rc.RoutingConfigID, + Path: new("/"), + }) + }) + if err != nil { + t.Fatal(err) + } + + fastly.Record(t, "create_routing_config_rule", func(c *fastly.Client) { + _, err = rules.Create(context.TODO(), c, &rules.CreateInput{ + RoutingConfigID: &rc.RoutingConfigID, + PathID: &rp.PathID, + Action: &rules.Action{ + Type: "service", + Value: fastly.TestDeliveryServiceID, + }, + }) + }) + if err != nil { + t.Fatal(err) + } + + fastly.Record(t, "activate_routing_config", func(c *fastly.Client) { + _, err = routingconfigs.Activate(context.TODO(), c, &routingconfigs.ActivateInput{ + RoutingConfigID: &rc.RoutingConfigID, + }) + }) + if err != nil { + t.Fatal(err) + } + // Update var ud *Data descUpdated := "updated description" fastly.Record(t, "update", func(c *fastly.Client) { ud, err = Update(context.TODO(), c, &UpdateInput{ - Description: new(descUpdated), - DomainID: new(d.DomainID), - ServiceID: new(fastly.TestDeliveryServiceID), + Description: new(descUpdated), + DomainID: new(d.DomainID), + RoutingConfigurationID: fastly.NewNullable(rc.RoutingConfigID), + ServiceID: new(fastly.TestDeliveryServiceID), }) }) if err != nil { @@ -110,7 +162,10 @@ func TestClient_Domain(t *testing.T) { t.Errorf("bad description: %q (%q)", descUpdated, ud.Description) } if ud.ServiceID == nil || *ud.ServiceID != fastly.TestDeliveryServiceID { - t.Errorf("bad service id: %v", *ud.ServiceID) + t.Errorf("bad service id: %v", ud.ServiceID) + } + if ud.RoutingConfigurationID == nil || *ud.RoutingConfigurationID != rc.RoutingConfigID { + t.Errorf("bad routing configuration id: %v", ud.RoutingConfigurationID) } // Delete @@ -122,6 +177,25 @@ func TestClient_Domain(t *testing.T) { if err != nil { t.Fatal(err) } + + // Clean up the routing config created above. + fastly.Record(t, "deactivate_routing_config", func(c *fastly.Client) { + _, err = routingconfigs.Deactivate(context.TODO(), c, &routingconfigs.DeactivateInput{ + RoutingConfigID: &rc.RoutingConfigID, + }) + }) + if err != nil { + t.Fatal(err) + } + + fastly.Record(t, "delete_routing_config", func(c *fastly.Client) { + err = routingconfigs.Delete(context.TODO(), c, &routingconfigs.DeleteInput{ + RoutingConfigID: &rc.RoutingConfigID, + }) + }) + if err != nil { + t.Fatal(err) + } } func TestClient_GetDomain_validation(t *testing.T) { diff --git a/fastly/domainmanagement/v1/domains/api_update.go b/fastly/domainmanagement/v1/domains/api_update.go index eceb85b67..d96655659 100644 --- a/fastly/domainmanagement/v1/domains/api_update.go +++ b/fastly/domainmanagement/v1/domains/api_update.go @@ -15,6 +15,11 @@ type UpdateInput struct { Description *string `json:"description"` // DomainID is the domain identifier (required). DomainID *string `json:"-"` + // RoutingConfigurationID is the routing config identifier to associate + // with the domain (optional). Leave nil to leave the association + // unchanged, use fastly.NullValue[string]() to remove the association, or + // fastly.NewNullable(id) to set it. + RoutingConfigurationID *fastly.Nullable[string] `json:"routing_configuration_id,omitempty"` // ServiceID is the service_id associated with the domain or nil if there // is no association (optional) ServiceID *string `json:"service_id"` diff --git a/fastly/domainmanagement/v1/domains/fixtures/activate_routing_config.yaml b/fastly/domainmanagement/v1/domains/fixtures/activate_routing_config.yaml new file mode 100644 index 000000000..9a7f5bcd2 --- /dev/null +++ b/fastly/domainmanagement/v1/domains/fixtures/activate_routing_config.yaml @@ -0,0 +1,46 @@ +--- +version: 1 +interactions: +- request: + body: "" + form: {} + headers: + User-Agent: + - FastlyGo/17.5.0 (+github.com/fastly/go-fastly; go1.27.1) + url: https://api.fastly.com/domain-management/v1/routing-configs/5fXNeLtY5TFDuVIet0vzMH/activate + method: POST + response: + body: | + {"created_at":"2026-09-25T19:16:51Z","id":"5fXNeLtY5TFDuVIet0vzMH","links":{"paths":"/domain-management/v1/routing-configs/5fXNeLtY5TFDuVIet0vzMH/paths","self":"/domain-management/v1/routing-configs/5fXNeLtY5TFDuVIet0vzMH"},"name":"gofastly-sdk-testing-domain-routing-config","state":"active","updated_at":"2026-09-25T19:16:51Z"} + headers: + Accept-Ranges: + - bytes + Cache-Control: + - no-store + Content-Length: + - "330" + Content-Type: + - application/json + Date: + - Fri, 25 Sep 2026 19:16:51 GMT + Pragma: + - no-cache + Server: + - fastly istio-envoy + Strict-Transport-Security: + - max-age=31536000 + Via: + - 1.1 varnish, 1.1 varnish + X-Cache: + - MISS, MISS + X-Cache-Hits: + - 0, 0 + X-Envoy-Upstream-Service-Time: + - "86" + X-Served-By: + - cache-chi-kmdw8640075-CHI, cache-ewr-kewr1740063-EWR + X-Timer: + - S1790363812.668650,VS0,VE119 + status: 200 OK + code: 200 + duration: "" diff --git a/fastly/domainmanagement/v1/domains/fixtures/create.yaml b/fastly/domainmanagement/v1/domains/fixtures/create.yaml index 2d3f30d58..2e446779b 100644 --- a/fastly/domainmanagement/v1/domains/fixtures/create.yaml +++ b/fastly/domainmanagement/v1/domains/fixtures/create.yaml @@ -10,41 +10,43 @@ interactions: Content-Type: - application/json User-Agent: - - FastlyGo/11.0.0 (+github.com/fastly/go-fastly; go1.24.2) + - FastlyGo/17.5.0 (+github.com/fastly/go-fastly; go1.27.1) url: https://api.fastly.com/domain-management/v1/domains method: POST response: - body: '{"id":"DMrAbNVlJcZgwFP2ISUNOQ","created_at":"2025-08-01T18:18:48.000Z","fqdn":"1.fastly-sdk-gofastly-testing.com","updated_at":"2025-08-01T18:18:48.000Z","service_id":null,"activated":false,"verified":false,"description":"my - description"}' + body: '{"id":"pPYOMApBAcxbIJGjtyXcmg","created_at":"2026-09-25T19:16:50.000Z","fqdn":"1.fastly-sdk-gofastly-testing.com","updated_at":"2026-09-25T19:16:50.000Z","service_id":null,"activated":false,"verified":false,"description":"my + description","routing_configuration_id":null}' headers: Accept-Ranges: - bytes Cache-Control: - no-store Content-Length: - - "238" + - "270" Content-Type: - application/json Date: - - Fri, 01 Aug 2025 18:18:49 GMT + - Fri, 25 Sep 2026 19:16:50 GMT Pragma: - no-cache Server: - - fastly + - fastly istio-envoy Strict-Transport-Security: - max-age=31536000 Via: - - 1.1 varnish + - 1.1 varnish, 1.1 varnish X-Cache: - - MISS + - MISS, MISS X-Cache-Hits: - - "0" + - 0, 0 X-Content-Type-Options: - nosniff + X-Envoy-Upstream-Service-Time: + - "133" X-Served-By: - - cache-chi-kigq8000025-CHI + - cache-chi-kigq8000067-CHI, cache-ewr-kewr1740063-EWR X-Timer: - - S1754072329.862217,VS0,VE143 + - S1790363811.609516,VS0,VE166 status: 201 Created code: 201 duration: "" diff --git a/fastly/domainmanagement/v1/domains/fixtures/create_duplicate.yaml b/fastly/domainmanagement/v1/domains/fixtures/create_duplicate.yaml index 591ad6018..acfff7f75 100644 --- a/fastly/domainmanagement/v1/domains/fixtures/create_duplicate.yaml +++ b/fastly/domainmanagement/v1/domains/fixtures/create_duplicate.yaml @@ -10,41 +10,43 @@ interactions: Content-Type: - application/json User-Agent: - - FastlyGo/11.0.0 (+github.com/fastly/go-fastly; go1.24.2) + - FastlyGo/17.5.0 (+github.com/fastly/go-fastly; go1.27.1) url: https://api.fastly.com/domain-management/v1/domains method: POST response: - body: '{"errors":[{"title":"Invalid value for fqdn","detail":"fqdn has already - been taken"}]}' + body: '{"errors":[{"title":"Invalid value for fqdn","detail":"fqdn Domain name + has already been taken"}]}' headers: Accept-Ranges: - bytes Cache-Control: - no-store Content-Length: - - "86" + - "98" Content-Type: - application/json Date: - - Fri, 01 Aug 2025 18:18:49 GMT + - Fri, 25 Sep 2026 19:16:50 GMT Pragma: - no-cache Server: - - fastly + - fastly istio-envoy Strict-Transport-Security: - max-age=31536000 Via: - - 1.1 varnish + - 1.1 varnish, 1.1 varnish X-Cache: - - MISS + - MISS, MISS X-Cache-Hits: - - "0" + - 0, 0 X-Content-Type-Options: - nosniff + X-Envoy-Upstream-Service-Time: + - "99" X-Served-By: - - cache-chi-kigq8000025-CHI + - cache-chi-kigq8000067-CHI, cache-ewr-kewr1740063-EWR X-Timer: - - S1754072329.033324,VS0,VE103 + - S1790363811.797630,VS0,VE128 status: 400 Bad Request code: 400 duration: "" diff --git a/fastly/domainmanagement/v1/domains/fixtures/create_routing_config.yaml b/fastly/domainmanagement/v1/domains/fixtures/create_routing_config.yaml new file mode 100644 index 000000000..49215d423 --- /dev/null +++ b/fastly/domainmanagement/v1/domains/fixtures/create_routing_config.yaml @@ -0,0 +1,50 @@ +--- +version: 1 +interactions: +- request: + body: '{"name":"gofastly-sdk-testing-domain-routing-config"}' + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - FastlyGo/17.5.0 (+github.com/fastly/go-fastly; go1.27.1) + url: https://api.fastly.com/domain-management/v1/routing-configs + method: POST + response: + body: | + {"created_at":"2026-09-25T19:16:51.2945526Z","id":"5fXNeLtY5TFDuVIet0vzMH","links":{"paths":"/domain-management/v1/routing-configs/5fXNeLtY5TFDuVIet0vzMH/paths","self":"/domain-management/v1/routing-configs/5fXNeLtY5TFDuVIet0vzMH"},"name":"gofastly-sdk-testing-domain-routing-config"} + headers: + Accept-Ranges: + - bytes + Cache-Control: + - no-store + Content-Length: + - "285" + Content-Type: + - application/json + Date: + - Fri, 25 Sep 2026 19:16:51 GMT + Pragma: + - no-cache + Server: + - fastly istio-envoy + Strict-Transport-Security: + - max-age=31536000 + Via: + - 1.1 varnish, 1.1 varnish + X-Cache: + - MISS, MISS + X-Cache-Hits: + - 0, 0 + X-Envoy-Upstream-Service-Time: + - "41" + X-Served-By: + - cache-chi-kigq8000076-CHI, cache-ewr-kewr1740063-EWR + X-Timer: + - S1790363811.269910,VS0,VE78 + status: 201 Created + code: 201 + duration: "" diff --git a/fastly/domainmanagement/v1/domains/fixtures/create_routing_config_path.yaml b/fastly/domainmanagement/v1/domains/fixtures/create_routing_config_path.yaml new file mode 100644 index 000000000..9f1966c9e --- /dev/null +++ b/fastly/domainmanagement/v1/domains/fixtures/create_routing_config_path.yaml @@ -0,0 +1,50 @@ +--- +version: 1 +interactions: +- request: + body: '{"path":"/"}' + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - FastlyGo/17.5.0 (+github.com/fastly/go-fastly; go1.27.1) + url: https://api.fastly.com/domain-management/v1/routing-configs/5fXNeLtY5TFDuVIet0vzMH/paths + method: POST + response: + body: | + {"created_at":"2026-09-25T19:16:51.434812078Z","id":"3X6WxgbVKUuuIfQSoA6BwY","links":{"rules":"/domain-management/v1/routing-configs/5fXNeLtY5TFDuVIet0vzMH/paths/3X6WxgbVKUuuIfQSoA6BwY/rules","self":"/domain-management/v1/routing-configs/5fXNeLtY5TFDuVIet0vzMH/paths/3X6WxgbVKUuuIfQSoA6BwY"},"path":"/"} + headers: + Accept-Ranges: + - bytes + Cache-Control: + - no-store + Content-Length: + - "304" + Content-Type: + - application/json + Date: + - Fri, 25 Sep 2026 19:16:51 GMT + Pragma: + - no-cache + Server: + - fastly istio-envoy + Strict-Transport-Security: + - max-age=31536000 + Via: + - 1.1 varnish, 1.1 varnish + X-Cache: + - MISS, MISS + X-Cache-Hits: + - 0, 0 + X-Envoy-Upstream-Service-Time: + - "93" + X-Served-By: + - cache-chi-kigq8000074-CHI, cache-ewr-kewr1740063-EWR + X-Timer: + - S1790363811.366243,VS0,VE124 + status: 201 Created + code: 201 + duration: "" diff --git a/fastly/domainmanagement/v1/domains/fixtures/create_routing_config_rule.yaml b/fastly/domainmanagement/v1/domains/fixtures/create_routing_config_rule.yaml new file mode 100644 index 000000000..5afb0ba49 --- /dev/null +++ b/fastly/domainmanagement/v1/domains/fixtures/create_routing_config_rule.yaml @@ -0,0 +1,50 @@ +--- +version: 1 +interactions: +- request: + body: '{"action":{"type":"service","value":"kKJb5bOFI47uHeBVluGfX1"}}' + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - FastlyGo/17.5.0 (+github.com/fastly/go-fastly; go1.27.1) + url: https://api.fastly.com/domain-management/v1/routing-configs/5fXNeLtY5TFDuVIet0vzMH/paths/3X6WxgbVKUuuIfQSoA6BwY/rules + method: POST + response: + body: | + {"action":{"type":"service","value":"kKJb5bOFI47uHeBVluGfX1"},"conditions":[],"created_at":"2026-09-25T19:16:51.592333029Z","id":"27GwHEyQgqILVhu1tMgPCb","is_default":true,"updated_at":"2026-09-25T19:16:51.592333029Z"} + headers: + Accept-Ranges: + - bytes + Cache-Control: + - no-store + Content-Length: + - "219" + Content-Type: + - application/json + Date: + - Fri, 25 Sep 2026 19:16:51 GMT + Pragma: + - no-cache + Server: + - fastly istio-envoy + Strict-Transport-Security: + - max-age=31536000 + Via: + - 1.1 varnish, 1.1 varnish + X-Cache: + - MISS, MISS + X-Cache-Hits: + - 0, 0 + X-Envoy-Upstream-Service-Time: + - "91" + X-Served-By: + - cache-chi-kigq8000159-CHI, cache-ewr-kewr1740063-EWR + X-Timer: + - S1790363812.524227,VS0,VE123 + status: 201 Created + code: 201 + duration: "" diff --git a/fastly/domainmanagement/v1/domains/fixtures/deactivate_routing_config.yaml b/fastly/domainmanagement/v1/domains/fixtures/deactivate_routing_config.yaml new file mode 100644 index 000000000..bd3ddc55d --- /dev/null +++ b/fastly/domainmanagement/v1/domains/fixtures/deactivate_routing_config.yaml @@ -0,0 +1,46 @@ +--- +version: 1 +interactions: +- request: + body: "" + form: {} + headers: + User-Agent: + - FastlyGo/17.5.0 (+github.com/fastly/go-fastly; go1.27.1) + url: https://api.fastly.com/domain-management/v1/routing-configs/5fXNeLtY5TFDuVIet0vzMH/deactivate + method: POST + response: + body: | + {"created_at":"2026-09-25T19:16:51Z","id":"5fXNeLtY5TFDuVIet0vzMH","name":"gofastly-sdk-testing-domain-routing-config","state":"draft-only","updated_at":"2026-09-25T19:16:51Z"} + headers: + Accept-Ranges: + - bytes + Cache-Control: + - no-store + Content-Length: + - "177" + Content-Type: + - application/json + Date: + - Fri, 25 Sep 2026 19:16:52 GMT + Pragma: + - no-cache + Server: + - fastly istio-envoy + Strict-Transport-Security: + - max-age=31536000 + Via: + - 1.1 varnish, 1.1 varnish + X-Cache: + - MISS, MISS + X-Cache-Hits: + - 0, 0 + X-Envoy-Upstream-Service-Time: + - "58" + X-Served-By: + - cache-chi-klot8100133-CHI, cache-ewr-kewr1740063-EWR + X-Timer: + - S1790363812.203199,VS0,VE94 + status: 200 OK + code: 200 + duration: "" diff --git a/fastly/domainmanagement/v1/domains/fixtures/delete.yaml b/fastly/domainmanagement/v1/domains/fixtures/delete.yaml index 90a501d37..fd4162770 100644 --- a/fastly/domainmanagement/v1/domains/fixtures/delete.yaml +++ b/fastly/domainmanagement/v1/domains/fixtures/delete.yaml @@ -6,8 +6,8 @@ interactions: form: {} headers: User-Agent: - - FastlyGo/11.0.0 (+github.com/fastly/go-fastly; go1.24.2) - url: https://api.fastly.com/domain-management/v1/domains/DMrAbNVlJcZgwFP2ISUNOQ + - FastlyGo/17.5.0 (+github.com/fastly/go-fastly; go1.27.1) + url: https://api.fastly.com/domain-management/v1/domains/pPYOMApBAcxbIJGjtyXcmg method: DELETE response: body: "" @@ -17,25 +17,27 @@ interactions: Cache-Control: - no-store Date: - - Fri, 01 Aug 2025 18:18:50 GMT + - Fri, 25 Sep 2026 19:16:52 GMT Pragma: - no-cache Server: - - fastly + - fastly istio-envoy Strict-Transport-Security: - max-age=31536000 Via: - - 1.1 varnish + - 1.1 varnish, 1.1 varnish X-Cache: - - MISS + - MISS, MISS X-Cache-Hits: - - "0" + - 0, 0 X-Content-Type-Options: - nosniff + X-Envoy-Upstream-Service-Time: + - "100" X-Served-By: - - cache-chi-kigq8000025-CHI + - cache-chi-kigq8000053-CHI, cache-ewr-kewr1740063-EWR X-Timer: - - S1754072330.897727,VS0,VE110 + - S1790363812.044464,VS0,VE134 status: 204 No Content code: 204 duration: "" diff --git a/fastly/domainmanagement/v1/domains/fixtures/delete_routing_config.yaml b/fastly/domainmanagement/v1/domains/fixtures/delete_routing_config.yaml new file mode 100644 index 000000000..98771006f --- /dev/null +++ b/fastly/domainmanagement/v1/domains/fixtures/delete_routing_config.yaml @@ -0,0 +1,41 @@ +--- +version: 1 +interactions: +- request: + body: "" + form: {} + headers: + User-Agent: + - FastlyGo/17.5.0 (+github.com/fastly/go-fastly; go1.27.1) + url: https://api.fastly.com/domain-management/v1/routing-configs/5fXNeLtY5TFDuVIet0vzMH + method: DELETE + response: + body: "" + headers: + Accept-Ranges: + - bytes + Cache-Control: + - no-store + Date: + - Fri, 25 Sep 2026 19:16:55 GMT + Pragma: + - no-cache + Server: + - fastly istio-envoy + Strict-Transport-Security: + - max-age=31536000 + Via: + - 1.1 varnish, 1.1 varnish + X-Cache: + - MISS, MISS + X-Cache-Hits: + - 0, 0 + X-Envoy-Upstream-Service-Time: + - "2663" + X-Served-By: + - cache-chi-kigq8000060-CHI, cache-ewr-kewr1740063-EWR + X-Timer: + - S1790363812.320505,VS0,VE2695 + status: 204 No Content + code: 204 + duration: "" diff --git a/fastly/domainmanagement/v1/domains/fixtures/get.yaml b/fastly/domainmanagement/v1/domains/fixtures/get.yaml index 6bc183bde..0b52b6fbe 100644 --- a/fastly/domainmanagement/v1/domains/fixtures/get.yaml +++ b/fastly/domainmanagement/v1/domains/fixtures/get.yaml @@ -6,41 +6,43 @@ interactions: form: {} headers: User-Agent: - - FastlyGo/11.0.0 (+github.com/fastly/go-fastly; go1.24.2) - url: https://api.fastly.com/domain-management/v1/domains/DMrAbNVlJcZgwFP2ISUNOQ + - FastlyGo/17.5.0 (+github.com/fastly/go-fastly; go1.27.1) + url: https://api.fastly.com/domain-management/v1/domains/pPYOMApBAcxbIJGjtyXcmg method: GET response: - body: '{"id":"DMrAbNVlJcZgwFP2ISUNOQ","created_at":"2025-08-01T18:18:48.000Z","fqdn":"1.fastly-sdk-gofastly-testing.com","updated_at":"2025-08-01T18:18:48.000Z","service_id":null,"activated":false,"verified":false,"description":"my - description"}' + body: '{"id":"pPYOMApBAcxbIJGjtyXcmg","created_at":"2026-09-25T19:16:50.000Z","fqdn":"1.fastly-sdk-gofastly-testing.com","updated_at":"2026-09-25T19:16:50.000Z","service_id":null,"activated":false,"verified":false,"description":"my + description","routing_configuration_id":null}' headers: Accept-Ranges: - bytes Cache-Control: - no-store Content-Length: - - "238" + - "270" Content-Type: - application/json Date: - - Fri, 01 Aug 2025 18:18:49 GMT + - Fri, 25 Sep 2026 19:16:51 GMT Pragma: - no-cache Server: - - fastly + - fastly istio-envoy Strict-Transport-Security: - max-age=31536000 Via: - - 1.1 varnish + - 1.1 varnish, 1.1 varnish X-Cache: - - MISS + - MISS, MISS X-Cache-Hits: - - "0" + - 0, 0 X-Content-Type-Options: - nosniff + X-Envoy-Upstream-Service-Time: + - "81" X-Served-By: - - cache-chi-kigq8000025-CHI + - cache-chi-kigq8000053-CHI, cache-ewr-kewr1740063-EWR X-Timer: - - S1754072329.377679,VS0,VE75 + - S1790363811.131798,VS0,VE117 status: 200 OK code: 200 duration: "" diff --git a/fastly/domainmanagement/v1/domains/fixtures/list.yaml b/fastly/domainmanagement/v1/domains/fixtures/list.yaml index e3505c97b..eaa614fbe 100644 --- a/fastly/domainmanagement/v1/domains/fixtures/list.yaml +++ b/fastly/domainmanagement/v1/domains/fixtures/list.yaml @@ -6,41 +6,43 @@ interactions: form: {} headers: User-Agent: - - FastlyGo/11.0.0 (+github.com/fastly/go-fastly; go1.24.2) + - FastlyGo/17.5.0 (+github.com/fastly/go-fastly; go1.27.1) url: https://api.fastly.com/domain-management/v1/domains?fqdn=1.fastly-sdk-gofastly-testing.com&limit=10&sort=fqdn method: GET response: - body: '{"data":[{"id":"DMrAbNVlJcZgwFP2ISUNOQ","created_at":"2025-08-01T18:18:48.000Z","fqdn":"1.fastly-sdk-gofastly-testing.com","updated_at":"2025-08-01T18:18:48.000Z","service_id":null,"activated":false,"verified":false,"description":"my - description"}],"meta":{"total":1,"limit":10}}' + body: '{"data":[{"id":"pPYOMApBAcxbIJGjtyXcmg","created_at":"2026-09-25T19:16:50.000Z","fqdn":"1.fastly-sdk-gofastly-testing.com","updated_at":"2026-09-25T19:16:50.000Z","service_id":null,"activated":false,"verified":false,"description":"my + description","routing_configuration_id":null}],"meta":{"total":1,"limit":10}}' headers: Accept-Ranges: - bytes Cache-Control: - no-store Content-Length: - - "279" + - "311" Content-Type: - application/json Date: - - Fri, 01 Aug 2025 18:18:49 GMT + - Fri, 25 Sep 2026 19:16:51 GMT Pragma: - no-cache Server: - - fastly + - fastly istio-envoy Strict-Transport-Security: - max-age=31536000 Via: - - 1.1 varnish + - 1.1 varnish, 1.1 varnish X-Cache: - - MISS + - MISS, MISS X-Cache-Hits: - - "0" + - 0, 0 X-Content-Type-Options: - nosniff + X-Envoy-Upstream-Service-Time: + - "123" X-Served-By: - - cache-chi-kigq8000025-CHI + - cache-chi-kigq8000147-CHI, cache-ewr-kewr1740063-EWR X-Timer: - - S1754072329.195334,VS0,VE80 + - S1790363811.945839,VS0,VE157 status: 200 OK code: 200 duration: "" diff --git a/fastly/domainmanagement/v1/domains/fixtures/update.yaml b/fastly/domainmanagement/v1/domains/fixtures/update.yaml index c8d0f6633..4306b8f70 100644 --- a/fastly/domainmanagement/v1/domains/fixtures/update.yaml +++ b/fastly/domainmanagement/v1/domains/fixtures/update.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"description":"updated description","service_id":"kKJb5bOFI47uHeBVluGfX1"}' + body: '{"description":"updated description","routing_configuration_id":"5fXNeLtY5TFDuVIet0vzMH","service_id":"kKJb5bOFI47uHeBVluGfX1"}' form: {} headers: Accept: @@ -10,41 +10,43 @@ interactions: Content-Type: - application/json User-Agent: - - FastlyGo/11.0.0 (+github.com/fastly/go-fastly; go1.24.2) - url: https://api.fastly.com/domain-management/v1/domains/DMrAbNVlJcZgwFP2ISUNOQ + - FastlyGo/17.5.0 (+github.com/fastly/go-fastly; go1.27.1) + url: https://api.fastly.com/domain-management/v1/domains/pPYOMApBAcxbIJGjtyXcmg method: PATCH response: - body: '{"id":"DMrAbNVlJcZgwFP2ISUNOQ","created_at":"2025-08-01T18:18:48.000Z","fqdn":"1.fastly-sdk-gofastly-testing.com","updated_at":"2025-08-01T18:18:49.000Z","service_id":"kKJb5bOFI47uHeBVluGfX1","activated":false,"verified":false,"description":"updated - description"}' + body: '{"id":"pPYOMApBAcxbIJGjtyXcmg","created_at":"2026-09-25T19:16:50.000Z","fqdn":"1.fastly-sdk-gofastly-testing.com","updated_at":"2026-09-25T19:16:51.000Z","service_id":"kKJb5bOFI47uHeBVluGfX1","activated":false,"verified":false,"description":"updated + description","routing_configuration_id":"5fXNeLtY5TFDuVIet0vzMH"}' headers: Accept-Ranges: - bytes Cache-Control: - no-store Content-Length: - - "263" + - "315" Content-Type: - application/json Date: - - Fri, 01 Aug 2025 18:18:49 GMT + - Fri, 25 Sep 2026 19:16:52 GMT Pragma: - no-cache Server: - - fastly + - fastly istio-envoy Strict-Transport-Security: - max-age=31536000 Via: - - 1.1 varnish + - 1.1 varnish, 1.1 varnish X-Cache: - - MISS + - MISS, MISS X-Cache-Hits: - - "0" + - 0, 0 X-Content-Type-Options: - nosniff + X-Envoy-Upstream-Service-Time: + - "171" X-Served-By: - - cache-chi-kigq8000025-CHI + - cache-chi-kigq8000053-CHI, cache-ewr-kewr1740063-EWR X-Timer: - - S1754072330.559256,VS0,VE226 + - S1790363812.808208,VS0,VE201 status: 200 OK code: 200 duration: ""