diff --git a/blueprints/thousandeyes-kiota/resources/endpoint_label.blueprint.json b/blueprints/thousandeyes-kiota/resources/endpoint_label.blueprint.json index 47ef93d1..4b449e0a 100644 --- a/blueprints/thousandeyes-kiota/resources/endpoint_label.blueprint.json +++ b/blueprints/thousandeyes-kiota/resources/endpoint_label.blueprint.json @@ -367,7 +367,19 @@ }, { "kind": "literal", - "expr": "nil" + "expr": "&abstractions.RequestConfiguration[endpoint.LabelsLabelsItemRequestBuilderGetQueryParameters]{QueryParameters: &endpoint.LabelsLabelsItemRequestBuilderGetQueryParameters{Expand: []models.Endpoint_Agent_Labels_API_ExpandLabelOptions{models.FILTERS_ENDPOINT_AGENT_LABELS_API_EXPANDLABELOPTIONS}}}", + "imports": [ + { + "path": "github.com/microsoft/kiota-abstractions-go", + "alias": "abstractions" + }, + { + "path": "github.com/deploymenttheory/terraform-plugin-framework-codegen/pilot/thousandeyes-kiota/internal/sdk/endpoint" + }, + { + "path": "github.com/deploymenttheory/terraform-plugin-framework-codegen/pilot/thousandeyes-kiota/internal/sdk/models" + } + ] } ] } diff --git a/cmd/tfpfgen/sdk.go b/cmd/tfpfgen/sdk.go index 7db4ee1f..d1249fd2 100644 --- a/cmd/tfpfgen/sdk.go +++ b/cmd/tfpfgen/sdk.go @@ -10,6 +10,7 @@ import ( "path/filepath" "strings" + "github.com/deploymenttheory/terraform-plugin-framework-codegen/internal/docpatch" "github.com/deploymenttheory/terraform-plugin-framework-codegen/internal/kiota" "github.com/deploymenttheory/terraform-plugin-framework-codegen/internal/snapshot" ) @@ -97,6 +98,15 @@ func runSDKGenerate(args []string) error { return err } + // Document patches: curated, recording-justified corrections applied to a copy + // of the snapshot when the published document is provably wrong about the + // live API. The snapshot's own bytes never change; generation reads the + // patched copy, and with no patches present the snapshot is read directly. + patches, err := docpatch.Load(filepath.Join(o.openapiDir, docpatch.DirName)) + if err != nil { + return err + } + module := o.module if module == "" { module, err = embedModulePath(o.out) @@ -117,12 +127,25 @@ func runSDKGenerate(args []string) error { if o.dryRun { log.Printf("snapshot: %s", snap.SpecPath()) + for _, p := range patches { + log.Printf("would apply %s: %s", p.File, p.Justification) + } log.Printf("would run: kiota generate -l go -d %s -o %s -n %s -c %s --exclude-backward-compatible", gen.Description, gen.Out, gen.Module, gen.ClientName) log.Printf("dry run; nothing was generated") return nil } + if len(patches) > 0 { + patched, err := patchedDocument(snap, patches) + if err != nil { + return err + } + defer func() { _ = os.RemoveAll(filepath.Dir(patched)) }() + gen.Description = patched + log.Printf("applied %d document patch(es) from %s", len(patches), filepath.Join(o.openapiDir, docpatch.DirName)) + } + // The version gate: a committed tree names the kiota that produced it, and // running any other version rewrites the whole tree as an inexplicable diff. lock, hadLock, err := kiota.ReadLock(o.out) @@ -149,6 +172,19 @@ func runSDKGenerate(args []string) error { return err } + // A patched generation read a temporary copy, and a temp path must not + // reach the committed lock: point descriptionLocation back at the pinned + // snapshot the patched copy was derived from. + if gen.Description != snap.SpecPath() { + rel, err := relDescription(o.out, snap.SpecPath()) + if err != nil { + return err + } + if err := kiota.SetDescriptionLocation(o.out, rel); err != nil { + return err + } + } + if o.mode == sdkModeExternal { if err := ensureSDKModule(o.out, module); err != nil { return err @@ -158,6 +194,43 @@ func runSDKGenerate(args []string) error { return sdkPostcheck(o.out) } +// patchedDocument applies the loaded patches to the snapshot's document and +// writes the result into a fresh temp directory, returning the file path. +func patchedDocument(snap snapshot.Snapshot, patches []docpatch.Patch) (string, error) { + raw, err := os.ReadFile(snap.SpecPath()) //nolint:gosec // the verified snapshot's own path + if err != nil { + return "", err + } + patched, err := docpatch.Apply(raw, patches) + if err != nil { + return "", err + } + + dir, err := os.MkdirTemp("", "tfpfgen-patched-spec-*") + if err != nil { + return "", err + } + path := filepath.Join(dir, "api.yaml") + if err := os.WriteFile(path, patched, 0o600); err != nil { + return "", err + } + return path, nil +} + +// relDescription is the lock-file spelling of the snapshot's location: the +// same relative-to-the-SDK-root form kiota itself writes. +func relDescription(out, spec string) (string, error) { + absOut, err := filepath.Abs(out) + if err != nil { + return "", err + } + absSpec, err := filepath.Abs(spec) + if err != nil { + return "", err + } + return filepath.Rel(absOut, absSpec) +} + // embedModulePath derives kiota's -n for an embedded SDK: the enclosing // module's path joined with the SDK root's relative directory -- kiota's own // rule for generating inside an existing module. diff --git a/docs/cli.md b/docs/cli.md index 1e866e0f..9d7c83a9 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -160,6 +160,21 @@ one module. Under `-mode external` the tree gets a minimal generated `go.mod` own repository. `-check` regenerates into scratch and byte-compares — the only proof that the committed tree still follows from the pinned snapshot. +**Document patches.** When a published document is provably wrong about the +live API (a probe recording shows the API accepting and echoing an enum value +the document omits), or shaped in a way that provably defeats deterministic +generation (an anonymous schema kiota names unstably), a *document patch* +records the divergence: +`/patches/*.patch.json`, each holding a `justification` naming +the evidence and RFC 6902 `operations` scoped to it. Patches apply to a copy +(the snapshot's bytes and checksum never change; application preserves +document order, which kiota's inline-schema naming depends on), generation +reads the copy, and `-check` applies them identically, so a patch is part of +what the committed tree provably follows from. When the vendor fixes the +document, an `add` that finds its value already present refuses as *stale* — +the prompt to delete the patch. With no patches directory, the snapshot is +read directly. + ## `blueprint` ### `blueprint draft` diff --git a/docs/glossary.md b/docs/glossary.md index 83fa2ad9..694db23f 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -8,6 +8,7 @@ without adding it here first. |---|---| | OpenAPI document | The upstream API description as its vendor publishes it; never called a spec or a specification. | | snapshot | A pinned, committed copy of an OpenAPI document, fetched by `openapi fetch` and stored under `openapi/` so every derivation is reproducible. | +| document patch | A curated, evidence-justified RFC 6902 correction under `openapi//patches/`, applied to a copy of the snapshot before `sdk generate` reads it — for a document that is provably wrong about the live API, or shaped in a way that provably defeats deterministic generation. | | blueprint | The committed JSON intermediate representation the generator builds a provider from — schema plus bindings, wire mappings and observed behaviour. | | draft | A blueprint or scenario not yet fit for the pipeline, held under a `.draft.json` name the pipeline's loaders cannot open. | | promote | To rename a draft to its canonical filename, and nothing else — a git-visible act with no content change. | diff --git a/go.mod b/go.mod index c84b443c..8eddfa40 100644 --- a/go.mod +++ b/go.mod @@ -8,6 +8,7 @@ require ( github.com/pb33f/libopenapi v0.38.7 golang.org/x/mod v0.38.0 golang.org/x/tools v0.48.0 + gopkg.in/yaml.v3 v3.0.1 mvdan.cc/gofumpt v0.11.0 ) diff --git a/go.sum b/go.sum index 52cd3cca..4f55f043 100644 --- a/go.sum +++ b/go.sum @@ -45,6 +45,9 @@ golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek= golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/tools v0.48.0 h1:3+hClM1aLL5mjMKm5ovokw9epgRXPuu2tILgismM6RE= golang.org/x/tools v0.48.0/go.mod h1:08xX0orndb/F7jJxGDicx061tyd5pcMto75YMAXr6lk= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= mvdan.cc/gofumpt v0.11.0 h1:0H01XB95PnN2QgCSR9ELdZyTlJqNZ7181B0BTMh5VZc= diff --git a/internal/docpatch/docpatch.go b/internal/docpatch/docpatch.go new file mode 100644 index 00000000..3dbe91c4 --- /dev/null +++ b/internal/docpatch/docpatch.go @@ -0,0 +1,330 @@ +// Package docpatch applies curated corrections to a pinned OpenAPI snapshot +// before an SDK is generated from it. +// +// A snapshot is immutable evidence of what the vendor published, and it stays +// that way. But a published specification is sometimes provably wrong about +// the API it describes -- a probe recording shows the live API accepting and +// echoing an enum value the document omits -- and a generator that trusts the +// document then builds an SDK that cannot express reality. A closed Kiota +// enumeration is the sharp end: the missing value is unrepresentable in both +// directions, refused on write and silently dropped on read. +// +// A patch is the curated record of one such divergence: a JSON file holding a +// justification (which recording proves the document wrong) and RFC 6902 +// operations scoped to what the evidence supports. Patches apply to a copy -- +// the snapshot's own bytes and checksum never change -- and generation reads +// the patched copy. When the vendor fixes the document, an add finding its +// value already present refuses with "stale", which is the prompt to delete +// the patch rather than let it rot. +// +// Application works on the YAML node tree, not a decoded map, because +// document order is load-bearing downstream: kiota resolves naming collisions +// between structurally identical inline schemas by encounter order, so a +// patched copy must differ from the snapshot by exactly the patched nodes and +// nothing else. +package docpatch + +import ( + "encoding/json" + "fmt" + "os" + "path/filepath" + "reflect" + "sort" + "strconv" + "strings" + + "gopkg.in/yaml.v3" +) + +// Suffix is what names a patch file inside a patches directory. +const Suffix = ".patch.json" + +// DirName is the conventional patches directory beside an openapi dir's +// snapshots, e.g. openapi/thousandeyes/patches/. +const DirName = "patches" + +// Operation is one RFC 6902 operation. Value is required for add, replace and +// test; forbidden for remove. +type Operation struct { + Op string `json:"op"` + Path string `json:"path"` + Value any `json:"value,omitempty"` +} + +// Patch is one curated correction file. +type Patch struct { + // Justification names the evidence: which recording (or vendor statement) + // proves the published document wrong. Required -- an unjustified patch is + // indistinguishable from wishful thinking. + Justification string `json:"justification"` + Operations []Operation `json:"operations"` + + // File is the path the patch was loaded from, for error messages. + File string `json:"-"` +} + +// Load reads every *.patch.json in dir, sorted by name so application order +// is stable. A missing directory is simply no patches. +func Load(dir string) ([]Patch, error) { + entries, err := os.ReadDir(dir) + if os.IsNotExist(err) { + return nil, nil + } + if err != nil { + return nil, err + } + + var patches []Patch + for _, e := range entries { + if e.IsDir() || !strings.HasSuffix(e.Name(), Suffix) { + continue + } + path := filepath.Join(dir, e.Name()) + data, err := os.ReadFile(path) //nolint:gosec // enumerated from the operator-supplied dir + if err != nil { + return nil, err + } + var p Patch + if err := json.Unmarshal(data, &p); err != nil { + return nil, fmt.Errorf("%s is not a usable document patch: %w", path, err) + } + if p.Justification == "" { + return nil, fmt.Errorf("%s has no justification; a patch must name the evidence "+ + "(a recording, a vendor statement) that proves the document wrong", path) + } + if len(p.Operations) == 0 { + return nil, fmt.Errorf("%s declares no operations", path) + } + p.File = path + patches = append(patches, p) + } + + sort.Slice(patches, func(i, j int) bool { return patches[i].File < patches[j].File }) + return patches, nil +} + +// Apply applies every patch in order to the YAML document and re-encodes it, +// preserving document order and node styles so the copy differs from the +// snapshot by exactly the patched nodes. +func Apply(specYAML []byte, patches []Patch) ([]byte, error) { + var root yaml.Node + if err := yaml.Unmarshal(specYAML, &root); err != nil { + return nil, fmt.Errorf("the snapshot is not usable YAML: %w", err) + } + if root.Kind != yaml.DocumentNode || len(root.Content) == 0 { + return nil, fmt.Errorf("the snapshot is not a single YAML document") + } + + for _, p := range patches { + for i, op := range p.Operations { + if err := apply(root.Content[0], op); err != nil { + return nil, fmt.Errorf("%s operation %d (%s %s): %w", p.File, i+1, op.Op, op.Path, err) + } + } + } + + out, err := yaml.Marshal(&root) + if err != nil { + return nil, err + } + return out, nil +} + +// apply performs one operation against the document's top node. +func apply(top *yaml.Node, op Operation) error { + switch op.Op { + case "add", "replace", "remove", "test": + default: + return fmt.Errorf("unsupported op %q (add, replace, remove and test exist)", op.Op) + } + + tokens, err := pointerTokens(op.Path) + if err != nil { + return err + } + if len(tokens) == 0 { + return fmt.Errorf("the whole-document path %q is not patchable", op.Path) + } + + parent, err := descend(top, tokens[:len(tokens)-1]) + if err != nil { + return err + } + last := tokens[len(tokens)-1] + + switch parent.Kind { + case yaml.MappingNode: + return applyToMapping(parent, last, op) + case yaml.SequenceNode: + return applyToSequence(parent, last, op) + default: + return fmt.Errorf("the parent of %q is neither an object nor an array", last) + } +} + +func applyToMapping(node *yaml.Node, key string, op Operation) error { + at := -1 + for i := 0; i+1 < len(node.Content); i += 2 { + if node.Content[i].Value == key { + at = i + break + } + } + + switch op.Op { + case "add", "replace": + if op.Op == "replace" && at < 0 { + return fmt.Errorf("nothing exists at %q to replace", key) + } + if op.Op == "add" && at >= 0 && nodeEqual(node.Content[at+1], op.Value) { + return fmt.Errorf("the document already contains this value; the patch is stale -- " + + "the vendor has fixed the specification, so delete the patch") + } + value, err := encode(op.Value) + if err != nil { + return err + } + if at >= 0 { + node.Content[at+1] = value + return nil + } + node.Content = append(node.Content, + &yaml.Node{Kind: yaml.ScalarNode, Value: key}, value) + case "remove": + if at < 0 { + return fmt.Errorf("nothing exists at %q to remove", key) + } + node.Content = append(node.Content[:at], node.Content[at+2:]...) + case "test": + if at < 0 || !nodeEqual(node.Content[at+1], op.Value) { + return fmt.Errorf("test failed: %q does not hold the expected value", key) + } + } + return nil +} + +func applyToSequence(node *yaml.Node, token string, op Operation) error { + if token == "-" { + if op.Op != "add" { + return fmt.Errorf("only add can address the end of an array") + } + for _, v := range node.Content { + if nodeEqual(v, op.Value) { + return fmt.Errorf("the array already contains %v; the patch is stale -- "+ + "the vendor has fixed the specification, so delete the patch", op.Value) + } + } + value, err := encode(op.Value) + if err != nil { + return err + } + node.Content = append(node.Content, value) + return nil + } + + idx, err := strconv.Atoi(token) + if err != nil || idx < 0 || idx >= len(node.Content) { + return fmt.Errorf("%q is not an index inside an array of %d", token, len(node.Content)) + } + switch op.Op { + case "add", "replace": + value, encErr := encode(op.Value) + if encErr != nil { + return encErr + } + if op.Op == "replace" { + node.Content[idx] = value + return nil + } + node.Content = append(node.Content, nil) + copy(node.Content[idx+1:], node.Content[idx:]) + node.Content[idx] = value + case "remove": + node.Content = append(node.Content[:idx], node.Content[idx+1:]...) + case "test": + if !nodeEqual(node.Content[idx], op.Value) { + return fmt.Errorf("test failed: index %d does not hold the expected value", idx) + } + } + return nil +} + +// descend walks the node tree to the node a pointer prefix names. +func descend(node *yaml.Node, tokens []string) (*yaml.Node, error) { + for _, t := range tokens { + switch node.Kind { + case yaml.MappingNode: + found := false + for i := 0; i+1 < len(node.Content); i += 2 { + if node.Content[i].Value == t { + node = node.Content[i+1] + found = true + break + } + } + if !found { + return nil, fmt.Errorf("nothing exists at %q", t) + } + case yaml.SequenceNode: + idx, err := strconv.Atoi(t) + if err != nil || idx < 0 || idx >= len(node.Content) { + return nil, fmt.Errorf("%q is not an index inside an array of %d", t, len(node.Content)) + } + node = node.Content[idx] + default: + return nil, fmt.Errorf("%q names a child of a scalar, which has none", t) + } + } + return node, nil +} + +// encode turns a patch value into a node, styled the way the rest of the +// document reads. +func encode(v any) (*yaml.Node, error) { + n := &yaml.Node{} + if err := n.Encode(v); err != nil { + return nil, err + } + return n, nil +} + +// nodeEqual compares a node's decoded value with a patch value through a JSON +// normalisation, because the patch arrived as JSON (numbers are float64) and +// the document as YAML (numbers are int where they look like one). +func nodeEqual(n *yaml.Node, v any) bool { + var got any + if err := n.Decode(&got); err != nil { + return false + } + return reflect.DeepEqual(jsonNormal(got), jsonNormal(v)) +} + +func jsonNormal(v any) any { + data, err := json.Marshal(v) + if err != nil { + return v + } + var out any + if json.Unmarshal(data, &out) != nil { + return v + } + return out +} + +// pointerTokens splits an RFC 6901 JSON pointer into unescaped tokens. +func pointerTokens(pointer string) ([]string, error) { + if pointer == "" { + return nil, nil + } + if !strings.HasPrefix(pointer, "/") { + return nil, fmt.Errorf("the path %q is not a JSON pointer (it must start with /)", pointer) + } + parts := strings.Split(pointer[1:], "/") + for i, p := range parts { + p = strings.ReplaceAll(p, "~1", "/") + p = strings.ReplaceAll(p, "~0", "~") + parts[i] = p + } + return parts, nil +} diff --git a/internal/docpatch/docpatch_test.go b/internal/docpatch/docpatch_test.go new file mode 100644 index 00000000..13b5fdbc --- /dev/null +++ b/internal/docpatch/docpatch_test.go @@ -0,0 +1,156 @@ +package docpatch + +import ( + "os" + "path/filepath" + "strings" + "testing" + + "gopkg.in/yaml.v3" +) + +const spec = ` +openapi: 3.0.1 +components: + schemas: + RepeatType: + type: string + enum: + - day + - week + Window: + type: object + properties: + name: + type: string +` + +func decode(t *testing.T, data []byte) map[string]any { + t.Helper() + var doc map[string]any + if err := yaml.Unmarshal(data, &doc); err != nil { + t.Fatalf("Apply returned unusable YAML: %v", err) + } + return doc +} + +func enumOf(t *testing.T, doc map[string]any) []any { + t.Helper() + schemas := doc["components"].(map[string]any)["schemas"].(map[string]any) + return schemas["RepeatType"].(map[string]any)["enum"].([]any) +} + +func TestUnit_SpecPatch_AddsAnEnumValue(t *testing.T) { + t.Parallel() + + out, err := Apply([]byte(spec), []Patch{{ + Justification: "recording x", + Operations: []Operation{ + {Op: "test", Path: "/components/schemas/RepeatType/enum/0", Value: "day"}, + {Op: "add", Path: "/components/schemas/RepeatType/enum/-", Value: "none"}, + }, + }}) + if err != nil { + t.Fatalf("Apply: %v", err) + } + + enum := enumOf(t, decode(t, out)) + if len(enum) != 3 || enum[2] != "none" { + t.Errorf("enum = %v, want day, week, none", enum) + } +} + +func TestUnit_SpecPatch_RefusesAStalePatch(t *testing.T) { + t.Parallel() + + _, err := Apply([]byte(spec), []Patch{{ + Justification: "recording x", + Operations: []Operation{ + {Op: "add", Path: "/components/schemas/RepeatType/enum/-", Value: "week"}, + }, + }}) + if err == nil || !strings.Contains(err.Error(), "stale") { + t.Errorf("an add of an already-present value must refuse as stale, got: %v", err) + } +} + +func TestUnit_SpecPatch_TestOpGuardsTheShape(t *testing.T) { + t.Parallel() + + _, err := Apply([]byte(spec), []Patch{{ + Justification: "recording x", + Operations: []Operation{ + {Op: "test", Path: "/components/schemas/RepeatType/enum/0", Value: "month"}, + }, + }}) + if err == nil || !strings.Contains(err.Error(), "test failed") { + t.Errorf("a failed test op must refuse, got: %v", err) + } +} + +func TestUnit_SpecPatch_ReplaceAndRemove(t *testing.T) { + t.Parallel() + + out, err := Apply([]byte(spec), []Patch{{ + Justification: "recording x", + Operations: []Operation{ + {Op: "replace", Path: "/components/schemas/RepeatType/enum/1", Value: "month"}, + {Op: "remove", Path: "/components/schemas/Window/properties/name"}, + }, + }}) + if err != nil { + t.Fatalf("Apply: %v", err) + } + + doc := decode(t, out) + if enum := enumOf(t, doc); enum[1] != "month" { + t.Errorf("enum[1] = %v after replace", enum[1]) + } + props := doc["components"].(map[string]any)["schemas"].(map[string]any)["Window"].(map[string]any)["properties"].(map[string]any) + if _, ok := props["name"]; ok { + t.Error("remove left the property behind") + } +} + +func TestUnit_SpecPatch_LoadRequiresJustification(t *testing.T) { + t.Parallel() + + dir := t.TempDir() + patch := `{"operations":[{"op":"add","path":"/x","value":1}]}` + if err := os.WriteFile(filepath.Join(dir, "a.patch.json"), []byte(patch), 0o600); err != nil { + t.Fatal(err) + } + + if _, err := Load(dir); err == nil || !strings.Contains(err.Error(), "justification") { + t.Errorf("a patch without justification must refuse to load, got: %v", err) + } +} + +func TestUnit_SpecPatch_LoadOrdersByName(t *testing.T) { + t.Parallel() + + dir := t.TempDir() + for _, name := range []string{"b.patch.json", "a.patch.json"} { + p := `{"justification":"recording x","operations":[{"op":"add","path":"/x","value":1}]}` + if err := os.WriteFile(filepath.Join(dir, name), []byte(p), 0o600); err != nil { + t.Fatal(err) + } + } + + patches, err := Load(dir) + if err != nil { + t.Fatalf("Load: %v", err) + } + if len(patches) != 2 || !strings.HasSuffix(patches[0].File, "a.patch.json") { + t.Errorf("patches must apply in name order, got %v", patches) + } +} + +func TestUnit_SpecPatch_LoadToleratesAMissingDirectory(t *testing.T) { + t.Parallel() + + patches, err := Load(filepath.Join(t.TempDir(), "absent")) + if err != nil || patches != nil { + t.Errorf("a missing patches directory is simply no patches, got %v, %v", patches, err) + } +} diff --git a/internal/kiota/kiota.go b/internal/kiota/kiota.go index f900aa2e..40326e84 100644 --- a/internal/kiota/kiota.go +++ b/internal/kiota/kiota.go @@ -57,6 +57,32 @@ func ReadLock(dir string) (Lock, bool, error) { return l, true, nil } +// descriptionLocation matches the lock's one path-dependent field, for the +// targeted rewrite SetDescriptionLocation performs. +var descriptionLocation = regexp.MustCompile(`("descriptionLocation"\s*:\s*)"[^"]*"`) + +// SetDescriptionLocation rewrites the lock's descriptionLocation in place, +// touching no other byte. A generation that read a patched temporary copy of +// the snapshot calls this so the committed lock names the pinned document the +// copy was derived from rather than a path that no longer exists. +func SetDescriptionLocation(dir, location string) error { + path := filepath.Join(dir, LockFileName) + data, err := os.ReadFile(path) //nolint:gosec // fixed name under an operator-supplied dir + if err != nil { + return err + } + + if !descriptionLocation.Match(data) { + return fmt.Errorf("%s carries no descriptionLocation to rewrite", path) + } + rewritten := descriptionLocation.ReplaceAll(data, + []byte(`${1}"`+strings.ReplaceAll(location, `\`, `/`)+`"`)) + if bytes.Equal(data, rewritten) { + return nil + } + return os.WriteFile(path, rewritten, 0o600) +} + // semver matches the leading version in `kiota --version` output, which // carries build metadata after a plus (e.g. "1.34.1+heads/main..."). var semver = regexp.MustCompile(`\d+\.\d+\.\d+`) diff --git a/internal/kiota/lock_test.go b/internal/kiota/lock_test.go new file mode 100644 index 00000000..c12ad68c --- /dev/null +++ b/internal/kiota/lock_test.go @@ -0,0 +1,55 @@ +package kiota + +import ( + "os" + "path/filepath" + "strings" + "testing" +) + +// TestUnit_Kiota_SetDescriptionLocationRewritesOneField proves the rewrite +// touches exactly the path field: a patched generation reads a temporary copy +// of the snapshot, and the temp path must not reach the committed lock. +func TestUnit_Kiota_SetDescriptionLocationRewritesOneField(t *testing.T) { + t.Parallel() + + dir := t.TempDir() + lock := `{ + "descriptionHash": "ABC", + "descriptionLocation": "/tmp/tfpfgen-patched-spec-123/api.yaml", + "kiotaVersion": "1.34.1" +} +` + if err := os.WriteFile(filepath.Join(dir, LockFileName), []byte(lock), 0o600); err != nil { + t.Fatal(err) + } + + if err := SetDescriptionLocation(dir, "../../openapi/thousandeyes/7.0.98/api.yaml"); err != nil { + t.Fatalf("SetDescriptionLocation: %v", err) + } + + data, err := os.ReadFile(filepath.Join(dir, LockFileName)) + if err != nil { + t.Fatal(err) + } + got := string(data) + if !strings.Contains(got, `"descriptionLocation": "../../openapi/thousandeyes/7.0.98/api.yaml"`) { + t.Errorf("the location was not rewritten:\n%s", got) + } + if !strings.Contains(got, `"descriptionHash": "ABC"`) || !strings.Contains(got, `"kiotaVersion": "1.34.1"`) { + t.Errorf("other fields must survive byte-for-byte:\n%s", got) + } +} + +func TestUnit_Kiota_SetDescriptionLocationRefusesALockWithoutOne(t *testing.T) { + t.Parallel() + + dir := t.TempDir() + if err := os.WriteFile(filepath.Join(dir, LockFileName), []byte(`{}`), 0o600); err != nil { + t.Fatal(err) + } + + if err := SetDescriptionLocation(dir, "x"); err == nil { + t.Error("a lock with no descriptionLocation must refuse the rewrite") + } +} diff --git a/openapi/thousandeyes/patches/alerts-api-repeat-type-none.patch.json b/openapi/thousandeyes/patches/alerts-api-repeat-type-none.patch.json new file mode 100644 index 00000000..9408ae62 --- /dev/null +++ b/openapi/thousandeyes/patches/alerts-api-repeat-type-none.patch.json @@ -0,0 +1,15 @@ +{ + "justification": "The live API accepts and echoes repeat.type=\"none\" for alert suppression windows -- recordings/thousandeyes/alert_suppression_window/7.0.98-t1785764488786, where the accepted create request and its response both carry \"type\": \"none\" -- but the published enum declares only day, week, month and custom. A closed Kiota enumeration makes the missing value unrepresentable in both directions: refused on write, silently dropped on read.", + "operations": [ + { + "op": "test", + "path": "/components/schemas/Alerts_API_RepeatType/enum", + "value": ["day", "week", "month", "custom"] + }, + { + "op": "add", + "path": "/components/schemas/Alerts_API_RepeatType/enum/-", + "value": "none" + } + ] +} diff --git a/openapi/thousandeyes/patches/endpoint-agents-agent-transfer-anonymous-allof.patch.json b/openapi/thousandeyes/patches/endpoint-agents-agent-transfer-anonymous-allof.patch.json new file mode 100644 index 00000000..999d7071 --- /dev/null +++ b/openapi/thousandeyes/patches/endpoint-agents-agent-transfer-anonymous-allof.patch.json @@ -0,0 +1,30 @@ +{ + "justification": "Endpoint_Agents_API_AgentTransfer wraps its one object in a single-member allOf, leaving the member anonymous. kiota 1.34.1 synthesizes names for anonymous schemas and dedupes structurally identical ones with an unstable canonical winner: roughly one generation in five emits this model as models/agents.go and the rest as models/proxies.go (same shape, flipped name), which makes `sdk generate -check` fail on a tree that is not actually stale. allOf with a single member is definitionally identical to that member, so collapsing it changes no wire contract and gives the model its component's own stable name.", + "operations": [ + { + "op": "test", + "path": "/components/schemas/Endpoint_Agents_API_AgentTransfer/allOf", + "value": [ + { + "type": "object", + "properties": { + "agentId": { "$ref": "#/components/schemas/Endpoint_Agents_API_EndpointAgentId" }, + "fromAid": { "$ref": "#/components/schemas/Endpoint_Agents_API_AccountId" }, + "toAid": { "$ref": "#/components/schemas/Endpoint_Agents_API_AccountId" } + } + } + ] + }, + { "op": "remove", "path": "/components/schemas/Endpoint_Agents_API_AgentTransfer/allOf" }, + { "op": "add", "path": "/components/schemas/Endpoint_Agents_API_AgentTransfer/type", "value": "object" }, + { + "op": "add", + "path": "/components/schemas/Endpoint_Agents_API_AgentTransfer/properties", + "value": { + "agentId": { "$ref": "#/components/schemas/Endpoint_Agents_API_EndpointAgentId" }, + "fromAid": { "$ref": "#/components/schemas/Endpoint_Agents_API_AccountId" }, + "toAid": { "$ref": "#/components/schemas/Endpoint_Agents_API_AccountId" } + } + } + ] +} diff --git a/pilot/thousandeyes-kiota/.tfpfgen/manifest.json b/pilot/thousandeyes-kiota/.tfpfgen/manifest.json index ba1d5529..41bc8f64 100644 --- a/pilot/thousandeyes-kiota/.tfpfgen/manifest.json +++ b/pilot/thousandeyes-kiota/.tfpfgen/manifest.json @@ -4,497 +4,497 @@ "files": [ { "path": "internal/provider/actions.go", - "sha256": "4684bff4fc6034aebf9c0de62e54419e74036924800ee479a0c9f83bc066cd2d", + "sha256": "48f0a3a4afee8b9c8c996be08c667d1048fad5a28a763a3253f82115a35ee14e", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/provider/datasources.go", - "sha256": "c13c7c1f4911b7a2cf287b90aa383631e876b201c583ced8d43b28c0841c8d47", + "sha256": "564d5bec6f34f3d8f30d200ba811a408d3d8d4b1575852edc6cceb524ca74d77", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/provider/ephemerals.go", - "sha256": "5d92bd688df59680b1834e762a3f8200bc6da20fc26706131d006d1abb5e02db", + "sha256": "44c4ac85cee622431119ca567e26831adf8b6f022614a53afdc5c5f7abd6b07b", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/provider/list_resources.go", - "sha256": "07803a621f6f313a2e15d0fe0abc7d1a3e848e85611e4e8736832072b0a0ce1e", + "sha256": "f460cd16e701d2097ce79f8bcf68224a435d77af1f6cce7e4aa7a0d5786b5e63", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/provider/resources.go", - "sha256": "dee0f9151fdd8e8ec6bc07b6431539d531078d0688724a5e3db714c17e8f5d7f", + "sha256": "5f0aeffe9c99c96289853b2f1de63cd9ecde596771c961d806692458b4f88126", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/action.go", - "sha256": "5d1908fac415256485686b4c4067b369cd16bd2113ade7ac8476e086e4b1015e", + "sha256": "6c50f4738d724d2948324946c0eaebc7c89b2a67243db6c65760af15bd8b2907", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/action_acceptance_test.go", - "sha256": "9e3dfaa3f39f77f240bd63693fe6b20245d252dfd827f46c61a8948a0f0ddc6d", + "sha256": "9314b17dadd7c6826c8a0d31bea51bbe1281f907f697a31e749719a6d27dac29", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/invoke.go", - "sha256": "20bd516026c3b3ac78c9624fa6b8329ead5c79abd7352feb762ac3b29a884bf0", + "sha256": "b093489343fb4d1be874627e8582da580be5ea9388ba283efcfbd896c8b3621f", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/model.go", - "sha256": "973fa43f9738f631d5b8589546517d099f3b954e6ef5033c0e50b528a8ed29ac", + "sha256": "a271cd5994fac38593131634c5c806da65d8ee500311cb1e513ae20786ab405e", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/testdata/action.tf", - "sha256": "98703121080e548137584f6fbdab1c30e10fd63b3487db12a418e0be270a6d73", + "sha256": "09e3da54b1aa0346e388974abd4a8972098d49f8f5717a5374958219b34d3944", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tag/datasource.go", - "sha256": "50351bc465baa420a7731956bc4f64c45c4d18cbdb7bfc97b62536df14215826", + "sha256": "559f412790a5f71be76e6db6f2f064a46822f01bb44e01886bcc1b94aae3d1fe", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tag/datasource_acceptance_test.go", - "sha256": "038ac9cac80e69efd5802ec07c53c52e4bcd2ccc333284124c12cc8b68bcb32f", + "sha256": "d3438b5d18f1067b019fa19df9a43d1600a6b2db92be79b6cc63ec9cc9122a1d", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tag/model.go", - "sha256": "d8d95b3ada77bef8746a902c68df665f66f59800eb222187970f09d5d921e875", + "sha256": "a4afddba7123a78ad7077d5a13cab62b2212e0a90564533b7b18efdf5d6e54a8", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tag/read.go", - "sha256": "c860b8b85943bf14a57f69ffe26aa5fc12d366a34889704999e0bf2735df1821", + "sha256": "7bad8c0c71b8f6bc4fa52e7bd028fd5417e2e807c48c79b8ce64aa6245ca07ee", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tag/seed_helper_test.go", - "sha256": "5c0296dbb434a676b867d259d345c3ae7f8155d944d5ce7ed14ed20268ba9d29", + "sha256": "7bc93299a17689930110f723388e6c5e27f5394edd1b21e437d6148d2c317c64", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tag/state.go", - "sha256": "cf697f3c3a343082d16dd8da0340d9149e070ece607c6e51f6a1b7668e3c50ae", + "sha256": "0b9f430d7b1b5653afe25dbae9eb6edceff16af27dd14ccab0c2ddee591b6703", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tag/testdata/datasource.tf", - "sha256": "1c2d89c4d71939ec0ab5836e7bc40fddbf859a5ef6bb37ed1ac37024aad46f9e", + "sha256": "80c5dadfbc9854c9b6077235b6ab70670cec122caf1161bf6b56899fe415914f", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tags/datasource.go", - "sha256": "2b6cbff71b6860c7830de1978080f524a0059e21659951820bc231d249e93825", + "sha256": "1730e0d8df73bf2873e142e282c11d16e1b0c0de458ec902466a73689989bfe1", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tags/datasource_acceptance_test.go", - "sha256": "2a05a4e3189aea619cc4f77a41891e4500f657ebb4e362ce8bb8e22565a08776", + "sha256": "72f89a467638ef2c168688924a9f52acc7f2a904744fabb6438a03c33b326c05", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tags/model.go", - "sha256": "25064023dce9eacfae42b7c6ce052302ea0011a17d1aa9bd8f4f9de68ab2b0fb", + "sha256": "3a5c6644dfbd2ee3954d3df643c1f35c774da1690a3c5278f96a67e1954130dc", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tags/read.go", - "sha256": "6957911bc9d562d4dafd8f9427cba603e59dabf4e658ff444739113de675945f", + "sha256": "1f2e083b4f57b44ec7ebc072e95fa73b4e07b80b07a75132f1fcb8ee09e3eb85", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tags/seed_helper_test.go", - "sha256": "852158bc95b5e4cad51f3adba34702ae8f0ceffbdc5ddb961306802dfedc5b41", + "sha256": "ef6af9f46dda45e9e01b4f372119f7cedb4d384d8ad5a47397065cfd0640a6c4", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tags/state.go", - "sha256": "8394b42abbca70937bb52731bf6ac2591c2a9330a3e0affbf40cd9f6a470709e", + "sha256": "57a045582bdc6a56608e1347da9aa0039e3766e1aad4e62901aeeaf66ca7913a", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/datasources/tags/v7/tags/testdata/datasource.tf", - "sha256": "5776e5f74b9b006a01b0f86206f145eb7aa242aea2dc487a3c89bef8006784e1", + "sha256": "4e0d00e8c4198d92afaffe8753416f440e91ac2fc77899548b74abc1b68dd419", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/ephemerals/credentials/v7/credential/ephemeral.go", - "sha256": "701d8c8c68f8775149d1e028e98aa0d4a615e52c3a94dce7ae3d5937ed978a30", + "sha256": "41b6042249b4ae5bd75839c6b2c994588519b547bf160ac700a233d438f26090", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/ephemerals/credentials/v7/credential/ephemeral_acceptance_test.go", - "sha256": "4d118e168481004585a6cc477f150258efc57d9971245fbbb023c9dba1e2e780", + "sha256": "3b3f5f5c9307c100a17d81956f16a36931379c79c77a347db6db8c91da5e2058", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/ephemerals/credentials/v7/credential/model.go", - "sha256": "07dfe33733a7ad1fc367611d1c831e2985cc149692529ecd27f9107e81e52f20", + "sha256": "062559b160f788e8611590f988d5275f64cb222552aa2a729897e385b50691ec", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/ephemerals/credentials/v7/credential/open.go", - "sha256": "c22a3671a79f1a3bf3213d3c79bbe2e5ee00214e05797c532684a6ca494969ce", + "sha256": "4c1c018921c83e6ac1137c250d370ad256d76b264297cf016463ffd174b6ab39", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/ephemerals/credentials/v7/credential/seed_helper_test.go", - "sha256": "eb568c7ddeab523bd97c1f51b3804e743bac9ef150bdb6a16bae16a542c0009e", + "sha256": "75e962b348dc64adfc9916ac56bb2cbf15ab4342852aa3a178d1d1a9851c919a", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/ephemerals/credentials/v7/credential/state.go", - "sha256": "b2bdb24be0371764803415299ef41b47b3e633e6d63ffd47f460203aef0ac23b", + "sha256": "4d46efa0413b40d987f3f843e8ee504c3169266e2266324f06bb64ace709fb65", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/ephemerals/credentials/v7/credential/testdata/ephemeral.tf", - "sha256": "6526e5466a886ec0844166779669d66093ba08de3a590f43e8594858d40ff496", + "sha256": "967df85d5638724d66d32e478f2077daa1b9aa8d555b6b375d2d64baefd40a85", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/account_groups/v7/account_group/construct.go", - "sha256": "c7957c8b78eb4185ea883cd509b2f4893688414d15d5dcc1f78830217ef01367", + "sha256": "520381704d373cd8e16132085a36b8f5ce669e97c532be6e02e481e0d6caf36b", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/account_groups/v7/account_group/crud.go", - "sha256": "9322acf337164c888d942a8649626f7f0b0ed12a2d4c4f81113f09b326c36acd", + "sha256": "1db3d1fbcdaa945d46687457b400557bb27605babb95e91be394c0f7ec46cc71", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/account_groups/v7/account_group/model.go", - "sha256": "d56679bc39b76c918fd293b4502c2eace841fe08c47009f46240d769955eb34b", + "sha256": "ceecaea0207d977805f87eb5f7dc229fe8f89874e42a67b3f71cd1a64736468b", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/account_groups/v7/account_group/resource.go", - "sha256": "0548b8051bfde8ecc0ebadec0924b87ed7633fc263880f4345501086ec0d75a0", + "sha256": "3ad98525a51c373fada54390d995cbbf31107761f8aceca4267dfe1dd70080ab", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/account_groups/v7/account_group/resource_acceptance_test.go", - "sha256": "adf6f7c32b9218b101ec2b0a90c270130ada21311216459e726ca4ed721e2b23", + "sha256": "1f3b191fff2c87bd6901cd06fc8305cb1472fa22ee4cacbc27eacb2895f7bab7", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/account_groups/v7/account_group/state.go", - "sha256": "0c876c3d6e7ae421ebf18bd7567e13b7fc7a7fed0443bb46799aac59313cab6b", + "sha256": "e34f9b39dd24fa23a23cd6b7b267fb3195a0d5c764b189ce816ba91812322928", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/account_groups/v7/account_group/test_helper_test.go", - "sha256": "1ebb56ef29a7a24a5054bd63e35bf82366c57682fc4e43561af16ddb77577acf", + "sha256": "a8fc8c48d95a138b54e219c2b02535e023bc3c1307b88a45f9b09092518c291b", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/account_groups/v7/account_group/testdata/maximal.tf", - "sha256": "5f8f05f6e79a9f2304c32502924aaaa1eeca5c78b74c42f78341db25c1864da5", + "sha256": "49b0322ce7f4bc0aadc3ccc3f9b3dea66316ab26dcdc6b9836bb5c67489fec25", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/account_groups/v7/account_group/testdata/minimal.tf", - "sha256": "d6b60b5d8b19bc6f33e83117043078ae271656bf318df0a19a0568000e249f55", + "sha256": "c114e4d23054d59d025085c1aff280a6ddd1863b656757638947b4f0ff68b4d8", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/construct.go", - "sha256": "80917c5e36caf7e562e8ee7a531bcfd47665891306759254b8ee26e586b74497", + "sha256": "de01856dc0b46ad2dbeedde1de409a7c30abf49447b7e098a127eae7efff76f4", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/crud.go", - "sha256": "62d64eaed24af7ae754dad524e6a3e787359bfb311a21f5adfd45e738441f715", + "sha256": "3572e331236c0d1fae8686a364ba3a74418d568dd092cc2742304b480ce8d211", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/model.go", - "sha256": "0bdcb28a56911bc8576d71c76ad98d405e985d29e695ba0359cc03076e167e42", + "sha256": "e6e8f61ac1306eb0e80a07805377a56e0195ef8cdcb6df8678e1f3fdd3103942", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/resource.go", - "sha256": "925c24ca1d947de4516dfdf93162db1c18ed77997e8b03de91aa7910c6a464bd", + "sha256": "c9f1273379ecdd7484c5ee3742c63b1cb160b6c413531944a05ef1b869cc6ea0", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/resource_acceptance_test.go", - "sha256": "d9ef09c1b3c6b89df3df43ee418a22279c09a0e75042184e2ba8c07718b5c955", + "sha256": "6f6c535d7d4dedc433a2ad393d6f21308b110510fbe34720dba1773cf2fb66f3", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/state.go", - "sha256": "a02c416ae059e842576dfff1c49afcce080a9b2531691fe1bc5e860039e041dc", + "sha256": "167d76b3a0c37f791c49e0929620daca06b6d098470c71399419a69cd04f057f", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/test_helper_test.go", - "sha256": "c8e45dcb774246f4acdfbe84a13d4616d61e3308348ecca2d5a8c6e131125402", + "sha256": "60631190159c667e8a0e4ddc58f44913591bbbbac9dd156c24d2f7a98782c260", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/testdata/maximal.tf", - "sha256": "0aec7b5dbd0d92d78d4dc07ec21590c783fa79e4bea6534d5a1e924bc7aba3d3", + "sha256": "4fe397e59f230581b4fdffe5dbde972b2098531f3683355843974ac930c1e849", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/testdata/minimal.tf", - "sha256": "11170b8d1de5842fedfab3281d10591241f5f8e8615d3d54916f781acc4da612", + "sha256": "bc3f280f1820ffed201c6bd7f92380a25bb026bb3b1e40e2739a7a5fb3ff8985", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/credentials/v7/credential/construct.go", - "sha256": "ccf47074266009bf48395eedba54a717d51ebd4d9bd2387526a088cc6ff9ac07", + "sha256": "3f0b727262b60193b626338ff28f00207266a1ee5ca9a6627746f0ffd2dfd777", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/credentials/v7/credential/crud.go", - "sha256": "0bf3a615ff848eb1e28ba195ea38059c20d41a4489873f08534e19abb7ae8904", + "sha256": "7ad2a7c25d39e41a0abf798137e723b53fdc0638a6c57dea13c9a26008d9e9de", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/credentials/v7/credential/model.go", - "sha256": "e945a5df1a2ca596d8489e1d56fda4248f6615ee5f2db6bcb41e0b1c1e363e8c", + "sha256": "96d956a635eec953369594a0d0694a4d16d8bb24bb87b09fdf6c3f70ee691cee", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/credentials/v7/credential/resource.go", - "sha256": "2eb068c055eff0a65bb2e8880d0e7bb53f4eb8d58320dc6139114e2225df38b8", + "sha256": "4c17bd77a1b79996cd85b53ec1d87c8bf72bb8783bd66a0d563e240ecad8cabe", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/credentials/v7/credential/resource_acceptance_test.go", - "sha256": "6b3ad98f3b5623443b83e11d10ebf236e67a36787bdc17f005c370356b1646f7", + "sha256": "eaa9c090541b856365175c5bdce74baa3345083aa44ada26de3c12ac623bbe4f", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/credentials/v7/credential/state.go", - "sha256": "10d534fb061bddf9d42eda05fe4e9d2546ca3424c4d6e81b3342fa11856e3ffe", + "sha256": "38e495538c707e4d35d278ca5db2b1a98bfab617a809bb52c64f354f534c8762", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/credentials/v7/credential/test_helper_test.go", - "sha256": "eb568c7ddeab523bd97c1f51b3804e743bac9ef150bdb6a16bae16a542c0009e", + "sha256": "75e962b348dc64adfc9916ac56bb2cbf15ab4342852aa3a178d1d1a9851c919a", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/credentials/v7/credential/testdata/maximal.tf", - "sha256": "1c1b548fc53473ae83f51a923b8604204c8ed273b59e45f368003b48bbb9c7eb", + "sha256": "9f4862401757a930b966ce272d2ed6d5ad14b73e282a50102c11113ad3d95648", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/credentials/v7/credential/testdata/minimal.tf", - "sha256": "1cacf7f40622e2cb36e49f48c64e076dab3c7da4dad30c11fd7a5e5e00ad13fb", + "sha256": "f484daabf67df64a338e11177b66a51bbca5ff1054417ed0408dc3ee37ea655a", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/endpoint_agent_labels/v7/endpoint_label/construct.go", - "sha256": "38da38d9d89b481c8c9cb6b59de8a8ab9979c122617caf8e2437d655e0d74ac9", + "sha256": "72ddb250ce2b750e88bbdc626d143eb9007aca408f9e6c4072ddfd1312576cd5", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/endpoint_agent_labels/v7/endpoint_label/crud.go", - "sha256": "914bf51e458ee3b8eed5e757544e4f69ce77ba60b36f1099447642db74701ccf", + "sha256": "f98ba6f91aa024a84698d0b7136a2967d5ccdce49dd4cca9f7e6d7b23403308b", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/endpoint_agent_labels/v7/endpoint_label/model.go", - "sha256": "bcc8101704a32bf1d428f766fffd240f083c03de990fd56b975132fd52e1416d", + "sha256": "35fda58b8879b6178ccffe8cd9e2c28b71b6dab2a6c702dd1107ef4a3b6ca540", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/endpoint_agent_labels/v7/endpoint_label/resource.go", - "sha256": "32b5ef0e37177d256b5fc727493723185433df054f5de497118094ab1730c675", + "sha256": "dfd553b64603c423a81e3094debab2549f0e0b87b2085dcb52fe206063f8a6e8", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/endpoint_agent_labels/v7/endpoint_label/resource_acceptance_test.go", - "sha256": "9f7b198705de32c9050867084df5aa2174a7dda4ae32e9b5c183602fe2574a1f", + "sha256": "90d071d9dd1180b4be3b35248ed4d27e2260187b7bdc6358c65160b202360cb5", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/endpoint_agent_labels/v7/endpoint_label/state.go", - "sha256": "f85567d0e61bd74cdce379e42333ab8618fa0fc995cdc817d197b03dbd56194b", + "sha256": "f80d3b646f94255212c3148231379aaa56bc115b053b8b67364e53657f74aa2a", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/endpoint_agent_labels/v7/endpoint_label/test_helper_test.go", - "sha256": "c72d89806e8b8330a9b78ae47ed1e294ba28a427126b7aa7da767829c1935c41", + "sha256": "b9ec3cf10f888641ed18db30c4244e6f813453ded34683e1d11cd52076eb7a4d", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/endpoint_agent_labels/v7/endpoint_label/testdata/maximal.tf", - "sha256": "83aebd72fd42b172c0b818c616bce7b0b450f82b437ec941da9276d7252e09fe", + "sha256": "c17724d4ba3091f4d530cca0e5768dccf8420b418d83f123064a78ad9ee4d529", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/endpoint_agent_labels/v7/endpoint_label/testdata/minimal.tf", - "sha256": "bc628b26af42a9f004f01bf4381c9fbee779f21ee5d8917b5a2268f8c7d46a10", + "sha256": "0207fbe18da13e4efe3ee476be1144a8c635c3cf7fd514ff1118b43fcb074e5e", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/roles/v7/role/construct.go", - "sha256": "19339e435322e206ca5ebadcf0d3ae0034b0f2e7f3bcc07c6b7689c89fec21d8", + "sha256": "ab7e602646b30d0e431da4155e59052e7be6110616607f1b7c628ea1cb7ca6a7", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/roles/v7/role/crud.go", - "sha256": "245a05858881cea6c50c64d576e71b85b3d5dedb1e385fae69d21db44d99cc67", + "sha256": "e73ce4b33061369c5df0390ecf97d687aa06593d3e7a6639cb9b8148ee005026", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/roles/v7/role/model.go", - "sha256": "3af4bdcd03a64a92b453f8e7179a2b5c04e764ab0dabcd52b215928652701612", + "sha256": "e1f81a7c28713fe985406d9156a167616fe3df3ab8a7ea53810341b4d2c142dd", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/roles/v7/role/resource.go", - "sha256": "44b6cec6bde2508d759e313678cbc7ddab1fc47659d43c8028ddec7ce57ec501", + "sha256": "2a1276ffb65da760769feb2bf43d00a8d94021338c27fba36cc1ef23f809856d", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/roles/v7/role/resource_acceptance_test.go", - "sha256": "6951191e2f4258f7679c83da798985612693e47f38c2a1b1ab102c6bec164994", + "sha256": "f14bbdf416d2441cb436d413a3ccb71d253944dfd2e2a9f465954a84677a2b6c", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/roles/v7/role/state.go", - "sha256": "518124451e928da31fa99481446c30923a5d070b6d927e47a2d25d70e8386ad2", + "sha256": "c63dac8e2658e42d5cf426c678b8d5a7dee16156ec2cef739828e8c2136f7acc", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/roles/v7/role/test_helper_test.go", - "sha256": "8f9ac667b626b3773e95802a23590f96870b859d0352032e20f6784acda9b056", + "sha256": "ca4b3ee782c7932926e604719100c1f6bf2277980de20203abd903de60983d87", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/roles/v7/role/testdata/maximal.tf", - "sha256": "8115abb8831a35bd80ba4ac36d026f56bdca9d10b1f9abc85fee7cfb93cf4ad0", + "sha256": "dc4c205a0e3f14df79ef54741bd862fa0dc964db7f48e48364e77d5836e5ffd1", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/roles/v7/role/testdata/minimal.tf", - "sha256": "1c09328f2a43170f22b5a23ee3898842c38323c3b5d5c67723a540958823388d", + "sha256": "d5d95dee9a37a85149d28d30599023e87359ef87b2bf6082f33abee2fb4876ca", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/conditional_validators.go", - "sha256": "83c3edfea90a79f10bec80bdf48012811f8680c2e4213c36252b0d469f16caa5", + "sha256": "ae4fa426e09ad4b0ac32d668b54c5a9589deecbe479756336d24b5d46d50114f", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/construct.go", - "sha256": "8b5ffb30dc3fa999ad8c89a20fd23e664f43f8ecde046333039cf5930bed0f3d", + "sha256": "6daaee0c76e9723dc560e7ed3ed5aa0c16efb4a822700933dd8623be6f1f9e99", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/crud.go", - "sha256": "e3368e6008031264bfe4643f1dd3d21eb8d15a0b229df314890dbe56563ef730", + "sha256": "7d20c21aa1ecad4fa1f0acf48e5f4629aeae3634992ea7f0f9625251015d5209", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/list_acceptance_test.go", - "sha256": "ccd9fbf7145ef0f6195ad8889af44c268dae9e8ea3ab0763ed0881595b39b08e", + "sha256": "f979732178ccbacb4c483769e11dc9a3a511be3fd5c84aa00d289faea0920b46", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/list_resource.go", - "sha256": "32fc65f3f48a975a086cd00abc1328143d3a99663a2d36df396bb82f20b9abab", + "sha256": "e2900d6261eecead386965263cdcaf48344ef02bcd80c3c1cdf9f18eaea9012e", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/model.go", - "sha256": "1ce290e0a5ebd4b506eceab9bca0ecd028741f46bb8328a54101901864be4f97", + "sha256": "a1cf880bfb6f06948f64c791e818d4ff236f18756b53b22a1b239650a9de38b6", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/resource.go", - "sha256": "3abd117fcba7ce660a239ede9a4a209d40d71a91a9d60fbe13819c3f327a82cd", + "sha256": "ebd7740c100cd842e52ebf3609a90b2d63b37a81abb85e4d0b6fa1ca207b567a", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/resource_acceptance_test.go", - "sha256": "72b371b043bd355716d57385308897ee4adbbfbd0be352e5a98b198aea3eb978", + "sha256": "ee684411252451c6fb1a6fe318f22a2bfb99fe90714c09e8992370bd783ee6af", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/state.go", - "sha256": "33850bcd2e14ddedbe1ad9b728bbf683a2d7545947f533962f4c7e10dbe75525", + "sha256": "5eff0015cf71bc4271924d1adfbb450a63f14678cc5912957b0fa2ac655befd6", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/test_helper_test.go", - "sha256": "5c0296dbb434a676b867d259d345c3ae7f8155d944d5ce7ed14ed20268ba9d29", + "sha256": "7bc93299a17689930110f723388e6c5e27f5394edd1b21e437d6148d2c317c64", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/testdata/maximal.tf", - "sha256": "99a7cbf9f52b65b4414e1293d212eabcaa7055b4988793214df99f08491548ac", + "sha256": "3827b38f0af446ffccbe275cdb2ef9d8d1f20de9beebc349ae7e13d3e5a15d95", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/testdata/minimal.tf", - "sha256": "84be75c5dfdb93b4555ae22eb5b2e6cb350f1f81868ba2afbd58ca7cf9921a92", + "sha256": "5af2960e74957927be662d9107c9becb3013c9656830089467160911120362f5", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/testdata/query.tf", - "sha256": "290ba63ce609d7553a8f30167d020c422fc936355acaa043bc26c745a2002474", + "sha256": "18603a485ac5f7a660834b418deb33a41d479d0a96f12b53c94efdf39d2492cf", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/tags/v7/tag/testdata/replace.tf", - "sha256": "d8c651b8812e8a1143785226c7fa6c175caca8fbeb959292e1cdd6adc4219443", + "sha256": "7af91d27b0bf39a79ee303fa3b1574f1fbcbaf0bee72802299ce4602931856f9", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/users/v7/user/construct.go", - "sha256": "157239f2404b54a6e436c107c9f27ebd831bedb7133de82b8c83ec774b1e0dd1", + "sha256": "b2612bc364eb1a9b68268d46570c7c3476308717be8e0c96adde9518d69dd783", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/users/v7/user/crud.go", - "sha256": "6e6f6138cf00d72f90386991ad8ce1218ab7d795927fe5ff403d5e651497d603", + "sha256": "05ab9e144691ac1587f9996126cdd8c453c2dcad047d59ba6938ad512efd4edc", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/users/v7/user/model.go", - "sha256": "d826256297e05c497a02f290c0889e2b21557d6f85f9316c8e15bf09bab391b8", + "sha256": "c7276f0873063f65c345d12d146b969722978175927e59a62474adaa9ec82a2e", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/users/v7/user/resource.go", - "sha256": "994c42d9baa140a70ea3d6dfa0a751b68bf1f597cf4e100beccbcf4ca5ab35cb", + "sha256": "e2c0eec032b337cc95053b269a06a2b533edc4caace3e97fb4f74996dd03fc19", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/users/v7/user/resource_acceptance_test.go", - "sha256": "cb4c04d3fac8b1179b6f4e4d84ec6897e0465ca1a16d89709e2eebe234f8df90", + "sha256": "6cb6eee96b0b98f2b7241d8acf70654538b3ff5334f3a66aafcd18b89c1419f7", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/users/v7/user/state.go", - "sha256": "6d83ce660a403b5863f3a02c70bb22f6ef5f5303985b4081d191bee1b2b1863a", + "sha256": "3d39a8330435ed2f4884a0c9bb126c1d228fdf66a4ac16e049f2c4249542f1ca", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/users/v7/user/test_helper_test.go", - "sha256": "0b553bb471fe9aee03df7324ec7aa3ba57dfbc071c1f0c07635f70d4e3a693be", + "sha256": "41bcbc3eced0c82f02d0317f2444fdaee749a3d15804761e8a453458486ab00e", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/users/v7/user/testdata/maximal.tf", - "sha256": "a913243a9907e032698dd2c7089ce11e7d7f4e8748fab9b92104cfe7c5aaded5", + "sha256": "65c784ae71dfcb465fdfd059ebde9074ca227fce7c71a940a6990dd20bdb39f6", "blueprint": "blueprints/thousandeyes-kiota" }, { "path": "internal/services/resources/users/v7/user/testdata/minimal.tf", - "sha256": "bae0ecaeba4da9b97d5731fccbcd98e032c5855b492c1dc02681b751f927ac8c", + "sha256": "6824518a93ec749c5370dc081df902129054c4d6631b0dc794cd32f2f76d89be", "blueprint": "blueprints/thousandeyes-kiota" } ] diff --git a/pilot/thousandeyes-kiota/internal/client/client.go b/pilot/thousandeyes-kiota/internal/client/client.go index 8ac34cac..eb40378d 100644 --- a/pilot/thousandeyes-kiota/internal/client/client.go +++ b/pilot/thousandeyes-kiota/internal/client/client.go @@ -8,7 +8,9 @@ package client import ( "context" "fmt" + "net/http" "net/url" + "strings" "github.com/hashicorp/terraform-plugin-framework/action" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -54,6 +56,28 @@ func (p *staticTokenProvider) GetAllowedHostsValidator() *authentication.Allowed return p.validator } +// acceptNormalizer widens a degenerate Accept header before the request +// leaves. +// +// For an operation whose specification declares no success media type -- a +// DELETE whose only documented bodies are errors -- Kiota emits +// `Accept: application/problem+json` alone, and the ThousandEyes API answers +// that with 406 Not Acceptable before considering the request. The API's +// actual success responses are hal+json or plain json, so both are added in +// front whenever the emitted header would otherwise refuse them; a header +// that already accepts a json form passes through untouched. +type acceptNormalizer struct{} + +func (acceptNormalizer) Intercept(pipeline kiotahttp.Pipeline, middlewareIndex int, req *http.Request) (*http.Response, error) { + accept := req.Header.Get("Accept") + if accept != "" && + !strings.Contains(accept, "application/json") && + !strings.Contains(accept, "application/hal+json") { + req.Header.Set("Accept", "application/hal+json, application/json, "+accept) + } + return pipeline.Next(req, middlewareIndex) +} + // New builds an SDK client. func New(cfg Config) (*sdk.ThousandEyesClient, error) { endpoint := cfg.APIEndpoint @@ -91,6 +115,7 @@ func New(cfg Config) (*sdk.ThousandEyesClient, error) { if err != nil { return nil, fmt.Errorf("building the HTTP middleware: %w", err) } + middlewares = append(middlewares, acceptNormalizer{}) adapter, err := kiotahttp.NewNetHttpRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndHttpClient( authProvider, nil, nil, kiotahttp.GetDefaultClient(middlewares...), diff --git a/pilot/thousandeyes-kiota/internal/client/client_wire_test.go b/pilot/thousandeyes-kiota/internal/client/client_wire_test.go index c404ab96..71b774b0 100644 --- a/pilot/thousandeyes-kiota/internal/client/client_wire_test.go +++ b/pilot/thousandeyes-kiota/internal/client/client_wire_test.go @@ -6,6 +6,7 @@ import ( "io" "net/http" "net/http/httptest" + "strings" "testing" "github.com/deploymenttheory/terraform-plugin-framework-codegen/pilot/thousandeyes-kiota/internal/sdk/models" @@ -84,3 +85,35 @@ func TestUnit_Client_SendsPlainJSONBodies(t *testing.T) { } } } + +// TestUnit_Client_DeleteAcceptsAJSONForm pins the Accept header of a delete. +// +// The credentials DELETE declares no success media type, so Kiota emits +// `Accept: application/problem+json` alone -- and the ThousandEyes API +// answers exactly that header with 406 Not Acceptable, which is how the +// credential resource failed its first live acceptance run. The client's +// acceptNormalizer widens the header to admit the API's real success forms; +// this test fails if a delete ever goes out refusing them again. +func TestUnit_Client_DeleteAcceptsAJSONForm(t *testing.T) { + t.Parallel() + + var accept string + srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + accept = r.Header.Get("Accept") + w.WriteHeader(http.StatusNoContent) + })) + defer srv.Close() + + c, err := New(Config{BearerToken: "tok", APIEndpoint: srv.URL + "/v7"}) + if err != nil { + t.Fatal(err) + } + + if err := c.Credentials().ById("11111111-1111-1111-1111-111111111111").Delete(context.Background(), nil); err != nil { + t.Fatalf("Delete: %v", err) + } + + if !strings.Contains(accept, "application/json") || !strings.Contains(accept, "application/hal+json") { + t.Errorf("Accept = %q; a delete must admit the API's success media types or the server answers 406", accept) + } +} diff --git a/pilot/thousandeyes-kiota/internal/provider/actions.go b/pilot/thousandeyes-kiota/internal/provider/actions.go index 7fd30e6d..5e8dafa8 100644 --- a/pilot/thousandeyes-kiota/internal/provider/actions.go +++ b/pilot/thousandeyes-kiota/internal/provider/actions.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package provider diff --git a/pilot/thousandeyes-kiota/internal/provider/datasources.go b/pilot/thousandeyes-kiota/internal/provider/datasources.go index ed9e4324..3b98108d 100644 --- a/pilot/thousandeyes-kiota/internal/provider/datasources.go +++ b/pilot/thousandeyes-kiota/internal/provider/datasources.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package provider diff --git a/pilot/thousandeyes-kiota/internal/provider/ephemerals.go b/pilot/thousandeyes-kiota/internal/provider/ephemerals.go index d6af8f88..ce63cc3d 100644 --- a/pilot/thousandeyes-kiota/internal/provider/ephemerals.go +++ b/pilot/thousandeyes-kiota/internal/provider/ephemerals.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package provider diff --git a/pilot/thousandeyes-kiota/internal/provider/list_resources.go b/pilot/thousandeyes-kiota/internal/provider/list_resources.go index 2a095935..e1dd1709 100644 --- a/pilot/thousandeyes-kiota/internal/provider/list_resources.go +++ b/pilot/thousandeyes-kiota/internal/provider/list_resources.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package provider diff --git a/pilot/thousandeyes-kiota/internal/provider/resources.go b/pilot/thousandeyes-kiota/internal/provider/resources.go index 7ec5f091..c9c0eacb 100644 --- a/pilot/thousandeyes-kiota/internal/provider/resources.go +++ b/pilot/thousandeyes-kiota/internal/provider/resources.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package provider diff --git a/pilot/thousandeyes-kiota/internal/sdk/kiota-lock.json b/pilot/thousandeyes-kiota/internal/sdk/kiota-lock.json index 89cca4f9..2e9c7ea6 100644 --- a/pilot/thousandeyes-kiota/internal/sdk/kiota-lock.json +++ b/pilot/thousandeyes-kiota/internal/sdk/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "C7EE08CA53ACA69B6B933964B99950ABC346EAD5E80D3C5C92F53129CA4F03EF2474AB3D9E98910CB7CCDB77F7D2702A38209BC3D9AFD63BE15E87C303AAB17E", + "descriptionHash": "EF4E4EBD6997EE883B009EF6B64F8381CFC45F4DF193CCA0D98FDE3B4FC75E9FBAD9999940442D21702505C4EC744663F4D99E92B5F08EEFF85FB41F09C8ED42", "descriptionLocation": "../../../../openapi/thousandeyes/7.0.98-t1785502133469/api.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.34.1", diff --git a/pilot/thousandeyes-kiota/internal/sdk/models/alerts_escaped_a_p_i_escaped_repeat_type.go b/pilot/thousandeyes-kiota/internal/sdk/models/alerts_escaped_a_p_i_escaped_repeat_type.go index 4cf40909..05a07c79 100644 --- a/pilot/thousandeyes-kiota/internal/sdk/models/alerts_escaped_a_p_i_escaped_repeat_type.go +++ b/pilot/thousandeyes-kiota/internal/sdk/models/alerts_escaped_a_p_i_escaped_repeat_type.go @@ -11,10 +11,11 @@ const ( WEEK_ALERTS_API_REPEATTYPE MONTH_ALERTS_API_REPEATTYPE CUSTOM_ALERTS_API_REPEATTYPE + NONE_ALERTS_API_REPEATTYPE ) func (i Alerts_API_RepeatType) String() string { - return []string{"day", "week", "month", "custom"}[i] + return []string{"day", "week", "month", "custom", "none"}[i] } func ParseAlerts_API_RepeatType(v string) (any, error) { @@ -28,6 +29,8 @@ func ParseAlerts_API_RepeatType(v string) (any, error) { result = MONTH_ALERTS_API_REPEATTYPE case "custom": result = CUSTOM_ALERTS_API_REPEATTYPE + case "none": + result = NONE_ALERTS_API_REPEATTYPE default: return nil, nil } diff --git a/pilot/thousandeyes-kiota/internal/sdk/models/proxies.go b/pilot/thousandeyes-kiota/internal/sdk/models/endpoint_escaped_agents_escaped_a_p_i_escaped_agent_transfer.go similarity index 71% rename from pilot/thousandeyes-kiota/internal/sdk/models/proxies.go rename to pilot/thousandeyes-kiota/internal/sdk/models/endpoint_escaped_agents_escaped_a_p_i_escaped_agent_transfer.go index 6f48747e..8c509651 100644 --- a/pilot/thousandeyes-kiota/internal/sdk/models/proxies.go +++ b/pilot/thousandeyes-kiota/internal/sdk/models/endpoint_escaped_agents_escaped_a_p_i_escaped_agent_transfer.go @@ -8,7 +8,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -type Proxies struct { +type Endpoint_Agents_API_AgentTransfer struct { // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additionalData map[string]any // Unique ID of endpoint agent, from `/endpoint/agents` endpoint. @@ -19,34 +19,34 @@ type Proxies struct { toAid *string } -// NewProxies instantiates a new Proxies and sets the default values. -func NewProxies() *Proxies { - m := &Proxies{} +// NewEndpoint_Agents_API_AgentTransfer instantiates a new Endpoint_Agents_API_AgentTransfer and sets the default values. +func NewEndpoint_Agents_API_AgentTransfer() *Endpoint_Agents_API_AgentTransfer { + m := &Endpoint_Agents_API_AgentTransfer{} m.SetAdditionalData(make(map[string]any)) return m } -// CreateProxiesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateEndpoint_Agents_API_AgentTransferFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateProxiesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewProxies(), nil +func CreateEndpoint_Agents_API_AgentTransferFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEndpoint_Agents_API_AgentTransfer(), nil } // GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. // returns a map[string]any when successful -func (m *Proxies) GetAdditionalData() map[string]any { +func (m *Endpoint_Agents_API_AgentTransfer) GetAdditionalData() map[string]any { return m.additionalData } // GetAgentId gets the agentId property value. Unique ID of endpoint agent, from `/endpoint/agents` endpoint. // returns a *UUID when successful -func (m *Proxies) GetAgentId() *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID { +func (m *Endpoint_Agents_API_AgentTransfer) GetAgentId() *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID { return m.agentId } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *Proxies) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { +func (m *Endpoint_Agents_API_AgentTransfer) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error) res["agentId"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetUUIDValue() @@ -83,18 +83,18 @@ func (m *Proxies) GetFieldDeserializers() map[string]func(i878a80d2330e89d268963 // GetFromAid gets the fromAid property value. A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. // returns a *string when successful -func (m *Proxies) GetFromAid() *string { +func (m *Endpoint_Agents_API_AgentTransfer) GetFromAid() *string { return m.fromAid } // GetToAid gets the toAid property value. A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. // returns a *string when successful -func (m *Proxies) GetToAid() *string { +func (m *Endpoint_Agents_API_AgentTransfer) GetToAid() *string { return m.toAid } // Serialize serializes information the current object -func (m *Proxies) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error { +func (m *Endpoint_Agents_API_AgentTransfer) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error { { err := writer.WriteStringValue("fromAid", m.GetFromAid()) if err != nil { @@ -117,26 +117,26 @@ func (m *Proxies) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010 } // SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Proxies) SetAdditionalData(value map[string]any) { +func (m *Endpoint_Agents_API_AgentTransfer) SetAdditionalData(value map[string]any) { m.additionalData = value } // SetAgentId sets the agentId property value. Unique ID of endpoint agent, from `/endpoint/agents` endpoint. -func (m *Proxies) SetAgentId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { +func (m *Endpoint_Agents_API_AgentTransfer) SetAgentId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { m.agentId = value } // SetFromAid sets the fromAid property value. A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. -func (m *Proxies) SetFromAid(value *string) { +func (m *Endpoint_Agents_API_AgentTransfer) SetFromAid(value *string) { m.fromAid = value } // SetToAid sets the toAid property value. A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. -func (m *Proxies) SetToAid(value *string) { +func (m *Endpoint_Agents_API_AgentTransfer) SetToAid(value *string) { m.toAid = value } -type Proxiesable interface { +type Endpoint_Agents_API_AgentTransferable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAgentId() *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID diff --git a/pilot/thousandeyes-kiota/internal/sdk/models/endpoint_escaped_agents_escaped_a_p_i_escaped_agent_transfer_status.go b/pilot/thousandeyes-kiota/internal/sdk/models/endpoint_escaped_agents_escaped_a_p_i_escaped_agent_transfer_status.go index 24ca20ac..a47efb06 100644 --- a/pilot/thousandeyes-kiota/internal/sdk/models/endpoint_escaped_agents_escaped_a_p_i_escaped_agent_transfer_status.go +++ b/pilot/thousandeyes-kiota/internal/sdk/models/endpoint_escaped_agents_escaped_a_p_i_escaped_agent_transfer_status.go @@ -10,7 +10,7 @@ import ( type Endpoint_Agents_API_AgentTransferStatus struct { Endpoint_Agents_API_Error // The request property - request Proxiesable + request Endpoint_Agents_API_AgentTransferable } // NewEndpoint_Agents_API_AgentTransferStatus instantiates a new Endpoint_Agents_API_AgentTransferStatus and sets the default values. @@ -32,12 +32,12 @@ func CreateEndpoint_Agents_API_AgentTransferStatusFromDiscriminatorValue(parseNo func (m *Endpoint_Agents_API_AgentTransferStatus) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { res := m.Endpoint_Agents_API_Error.GetFieldDeserializers() res["request"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateProxiesFromDiscriminatorValue) + val, err := n.GetObjectValue(CreateEndpoint_Agents_API_AgentTransferFromDiscriminatorValue) if err != nil { return err } if val != nil { - m.SetRequest(val.(Proxiesable)) + m.SetRequest(val.(Endpoint_Agents_API_AgentTransferable)) } return nil } @@ -45,8 +45,8 @@ func (m *Endpoint_Agents_API_AgentTransferStatus) GetFieldDeserializers() map[st } // GetRequest gets the request property value. The request property -// returns a Proxiesable when successful -func (m *Endpoint_Agents_API_AgentTransferStatus) GetRequest() Proxiesable { +// returns a Endpoint_Agents_API_AgentTransferable when successful +func (m *Endpoint_Agents_API_AgentTransferStatus) GetRequest() Endpoint_Agents_API_AgentTransferable { return m.request } @@ -66,13 +66,13 @@ func (m *Endpoint_Agents_API_AgentTransferStatus) Serialize(writer i878a80d2330e } // SetRequest sets the request property value. The request property -func (m *Endpoint_Agents_API_AgentTransferStatus) SetRequest(value Proxiesable) { +func (m *Endpoint_Agents_API_AgentTransferStatus) SetRequest(value Endpoint_Agents_API_AgentTransferable) { m.request = value } type Endpoint_Agents_API_AgentTransferStatusable interface { Endpoint_Agents_API_Errorable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetRequest() Proxiesable - SetRequest(value Proxiesable) + GetRequest() Endpoint_Agents_API_AgentTransferable + SetRequest(value Endpoint_Agents_API_AgentTransferable) } diff --git a/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/action.go b/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/action.go index 68e000c8..1f1e3e6b 100644 --- a/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/action.go +++ b/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/action.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. // REF: https://developer.cisco.com/docs/thousandeyes/disable-endpoint-agent/ package disable_endpoint_agent diff --git a/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/action_acceptance_test.go b/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/action_acceptance_test.go index 88f718d8..96827766 100644 --- a/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/action_acceptance_test.go +++ b/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/action_acceptance_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package disable_endpoint_agent_test diff --git a/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/invoke.go b/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/invoke.go index 5d4c89a6..207cbda7 100644 --- a/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/invoke.go +++ b/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/invoke.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package disable_endpoint_agent diff --git a/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/model.go b/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/model.go index 042285c2..31573e01 100644 --- a/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/model.go +++ b/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/model.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package disable_endpoint_agent diff --git a/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/testdata/action.tf b/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/testdata/action.tf index 5e1b58ea..0e4449fe 100644 --- a/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/testdata/action.tf +++ b/pilot/thousandeyes-kiota/internal/services/actions/endpoint_agents/v7/disable_endpoint_agent/testdata/action.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The action under test, invoked once by a terraform_data trigger on create. The # subject's identifier arrives as a variable, supplied by the generated test from the diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/datasource.go b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/datasource.go index 3b89658e..70e5ae7a 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/datasource.go +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/datasource.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/datasource_acceptance_test.go b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/datasource_acceptance_test.go index 86d6cd11..1ff3f1de 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/datasource_acceptance_test.go +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/datasource_acceptance_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag_test diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/model.go b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/model.go index 3dbb5bef..346e210c 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/model.go +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/model.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. // REF: https://developer.cisco.com/docs/thousandeyes/get-tag/ package tag diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/read.go b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/read.go index 1cb69dde..0ccb7b59 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/read.go +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/read.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/seed_helper_test.go b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/seed_helper_test.go index 3282cda6..55015087 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/seed_helper_test.go +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/seed_helper_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/state.go b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/state.go index fab6f871..6b956004 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/state.go +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/state.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/testdata/datasource.tf b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/testdata/datasource.tf index d61f6134..86631a54 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/testdata/datasource.tf +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tag/testdata/datasource.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The seed resource this data source reads back, then the data block itself. One file, # because the reference below only resolves against the resource above it. diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/datasource.go b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/datasource.go index ece952ac..9b64593b 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/datasource.go +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/datasource.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tags diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/datasource_acceptance_test.go b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/datasource_acceptance_test.go index 6547d1db..2170ceef 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/datasource_acceptance_test.go +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/datasource_acceptance_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tags_test diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/model.go b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/model.go index 5db7bb82..d0b1ec4f 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/model.go +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/model.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. // REF: https://developer.cisco.com/docs/thousandeyes/list-tags/ package tags diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/read.go b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/read.go index 389804bf..fca9763f 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/read.go +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/read.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tags diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/seed_helper_test.go b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/seed_helper_test.go index b776e523..2fccba5b 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/seed_helper_test.go +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/seed_helper_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tags diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/state.go b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/state.go index 14d485a9..fd6f9a6b 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/state.go +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/state.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tags diff --git a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/testdata/datasource.tf b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/testdata/datasource.tf index 7c2fd320..d6cc2b3c 100644 --- a/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/testdata/datasource.tf +++ b/pilot/thousandeyes-kiota/internal/services/datasources/tags/v7/tags/testdata/datasource.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The seed resource this data source reads back, then the data block itself. One file, # because the reference below only resolves against the resource above it. diff --git a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/ephemeral.go b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/ephemeral.go index 143d122b..d23be81a 100644 --- a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/ephemeral.go +++ b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/ephemeral.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package credential diff --git a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/ephemeral_acceptance_test.go b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/ephemeral_acceptance_test.go index 62b37c01..f35bb348 100644 --- a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/ephemeral_acceptance_test.go +++ b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/ephemeral_acceptance_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package credential_test diff --git a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/model.go b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/model.go index 74c45479..949439ed 100644 --- a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/model.go +++ b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/model.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. // REF: https://developer.cisco.com/docs/thousandeyes/get-credential/ package credential diff --git a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/open.go b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/open.go index 7ab517ca..1c09f617 100644 --- a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/open.go +++ b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/open.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package credential diff --git a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/seed_helper_test.go b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/seed_helper_test.go index 30185449..452f2ae7 100644 --- a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/seed_helper_test.go +++ b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/seed_helper_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package credential diff --git a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/state.go b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/state.go index 7feda052..a02d1ede 100644 --- a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/state.go +++ b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/state.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package credential diff --git a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/testdata/ephemeral.tf b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/testdata/ephemeral.tf index 30369de9..8f53d45e 100644 --- a/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/testdata/ephemeral.tf +++ b/pilot/thousandeyes-kiota/internal/services/ephemerals/credentials/v7/credential/testdata/ephemeral.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The seed resource, the ephemeral that opens it, and the echo that makes the opened # value observable. One file, because each reference only resolves against the block diff --git a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/construct.go b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/construct.go index 0a6c6859..33228342 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/construct.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/construct.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package account_group diff --git a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/crud.go b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/crud.go index 60eb81e1..2df40c86 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/crud.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/crud.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package account_group diff --git a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/model.go b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/model.go index ea0adba4..5fa531f1 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/model.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/model.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package account_group diff --git a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/resource.go b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/resource.go index d29701cc..17f7dbcc 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/resource.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/resource.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package account_group diff --git a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/resource_acceptance_test.go b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/resource_acceptance_test.go index 81f63cf4..6fcaa605 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/resource_acceptance_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/resource_acceptance_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package account_group_test diff --git a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/state.go b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/state.go index 6222da10..f570ea7f 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/state.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/state.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package account_group diff --git a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/test_helper_test.go b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/test_helper_test.go index 5b807a99..63474b9e 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/test_helper_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/test_helper_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package account_group diff --git a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/testdata/maximal.tf b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/testdata/maximal.tf index 4eb292ac..894c5394 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/testdata/maximal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/testdata/maximal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The widest configuration the evidence supports: every writable attribute with a derivable # value, chosen by the same derivation the rehearsal probe sends to the live API. diff --git a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/testdata/minimal.tf b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/testdata/minimal.tf index 09d64644..ba039a4d 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/testdata/minimal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/account_groups/v7/account_group/testdata/minimal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The smallest configuration this resource accepts: its required attributes and nothing else. # diff --git a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/construct.go b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/construct.go index d4ecd124..a3b9633f 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/construct.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/construct.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package alert_suppression_window diff --git a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/crud.go b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/crud.go index ac7b485e..60d4bd37 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/crud.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/crud.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package alert_suppression_window diff --git a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/model.go b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/model.go index 729c5ec5..9c6401e6 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/model.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/model.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package alert_suppression_window diff --git a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/resource.go b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/resource.go index 5f23a1a8..00c5d48c 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/resource.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/resource.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package alert_suppression_window diff --git a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/resource_acceptance_test.go b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/resource_acceptance_test.go index 8a169fe8..a586164f 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/resource_acceptance_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/resource_acceptance_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package alert_suppression_window_test diff --git a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/state.go b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/state.go index 15e0b300..b01e4682 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/state.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/state.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package alert_suppression_window diff --git a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/test_helper_test.go b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/test_helper_test.go index 87919e93..269a9498 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/test_helper_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/test_helper_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package alert_suppression_window diff --git a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/testdata/maximal.tf b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/testdata/maximal.tf index e2ac5162..f4dac958 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/testdata/maximal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/testdata/maximal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The widest configuration the evidence supports: every writable attribute with a derivable # value, chosen by the same derivation the rehearsal probe sends to the live API. diff --git a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/testdata/minimal.tf b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/testdata/minimal.tf index 13f4a17c..70456c46 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/testdata/minimal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/alert_suppression_windows/v7/alert_suppression_window/testdata/minimal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The smallest configuration this resource accepts: its required attributes and nothing else. # diff --git a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/construct.go b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/construct.go index 018a31ea..92108d21 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/construct.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/construct.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package credential diff --git a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/crud.go b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/crud.go index cb785ccd..3b39f0c6 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/crud.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/crud.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package credential diff --git a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/model.go b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/model.go index 223461b8..3997038d 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/model.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/model.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. // REF: https://developer.cisco.com/docs/thousandeyes/create-credential/ package credential diff --git a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/resource.go b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/resource.go index 2066e0ef..8b1f78e7 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/resource.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/resource.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package credential diff --git a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/resource_acceptance_test.go b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/resource_acceptance_test.go index 9a5da506..ca8ad5ae 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/resource_acceptance_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/resource_acceptance_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package credential_test diff --git a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/state.go b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/state.go index 73609cbd..d0250cd4 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/state.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/state.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package credential diff --git a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/test_helper_test.go b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/test_helper_test.go index 30185449..452f2ae7 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/test_helper_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/test_helper_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package credential diff --git a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/testdata/maximal.tf b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/testdata/maximal.tf index 9213a8e5..e343229e 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/testdata/maximal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/testdata/maximal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The widest configuration the evidence supports: every writable attribute with a derivable # value, chosen by the same derivation the rehearsal probe sends to the live API. diff --git a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/testdata/minimal.tf b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/testdata/minimal.tf index 0e09c13b..3c7170b9 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/testdata/minimal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/credentials/v7/credential/testdata/minimal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The smallest configuration this resource accepts: its required attributes and nothing else. # diff --git a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/construct.go b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/construct.go index 811f0ab7..2e45fa15 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/construct.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/construct.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package endpoint_label diff --git a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/crud.go b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/crud.go index 2c9a2b38..cd68e0b5 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/crud.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/crud.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package endpoint_label @@ -10,7 +10,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-log/tflog" + abstractions "github.com/microsoft/kiota-abstractions-go" + "github.com/deploymenttheory/terraform-plugin-framework-codegen/pilot/thousandeyes-kiota/internal/sdk/endpoint" + "github.com/deploymenttheory/terraform-plugin-framework-codegen/pilot/thousandeyes-kiota/internal/sdk/models" "github.com/deploymenttheory/terraform-plugin-framework-codegen/pilot/thousandeyes-kiota/internal/services/common/convert" "github.com/deploymenttheory/terraform-plugin-framework-codegen/pilot/thousandeyes-kiota/internal/services/common/crud" "github.com/deploymenttheory/terraform-plugin-framework-codegen/pilot/thousandeyes-kiota/internal/services/common/errors" @@ -121,7 +124,7 @@ func (r *EndpointLabelResource) readState( ) (bool, diag.Diagnostics) { var diags diag.Diagnostics - remote, err := r.client.Endpoint().Labels().ById(state.ID.ValueString()).Get(ctx, nil) + remote, err := r.client.Endpoint().Labels().ById(state.ID.ValueString()).Get(ctx, &abstractions.RequestConfiguration[endpoint.LabelsLabelsItemRequestBuilderGetQueryParameters]{QueryParameters: &endpoint.LabelsLabelsItemRequestBuilderGetQueryParameters{Expand: []models.Endpoint_Agent_Labels_API_ExpandLabelOptions{models.FILTERS_ENDPOINT_AGENT_LABELS_API_EXPANDLABELOPTIONS}}}) if err != nil { if errors.IsNotFound(err) { return false, diags diff --git a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/model.go b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/model.go index 229fd002..efc1cb20 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/model.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/model.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package endpoint_label diff --git a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/resource.go b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/resource.go index 5267212d..b60b29e2 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/resource.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/resource.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package endpoint_label diff --git a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/resource_acceptance_test.go b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/resource_acceptance_test.go index 631067d3..3237162b 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/resource_acceptance_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/resource_acceptance_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package endpoint_label_test diff --git a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/state.go b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/state.go index 385e98f6..cb34b680 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/state.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/state.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package endpoint_label diff --git a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/test_helper_test.go b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/test_helper_test.go index cf9bf4dc..29af908d 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/test_helper_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/test_helper_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package endpoint_label @@ -7,9 +7,12 @@ import ( "context" "github.com/hashicorp/terraform-plugin-testing/terraform" + abstractions "github.com/microsoft/kiota-abstractions-go" "github.com/deploymenttheory/terraform-plugin-framework-codegen/pilot/thousandeyes-kiota/internal/acceptance/exists" sdk "github.com/deploymenttheory/terraform-plugin-framework-codegen/pilot/thousandeyes-kiota/internal/sdk" + "github.com/deploymenttheory/terraform-plugin-framework-codegen/pilot/thousandeyes-kiota/internal/sdk/endpoint" + "github.com/deploymenttheory/terraform-plugin-framework-codegen/pilot/thousandeyes-kiota/internal/sdk/models" ) // EndpointLabelTestResource answers whether a thousandeyes_endpoint_label is really in the API. @@ -33,7 +36,7 @@ func (EndpointLabelTestResource) Exists( client *sdk.ThousandEyesClient, state *terraform.InstanceState, ) error { - _, err := client.Endpoint().Labels().ById(state.ID).Get(ctx, nil) + _, err := client.Endpoint().Labels().ById(state.ID).Get(ctx, &abstractions.RequestConfiguration[endpoint.LabelsLabelsItemRequestBuilderGetQueryParameters]{QueryParameters: &endpoint.LabelsLabelsItemRequestBuilderGetQueryParameters{Expand: []models.Endpoint_Agent_Labels_API_ExpandLabelOptions{models.FILTERS_ENDPOINT_AGENT_LABELS_API_EXPANDLABELOPTIONS}}}) return err }) diff --git a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/testdata/maximal.tf b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/testdata/maximal.tf index 839f1116..98a07a22 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/testdata/maximal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/testdata/maximal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The widest configuration the evidence supports: every writable attribute with a derivable # value, chosen by the same derivation the rehearsal probe sends to the live API. diff --git a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/testdata/minimal.tf b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/testdata/minimal.tf index 0257b9c1..866a5c70 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/testdata/minimal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/endpoint_agent_labels/v7/endpoint_label/testdata/minimal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The smallest configuration this resource accepts: its required attributes and nothing else. # diff --git a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/construct.go b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/construct.go index afc8e133..e3e2673d 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/construct.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/construct.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package role diff --git a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/crud.go b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/crud.go index ce728b81..d1d9b8fc 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/crud.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/crud.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package role diff --git a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/model.go b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/model.go index b98efbcb..57eeda0e 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/model.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/model.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package role diff --git a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/resource.go b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/resource.go index 16c502c8..4d0b6eb4 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/resource.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/resource.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package role diff --git a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/resource_acceptance_test.go b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/resource_acceptance_test.go index 30c8acc0..ed51677c 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/resource_acceptance_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/resource_acceptance_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package role_test diff --git a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/state.go b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/state.go index 4d8abb40..51ada212 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/state.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/state.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package role diff --git a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/test_helper_test.go b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/test_helper_test.go index e06210b0..d6865025 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/test_helper_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/test_helper_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package role diff --git a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/testdata/maximal.tf b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/testdata/maximal.tf index b0038d17..78d08131 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/testdata/maximal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/testdata/maximal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The widest configuration the evidence supports: every writable attribute with a derivable # value, chosen by the same derivation the rehearsal probe sends to the live API. diff --git a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/testdata/minimal.tf b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/testdata/minimal.tf index 71f13a4e..d646d8c2 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/testdata/minimal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/roles/v7/role/testdata/minimal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The smallest configuration this resource accepts: its required attributes and nothing else. # diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/conditional_validators.go b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/conditional_validators.go index 336a0c52..e5ba3b8a 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/conditional_validators.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/conditional_validators.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/construct.go b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/construct.go index bdc35c29..c611ff6f 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/construct.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/construct.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/crud.go b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/crud.go index 52f5b981..04ff22b5 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/crud.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/crud.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/list_acceptance_test.go b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/list_acceptance_test.go index 82ced49d..b6daf7f1 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/list_acceptance_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/list_acceptance_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag_test diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/list_resource.go b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/list_resource.go index 6402b302..09054707 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/list_resource.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/list_resource.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/model.go b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/model.go index 581c0ec8..3b121738 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/model.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/model.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. // REF: https://developer.cisco.com/docs/thousandeyes/list-tags/ package tag diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/resource.go b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/resource.go index 2d7d959c..2dcc3b16 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/resource.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/resource.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/resource_acceptance_test.go b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/resource_acceptance_test.go index cb7d241f..1955d782 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/resource_acceptance_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/resource_acceptance_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag_test diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/state.go b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/state.go index 95d2c403..ae96f8d6 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/state.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/state.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/test_helper_test.go b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/test_helper_test.go index 3282cda6..55015087 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/test_helper_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/test_helper_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package tag diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/maximal.tf b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/maximal.tf index c6fd053d..08acfa11 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/maximal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/maximal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The widest configuration the evidence supports: every writable attribute with a derivable # value, chosen by the same derivation the rehearsal probe sends to the live API. diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/minimal.tf b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/minimal.tf index 28b3913f..eb3dabea 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/minimal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/minimal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The smallest configuration this resource accepts: its required attributes and nothing else. # diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/query.tf b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/query.tf index ffa36454..4b25e123 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/query.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/query.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The query configuration: one list block over the whole collection. The provider block # is explicit because the list block references it by symbol, unlike a resource step diff --git a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/replace.tf b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/replace.tf index 33d8258e..f0fcb825 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/replace.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/tags/v7/tag/testdata/replace.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The smallest configuration this resource accepts: its required attributes and nothing else. # diff --git a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/construct.go b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/construct.go index 4c572db4..821d815b 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/construct.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/construct.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package user diff --git a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/crud.go b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/crud.go index 32e8746d..05191e40 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/crud.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/crud.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package user diff --git a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/model.go b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/model.go index 19751f6b..28a3808e 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/model.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/model.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package user diff --git a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/resource.go b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/resource.go index 14583210..1026fcb0 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/resource.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/resource.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package user diff --git a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/resource_acceptance_test.go b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/resource_acceptance_test.go index 9dd3863e..ea0815f0 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/resource_acceptance_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/resource_acceptance_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package user_test diff --git a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/state.go b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/state.go index 206f7627..ccc20297 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/state.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/state.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package user diff --git a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/test_helper_test.go b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/test_helper_test.go index b7681dfb..c2a879da 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/test_helper_test.go +++ b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/test_helper_test.go @@ -1,5 +1,5 @@ // Code generated by tfpfgen from blueprints/thousandeyes-kiota -// (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +// (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. package user diff --git a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/testdata/maximal.tf b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/testdata/maximal.tf index 1f7623ca..d090dec0 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/testdata/maximal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/testdata/maximal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The widest configuration the evidence supports: every writable attribute with a derivable # value, chosen by the same derivation the rehearsal probe sends to the live API. diff --git a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/testdata/minimal.tf b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/testdata/minimal.tf index 7c9cfdfd..08190565 100644 --- a/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/testdata/minimal.tf +++ b/pilot/thousandeyes-kiota/internal/services/resources/users/v7/user/testdata/minimal.tf @@ -1,5 +1,5 @@ # Code generated by tfpfgen from blueprints/thousandeyes-kiota -# (sha256:c2cf76ac3103c3952bf7293d203903e0fe737bf6f5557c9886edf186808f4c22). DO NOT EDIT. +# (sha256:434ad04ce572e36db37385f5f233e261de50e3736b4a1586468ad4a66a893ca5). DO NOT EDIT. # The smallest configuration this resource accepts: its required attributes and nothing else. #