POST Create E2NodeSet
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets
QUERY PARAMS

namespace
BODY json

{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets" {:content-type :json
                                                                                                  :form-params {:apiVersion ""
                                                                                                                :kind ""
                                                                                                                :metadata {:name ""
                                                                                                                           :namespace ""
                                                                                                                           :labels {}
                                                                                                                           :annotations {}
                                                                                                                           :uid ""
                                                                                                                           :resourceVersion ""
                                                                                                                           :generation 0
                                                                                                                           :creationTimestamp ""}
                                                                                                                :spec {:replicas 0
                                                                                                                       :nodeTemplate {:metadata {:labels {}}
                                                                                                                                      :spec {:e2Connection {:ricEndpoint ""
                                                                                                                                                            :nodeId ""
                                                                                                                                                            :plmnId ""
                                                                                                                                                            :ricId ""}
                                                                                                                                             :resources {:requests {:cpu ""
                                                                                                                                                                    :memory ""}
                                                                                                                                                         :limits {:cpu ""
                                                                                                                                                                  :memory ""}}
                                                                                                                                             :config {:cellCount 0
                                                                                                                                                      :bandwidth ""
                                                                                                                                                      :txPower ""
                                                                                                                                                      :frequency ""
                                                                                                                                                      :serviceModels []}}}}
                                                                                                                :status {:replicas 0
                                                                                                                         :readyReplicas 0
                                                                                                                         :availableReplicas 0
                                                                                                                         :unavailableReplicas 0
                                                                                                                         :conditions [{:type ""
                                                                                                                                       :status ""
                                                                                                                                       :lastTransitionTime ""
                                                                                                                                       :reason ""
                                                                                                                                       :message ""
                                                                                                                                       :observedGeneration 0}]
                                                                                                                         :nodeStatus [{:nodeId ""
                                                                                                                                       :status ""
                                                                                                                                       :configMapName ""
                                                                                                                                       :e2ConnectionStatus ""
                                                                                                                                       :lastSeen ""
                                                                                                                                       :metrics {:cpu ""
                                                                                                                                                 :memory ""}}]}}})
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"),
    Content = new StringContent("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"

	payload := strings.NewReader("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1430

{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")
  .header("content-type", "application/json")
  .body("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}")
  .asString();
const data = JSON.stringify({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    replicas: 0,
    nodeTemplate: {
      metadata: {
        labels: {}
      },
      spec: {
        e2Connection: {
          ricEndpoint: '',
          nodeId: '',
          plmnId: '',
          ricId: ''
        },
        resources: {
          requests: {
            cpu: '',
            memory: ''
          },
          limits: {
            cpu: '',
            memory: ''
          }
        },
        config: {
          cellCount: 0,
          bandwidth: '',
          txPower: '',
          frequency: '',
          serviceModels: []
        }
      }
    }
  },
  status: {
    replicas: 0,
    readyReplicas: 0,
    availableReplicas: 0,
    unavailableReplicas: 0,
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    nodeStatus: [
      {
        nodeId: '',
        status: '',
        configMapName: '',
        e2ConnectionStatus: '',
        lastSeen: '',
        metrics: {
          cpu: '',
          memory: ''
        }
      }
    ]
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets',
  headers: {'content-type': 'application/json'},
  data: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      replicas: 0,
      nodeTemplate: {
        metadata: {labels: {}},
        spec: {
          e2Connection: {ricEndpoint: '', nodeId: '', plmnId: '', ricId: ''},
          resources: {requests: {cpu: '', memory: ''}, limits: {cpu: '', memory: ''}},
          config: {cellCount: 0, bandwidth: '', txPower: '', frequency: '', serviceModels: []}
        }
      }
    },
    status: {
      replicas: 0,
      readyReplicas: 0,
      availableReplicas: 0,
      unavailableReplicas: 0,
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      nodeStatus: [
        {
          nodeId: '',
          status: '',
          configMapName: '',
          e2ConnectionStatus: '',
          lastSeen: '',
          metrics: {cpu: '', memory: ''}
        }
      ]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"apiVersion":"","kind":"","metadata":{"name":"","namespace":"","labels":{},"annotations":{},"uid":"","resourceVersion":"","generation":0,"creationTimestamp":""},"spec":{"replicas":0,"nodeTemplate":{"metadata":{"labels":{}},"spec":{"e2Connection":{"ricEndpoint":"","nodeId":"","plmnId":"","ricId":""},"resources":{"requests":{"cpu":"","memory":""},"limits":{"cpu":"","memory":""}},"config":{"cellCount":0,"bandwidth":"","txPower":"","frequency":"","serviceModels":[]}}}},"status":{"replicas":0,"readyReplicas":0,"availableReplicas":0,"unavailableReplicas":0,"conditions":[{"type":"","status":"","lastTransitionTime":"","reason":"","message":"","observedGeneration":0}],"nodeStatus":[{"nodeId":"","status":"","configMapName":"","e2ConnectionStatus":"","lastSeen":"","metrics":{"cpu":"","memory":""}}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "apiVersion": "",\n  "kind": "",\n  "metadata": {\n    "name": "",\n    "namespace": "",\n    "labels": {},\n    "annotations": {},\n    "uid": "",\n    "resourceVersion": "",\n    "generation": 0,\n    "creationTimestamp": ""\n  },\n  "spec": {\n    "replicas": 0,\n    "nodeTemplate": {\n      "metadata": {\n        "labels": {}\n      },\n      "spec": {\n        "e2Connection": {\n          "ricEndpoint": "",\n          "nodeId": "",\n          "plmnId": "",\n          "ricId": ""\n        },\n        "resources": {\n          "requests": {\n            "cpu": "",\n            "memory": ""\n          },\n          "limits": {\n            "cpu": "",\n            "memory": ""\n          }\n        },\n        "config": {\n          "cellCount": 0,\n          "bandwidth": "",\n          "txPower": "",\n          "frequency": "",\n          "serviceModels": []\n        }\n      }\n    }\n  },\n  "status": {\n    "replicas": 0,\n    "readyReplicas": 0,\n    "availableReplicas": 0,\n    "unavailableReplicas": 0,\n    "conditions": [\n      {\n        "type": "",\n        "status": "",\n        "lastTransitionTime": "",\n        "reason": "",\n        "message": "",\n        "observedGeneration": 0\n      }\n    ],\n    "nodeStatus": [\n      {\n        "nodeId": "",\n        "status": "",\n        "configMapName": "",\n        "e2ConnectionStatus": "",\n        "lastSeen": "",\n        "metrics": {\n          "cpu": "",\n          "memory": ""\n        }\n      }\n    ]\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    replicas: 0,
    nodeTemplate: {
      metadata: {labels: {}},
      spec: {
        e2Connection: {ricEndpoint: '', nodeId: '', plmnId: '', ricId: ''},
        resources: {requests: {cpu: '', memory: ''}, limits: {cpu: '', memory: ''}},
        config: {cellCount: 0, bandwidth: '', txPower: '', frequency: '', serviceModels: []}
      }
    }
  },
  status: {
    replicas: 0,
    readyReplicas: 0,
    availableReplicas: 0,
    unavailableReplicas: 0,
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    nodeStatus: [
      {
        nodeId: '',
        status: '',
        configMapName: '',
        e2ConnectionStatus: '',
        lastSeen: '',
        metrics: {cpu: '', memory: ''}
      }
    ]
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets',
  headers: {'content-type': 'application/json'},
  body: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      replicas: 0,
      nodeTemplate: {
        metadata: {labels: {}},
        spec: {
          e2Connection: {ricEndpoint: '', nodeId: '', plmnId: '', ricId: ''},
          resources: {requests: {cpu: '', memory: ''}, limits: {cpu: '', memory: ''}},
          config: {cellCount: 0, bandwidth: '', txPower: '', frequency: '', serviceModels: []}
        }
      }
    },
    status: {
      replicas: 0,
      readyReplicas: 0,
      availableReplicas: 0,
      unavailableReplicas: 0,
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      nodeStatus: [
        {
          nodeId: '',
          status: '',
          configMapName: '',
          e2ConnectionStatus: '',
          lastSeen: '',
          metrics: {cpu: '', memory: ''}
        }
      ]
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    replicas: 0,
    nodeTemplate: {
      metadata: {
        labels: {}
      },
      spec: {
        e2Connection: {
          ricEndpoint: '',
          nodeId: '',
          plmnId: '',
          ricId: ''
        },
        resources: {
          requests: {
            cpu: '',
            memory: ''
          },
          limits: {
            cpu: '',
            memory: ''
          }
        },
        config: {
          cellCount: 0,
          bandwidth: '',
          txPower: '',
          frequency: '',
          serviceModels: []
        }
      }
    }
  },
  status: {
    replicas: 0,
    readyReplicas: 0,
    availableReplicas: 0,
    unavailableReplicas: 0,
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    nodeStatus: [
      {
        nodeId: '',
        status: '',
        configMapName: '',
        e2ConnectionStatus: '',
        lastSeen: '',
        metrics: {
          cpu: '',
          memory: ''
        }
      }
    ]
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets',
  headers: {'content-type': 'application/json'},
  data: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      replicas: 0,
      nodeTemplate: {
        metadata: {labels: {}},
        spec: {
          e2Connection: {ricEndpoint: '', nodeId: '', plmnId: '', ricId: ''},
          resources: {requests: {cpu: '', memory: ''}, limits: {cpu: '', memory: ''}},
          config: {cellCount: 0, bandwidth: '', txPower: '', frequency: '', serviceModels: []}
        }
      }
    },
    status: {
      replicas: 0,
      readyReplicas: 0,
      availableReplicas: 0,
      unavailableReplicas: 0,
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      nodeStatus: [
        {
          nodeId: '',
          status: '',
          configMapName: '',
          e2ConnectionStatus: '',
          lastSeen: '',
          metrics: {cpu: '', memory: ''}
        }
      ]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"apiVersion":"","kind":"","metadata":{"name":"","namespace":"","labels":{},"annotations":{},"uid":"","resourceVersion":"","generation":0,"creationTimestamp":""},"spec":{"replicas":0,"nodeTemplate":{"metadata":{"labels":{}},"spec":{"e2Connection":{"ricEndpoint":"","nodeId":"","plmnId":"","ricId":""},"resources":{"requests":{"cpu":"","memory":""},"limits":{"cpu":"","memory":""}},"config":{"cellCount":0,"bandwidth":"","txPower":"","frequency":"","serviceModels":[]}}}},"status":{"replicas":0,"readyReplicas":0,"availableReplicas":0,"unavailableReplicas":0,"conditions":[{"type":"","status":"","lastTransitionTime":"","reason":"","message":"","observedGeneration":0}],"nodeStatus":[{"nodeId":"","status":"","configMapName":"","e2ConnectionStatus":"","lastSeen":"","metrics":{"cpu":"","memory":""}}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"apiVersion": @"",
                              @"kind": @"",
                              @"metadata": @{ @"name": @"", @"namespace": @"", @"labels": @{  }, @"annotations": @{  }, @"uid": @"", @"resourceVersion": @"", @"generation": @0, @"creationTimestamp": @"" },
                              @"spec": @{ @"replicas": @0, @"nodeTemplate": @{ @"metadata": @{ @"labels": @{  } }, @"spec": @{ @"e2Connection": @{ @"ricEndpoint": @"", @"nodeId": @"", @"plmnId": @"", @"ricId": @"" }, @"resources": @{ @"requests": @{ @"cpu": @"", @"memory": @"" }, @"limits": @{ @"cpu": @"", @"memory": @"" } }, @"config": @{ @"cellCount": @0, @"bandwidth": @"", @"txPower": @"", @"frequency": @"", @"serviceModels": @[  ] } } } },
                              @"status": @{ @"replicas": @0, @"readyReplicas": @0, @"availableReplicas": @0, @"unavailableReplicas": @0, @"conditions": @[ @{ @"type": @"", @"status": @"", @"lastTransitionTime": @"", @"reason": @"", @"message": @"", @"observedGeneration": @0 } ], @"nodeStatus": @[ @{ @"nodeId": @"", @"status": @"", @"configMapName": @"", @"e2ConnectionStatus": @"", @"lastSeen": @"", @"metrics": @{ @"cpu": @"", @"memory": @"" } } ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'apiVersion' => '',
    'kind' => '',
    'metadata' => [
        'name' => '',
        'namespace' => '',
        'labels' => [
                
        ],
        'annotations' => [
                
        ],
        'uid' => '',
        'resourceVersion' => '',
        'generation' => 0,
        'creationTimestamp' => ''
    ],
    'spec' => [
        'replicas' => 0,
        'nodeTemplate' => [
                'metadata' => [
                                'labels' => [
                                                                
                                ]
                ],
                'spec' => [
                                'e2Connection' => [
                                                                'ricEndpoint' => '',
                                                                'nodeId' => '',
                                                                'plmnId' => '',
                                                                'ricId' => ''
                                ],
                                'resources' => [
                                                                'requests' => [
                                                                                                                                'cpu' => '',
                                                                                                                                'memory' => ''
                                                                ],
                                                                'limits' => [
                                                                                                                                'cpu' => '',
                                                                                                                                'memory' => ''
                                                                ]
                                ],
                                'config' => [
                                                                'cellCount' => 0,
                                                                'bandwidth' => '',
                                                                'txPower' => '',
                                                                'frequency' => '',
                                                                'serviceModels' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ]
    ],
    'status' => [
        'replicas' => 0,
        'readyReplicas' => 0,
        'availableReplicas' => 0,
        'unavailableReplicas' => 0,
        'conditions' => [
                [
                                'type' => '',
                                'status' => '',
                                'lastTransitionTime' => '',
                                'reason' => '',
                                'message' => '',
                                'observedGeneration' => 0
                ]
        ],
        'nodeStatus' => [
                [
                                'nodeId' => '',
                                'status' => '',
                                'configMapName' => '',
                                'e2ConnectionStatus' => '',
                                'lastSeen' => '',
                                'metrics' => [
                                                                'cpu' => '',
                                                                'memory' => ''
                                ]
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets', [
  'body' => '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'apiVersion' => '',
  'kind' => '',
  'metadata' => [
    'name' => '',
    'namespace' => '',
    'labels' => [
        
    ],
    'annotations' => [
        
    ],
    'uid' => '',
    'resourceVersion' => '',
    'generation' => 0,
    'creationTimestamp' => ''
  ],
  'spec' => [
    'replicas' => 0,
    'nodeTemplate' => [
        'metadata' => [
                'labels' => [
                                
                ]
        ],
        'spec' => [
                'e2Connection' => [
                                'ricEndpoint' => '',
                                'nodeId' => '',
                                'plmnId' => '',
                                'ricId' => ''
                ],
                'resources' => [
                                'requests' => [
                                                                'cpu' => '',
                                                                'memory' => ''
                                ],
                                'limits' => [
                                                                'cpu' => '',
                                                                'memory' => ''
                                ]
                ],
                'config' => [
                                'cellCount' => 0,
                                'bandwidth' => '',
                                'txPower' => '',
                                'frequency' => '',
                                'serviceModels' => [
                                                                
                                ]
                ]
        ]
    ]
  ],
  'status' => [
    'replicas' => 0,
    'readyReplicas' => 0,
    'availableReplicas' => 0,
    'unavailableReplicas' => 0,
    'conditions' => [
        [
                'type' => '',
                'status' => '',
                'lastTransitionTime' => '',
                'reason' => '',
                'message' => '',
                'observedGeneration' => 0
        ]
    ],
    'nodeStatus' => [
        [
                'nodeId' => '',
                'status' => '',
                'configMapName' => '',
                'e2ConnectionStatus' => '',
                'lastSeen' => '',
                'metrics' => [
                                'cpu' => '',
                                'memory' => ''
                ]
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'apiVersion' => '',
  'kind' => '',
  'metadata' => [
    'name' => '',
    'namespace' => '',
    'labels' => [
        
    ],
    'annotations' => [
        
    ],
    'uid' => '',
    'resourceVersion' => '',
    'generation' => 0,
    'creationTimestamp' => ''
  ],
  'spec' => [
    'replicas' => 0,
    'nodeTemplate' => [
        'metadata' => [
                'labels' => [
                                
                ]
        ],
        'spec' => [
                'e2Connection' => [
                                'ricEndpoint' => '',
                                'nodeId' => '',
                                'plmnId' => '',
                                'ricId' => ''
                ],
                'resources' => [
                                'requests' => [
                                                                'cpu' => '',
                                                                'memory' => ''
                                ],
                                'limits' => [
                                                                'cpu' => '',
                                                                'memory' => ''
                                ]
                ],
                'config' => [
                                'cellCount' => 0,
                                'bandwidth' => '',
                                'txPower' => '',
                                'frequency' => '',
                                'serviceModels' => [
                                                                
                                ]
                ]
        ]
    ]
  ],
  'status' => [
    'replicas' => 0,
    'readyReplicas' => 0,
    'availableReplicas' => 0,
    'unavailableReplicas' => 0,
    'conditions' => [
        [
                'type' => '',
                'status' => '',
                'lastTransitionTime' => '',
                'reason' => '',
                'message' => '',
                'observedGeneration' => 0
        ]
    ],
    'nodeStatus' => [
        [
                'nodeId' => '',
                'status' => '',
                'configMapName' => '',
                'e2ConnectionStatus' => '',
                'lastSeen' => '',
                'metrics' => [
                                'cpu' => '',
                                'memory' => ''
                ]
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"

payload = {
    "apiVersion": "",
    "kind": "",
    "metadata": {
        "name": "",
        "namespace": "",
        "labels": {},
        "annotations": {},
        "uid": "",
        "resourceVersion": "",
        "generation": 0,
        "creationTimestamp": ""
    },
    "spec": {
        "replicas": 0,
        "nodeTemplate": {
            "metadata": { "labels": {} },
            "spec": {
                "e2Connection": {
                    "ricEndpoint": "",
                    "nodeId": "",
                    "plmnId": "",
                    "ricId": ""
                },
                "resources": {
                    "requests": {
                        "cpu": "",
                        "memory": ""
                    },
                    "limits": {
                        "cpu": "",
                        "memory": ""
                    }
                },
                "config": {
                    "cellCount": 0,
                    "bandwidth": "",
                    "txPower": "",
                    "frequency": "",
                    "serviceModels": []
                }
            }
        }
    },
    "status": {
        "replicas": 0,
        "readyReplicas": 0,
        "availableReplicas": 0,
        "unavailableReplicas": 0,
        "conditions": [
            {
                "type": "",
                "status": "",
                "lastTransitionTime": "",
                "reason": "",
                "message": "",
                "observedGeneration": 0
            }
        ],
        "nodeStatus": [
            {
                "nodeId": "",
                "status": "",
                "configMapName": "",
                "e2ConnectionStatus": "",
                "lastSeen": "",
                "metrics": {
                    "cpu": "",
                    "memory": ""
                }
            }
        ]
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"

payload <- "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets') do |req|
  req.body = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets";

    let payload = json!({
        "apiVersion": "",
        "kind": "",
        "metadata": json!({
            "name": "",
            "namespace": "",
            "labels": json!({}),
            "annotations": json!({}),
            "uid": "",
            "resourceVersion": "",
            "generation": 0,
            "creationTimestamp": ""
        }),
        "spec": json!({
            "replicas": 0,
            "nodeTemplate": json!({
                "metadata": json!({"labels": json!({})}),
                "spec": json!({
                    "e2Connection": json!({
                        "ricEndpoint": "",
                        "nodeId": "",
                        "plmnId": "",
                        "ricId": ""
                    }),
                    "resources": json!({
                        "requests": json!({
                            "cpu": "",
                            "memory": ""
                        }),
                        "limits": json!({
                            "cpu": "",
                            "memory": ""
                        })
                    }),
                    "config": json!({
                        "cellCount": 0,
                        "bandwidth": "",
                        "txPower": "",
                        "frequency": "",
                        "serviceModels": ()
                    })
                })
            })
        }),
        "status": json!({
            "replicas": 0,
            "readyReplicas": 0,
            "availableReplicas": 0,
            "unavailableReplicas": 0,
            "conditions": (
                json!({
                    "type": "",
                    "status": "",
                    "lastTransitionTime": "",
                    "reason": "",
                    "message": "",
                    "observedGeneration": 0
                })
            ),
            "nodeStatus": (
                json!({
                    "nodeId": "",
                    "status": "",
                    "configMapName": "",
                    "e2ConnectionStatus": "",
                    "lastSeen": "",
                    "metrics": json!({
                        "cpu": "",
                        "memory": ""
                    })
                })
            )
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets \
  --header 'content-type: application/json' \
  --data '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}'
echo '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}' |  \
  http POST {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "apiVersion": "",\n  "kind": "",\n  "metadata": {\n    "name": "",\n    "namespace": "",\n    "labels": {},\n    "annotations": {},\n    "uid": "",\n    "resourceVersion": "",\n    "generation": 0,\n    "creationTimestamp": ""\n  },\n  "spec": {\n    "replicas": 0,\n    "nodeTemplate": {\n      "metadata": {\n        "labels": {}\n      },\n      "spec": {\n        "e2Connection": {\n          "ricEndpoint": "",\n          "nodeId": "",\n          "plmnId": "",\n          "ricId": ""\n        },\n        "resources": {\n          "requests": {\n            "cpu": "",\n            "memory": ""\n          },\n          "limits": {\n            "cpu": "",\n            "memory": ""\n          }\n        },\n        "config": {\n          "cellCount": 0,\n          "bandwidth": "",\n          "txPower": "",\n          "frequency": "",\n          "serviceModels": []\n        }\n      }\n    }\n  },\n  "status": {\n    "replicas": 0,\n    "readyReplicas": 0,\n    "availableReplicas": 0,\n    "unavailableReplicas": 0,\n    "conditions": [\n      {\n        "type": "",\n        "status": "",\n        "lastTransitionTime": "",\n        "reason": "",\n        "message": "",\n        "observedGeneration": 0\n      }\n    ],\n    "nodeStatus": [\n      {\n        "nodeId": "",\n        "status": "",\n        "configMapName": "",\n        "e2ConnectionStatus": "",\n        "lastSeen": "",\n        "metrics": {\n          "cpu": "",\n          "memory": ""\n        }\n      }\n    ]\n  }\n}' \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "apiVersion": "",
  "kind": "",
  "metadata": [
    "name": "",
    "namespace": "",
    "labels": [],
    "annotations": [],
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  ],
  "spec": [
    "replicas": 0,
    "nodeTemplate": [
      "metadata": ["labels": []],
      "spec": [
        "e2Connection": [
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        ],
        "resources": [
          "requests": [
            "cpu": "",
            "memory": ""
          ],
          "limits": [
            "cpu": "",
            "memory": ""
          ]
        ],
        "config": [
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        ]
      ]
    ]
  ],
  "status": [
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      [
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      ]
    ],
    "nodeStatus": [
      [
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": [
          "cpu": "",
          "memory": ""
        ]
      ]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "apiVersion": "nephoran.com/v1",
  "kind": "E2NodeSet",
  "metadata": {
    "name": "example-intent",
    "namespace": "default",
    "labels": {
      "app": "nephoran",
      "component": "intent-processor"
    },
    "annotations": {
      "nephoran.com/processed-by": "llm-processor-v2"
    },
    "uid": "12345678-1234-1234-1234-123456789012",
    "resourceVersion": "12345",
    "generation": 1,
    "creationTimestamp": "2025-01-30T10:30:00Z"
  },
  "spec": {
    "replicas": 5
  },
  "status": {
    "replicas": 5,
    "readyReplicas": 5,
    "availableReplicas": 5,
    "unavailableReplicas": 0
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
DELETE Delete E2NodeSet
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
QUERY PARAMS

namespace
name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
http DELETE {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
GET Get E2NodeSet
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
QUERY PARAMS

namespace
name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
http GET {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "apiVersion": "nephoran.com/v1",
  "kind": "E2NodeSet",
  "metadata": {
    "name": "example-intent",
    "namespace": "default",
    "labels": {
      "app": "nephoran",
      "component": "intent-processor"
    },
    "annotations": {
      "nephoran.com/processed-by": "llm-processor-v2"
    },
    "uid": "12345678-1234-1234-1234-123456789012",
    "resourceVersion": "12345",
    "generation": 1,
    "creationTimestamp": "2025-01-30T10:30:00Z"
  },
  "spec": {
    "replicas": 5
  },
  "status": {
    "replicas": 5,
    "readyReplicas": 5,
    "availableReplicas": 5,
    "unavailableReplicas": 0
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
GET List E2NodeSets
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets
QUERY PARAMS

namespace
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets');

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets
http GET {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "apiVersion": "nephoran.com/v1",
  "kind": "E2NodeSetList",
  "metadata": {
    "resourceVersion": "12345",
    "continue": "eyJzdGFydCI6MTAwfQ=="
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
PATCH Patch E2NodeSet
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
QUERY PARAMS

namespace
name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

response = HTTP::Client.patch url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name");
var request = new RestRequest("", Method.Patch);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

	req, _ := http.NewRequest("PATCH", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PATCH /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"))
    .method("PATCH", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .patch(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name';
const options = {method: 'PATCH'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name',
  method: 'PATCH',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .patch(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name';
const options = {method: 'PATCH'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name" in

Client.call `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');
$request->setRequestMethod('PATCH');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name' -Method PATCH 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name' -Method PATCH 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PATCH", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

response = requests.patch(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

response <- VERB("PATCH", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.patch('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
http PATCH {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
wget --quiet \
  --method PATCH \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "apiVersion": "nephoran.com/v1",
  "kind": "E2NodeSet",
  "metadata": {
    "name": "example-intent",
    "namespace": "default",
    "labels": {
      "app": "nephoran",
      "component": "intent-processor"
    },
    "annotations": {
      "nephoran.com/processed-by": "llm-processor-v2"
    },
    "uid": "12345678-1234-1234-1234-123456789012",
    "resourceVersion": "12345",
    "generation": 1,
    "creationTimestamp": "2025-01-30T10:30:00Z"
  },
  "spec": {
    "replicas": 5
  },
  "status": {
    "replicas": 5,
    "readyReplicas": 5,
    "availableReplicas": 5,
    "unavailableReplicas": 0
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
PUT Scale E2NodeSet
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale
QUERY PARAMS

namespace
name
BODY json

{
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0
  },
  "status": {
    "replicas": 0
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale" {:content-type :json
                                                                                                             :form-params {:metadata {:name ""
                                                                                                                                      :namespace ""
                                                                                                                                      :labels {}
                                                                                                                                      :annotations {}
                                                                                                                                      :uid ""
                                                                                                                                      :resourceVersion ""
                                                                                                                                      :generation 0
                                                                                                                                      :creationTimestamp ""}
                                                                                                                           :spec {:replicas 0}
                                                                                                                           :status {:replicas 0}}})
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale"),
    Content = new StringContent("{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale"

	payload := strings.NewReader("{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 264

{
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0
  },
  "status": {
    "replicas": 0
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale")
  .header("content-type", "application/json")
  .body("{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}")
  .asString();
const data = JSON.stringify({
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    replicas: 0
  },
  status: {
    replicas: 0
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale',
  headers: {'content-type': 'application/json'},
  data: {
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {replicas: 0},
    status: {replicas: 0}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"metadata":{"name":"","namespace":"","labels":{},"annotations":{},"uid":"","resourceVersion":"","generation":0,"creationTimestamp":""},"spec":{"replicas":0},"status":{"replicas":0}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "metadata": {\n    "name": "",\n    "namespace": "",\n    "labels": {},\n    "annotations": {},\n    "uid": "",\n    "resourceVersion": "",\n    "generation": 0,\n    "creationTimestamp": ""\n  },\n  "spec": {\n    "replicas": 0\n  },\n  "status": {\n    "replicas": 0\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {replicas: 0},
  status: {replicas: 0}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale',
  headers: {'content-type': 'application/json'},
  body: {
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {replicas: 0},
    status: {replicas: 0}
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    replicas: 0
  },
  status: {
    replicas: 0
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale',
  headers: {'content-type': 'application/json'},
  data: {
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {replicas: 0},
    status: {replicas: 0}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"metadata":{"name":"","namespace":"","labels":{},"annotations":{},"uid":"","resourceVersion":"","generation":0,"creationTimestamp":""},"spec":{"replicas":0},"status":{"replicas":0}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"metadata": @{ @"name": @"", @"namespace": @"", @"labels": @{  }, @"annotations": @{  }, @"uid": @"", @"resourceVersion": @"", @"generation": @0, @"creationTimestamp": @"" },
                              @"spec": @{ @"replicas": @0 },
                              @"status": @{ @"replicas": @0 } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'metadata' => [
        'name' => '',
        'namespace' => '',
        'labels' => [
                
        ],
        'annotations' => [
                
        ],
        'uid' => '',
        'resourceVersion' => '',
        'generation' => 0,
        'creationTimestamp' => ''
    ],
    'spec' => [
        'replicas' => 0
    ],
    'status' => [
        'replicas' => 0
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale', [
  'body' => '{
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0
  },
  "status": {
    "replicas": 0
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'metadata' => [
    'name' => '',
    'namespace' => '',
    'labels' => [
        
    ],
    'annotations' => [
        
    ],
    'uid' => '',
    'resourceVersion' => '',
    'generation' => 0,
    'creationTimestamp' => ''
  ],
  'spec' => [
    'replicas' => 0
  ],
  'status' => [
    'replicas' => 0
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'metadata' => [
    'name' => '',
    'namespace' => '',
    'labels' => [
        
    ],
    'annotations' => [
        
    ],
    'uid' => '',
    'resourceVersion' => '',
    'generation' => 0,
    'creationTimestamp' => ''
  ],
  'spec' => [
    'replicas' => 0
  ],
  'status' => [
    'replicas' => 0
  ]
]));
$request->setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0
  },
  "status": {
    "replicas": 0
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0
  },
  "status": {
    "replicas": 0
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale"

payload = {
    "metadata": {
        "name": "",
        "namespace": "",
        "labels": {},
        "annotations": {},
        "uid": "",
        "resourceVersion": "",
        "generation": 0,
        "creationTimestamp": ""
    },
    "spec": { "replicas": 0 },
    "status": { "replicas": 0 }
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale"

payload <- "{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale') do |req|
  req.body = "{\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0\n  },\n  \"status\": {\n    \"replicas\": 0\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale";

    let payload = json!({
        "metadata": json!({
            "name": "",
            "namespace": "",
            "labels": json!({}),
            "annotations": json!({}),
            "uid": "",
            "resourceVersion": "",
            "generation": 0,
            "creationTimestamp": ""
        }),
        "spec": json!({"replicas": 0}),
        "status": json!({"replicas": 0})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale \
  --header 'content-type: application/json' \
  --data '{
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0
  },
  "status": {
    "replicas": 0
  }
}'
echo '{
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0
  },
  "status": {
    "replicas": 0
  }
}' |  \
  http PUT {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "metadata": {\n    "name": "",\n    "namespace": "",\n    "labels": {},\n    "annotations": {},\n    "uid": "",\n    "resourceVersion": "",\n    "generation": 0,\n    "creationTimestamp": ""\n  },\n  "spec": {\n    "replicas": 0\n  },\n  "status": {\n    "replicas": 0\n  }\n}' \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "metadata": [
    "name": "",
    "namespace": "",
    "labels": [],
    "annotations": [],
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  ],
  "spec": ["replicas": 0],
  "status": ["replicas": 0]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name/scale")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "metadata": {
    "name": "example-intent",
    "namespace": "default",
    "labels": {
      "app": "nephoran",
      "component": "intent-processor"
    },
    "annotations": {
      "nephoran.com/processed-by": "llm-processor-v2"
    },
    "uid": "12345678-1234-1234-1234-123456789012",
    "resourceVersion": "12345",
    "generation": 1,
    "creationTimestamp": "2025-01-30T10:30:00Z"
  },
  "spec": {
    "replicas": 8
  },
  "status": {
    "replicas": 5
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
PUT Update E2NodeSet
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
QUERY PARAMS

namespace
name
BODY json

{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name" {:content-type :json
                                                                                                       :form-params {:apiVersion ""
                                                                                                                     :kind ""
                                                                                                                     :metadata {:name ""
                                                                                                                                :namespace ""
                                                                                                                                :labels {}
                                                                                                                                :annotations {}
                                                                                                                                :uid ""
                                                                                                                                :resourceVersion ""
                                                                                                                                :generation 0
                                                                                                                                :creationTimestamp ""}
                                                                                                                     :spec {:replicas 0
                                                                                                                            :nodeTemplate {:metadata {:labels {}}
                                                                                                                                           :spec {:e2Connection {:ricEndpoint ""
                                                                                                                                                                 :nodeId ""
                                                                                                                                                                 :plmnId ""
                                                                                                                                                                 :ricId ""}
                                                                                                                                                  :resources {:requests {:cpu ""
                                                                                                                                                                         :memory ""}
                                                                                                                                                              :limits {:cpu ""
                                                                                                                                                                       :memory ""}}
                                                                                                                                                  :config {:cellCount 0
                                                                                                                                                           :bandwidth ""
                                                                                                                                                           :txPower ""
                                                                                                                                                           :frequency ""
                                                                                                                                                           :serviceModels []}}}}
                                                                                                                     :status {:replicas 0
                                                                                                                              :readyReplicas 0
                                                                                                                              :availableReplicas 0
                                                                                                                              :unavailableReplicas 0
                                                                                                                              :conditions [{:type ""
                                                                                                                                            :status ""
                                                                                                                                            :lastTransitionTime ""
                                                                                                                                            :reason ""
                                                                                                                                            :message ""
                                                                                                                                            :observedGeneration 0}]
                                                                                                                              :nodeStatus [{:nodeId ""
                                                                                                                                            :status ""
                                                                                                                                            :configMapName ""
                                                                                                                                            :e2ConnectionStatus ""
                                                                                                                                            :lastSeen ""
                                                                                                                                            :metrics {:cpu ""
                                                                                                                                                      :memory ""}}]}}})
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"),
    Content = new StringContent("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

	payload := strings.NewReader("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1430

{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .header("content-type", "application/json")
  .body("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}")
  .asString();
const data = JSON.stringify({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    replicas: 0,
    nodeTemplate: {
      metadata: {
        labels: {}
      },
      spec: {
        e2Connection: {
          ricEndpoint: '',
          nodeId: '',
          plmnId: '',
          ricId: ''
        },
        resources: {
          requests: {
            cpu: '',
            memory: ''
          },
          limits: {
            cpu: '',
            memory: ''
          }
        },
        config: {
          cellCount: 0,
          bandwidth: '',
          txPower: '',
          frequency: '',
          serviceModels: []
        }
      }
    }
  },
  status: {
    replicas: 0,
    readyReplicas: 0,
    availableReplicas: 0,
    unavailableReplicas: 0,
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    nodeStatus: [
      {
        nodeId: '',
        status: '',
        configMapName: '',
        e2ConnectionStatus: '',
        lastSeen: '',
        metrics: {
          cpu: '',
          memory: ''
        }
      }
    ]
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name',
  headers: {'content-type': 'application/json'},
  data: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      replicas: 0,
      nodeTemplate: {
        metadata: {labels: {}},
        spec: {
          e2Connection: {ricEndpoint: '', nodeId: '', plmnId: '', ricId: ''},
          resources: {requests: {cpu: '', memory: ''}, limits: {cpu: '', memory: ''}},
          config: {cellCount: 0, bandwidth: '', txPower: '', frequency: '', serviceModels: []}
        }
      }
    },
    status: {
      replicas: 0,
      readyReplicas: 0,
      availableReplicas: 0,
      unavailableReplicas: 0,
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      nodeStatus: [
        {
          nodeId: '',
          status: '',
          configMapName: '',
          e2ConnectionStatus: '',
          lastSeen: '',
          metrics: {cpu: '', memory: ''}
        }
      ]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"apiVersion":"","kind":"","metadata":{"name":"","namespace":"","labels":{},"annotations":{},"uid":"","resourceVersion":"","generation":0,"creationTimestamp":""},"spec":{"replicas":0,"nodeTemplate":{"metadata":{"labels":{}},"spec":{"e2Connection":{"ricEndpoint":"","nodeId":"","plmnId":"","ricId":""},"resources":{"requests":{"cpu":"","memory":""},"limits":{"cpu":"","memory":""}},"config":{"cellCount":0,"bandwidth":"","txPower":"","frequency":"","serviceModels":[]}}}},"status":{"replicas":0,"readyReplicas":0,"availableReplicas":0,"unavailableReplicas":0,"conditions":[{"type":"","status":"","lastTransitionTime":"","reason":"","message":"","observedGeneration":0}],"nodeStatus":[{"nodeId":"","status":"","configMapName":"","e2ConnectionStatus":"","lastSeen":"","metrics":{"cpu":"","memory":""}}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "apiVersion": "",\n  "kind": "",\n  "metadata": {\n    "name": "",\n    "namespace": "",\n    "labels": {},\n    "annotations": {},\n    "uid": "",\n    "resourceVersion": "",\n    "generation": 0,\n    "creationTimestamp": ""\n  },\n  "spec": {\n    "replicas": 0,\n    "nodeTemplate": {\n      "metadata": {\n        "labels": {}\n      },\n      "spec": {\n        "e2Connection": {\n          "ricEndpoint": "",\n          "nodeId": "",\n          "plmnId": "",\n          "ricId": ""\n        },\n        "resources": {\n          "requests": {\n            "cpu": "",\n            "memory": ""\n          },\n          "limits": {\n            "cpu": "",\n            "memory": ""\n          }\n        },\n        "config": {\n          "cellCount": 0,\n          "bandwidth": "",\n          "txPower": "",\n          "frequency": "",\n          "serviceModels": []\n        }\n      }\n    }\n  },\n  "status": {\n    "replicas": 0,\n    "readyReplicas": 0,\n    "availableReplicas": 0,\n    "unavailableReplicas": 0,\n    "conditions": [\n      {\n        "type": "",\n        "status": "",\n        "lastTransitionTime": "",\n        "reason": "",\n        "message": "",\n        "observedGeneration": 0\n      }\n    ],\n    "nodeStatus": [\n      {\n        "nodeId": "",\n        "status": "",\n        "configMapName": "",\n        "e2ConnectionStatus": "",\n        "lastSeen": "",\n        "metrics": {\n          "cpu": "",\n          "memory": ""\n        }\n      }\n    ]\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    replicas: 0,
    nodeTemplate: {
      metadata: {labels: {}},
      spec: {
        e2Connection: {ricEndpoint: '', nodeId: '', plmnId: '', ricId: ''},
        resources: {requests: {cpu: '', memory: ''}, limits: {cpu: '', memory: ''}},
        config: {cellCount: 0, bandwidth: '', txPower: '', frequency: '', serviceModels: []}
      }
    }
  },
  status: {
    replicas: 0,
    readyReplicas: 0,
    availableReplicas: 0,
    unavailableReplicas: 0,
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    nodeStatus: [
      {
        nodeId: '',
        status: '',
        configMapName: '',
        e2ConnectionStatus: '',
        lastSeen: '',
        metrics: {cpu: '', memory: ''}
      }
    ]
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name',
  headers: {'content-type': 'application/json'},
  body: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      replicas: 0,
      nodeTemplate: {
        metadata: {labels: {}},
        spec: {
          e2Connection: {ricEndpoint: '', nodeId: '', plmnId: '', ricId: ''},
          resources: {requests: {cpu: '', memory: ''}, limits: {cpu: '', memory: ''}},
          config: {cellCount: 0, bandwidth: '', txPower: '', frequency: '', serviceModels: []}
        }
      }
    },
    status: {
      replicas: 0,
      readyReplicas: 0,
      availableReplicas: 0,
      unavailableReplicas: 0,
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      nodeStatus: [
        {
          nodeId: '',
          status: '',
          configMapName: '',
          e2ConnectionStatus: '',
          lastSeen: '',
          metrics: {cpu: '', memory: ''}
        }
      ]
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    replicas: 0,
    nodeTemplate: {
      metadata: {
        labels: {}
      },
      spec: {
        e2Connection: {
          ricEndpoint: '',
          nodeId: '',
          plmnId: '',
          ricId: ''
        },
        resources: {
          requests: {
            cpu: '',
            memory: ''
          },
          limits: {
            cpu: '',
            memory: ''
          }
        },
        config: {
          cellCount: 0,
          bandwidth: '',
          txPower: '',
          frequency: '',
          serviceModels: []
        }
      }
    }
  },
  status: {
    replicas: 0,
    readyReplicas: 0,
    availableReplicas: 0,
    unavailableReplicas: 0,
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    nodeStatus: [
      {
        nodeId: '',
        status: '',
        configMapName: '',
        e2ConnectionStatus: '',
        lastSeen: '',
        metrics: {
          cpu: '',
          memory: ''
        }
      }
    ]
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name',
  headers: {'content-type': 'application/json'},
  data: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      replicas: 0,
      nodeTemplate: {
        metadata: {labels: {}},
        spec: {
          e2Connection: {ricEndpoint: '', nodeId: '', plmnId: '', ricId: ''},
          resources: {requests: {cpu: '', memory: ''}, limits: {cpu: '', memory: ''}},
          config: {cellCount: 0, bandwidth: '', txPower: '', frequency: '', serviceModels: []}
        }
      }
    },
    status: {
      replicas: 0,
      readyReplicas: 0,
      availableReplicas: 0,
      unavailableReplicas: 0,
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      nodeStatus: [
        {
          nodeId: '',
          status: '',
          configMapName: '',
          e2ConnectionStatus: '',
          lastSeen: '',
          metrics: {cpu: '', memory: ''}
        }
      ]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"apiVersion":"","kind":"","metadata":{"name":"","namespace":"","labels":{},"annotations":{},"uid":"","resourceVersion":"","generation":0,"creationTimestamp":""},"spec":{"replicas":0,"nodeTemplate":{"metadata":{"labels":{}},"spec":{"e2Connection":{"ricEndpoint":"","nodeId":"","plmnId":"","ricId":""},"resources":{"requests":{"cpu":"","memory":""},"limits":{"cpu":"","memory":""}},"config":{"cellCount":0,"bandwidth":"","txPower":"","frequency":"","serviceModels":[]}}}},"status":{"replicas":0,"readyReplicas":0,"availableReplicas":0,"unavailableReplicas":0,"conditions":[{"type":"","status":"","lastTransitionTime":"","reason":"","message":"","observedGeneration":0}],"nodeStatus":[{"nodeId":"","status":"","configMapName":"","e2ConnectionStatus":"","lastSeen":"","metrics":{"cpu":"","memory":""}}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"apiVersion": @"",
                              @"kind": @"",
                              @"metadata": @{ @"name": @"", @"namespace": @"", @"labels": @{  }, @"annotations": @{  }, @"uid": @"", @"resourceVersion": @"", @"generation": @0, @"creationTimestamp": @"" },
                              @"spec": @{ @"replicas": @0, @"nodeTemplate": @{ @"metadata": @{ @"labels": @{  } }, @"spec": @{ @"e2Connection": @{ @"ricEndpoint": @"", @"nodeId": @"", @"plmnId": @"", @"ricId": @"" }, @"resources": @{ @"requests": @{ @"cpu": @"", @"memory": @"" }, @"limits": @{ @"cpu": @"", @"memory": @"" } }, @"config": @{ @"cellCount": @0, @"bandwidth": @"", @"txPower": @"", @"frequency": @"", @"serviceModels": @[  ] } } } },
                              @"status": @{ @"replicas": @0, @"readyReplicas": @0, @"availableReplicas": @0, @"unavailableReplicas": @0, @"conditions": @[ @{ @"type": @"", @"status": @"", @"lastTransitionTime": @"", @"reason": @"", @"message": @"", @"observedGeneration": @0 } ], @"nodeStatus": @[ @{ @"nodeId": @"", @"status": @"", @"configMapName": @"", @"e2ConnectionStatus": @"", @"lastSeen": @"", @"metrics": @{ @"cpu": @"", @"memory": @"" } } ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'apiVersion' => '',
    'kind' => '',
    'metadata' => [
        'name' => '',
        'namespace' => '',
        'labels' => [
                
        ],
        'annotations' => [
                
        ],
        'uid' => '',
        'resourceVersion' => '',
        'generation' => 0,
        'creationTimestamp' => ''
    ],
    'spec' => [
        'replicas' => 0,
        'nodeTemplate' => [
                'metadata' => [
                                'labels' => [
                                                                
                                ]
                ],
                'spec' => [
                                'e2Connection' => [
                                                                'ricEndpoint' => '',
                                                                'nodeId' => '',
                                                                'plmnId' => '',
                                                                'ricId' => ''
                                ],
                                'resources' => [
                                                                'requests' => [
                                                                                                                                'cpu' => '',
                                                                                                                                'memory' => ''
                                                                ],
                                                                'limits' => [
                                                                                                                                'cpu' => '',
                                                                                                                                'memory' => ''
                                                                ]
                                ],
                                'config' => [
                                                                'cellCount' => 0,
                                                                'bandwidth' => '',
                                                                'txPower' => '',
                                                                'frequency' => '',
                                                                'serviceModels' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ]
    ],
    'status' => [
        'replicas' => 0,
        'readyReplicas' => 0,
        'availableReplicas' => 0,
        'unavailableReplicas' => 0,
        'conditions' => [
                [
                                'type' => '',
                                'status' => '',
                                'lastTransitionTime' => '',
                                'reason' => '',
                                'message' => '',
                                'observedGeneration' => 0
                ]
        ],
        'nodeStatus' => [
                [
                                'nodeId' => '',
                                'status' => '',
                                'configMapName' => '',
                                'e2ConnectionStatus' => '',
                                'lastSeen' => '',
                                'metrics' => [
                                                                'cpu' => '',
                                                                'memory' => ''
                                ]
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name', [
  'body' => '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'apiVersion' => '',
  'kind' => '',
  'metadata' => [
    'name' => '',
    'namespace' => '',
    'labels' => [
        
    ],
    'annotations' => [
        
    ],
    'uid' => '',
    'resourceVersion' => '',
    'generation' => 0,
    'creationTimestamp' => ''
  ],
  'spec' => [
    'replicas' => 0,
    'nodeTemplate' => [
        'metadata' => [
                'labels' => [
                                
                ]
        ],
        'spec' => [
                'e2Connection' => [
                                'ricEndpoint' => '',
                                'nodeId' => '',
                                'plmnId' => '',
                                'ricId' => ''
                ],
                'resources' => [
                                'requests' => [
                                                                'cpu' => '',
                                                                'memory' => ''
                                ],
                                'limits' => [
                                                                'cpu' => '',
                                                                'memory' => ''
                                ]
                ],
                'config' => [
                                'cellCount' => 0,
                                'bandwidth' => '',
                                'txPower' => '',
                                'frequency' => '',
                                'serviceModels' => [
                                                                
                                ]
                ]
        ]
    ]
  ],
  'status' => [
    'replicas' => 0,
    'readyReplicas' => 0,
    'availableReplicas' => 0,
    'unavailableReplicas' => 0,
    'conditions' => [
        [
                'type' => '',
                'status' => '',
                'lastTransitionTime' => '',
                'reason' => '',
                'message' => '',
                'observedGeneration' => 0
        ]
    ],
    'nodeStatus' => [
        [
                'nodeId' => '',
                'status' => '',
                'configMapName' => '',
                'e2ConnectionStatus' => '',
                'lastSeen' => '',
                'metrics' => [
                                'cpu' => '',
                                'memory' => ''
                ]
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'apiVersion' => '',
  'kind' => '',
  'metadata' => [
    'name' => '',
    'namespace' => '',
    'labels' => [
        
    ],
    'annotations' => [
        
    ],
    'uid' => '',
    'resourceVersion' => '',
    'generation' => 0,
    'creationTimestamp' => ''
  ],
  'spec' => [
    'replicas' => 0,
    'nodeTemplate' => [
        'metadata' => [
                'labels' => [
                                
                ]
        ],
        'spec' => [
                'e2Connection' => [
                                'ricEndpoint' => '',
                                'nodeId' => '',
                                'plmnId' => '',
                                'ricId' => ''
                ],
                'resources' => [
                                'requests' => [
                                                                'cpu' => '',
                                                                'memory' => ''
                                ],
                                'limits' => [
                                                                'cpu' => '',
                                                                'memory' => ''
                                ]
                ],
                'config' => [
                                'cellCount' => 0,
                                'bandwidth' => '',
                                'txPower' => '',
                                'frequency' => '',
                                'serviceModels' => [
                                                                
                                ]
                ]
        ]
    ]
  ],
  'status' => [
    'replicas' => 0,
    'readyReplicas' => 0,
    'availableReplicas' => 0,
    'unavailableReplicas' => 0,
    'conditions' => [
        [
                'type' => '',
                'status' => '',
                'lastTransitionTime' => '',
                'reason' => '',
                'message' => '',
                'observedGeneration' => 0
        ]
    ],
    'nodeStatus' => [
        [
                'nodeId' => '',
                'status' => '',
                'configMapName' => '',
                'e2ConnectionStatus' => '',
                'lastSeen' => '',
                'metrics' => [
                                'cpu' => '',
                                'memory' => ''
                ]
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

payload = {
    "apiVersion": "",
    "kind": "",
    "metadata": {
        "name": "",
        "namespace": "",
        "labels": {},
        "annotations": {},
        "uid": "",
        "resourceVersion": "",
        "generation": 0,
        "creationTimestamp": ""
    },
    "spec": {
        "replicas": 0,
        "nodeTemplate": {
            "metadata": { "labels": {} },
            "spec": {
                "e2Connection": {
                    "ricEndpoint": "",
                    "nodeId": "",
                    "plmnId": "",
                    "ricId": ""
                },
                "resources": {
                    "requests": {
                        "cpu": "",
                        "memory": ""
                    },
                    "limits": {
                        "cpu": "",
                        "memory": ""
                    }
                },
                "config": {
                    "cellCount": 0,
                    "bandwidth": "",
                    "txPower": "",
                    "frequency": "",
                    "serviceModels": []
                }
            }
        }
    },
    "status": {
        "replicas": 0,
        "readyReplicas": 0,
        "availableReplicas": 0,
        "unavailableReplicas": 0,
        "conditions": [
            {
                "type": "",
                "status": "",
                "lastTransitionTime": "",
                "reason": "",
                "message": "",
                "observedGeneration": 0
            }
        ],
        "nodeStatus": [
            {
                "nodeId": "",
                "status": "",
                "configMapName": "",
                "e2ConnectionStatus": "",
                "lastSeen": "",
                "metrics": {
                    "cpu": "",
                    "memory": ""
                }
            }
        ]
    }
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name"

payload <- "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name') do |req|
  req.body = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"replicas\": 0,\n    \"nodeTemplate\": {\n      \"metadata\": {\n        \"labels\": {}\n      },\n      \"spec\": {\n        \"e2Connection\": {\n          \"ricEndpoint\": \"\",\n          \"nodeId\": \"\",\n          \"plmnId\": \"\",\n          \"ricId\": \"\"\n        },\n        \"resources\": {\n          \"requests\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          },\n          \"limits\": {\n            \"cpu\": \"\",\n            \"memory\": \"\"\n          }\n        },\n        \"config\": {\n          \"cellCount\": 0,\n          \"bandwidth\": \"\",\n          \"txPower\": \"\",\n          \"frequency\": \"\",\n          \"serviceModels\": []\n        }\n      }\n    }\n  },\n  \"status\": {\n    \"replicas\": 0,\n    \"readyReplicas\": 0,\n    \"availableReplicas\": 0,\n    \"unavailableReplicas\": 0,\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"nodeStatus\": [\n      {\n        \"nodeId\": \"\",\n        \"status\": \"\",\n        \"configMapName\": \"\",\n        \"e2ConnectionStatus\": \"\",\n        \"lastSeen\": \"\",\n        \"metrics\": {\n          \"cpu\": \"\",\n          \"memory\": \"\"\n        }\n      }\n    ]\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name";

    let payload = json!({
        "apiVersion": "",
        "kind": "",
        "metadata": json!({
            "name": "",
            "namespace": "",
            "labels": json!({}),
            "annotations": json!({}),
            "uid": "",
            "resourceVersion": "",
            "generation": 0,
            "creationTimestamp": ""
        }),
        "spec": json!({
            "replicas": 0,
            "nodeTemplate": json!({
                "metadata": json!({"labels": json!({})}),
                "spec": json!({
                    "e2Connection": json!({
                        "ricEndpoint": "",
                        "nodeId": "",
                        "plmnId": "",
                        "ricId": ""
                    }),
                    "resources": json!({
                        "requests": json!({
                            "cpu": "",
                            "memory": ""
                        }),
                        "limits": json!({
                            "cpu": "",
                            "memory": ""
                        })
                    }),
                    "config": json!({
                        "cellCount": 0,
                        "bandwidth": "",
                        "txPower": "",
                        "frequency": "",
                        "serviceModels": ()
                    })
                })
            })
        }),
        "status": json!({
            "replicas": 0,
            "readyReplicas": 0,
            "availableReplicas": 0,
            "unavailableReplicas": 0,
            "conditions": (
                json!({
                    "type": "",
                    "status": "",
                    "lastTransitionTime": "",
                    "reason": "",
                    "message": "",
                    "observedGeneration": 0
                })
            ),
            "nodeStatus": (
                json!({
                    "nodeId": "",
                    "status": "",
                    "configMapName": "",
                    "e2ConnectionStatus": "",
                    "lastSeen": "",
                    "metrics": json!({
                        "cpu": "",
                        "memory": ""
                    })
                })
            )
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name \
  --header 'content-type: application/json' \
  --data '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}'
echo '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "replicas": 0,
    "nodeTemplate": {
      "metadata": {
        "labels": {}
      },
      "spec": {
        "e2Connection": {
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        },
        "resources": {
          "requests": {
            "cpu": "",
            "memory": ""
          },
          "limits": {
            "cpu": "",
            "memory": ""
          }
        },
        "config": {
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        }
      }
    }
  },
  "status": {
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "nodeStatus": [
      {
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": {
          "cpu": "",
          "memory": ""
        }
      }
    ]
  }
}' |  \
  http PUT {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "apiVersion": "",\n  "kind": "",\n  "metadata": {\n    "name": "",\n    "namespace": "",\n    "labels": {},\n    "annotations": {},\n    "uid": "",\n    "resourceVersion": "",\n    "generation": 0,\n    "creationTimestamp": ""\n  },\n  "spec": {\n    "replicas": 0,\n    "nodeTemplate": {\n      "metadata": {\n        "labels": {}\n      },\n      "spec": {\n        "e2Connection": {\n          "ricEndpoint": "",\n          "nodeId": "",\n          "plmnId": "",\n          "ricId": ""\n        },\n        "resources": {\n          "requests": {\n            "cpu": "",\n            "memory": ""\n          },\n          "limits": {\n            "cpu": "",\n            "memory": ""\n          }\n        },\n        "config": {\n          "cellCount": 0,\n          "bandwidth": "",\n          "txPower": "",\n          "frequency": "",\n          "serviceModels": []\n        }\n      }\n    }\n  },\n  "status": {\n    "replicas": 0,\n    "readyReplicas": 0,\n    "availableReplicas": 0,\n    "unavailableReplicas": 0,\n    "conditions": [\n      {\n        "type": "",\n        "status": "",\n        "lastTransitionTime": "",\n        "reason": "",\n        "message": "",\n        "observedGeneration": 0\n      }\n    ],\n    "nodeStatus": [\n      {\n        "nodeId": "",\n        "status": "",\n        "configMapName": "",\n        "e2ConnectionStatus": "",\n        "lastSeen": "",\n        "metrics": {\n          "cpu": "",\n          "memory": ""\n        }\n      }\n    ]\n  }\n}' \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "apiVersion": "",
  "kind": "",
  "metadata": [
    "name": "",
    "namespace": "",
    "labels": [],
    "annotations": [],
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  ],
  "spec": [
    "replicas": 0,
    "nodeTemplate": [
      "metadata": ["labels": []],
      "spec": [
        "e2Connection": [
          "ricEndpoint": "",
          "nodeId": "",
          "plmnId": "",
          "ricId": ""
        ],
        "resources": [
          "requests": [
            "cpu": "",
            "memory": ""
          ],
          "limits": [
            "cpu": "",
            "memory": ""
          ]
        ],
        "config": [
          "cellCount": 0,
          "bandwidth": "",
          "txPower": "",
          "frequency": "",
          "serviceModels": []
        ]
      ]
    ]
  ],
  "status": [
    "replicas": 0,
    "readyReplicas": 0,
    "availableReplicas": 0,
    "unavailableReplicas": 0,
    "conditions": [
      [
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      ]
    ],
    "nodeStatus": [
      [
        "nodeId": "",
        "status": "",
        "configMapName": "",
        "e2ConnectionStatus": "",
        "lastSeen": "",
        "metrics": [
          "cpu": "",
          "memory": ""
        ]
      ]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/e2nodesets/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "apiVersion": "nephoran.com/v1",
  "kind": "E2NodeSet",
  "metadata": {
    "name": "example-intent",
    "namespace": "default",
    "labels": {
      "app": "nephoran",
      "component": "intent-processor"
    },
    "annotations": {
      "nephoran.com/processed-by": "llm-processor-v2"
    },
    "uid": "12345678-1234-1234-1234-123456789012",
    "resourceVersion": "12345",
    "generation": 1,
    "creationTimestamp": "2025-01-30T10:30:00Z"
  },
  "spec": {
    "replicas": 5
  },
  "status": {
    "replicas": 5,
    "readyReplicas": 5,
    "availableReplicas": 5,
    "unavailableReplicas": 0
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
POST Create NetworkIntent
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents
QUERY PARAMS

namespace
BODY json

{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents" {:content-type :json
                                                                                                      :form-params {:apiVersion ""
                                                                                                                    :kind ""
                                                                                                                    :metadata {:name ""
                                                                                                                               :namespace ""
                                                                                                                               :labels {}
                                                                                                                               :annotations {}
                                                                                                                               :uid ""
                                                                                                                               :resourceVersion ""
                                                                                                                               :generation 0
                                                                                                                               :creationTimestamp ""}
                                                                                                                    :spec {:intent ""
                                                                                                                           :parameters {}
                                                                                                                           :priority ""
                                                                                                                           :config {:llmModel ""
                                                                                                                                    :timeout ""
                                                                                                                                    :retries 0
                                                                                                                                    :enableRag false}}
                                                                                                                    :status {:phase ""
                                                                                                                             :conditions [{:type ""
                                                                                                                                           :status ""
                                                                                                                                           :lastTransitionTime ""
                                                                                                                                           :reason ""
                                                                                                                                           :message ""
                                                                                                                                           :observedGeneration 0}]
                                                                                                                             :observedGeneration 0
                                                                                                                             :processingStartTime ""
                                                                                                                             :processingCompletionTime ""
                                                                                                                             :deploymentStartTime ""
                                                                                                                             :deploymentCompletionTime ""
                                                                                                                             :gitCommitHash ""
                                                                                                                             :lastRetryTime ""
                                                                                                                             :processingInfo {:llmModel ""
                                                                                                                                              :processingTime ""
                                                                                                                                              :tokensUsed 0
                                                                                                                                              :confidenceScore ""
                                                                                                                                              :requestID ""
                                                                                                                                              :ragEnhanced false}
                                                                                                                             :generatedResources [{:apiVersion ""
                                                                                                                                                   :kind ""
                                                                                                                                                   :name ""
                                                                                                                                                   :namespace ""}]}}})
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"),
    Content = new StringContent("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"

	payload := strings.NewReader("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1181

{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")
  .header("content-type", "application/json")
  .body("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")
  .asString();
const data = JSON.stringify({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    intent: '',
    parameters: {},
    priority: '',
    config: {
      llmModel: '',
      timeout: '',
      retries: 0,
      enableRag: false
    }
  },
  status: {
    phase: '',
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    observedGeneration: 0,
    processingStartTime: '',
    processingCompletionTime: '',
    deploymentStartTime: '',
    deploymentCompletionTime: '',
    gitCommitHash: '',
    lastRetryTime: '',
    processingInfo: {
      llmModel: '',
      processingTime: '',
      tokensUsed: 0,
      confidenceScore: '',
      requestID: '',
      ragEnhanced: false
    },
    generatedResources: [
      {
        apiVersion: '',
        kind: '',
        name: '',
        namespace: ''
      }
    ]
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents',
  headers: {'content-type': 'application/json'},
  data: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      intent: '',
      parameters: {},
      priority: '',
      config: {llmModel: '', timeout: '', retries: 0, enableRag: false}
    },
    status: {
      phase: '',
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      observedGeneration: 0,
      processingStartTime: '',
      processingCompletionTime: '',
      deploymentStartTime: '',
      deploymentCompletionTime: '',
      gitCommitHash: '',
      lastRetryTime: '',
      processingInfo: {
        llmModel: '',
        processingTime: '',
        tokensUsed: 0,
        confidenceScore: '',
        requestID: '',
        ragEnhanced: false
      },
      generatedResources: [{apiVersion: '', kind: '', name: '', namespace: ''}]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"apiVersion":"","kind":"","metadata":{"name":"","namespace":"","labels":{},"annotations":{},"uid":"","resourceVersion":"","generation":0,"creationTimestamp":""},"spec":{"intent":"","parameters":{},"priority":"","config":{"llmModel":"","timeout":"","retries":0,"enableRag":false}},"status":{"phase":"","conditions":[{"type":"","status":"","lastTransitionTime":"","reason":"","message":"","observedGeneration":0}],"observedGeneration":0,"processingStartTime":"","processingCompletionTime":"","deploymentStartTime":"","deploymentCompletionTime":"","gitCommitHash":"","lastRetryTime":"","processingInfo":{"llmModel":"","processingTime":"","tokensUsed":0,"confidenceScore":"","requestID":"","ragEnhanced":false},"generatedResources":[{"apiVersion":"","kind":"","name":"","namespace":""}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "apiVersion": "",\n  "kind": "",\n  "metadata": {\n    "name": "",\n    "namespace": "",\n    "labels": {},\n    "annotations": {},\n    "uid": "",\n    "resourceVersion": "",\n    "generation": 0,\n    "creationTimestamp": ""\n  },\n  "spec": {\n    "intent": "",\n    "parameters": {},\n    "priority": "",\n    "config": {\n      "llmModel": "",\n      "timeout": "",\n      "retries": 0,\n      "enableRag": false\n    }\n  },\n  "status": {\n    "phase": "",\n    "conditions": [\n      {\n        "type": "",\n        "status": "",\n        "lastTransitionTime": "",\n        "reason": "",\n        "message": "",\n        "observedGeneration": 0\n      }\n    ],\n    "observedGeneration": 0,\n    "processingStartTime": "",\n    "processingCompletionTime": "",\n    "deploymentStartTime": "",\n    "deploymentCompletionTime": "",\n    "gitCommitHash": "",\n    "lastRetryTime": "",\n    "processingInfo": {\n      "llmModel": "",\n      "processingTime": "",\n      "tokensUsed": 0,\n      "confidenceScore": "",\n      "requestID": "",\n      "ragEnhanced": false\n    },\n    "generatedResources": [\n      {\n        "apiVersion": "",\n        "kind": "",\n        "name": "",\n        "namespace": ""\n      }\n    ]\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    intent: '',
    parameters: {},
    priority: '',
    config: {llmModel: '', timeout: '', retries: 0, enableRag: false}
  },
  status: {
    phase: '',
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    observedGeneration: 0,
    processingStartTime: '',
    processingCompletionTime: '',
    deploymentStartTime: '',
    deploymentCompletionTime: '',
    gitCommitHash: '',
    lastRetryTime: '',
    processingInfo: {
      llmModel: '',
      processingTime: '',
      tokensUsed: 0,
      confidenceScore: '',
      requestID: '',
      ragEnhanced: false
    },
    generatedResources: [{apiVersion: '', kind: '', name: '', namespace: ''}]
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents',
  headers: {'content-type': 'application/json'},
  body: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      intent: '',
      parameters: {},
      priority: '',
      config: {llmModel: '', timeout: '', retries: 0, enableRag: false}
    },
    status: {
      phase: '',
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      observedGeneration: 0,
      processingStartTime: '',
      processingCompletionTime: '',
      deploymentStartTime: '',
      deploymentCompletionTime: '',
      gitCommitHash: '',
      lastRetryTime: '',
      processingInfo: {
        llmModel: '',
        processingTime: '',
        tokensUsed: 0,
        confidenceScore: '',
        requestID: '',
        ragEnhanced: false
      },
      generatedResources: [{apiVersion: '', kind: '', name: '', namespace: ''}]
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    intent: '',
    parameters: {},
    priority: '',
    config: {
      llmModel: '',
      timeout: '',
      retries: 0,
      enableRag: false
    }
  },
  status: {
    phase: '',
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    observedGeneration: 0,
    processingStartTime: '',
    processingCompletionTime: '',
    deploymentStartTime: '',
    deploymentCompletionTime: '',
    gitCommitHash: '',
    lastRetryTime: '',
    processingInfo: {
      llmModel: '',
      processingTime: '',
      tokensUsed: 0,
      confidenceScore: '',
      requestID: '',
      ragEnhanced: false
    },
    generatedResources: [
      {
        apiVersion: '',
        kind: '',
        name: '',
        namespace: ''
      }
    ]
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents',
  headers: {'content-type': 'application/json'},
  data: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      intent: '',
      parameters: {},
      priority: '',
      config: {llmModel: '', timeout: '', retries: 0, enableRag: false}
    },
    status: {
      phase: '',
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      observedGeneration: 0,
      processingStartTime: '',
      processingCompletionTime: '',
      deploymentStartTime: '',
      deploymentCompletionTime: '',
      gitCommitHash: '',
      lastRetryTime: '',
      processingInfo: {
        llmModel: '',
        processingTime: '',
        tokensUsed: 0,
        confidenceScore: '',
        requestID: '',
        ragEnhanced: false
      },
      generatedResources: [{apiVersion: '', kind: '', name: '', namespace: ''}]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"apiVersion":"","kind":"","metadata":{"name":"","namespace":"","labels":{},"annotations":{},"uid":"","resourceVersion":"","generation":0,"creationTimestamp":""},"spec":{"intent":"","parameters":{},"priority":"","config":{"llmModel":"","timeout":"","retries":0,"enableRag":false}},"status":{"phase":"","conditions":[{"type":"","status":"","lastTransitionTime":"","reason":"","message":"","observedGeneration":0}],"observedGeneration":0,"processingStartTime":"","processingCompletionTime":"","deploymentStartTime":"","deploymentCompletionTime":"","gitCommitHash":"","lastRetryTime":"","processingInfo":{"llmModel":"","processingTime":"","tokensUsed":0,"confidenceScore":"","requestID":"","ragEnhanced":false},"generatedResources":[{"apiVersion":"","kind":"","name":"","namespace":""}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"apiVersion": @"",
                              @"kind": @"",
                              @"metadata": @{ @"name": @"", @"namespace": @"", @"labels": @{  }, @"annotations": @{  }, @"uid": @"", @"resourceVersion": @"", @"generation": @0, @"creationTimestamp": @"" },
                              @"spec": @{ @"intent": @"", @"parameters": @{  }, @"priority": @"", @"config": @{ @"llmModel": @"", @"timeout": @"", @"retries": @0, @"enableRag": @NO } },
                              @"status": @{ @"phase": @"", @"conditions": @[ @{ @"type": @"", @"status": @"", @"lastTransitionTime": @"", @"reason": @"", @"message": @"", @"observedGeneration": @0 } ], @"observedGeneration": @0, @"processingStartTime": @"", @"processingCompletionTime": @"", @"deploymentStartTime": @"", @"deploymentCompletionTime": @"", @"gitCommitHash": @"", @"lastRetryTime": @"", @"processingInfo": @{ @"llmModel": @"", @"processingTime": @"", @"tokensUsed": @0, @"confidenceScore": @"", @"requestID": @"", @"ragEnhanced": @NO }, @"generatedResources": @[ @{ @"apiVersion": @"", @"kind": @"", @"name": @"", @"namespace": @"" } ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'apiVersion' => '',
    'kind' => '',
    'metadata' => [
        'name' => '',
        'namespace' => '',
        'labels' => [
                
        ],
        'annotations' => [
                
        ],
        'uid' => '',
        'resourceVersion' => '',
        'generation' => 0,
        'creationTimestamp' => ''
    ],
    'spec' => [
        'intent' => '',
        'parameters' => [
                
        ],
        'priority' => '',
        'config' => [
                'llmModel' => '',
                'timeout' => '',
                'retries' => 0,
                'enableRag' => null
        ]
    ],
    'status' => [
        'phase' => '',
        'conditions' => [
                [
                                'type' => '',
                                'status' => '',
                                'lastTransitionTime' => '',
                                'reason' => '',
                                'message' => '',
                                'observedGeneration' => 0
                ]
        ],
        'observedGeneration' => 0,
        'processingStartTime' => '',
        'processingCompletionTime' => '',
        'deploymentStartTime' => '',
        'deploymentCompletionTime' => '',
        'gitCommitHash' => '',
        'lastRetryTime' => '',
        'processingInfo' => [
                'llmModel' => '',
                'processingTime' => '',
                'tokensUsed' => 0,
                'confidenceScore' => '',
                'requestID' => '',
                'ragEnhanced' => null
        ],
        'generatedResources' => [
                [
                                'apiVersion' => '',
                                'kind' => '',
                                'name' => '',
                                'namespace' => ''
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents', [
  'body' => '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'apiVersion' => '',
  'kind' => '',
  'metadata' => [
    'name' => '',
    'namespace' => '',
    'labels' => [
        
    ],
    'annotations' => [
        
    ],
    'uid' => '',
    'resourceVersion' => '',
    'generation' => 0,
    'creationTimestamp' => ''
  ],
  'spec' => [
    'intent' => '',
    'parameters' => [
        
    ],
    'priority' => '',
    'config' => [
        'llmModel' => '',
        'timeout' => '',
        'retries' => 0,
        'enableRag' => null
    ]
  ],
  'status' => [
    'phase' => '',
    'conditions' => [
        [
                'type' => '',
                'status' => '',
                'lastTransitionTime' => '',
                'reason' => '',
                'message' => '',
                'observedGeneration' => 0
        ]
    ],
    'observedGeneration' => 0,
    'processingStartTime' => '',
    'processingCompletionTime' => '',
    'deploymentStartTime' => '',
    'deploymentCompletionTime' => '',
    'gitCommitHash' => '',
    'lastRetryTime' => '',
    'processingInfo' => [
        'llmModel' => '',
        'processingTime' => '',
        'tokensUsed' => 0,
        'confidenceScore' => '',
        'requestID' => '',
        'ragEnhanced' => null
    ],
    'generatedResources' => [
        [
                'apiVersion' => '',
                'kind' => '',
                'name' => '',
                'namespace' => ''
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'apiVersion' => '',
  'kind' => '',
  'metadata' => [
    'name' => '',
    'namespace' => '',
    'labels' => [
        
    ],
    'annotations' => [
        
    ],
    'uid' => '',
    'resourceVersion' => '',
    'generation' => 0,
    'creationTimestamp' => ''
  ],
  'spec' => [
    'intent' => '',
    'parameters' => [
        
    ],
    'priority' => '',
    'config' => [
        'llmModel' => '',
        'timeout' => '',
        'retries' => 0,
        'enableRag' => null
    ]
  ],
  'status' => [
    'phase' => '',
    'conditions' => [
        [
                'type' => '',
                'status' => '',
                'lastTransitionTime' => '',
                'reason' => '',
                'message' => '',
                'observedGeneration' => 0
        ]
    ],
    'observedGeneration' => 0,
    'processingStartTime' => '',
    'processingCompletionTime' => '',
    'deploymentStartTime' => '',
    'deploymentCompletionTime' => '',
    'gitCommitHash' => '',
    'lastRetryTime' => '',
    'processingInfo' => [
        'llmModel' => '',
        'processingTime' => '',
        'tokensUsed' => 0,
        'confidenceScore' => '',
        'requestID' => '',
        'ragEnhanced' => null
    ],
    'generatedResources' => [
        [
                'apiVersion' => '',
                'kind' => '',
                'name' => '',
                'namespace' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"

payload = {
    "apiVersion": "",
    "kind": "",
    "metadata": {
        "name": "",
        "namespace": "",
        "labels": {},
        "annotations": {},
        "uid": "",
        "resourceVersion": "",
        "generation": 0,
        "creationTimestamp": ""
    },
    "spec": {
        "intent": "",
        "parameters": {},
        "priority": "",
        "config": {
            "llmModel": "",
            "timeout": "",
            "retries": 0,
            "enableRag": False
        }
    },
    "status": {
        "phase": "",
        "conditions": [
            {
                "type": "",
                "status": "",
                "lastTransitionTime": "",
                "reason": "",
                "message": "",
                "observedGeneration": 0
            }
        ],
        "observedGeneration": 0,
        "processingStartTime": "",
        "processingCompletionTime": "",
        "deploymentStartTime": "",
        "deploymentCompletionTime": "",
        "gitCommitHash": "",
        "lastRetryTime": "",
        "processingInfo": {
            "llmModel": "",
            "processingTime": "",
            "tokensUsed": 0,
            "confidenceScore": "",
            "requestID": "",
            "ragEnhanced": False
        },
        "generatedResources": [
            {
                "apiVersion": "",
                "kind": "",
                "name": "",
                "namespace": ""
            }
        ]
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"

payload <- "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents') do |req|
  req.body = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents";

    let payload = json!({
        "apiVersion": "",
        "kind": "",
        "metadata": json!({
            "name": "",
            "namespace": "",
            "labels": json!({}),
            "annotations": json!({}),
            "uid": "",
            "resourceVersion": "",
            "generation": 0,
            "creationTimestamp": ""
        }),
        "spec": json!({
            "intent": "",
            "parameters": json!({}),
            "priority": "",
            "config": json!({
                "llmModel": "",
                "timeout": "",
                "retries": 0,
                "enableRag": false
            })
        }),
        "status": json!({
            "phase": "",
            "conditions": (
                json!({
                    "type": "",
                    "status": "",
                    "lastTransitionTime": "",
                    "reason": "",
                    "message": "",
                    "observedGeneration": 0
                })
            ),
            "observedGeneration": 0,
            "processingStartTime": "",
            "processingCompletionTime": "",
            "deploymentStartTime": "",
            "deploymentCompletionTime": "",
            "gitCommitHash": "",
            "lastRetryTime": "",
            "processingInfo": json!({
                "llmModel": "",
                "processingTime": "",
                "tokensUsed": 0,
                "confidenceScore": "",
                "requestID": "",
                "ragEnhanced": false
            }),
            "generatedResources": (
                json!({
                    "apiVersion": "",
                    "kind": "",
                    "name": "",
                    "namespace": ""
                })
            )
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents \
  --header 'content-type: application/json' \
  --data '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}'
echo '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}' |  \
  http POST {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "apiVersion": "",\n  "kind": "",\n  "metadata": {\n    "name": "",\n    "namespace": "",\n    "labels": {},\n    "annotations": {},\n    "uid": "",\n    "resourceVersion": "",\n    "generation": 0,\n    "creationTimestamp": ""\n  },\n  "spec": {\n    "intent": "",\n    "parameters": {},\n    "priority": "",\n    "config": {\n      "llmModel": "",\n      "timeout": "",\n      "retries": 0,\n      "enableRag": false\n    }\n  },\n  "status": {\n    "phase": "",\n    "conditions": [\n      {\n        "type": "",\n        "status": "",\n        "lastTransitionTime": "",\n        "reason": "",\n        "message": "",\n        "observedGeneration": 0\n      }\n    ],\n    "observedGeneration": 0,\n    "processingStartTime": "",\n    "processingCompletionTime": "",\n    "deploymentStartTime": "",\n    "deploymentCompletionTime": "",\n    "gitCommitHash": "",\n    "lastRetryTime": "",\n    "processingInfo": {\n      "llmModel": "",\n      "processingTime": "",\n      "tokensUsed": 0,\n      "confidenceScore": "",\n      "requestID": "",\n      "ragEnhanced": false\n    },\n    "generatedResources": [\n      {\n        "apiVersion": "",\n        "kind": "",\n        "name": "",\n        "namespace": ""\n      }\n    ]\n  }\n}' \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "apiVersion": "",
  "kind": "",
  "metadata": [
    "name": "",
    "namespace": "",
    "labels": [],
    "annotations": [],
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  ],
  "spec": [
    "intent": "",
    "parameters": [],
    "priority": "",
    "config": [
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    ]
  ],
  "status": [
    "phase": "",
    "conditions": [
      [
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      ]
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": [
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    ],
    "generatedResources": [
      [
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      ]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "apiVersion": "nephoran.com/v1",
  "kind": "NetworkIntent",
  "metadata": {
    "name": "example-intent",
    "namespace": "default",
    "labels": {
      "app": "nephoran",
      "component": "intent-processor"
    },
    "annotations": {
      "nephoran.com/processed-by": "llm-processor-v2"
    },
    "uid": "12345678-1234-1234-1234-123456789012",
    "resourceVersion": "12345",
    "generation": 1,
    "creationTimestamp": "2025-01-30T10:30:00Z"
  },
  "spec": {
    "intent": "Deploy AMF with 3 replicas for network slice eMBB with high throughput requirements",
    "parameters": {
      "networkFunction": "AMF",
      "replicas": 3,
      "namespace": "telecom-core",
      "resources": {
        "cpu": "2000m",
        "memory": "4Gi"
      },
      "networkSlice": {
        "type": "eMBB",
        "sla": {
          "latency": "20ms",
          "throughput": "1Gbps"
        }
      }
    },
    "priority": "high"
  },
  "status": {
    "phase": "Processed",
    "observedGeneration": 1,
    "processingStartTime": "2025-01-30T10:30:15Z",
    "processingCompletionTime": "2025-01-30T10:30:17Z",
    "deploymentStartTime": "2025-01-30T10:30:20Z",
    "deploymentCompletionTime": "2025-01-30T10:31:00Z",
    "gitCommitHash": "abc123def456",
    "lastRetryTime": "2025-01-30T10:29:00Z"
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
DELETE Delete NetworkIntent
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
QUERY PARAMS

namespace
name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
http DELETE {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
GET Get NetworkIntent status
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status
QUERY PARAMS

namespace
name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status');

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status
http GET {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "apiVersion": "nephoran.com/v1",
  "kind": "NetworkIntent",
  "metadata": {
    "name": "example-intent",
    "namespace": "default",
    "labels": {
      "app": "nephoran",
      "component": "intent-processor"
    },
    "annotations": {
      "nephoran.com/processed-by": "llm-processor-v2"
    },
    "uid": "12345678-1234-1234-1234-123456789012",
    "resourceVersion": "12345",
    "generation": 1,
    "creationTimestamp": "2025-01-30T10:30:00Z"
  },
  "spec": {
    "intent": "Deploy AMF with 3 replicas for network slice eMBB with high throughput requirements",
    "parameters": {
      "networkFunction": "AMF",
      "replicas": 3,
      "namespace": "telecom-core",
      "resources": {
        "cpu": "2000m",
        "memory": "4Gi"
      },
      "networkSlice": {
        "type": "eMBB",
        "sla": {
          "latency": "20ms",
          "throughput": "1Gbps"
        }
      }
    },
    "priority": "high"
  },
  "status": {
    "phase": "Processed",
    "observedGeneration": 1,
    "processingStartTime": "2025-01-30T10:30:15Z",
    "processingCompletionTime": "2025-01-30T10:30:17Z",
    "deploymentStartTime": "2025-01-30T10:30:20Z",
    "deploymentCompletionTime": "2025-01-30T10:31:00Z",
    "gitCommitHash": "abc123def456",
    "lastRetryTime": "2025-01-30T10:29:00Z"
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
GET Get NetworkIntent
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
QUERY PARAMS

namespace
name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
http GET {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "apiVersion": "nephoran.com/v1",
  "kind": "NetworkIntent",
  "metadata": {
    "name": "example-intent",
    "namespace": "default",
    "labels": {
      "app": "nephoran",
      "component": "intent-processor"
    },
    "annotations": {
      "nephoran.com/processed-by": "llm-processor-v2"
    },
    "uid": "12345678-1234-1234-1234-123456789012",
    "resourceVersion": "12345",
    "generation": 1,
    "creationTimestamp": "2025-01-30T10:30:00Z"
  },
  "spec": {
    "intent": "Deploy AMF with 3 replicas for network slice eMBB with high throughput requirements",
    "parameters": {
      "networkFunction": "AMF",
      "replicas": 3,
      "namespace": "telecom-core",
      "resources": {
        "cpu": "2000m",
        "memory": "4Gi"
      },
      "networkSlice": {
        "type": "eMBB",
        "sla": {
          "latency": "20ms",
          "throughput": "1Gbps"
        }
      }
    },
    "priority": "high"
  },
  "status": {
    "phase": "Processed",
    "observedGeneration": 1,
    "processingStartTime": "2025-01-30T10:30:15Z",
    "processingCompletionTime": "2025-01-30T10:30:17Z",
    "deploymentStartTime": "2025-01-30T10:30:20Z",
    "deploymentCompletionTime": "2025-01-30T10:31:00Z",
    "gitCommitHash": "abc123def456",
    "lastRetryTime": "2025-01-30T10:29:00Z"
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
GET List NetworkIntents
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents
QUERY PARAMS

namespace
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents');

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents
http GET {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "apiVersion": "nephoran.com/v1",
  "kind": "NetworkIntentList",
  "metadata": {
    "resourceVersion": "12345",
    "continue": "eyJzdGFydCI6MTAwfQ=="
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
PATCH Patch NetworkIntent
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
QUERY PARAMS

namespace
name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

response = HTTP::Client.patch url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name");
var request = new RestRequest("", Method.Patch);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

	req, _ := http.NewRequest("PATCH", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PATCH /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"))
    .method("PATCH", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .patch(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name';
const options = {method: 'PATCH'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name',
  method: 'PATCH',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .patch(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name';
const options = {method: 'PATCH'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name" in

Client.call `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');
$request->setRequestMethod('PATCH');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name' -Method PATCH 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name' -Method PATCH 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PATCH", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

response = requests.patch(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

response <- VERB("PATCH", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.patch('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
http PATCH {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
wget --quiet \
  --method PATCH \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "apiVersion": "nephoran.com/v1",
  "kind": "NetworkIntent",
  "metadata": {
    "name": "example-intent",
    "namespace": "default",
    "labels": {
      "app": "nephoran",
      "component": "intent-processor"
    },
    "annotations": {
      "nephoran.com/processed-by": "llm-processor-v2"
    },
    "uid": "12345678-1234-1234-1234-123456789012",
    "resourceVersion": "12345",
    "generation": 1,
    "creationTimestamp": "2025-01-30T10:30:00Z"
  },
  "spec": {
    "intent": "Deploy AMF with 3 replicas for network slice eMBB with high throughput requirements",
    "parameters": {
      "networkFunction": "AMF",
      "replicas": 3,
      "namespace": "telecom-core",
      "resources": {
        "cpu": "2000m",
        "memory": "4Gi"
      },
      "networkSlice": {
        "type": "eMBB",
        "sla": {
          "latency": "20ms",
          "throughput": "1Gbps"
        }
      }
    },
    "priority": "high"
  },
  "status": {
    "phase": "Processed",
    "observedGeneration": 1,
    "processingStartTime": "2025-01-30T10:30:15Z",
    "processingCompletionTime": "2025-01-30T10:30:17Z",
    "deploymentStartTime": "2025-01-30T10:30:20Z",
    "deploymentCompletionTime": "2025-01-30T10:31:00Z",
    "gitCommitHash": "abc123def456",
    "lastRetryTime": "2025-01-30T10:29:00Z"
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
PUT Update NetworkIntent status
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status
QUERY PARAMS

namespace
name
BODY json

{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status" {:content-type :json
                                                                                                                  :form-params {:apiVersion ""
                                                                                                                                :kind ""
                                                                                                                                :metadata {:name ""
                                                                                                                                           :namespace ""
                                                                                                                                           :labels {}
                                                                                                                                           :annotations {}
                                                                                                                                           :uid ""
                                                                                                                                           :resourceVersion ""
                                                                                                                                           :generation 0
                                                                                                                                           :creationTimestamp ""}
                                                                                                                                :spec {:intent ""
                                                                                                                                       :parameters {}
                                                                                                                                       :priority ""
                                                                                                                                       :config {:llmModel ""
                                                                                                                                                :timeout ""
                                                                                                                                                :retries 0
                                                                                                                                                :enableRag false}}
                                                                                                                                :status {:phase ""
                                                                                                                                         :conditions [{:type ""
                                                                                                                                                       :status ""
                                                                                                                                                       :lastTransitionTime ""
                                                                                                                                                       :reason ""
                                                                                                                                                       :message ""
                                                                                                                                                       :observedGeneration 0}]
                                                                                                                                         :observedGeneration 0
                                                                                                                                         :processingStartTime ""
                                                                                                                                         :processingCompletionTime ""
                                                                                                                                         :deploymentStartTime ""
                                                                                                                                         :deploymentCompletionTime ""
                                                                                                                                         :gitCommitHash ""
                                                                                                                                         :lastRetryTime ""
                                                                                                                                         :processingInfo {:llmModel ""
                                                                                                                                                          :processingTime ""
                                                                                                                                                          :tokensUsed 0
                                                                                                                                                          :confidenceScore ""
                                                                                                                                                          :requestID ""
                                                                                                                                                          :ragEnhanced false}
                                                                                                                                         :generatedResources [{:apiVersion ""
                                                                                                                                                               :kind ""
                                                                                                                                                               :name ""
                                                                                                                                                               :namespace ""}]}}})
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"),
    Content = new StringContent("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"

	payload := strings.NewReader("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1181

{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")
  .header("content-type", "application/json")
  .body("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")
  .asString();
const data = JSON.stringify({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    intent: '',
    parameters: {},
    priority: '',
    config: {
      llmModel: '',
      timeout: '',
      retries: 0,
      enableRag: false
    }
  },
  status: {
    phase: '',
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    observedGeneration: 0,
    processingStartTime: '',
    processingCompletionTime: '',
    deploymentStartTime: '',
    deploymentCompletionTime: '',
    gitCommitHash: '',
    lastRetryTime: '',
    processingInfo: {
      llmModel: '',
      processingTime: '',
      tokensUsed: 0,
      confidenceScore: '',
      requestID: '',
      ragEnhanced: false
    },
    generatedResources: [
      {
        apiVersion: '',
        kind: '',
        name: '',
        namespace: ''
      }
    ]
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status',
  headers: {'content-type': 'application/json'},
  data: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      intent: '',
      parameters: {},
      priority: '',
      config: {llmModel: '', timeout: '', retries: 0, enableRag: false}
    },
    status: {
      phase: '',
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      observedGeneration: 0,
      processingStartTime: '',
      processingCompletionTime: '',
      deploymentStartTime: '',
      deploymentCompletionTime: '',
      gitCommitHash: '',
      lastRetryTime: '',
      processingInfo: {
        llmModel: '',
        processingTime: '',
        tokensUsed: 0,
        confidenceScore: '',
        requestID: '',
        ragEnhanced: false
      },
      generatedResources: [{apiVersion: '', kind: '', name: '', namespace: ''}]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"apiVersion":"","kind":"","metadata":{"name":"","namespace":"","labels":{},"annotations":{},"uid":"","resourceVersion":"","generation":0,"creationTimestamp":""},"spec":{"intent":"","parameters":{},"priority":"","config":{"llmModel":"","timeout":"","retries":0,"enableRag":false}},"status":{"phase":"","conditions":[{"type":"","status":"","lastTransitionTime":"","reason":"","message":"","observedGeneration":0}],"observedGeneration":0,"processingStartTime":"","processingCompletionTime":"","deploymentStartTime":"","deploymentCompletionTime":"","gitCommitHash":"","lastRetryTime":"","processingInfo":{"llmModel":"","processingTime":"","tokensUsed":0,"confidenceScore":"","requestID":"","ragEnhanced":false},"generatedResources":[{"apiVersion":"","kind":"","name":"","namespace":""}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "apiVersion": "",\n  "kind": "",\n  "metadata": {\n    "name": "",\n    "namespace": "",\n    "labels": {},\n    "annotations": {},\n    "uid": "",\n    "resourceVersion": "",\n    "generation": 0,\n    "creationTimestamp": ""\n  },\n  "spec": {\n    "intent": "",\n    "parameters": {},\n    "priority": "",\n    "config": {\n      "llmModel": "",\n      "timeout": "",\n      "retries": 0,\n      "enableRag": false\n    }\n  },\n  "status": {\n    "phase": "",\n    "conditions": [\n      {\n        "type": "",\n        "status": "",\n        "lastTransitionTime": "",\n        "reason": "",\n        "message": "",\n        "observedGeneration": 0\n      }\n    ],\n    "observedGeneration": 0,\n    "processingStartTime": "",\n    "processingCompletionTime": "",\n    "deploymentStartTime": "",\n    "deploymentCompletionTime": "",\n    "gitCommitHash": "",\n    "lastRetryTime": "",\n    "processingInfo": {\n      "llmModel": "",\n      "processingTime": "",\n      "tokensUsed": 0,\n      "confidenceScore": "",\n      "requestID": "",\n      "ragEnhanced": false\n    },\n    "generatedResources": [\n      {\n        "apiVersion": "",\n        "kind": "",\n        "name": "",\n        "namespace": ""\n      }\n    ]\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    intent: '',
    parameters: {},
    priority: '',
    config: {llmModel: '', timeout: '', retries: 0, enableRag: false}
  },
  status: {
    phase: '',
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    observedGeneration: 0,
    processingStartTime: '',
    processingCompletionTime: '',
    deploymentStartTime: '',
    deploymentCompletionTime: '',
    gitCommitHash: '',
    lastRetryTime: '',
    processingInfo: {
      llmModel: '',
      processingTime: '',
      tokensUsed: 0,
      confidenceScore: '',
      requestID: '',
      ragEnhanced: false
    },
    generatedResources: [{apiVersion: '', kind: '', name: '', namespace: ''}]
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status',
  headers: {'content-type': 'application/json'},
  body: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      intent: '',
      parameters: {},
      priority: '',
      config: {llmModel: '', timeout: '', retries: 0, enableRag: false}
    },
    status: {
      phase: '',
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      observedGeneration: 0,
      processingStartTime: '',
      processingCompletionTime: '',
      deploymentStartTime: '',
      deploymentCompletionTime: '',
      gitCommitHash: '',
      lastRetryTime: '',
      processingInfo: {
        llmModel: '',
        processingTime: '',
        tokensUsed: 0,
        confidenceScore: '',
        requestID: '',
        ragEnhanced: false
      },
      generatedResources: [{apiVersion: '', kind: '', name: '', namespace: ''}]
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    intent: '',
    parameters: {},
    priority: '',
    config: {
      llmModel: '',
      timeout: '',
      retries: 0,
      enableRag: false
    }
  },
  status: {
    phase: '',
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    observedGeneration: 0,
    processingStartTime: '',
    processingCompletionTime: '',
    deploymentStartTime: '',
    deploymentCompletionTime: '',
    gitCommitHash: '',
    lastRetryTime: '',
    processingInfo: {
      llmModel: '',
      processingTime: '',
      tokensUsed: 0,
      confidenceScore: '',
      requestID: '',
      ragEnhanced: false
    },
    generatedResources: [
      {
        apiVersion: '',
        kind: '',
        name: '',
        namespace: ''
      }
    ]
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status',
  headers: {'content-type': 'application/json'},
  data: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      intent: '',
      parameters: {},
      priority: '',
      config: {llmModel: '', timeout: '', retries: 0, enableRag: false}
    },
    status: {
      phase: '',
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      observedGeneration: 0,
      processingStartTime: '',
      processingCompletionTime: '',
      deploymentStartTime: '',
      deploymentCompletionTime: '',
      gitCommitHash: '',
      lastRetryTime: '',
      processingInfo: {
        llmModel: '',
        processingTime: '',
        tokensUsed: 0,
        confidenceScore: '',
        requestID: '',
        ragEnhanced: false
      },
      generatedResources: [{apiVersion: '', kind: '', name: '', namespace: ''}]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"apiVersion":"","kind":"","metadata":{"name":"","namespace":"","labels":{},"annotations":{},"uid":"","resourceVersion":"","generation":0,"creationTimestamp":""},"spec":{"intent":"","parameters":{},"priority":"","config":{"llmModel":"","timeout":"","retries":0,"enableRag":false}},"status":{"phase":"","conditions":[{"type":"","status":"","lastTransitionTime":"","reason":"","message":"","observedGeneration":0}],"observedGeneration":0,"processingStartTime":"","processingCompletionTime":"","deploymentStartTime":"","deploymentCompletionTime":"","gitCommitHash":"","lastRetryTime":"","processingInfo":{"llmModel":"","processingTime":"","tokensUsed":0,"confidenceScore":"","requestID":"","ragEnhanced":false},"generatedResources":[{"apiVersion":"","kind":"","name":"","namespace":""}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"apiVersion": @"",
                              @"kind": @"",
                              @"metadata": @{ @"name": @"", @"namespace": @"", @"labels": @{  }, @"annotations": @{  }, @"uid": @"", @"resourceVersion": @"", @"generation": @0, @"creationTimestamp": @"" },
                              @"spec": @{ @"intent": @"", @"parameters": @{  }, @"priority": @"", @"config": @{ @"llmModel": @"", @"timeout": @"", @"retries": @0, @"enableRag": @NO } },
                              @"status": @{ @"phase": @"", @"conditions": @[ @{ @"type": @"", @"status": @"", @"lastTransitionTime": @"", @"reason": @"", @"message": @"", @"observedGeneration": @0 } ], @"observedGeneration": @0, @"processingStartTime": @"", @"processingCompletionTime": @"", @"deploymentStartTime": @"", @"deploymentCompletionTime": @"", @"gitCommitHash": @"", @"lastRetryTime": @"", @"processingInfo": @{ @"llmModel": @"", @"processingTime": @"", @"tokensUsed": @0, @"confidenceScore": @"", @"requestID": @"", @"ragEnhanced": @NO }, @"generatedResources": @[ @{ @"apiVersion": @"", @"kind": @"", @"name": @"", @"namespace": @"" } ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'apiVersion' => '',
    'kind' => '',
    'metadata' => [
        'name' => '',
        'namespace' => '',
        'labels' => [
                
        ],
        'annotations' => [
                
        ],
        'uid' => '',
        'resourceVersion' => '',
        'generation' => 0,
        'creationTimestamp' => ''
    ],
    'spec' => [
        'intent' => '',
        'parameters' => [
                
        ],
        'priority' => '',
        'config' => [
                'llmModel' => '',
                'timeout' => '',
                'retries' => 0,
                'enableRag' => null
        ]
    ],
    'status' => [
        'phase' => '',
        'conditions' => [
                [
                                'type' => '',
                                'status' => '',
                                'lastTransitionTime' => '',
                                'reason' => '',
                                'message' => '',
                                'observedGeneration' => 0
                ]
        ],
        'observedGeneration' => 0,
        'processingStartTime' => '',
        'processingCompletionTime' => '',
        'deploymentStartTime' => '',
        'deploymentCompletionTime' => '',
        'gitCommitHash' => '',
        'lastRetryTime' => '',
        'processingInfo' => [
                'llmModel' => '',
                'processingTime' => '',
                'tokensUsed' => 0,
                'confidenceScore' => '',
                'requestID' => '',
                'ragEnhanced' => null
        ],
        'generatedResources' => [
                [
                                'apiVersion' => '',
                                'kind' => '',
                                'name' => '',
                                'namespace' => ''
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status', [
  'body' => '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'apiVersion' => '',
  'kind' => '',
  'metadata' => [
    'name' => '',
    'namespace' => '',
    'labels' => [
        
    ],
    'annotations' => [
        
    ],
    'uid' => '',
    'resourceVersion' => '',
    'generation' => 0,
    'creationTimestamp' => ''
  ],
  'spec' => [
    'intent' => '',
    'parameters' => [
        
    ],
    'priority' => '',
    'config' => [
        'llmModel' => '',
        'timeout' => '',
        'retries' => 0,
        'enableRag' => null
    ]
  ],
  'status' => [
    'phase' => '',
    'conditions' => [
        [
                'type' => '',
                'status' => '',
                'lastTransitionTime' => '',
                'reason' => '',
                'message' => '',
                'observedGeneration' => 0
        ]
    ],
    'observedGeneration' => 0,
    'processingStartTime' => '',
    'processingCompletionTime' => '',
    'deploymentStartTime' => '',
    'deploymentCompletionTime' => '',
    'gitCommitHash' => '',
    'lastRetryTime' => '',
    'processingInfo' => [
        'llmModel' => '',
        'processingTime' => '',
        'tokensUsed' => 0,
        'confidenceScore' => '',
        'requestID' => '',
        'ragEnhanced' => null
    ],
    'generatedResources' => [
        [
                'apiVersion' => '',
                'kind' => '',
                'name' => '',
                'namespace' => ''
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'apiVersion' => '',
  'kind' => '',
  'metadata' => [
    'name' => '',
    'namespace' => '',
    'labels' => [
        
    ],
    'annotations' => [
        
    ],
    'uid' => '',
    'resourceVersion' => '',
    'generation' => 0,
    'creationTimestamp' => ''
  ],
  'spec' => [
    'intent' => '',
    'parameters' => [
        
    ],
    'priority' => '',
    'config' => [
        'llmModel' => '',
        'timeout' => '',
        'retries' => 0,
        'enableRag' => null
    ]
  ],
  'status' => [
    'phase' => '',
    'conditions' => [
        [
                'type' => '',
                'status' => '',
                'lastTransitionTime' => '',
                'reason' => '',
                'message' => '',
                'observedGeneration' => 0
        ]
    ],
    'observedGeneration' => 0,
    'processingStartTime' => '',
    'processingCompletionTime' => '',
    'deploymentStartTime' => '',
    'deploymentCompletionTime' => '',
    'gitCommitHash' => '',
    'lastRetryTime' => '',
    'processingInfo' => [
        'llmModel' => '',
        'processingTime' => '',
        'tokensUsed' => 0,
        'confidenceScore' => '',
        'requestID' => '',
        'ragEnhanced' => null
    ],
    'generatedResources' => [
        [
                'apiVersion' => '',
                'kind' => '',
                'name' => '',
                'namespace' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"

payload = {
    "apiVersion": "",
    "kind": "",
    "metadata": {
        "name": "",
        "namespace": "",
        "labels": {},
        "annotations": {},
        "uid": "",
        "resourceVersion": "",
        "generation": 0,
        "creationTimestamp": ""
    },
    "spec": {
        "intent": "",
        "parameters": {},
        "priority": "",
        "config": {
            "llmModel": "",
            "timeout": "",
            "retries": 0,
            "enableRag": False
        }
    },
    "status": {
        "phase": "",
        "conditions": [
            {
                "type": "",
                "status": "",
                "lastTransitionTime": "",
                "reason": "",
                "message": "",
                "observedGeneration": 0
            }
        ],
        "observedGeneration": 0,
        "processingStartTime": "",
        "processingCompletionTime": "",
        "deploymentStartTime": "",
        "deploymentCompletionTime": "",
        "gitCommitHash": "",
        "lastRetryTime": "",
        "processingInfo": {
            "llmModel": "",
            "processingTime": "",
            "tokensUsed": 0,
            "confidenceScore": "",
            "requestID": "",
            "ragEnhanced": False
        },
        "generatedResources": [
            {
                "apiVersion": "",
                "kind": "",
                "name": "",
                "namespace": ""
            }
        ]
    }
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status"

payload <- "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status') do |req|
  req.body = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status";

    let payload = json!({
        "apiVersion": "",
        "kind": "",
        "metadata": json!({
            "name": "",
            "namespace": "",
            "labels": json!({}),
            "annotations": json!({}),
            "uid": "",
            "resourceVersion": "",
            "generation": 0,
            "creationTimestamp": ""
        }),
        "spec": json!({
            "intent": "",
            "parameters": json!({}),
            "priority": "",
            "config": json!({
                "llmModel": "",
                "timeout": "",
                "retries": 0,
                "enableRag": false
            })
        }),
        "status": json!({
            "phase": "",
            "conditions": (
                json!({
                    "type": "",
                    "status": "",
                    "lastTransitionTime": "",
                    "reason": "",
                    "message": "",
                    "observedGeneration": 0
                })
            ),
            "observedGeneration": 0,
            "processingStartTime": "",
            "processingCompletionTime": "",
            "deploymentStartTime": "",
            "deploymentCompletionTime": "",
            "gitCommitHash": "",
            "lastRetryTime": "",
            "processingInfo": json!({
                "llmModel": "",
                "processingTime": "",
                "tokensUsed": 0,
                "confidenceScore": "",
                "requestID": "",
                "ragEnhanced": false
            }),
            "generatedResources": (
                json!({
                    "apiVersion": "",
                    "kind": "",
                    "name": "",
                    "namespace": ""
                })
            )
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status \
  --header 'content-type: application/json' \
  --data '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}'
echo '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}' |  \
  http PUT {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "apiVersion": "",\n  "kind": "",\n  "metadata": {\n    "name": "",\n    "namespace": "",\n    "labels": {},\n    "annotations": {},\n    "uid": "",\n    "resourceVersion": "",\n    "generation": 0,\n    "creationTimestamp": ""\n  },\n  "spec": {\n    "intent": "",\n    "parameters": {},\n    "priority": "",\n    "config": {\n      "llmModel": "",\n      "timeout": "",\n      "retries": 0,\n      "enableRag": false\n    }\n  },\n  "status": {\n    "phase": "",\n    "conditions": [\n      {\n        "type": "",\n        "status": "",\n        "lastTransitionTime": "",\n        "reason": "",\n        "message": "",\n        "observedGeneration": 0\n      }\n    ],\n    "observedGeneration": 0,\n    "processingStartTime": "",\n    "processingCompletionTime": "",\n    "deploymentStartTime": "",\n    "deploymentCompletionTime": "",\n    "gitCommitHash": "",\n    "lastRetryTime": "",\n    "processingInfo": {\n      "llmModel": "",\n      "processingTime": "",\n      "tokensUsed": 0,\n      "confidenceScore": "",\n      "requestID": "",\n      "ragEnhanced": false\n    },\n    "generatedResources": [\n      {\n        "apiVersion": "",\n        "kind": "",\n        "name": "",\n        "namespace": ""\n      }\n    ]\n  }\n}' \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "apiVersion": "",
  "kind": "",
  "metadata": [
    "name": "",
    "namespace": "",
    "labels": [],
    "annotations": [],
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  ],
  "spec": [
    "intent": "",
    "parameters": [],
    "priority": "",
    "config": [
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    ]
  ],
  "status": [
    "phase": "",
    "conditions": [
      [
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      ]
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": [
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    ],
    "generatedResources": [
      [
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      ]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name/status")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "apiVersion": "nephoran.com/v1",
  "kind": "NetworkIntent",
  "metadata": {
    "name": "example-intent",
    "namespace": "default",
    "labels": {
      "app": "nephoran",
      "component": "intent-processor"
    },
    "annotations": {
      "nephoran.com/processed-by": "llm-processor-v2"
    },
    "uid": "12345678-1234-1234-1234-123456789012",
    "resourceVersion": "12345",
    "generation": 1,
    "creationTimestamp": "2025-01-30T10:30:00Z"
  },
  "spec": {
    "intent": "Deploy AMF with 3 replicas for network slice eMBB with high throughput requirements",
    "parameters": {
      "networkFunction": "AMF",
      "replicas": 3,
      "namespace": "telecom-core",
      "resources": {
        "cpu": "2000m",
        "memory": "4Gi"
      },
      "networkSlice": {
        "type": "eMBB",
        "sla": {
          "latency": "20ms",
          "throughput": "1Gbps"
        }
      }
    },
    "priority": "high"
  },
  "status": {
    "phase": "Processed",
    "observedGeneration": 1,
    "processingStartTime": "2025-01-30T10:30:15Z",
    "processingCompletionTime": "2025-01-30T10:30:17Z",
    "deploymentStartTime": "2025-01-30T10:30:20Z",
    "deploymentCompletionTime": "2025-01-30T10:31:00Z",
    "gitCommitHash": "abc123def456",
    "lastRetryTime": "2025-01-30T10:29:00Z"
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
PUT Update NetworkIntent
{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
QUERY PARAMS

namespace
name
BODY json

{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name" {:content-type :json
                                                                                                           :form-params {:apiVersion ""
                                                                                                                         :kind ""
                                                                                                                         :metadata {:name ""
                                                                                                                                    :namespace ""
                                                                                                                                    :labels {}
                                                                                                                                    :annotations {}
                                                                                                                                    :uid ""
                                                                                                                                    :resourceVersion ""
                                                                                                                                    :generation 0
                                                                                                                                    :creationTimestamp ""}
                                                                                                                         :spec {:intent ""
                                                                                                                                :parameters {}
                                                                                                                                :priority ""
                                                                                                                                :config {:llmModel ""
                                                                                                                                         :timeout ""
                                                                                                                                         :retries 0
                                                                                                                                         :enableRag false}}
                                                                                                                         :status {:phase ""
                                                                                                                                  :conditions [{:type ""
                                                                                                                                                :status ""
                                                                                                                                                :lastTransitionTime ""
                                                                                                                                                :reason ""
                                                                                                                                                :message ""
                                                                                                                                                :observedGeneration 0}]
                                                                                                                                  :observedGeneration 0
                                                                                                                                  :processingStartTime ""
                                                                                                                                  :processingCompletionTime ""
                                                                                                                                  :deploymentStartTime ""
                                                                                                                                  :deploymentCompletionTime ""
                                                                                                                                  :gitCommitHash ""
                                                                                                                                  :lastRetryTime ""
                                                                                                                                  :processingInfo {:llmModel ""
                                                                                                                                                   :processingTime ""
                                                                                                                                                   :tokensUsed 0
                                                                                                                                                   :confidenceScore ""
                                                                                                                                                   :requestID ""
                                                                                                                                                   :ragEnhanced false}
                                                                                                                                  :generatedResources [{:apiVersion ""
                                                                                                                                                        :kind ""
                                                                                                                                                        :name ""
                                                                                                                                                        :namespace ""}]}}})
require "http/client"

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"),
    Content = new StringContent("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

	payload := strings.NewReader("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1181

{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .header("content-type", "application/json")
  .body("{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")
  .asString();
const data = JSON.stringify({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    intent: '',
    parameters: {},
    priority: '',
    config: {
      llmModel: '',
      timeout: '',
      retries: 0,
      enableRag: false
    }
  },
  status: {
    phase: '',
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    observedGeneration: 0,
    processingStartTime: '',
    processingCompletionTime: '',
    deploymentStartTime: '',
    deploymentCompletionTime: '',
    gitCommitHash: '',
    lastRetryTime: '',
    processingInfo: {
      llmModel: '',
      processingTime: '',
      tokensUsed: 0,
      confidenceScore: '',
      requestID: '',
      ragEnhanced: false
    },
    generatedResources: [
      {
        apiVersion: '',
        kind: '',
        name: '',
        namespace: ''
      }
    ]
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name',
  headers: {'content-type': 'application/json'},
  data: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      intent: '',
      parameters: {},
      priority: '',
      config: {llmModel: '', timeout: '', retries: 0, enableRag: false}
    },
    status: {
      phase: '',
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      observedGeneration: 0,
      processingStartTime: '',
      processingCompletionTime: '',
      deploymentStartTime: '',
      deploymentCompletionTime: '',
      gitCommitHash: '',
      lastRetryTime: '',
      processingInfo: {
        llmModel: '',
        processingTime: '',
        tokensUsed: 0,
        confidenceScore: '',
        requestID: '',
        ragEnhanced: false
      },
      generatedResources: [{apiVersion: '', kind: '', name: '', namespace: ''}]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"apiVersion":"","kind":"","metadata":{"name":"","namespace":"","labels":{},"annotations":{},"uid":"","resourceVersion":"","generation":0,"creationTimestamp":""},"spec":{"intent":"","parameters":{},"priority":"","config":{"llmModel":"","timeout":"","retries":0,"enableRag":false}},"status":{"phase":"","conditions":[{"type":"","status":"","lastTransitionTime":"","reason":"","message":"","observedGeneration":0}],"observedGeneration":0,"processingStartTime":"","processingCompletionTime":"","deploymentStartTime":"","deploymentCompletionTime":"","gitCommitHash":"","lastRetryTime":"","processingInfo":{"llmModel":"","processingTime":"","tokensUsed":0,"confidenceScore":"","requestID":"","ragEnhanced":false},"generatedResources":[{"apiVersion":"","kind":"","name":"","namespace":""}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "apiVersion": "",\n  "kind": "",\n  "metadata": {\n    "name": "",\n    "namespace": "",\n    "labels": {},\n    "annotations": {},\n    "uid": "",\n    "resourceVersion": "",\n    "generation": 0,\n    "creationTimestamp": ""\n  },\n  "spec": {\n    "intent": "",\n    "parameters": {},\n    "priority": "",\n    "config": {\n      "llmModel": "",\n      "timeout": "",\n      "retries": 0,\n      "enableRag": false\n    }\n  },\n  "status": {\n    "phase": "",\n    "conditions": [\n      {\n        "type": "",\n        "status": "",\n        "lastTransitionTime": "",\n        "reason": "",\n        "message": "",\n        "observedGeneration": 0\n      }\n    ],\n    "observedGeneration": 0,\n    "processingStartTime": "",\n    "processingCompletionTime": "",\n    "deploymentStartTime": "",\n    "deploymentCompletionTime": "",\n    "gitCommitHash": "",\n    "lastRetryTime": "",\n    "processingInfo": {\n      "llmModel": "",\n      "processingTime": "",\n      "tokensUsed": 0,\n      "confidenceScore": "",\n      "requestID": "",\n      "ragEnhanced": false\n    },\n    "generatedResources": [\n      {\n        "apiVersion": "",\n        "kind": "",\n        "name": "",\n        "namespace": ""\n      }\n    ]\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    intent: '',
    parameters: {},
    priority: '',
    config: {llmModel: '', timeout: '', retries: 0, enableRag: false}
  },
  status: {
    phase: '',
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    observedGeneration: 0,
    processingStartTime: '',
    processingCompletionTime: '',
    deploymentStartTime: '',
    deploymentCompletionTime: '',
    gitCommitHash: '',
    lastRetryTime: '',
    processingInfo: {
      llmModel: '',
      processingTime: '',
      tokensUsed: 0,
      confidenceScore: '',
      requestID: '',
      ragEnhanced: false
    },
    generatedResources: [{apiVersion: '', kind: '', name: '', namespace: ''}]
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name',
  headers: {'content-type': 'application/json'},
  body: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      intent: '',
      parameters: {},
      priority: '',
      config: {llmModel: '', timeout: '', retries: 0, enableRag: false}
    },
    status: {
      phase: '',
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      observedGeneration: 0,
      processingStartTime: '',
      processingCompletionTime: '',
      deploymentStartTime: '',
      deploymentCompletionTime: '',
      gitCommitHash: '',
      lastRetryTime: '',
      processingInfo: {
        llmModel: '',
        processingTime: '',
        tokensUsed: 0,
        confidenceScore: '',
        requestID: '',
        ragEnhanced: false
      },
      generatedResources: [{apiVersion: '', kind: '', name: '', namespace: ''}]
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  apiVersion: '',
  kind: '',
  metadata: {
    name: '',
    namespace: '',
    labels: {},
    annotations: {},
    uid: '',
    resourceVersion: '',
    generation: 0,
    creationTimestamp: ''
  },
  spec: {
    intent: '',
    parameters: {},
    priority: '',
    config: {
      llmModel: '',
      timeout: '',
      retries: 0,
      enableRag: false
    }
  },
  status: {
    phase: '',
    conditions: [
      {
        type: '',
        status: '',
        lastTransitionTime: '',
        reason: '',
        message: '',
        observedGeneration: 0
      }
    ],
    observedGeneration: 0,
    processingStartTime: '',
    processingCompletionTime: '',
    deploymentStartTime: '',
    deploymentCompletionTime: '',
    gitCommitHash: '',
    lastRetryTime: '',
    processingInfo: {
      llmModel: '',
      processingTime: '',
      tokensUsed: 0,
      confidenceScore: '',
      requestID: '',
      ragEnhanced: false
    },
    generatedResources: [
      {
        apiVersion: '',
        kind: '',
        name: '',
        namespace: ''
      }
    ]
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name',
  headers: {'content-type': 'application/json'},
  data: {
    apiVersion: '',
    kind: '',
    metadata: {
      name: '',
      namespace: '',
      labels: {},
      annotations: {},
      uid: '',
      resourceVersion: '',
      generation: 0,
      creationTimestamp: ''
    },
    spec: {
      intent: '',
      parameters: {},
      priority: '',
      config: {llmModel: '', timeout: '', retries: 0, enableRag: false}
    },
    status: {
      phase: '',
      conditions: [
        {
          type: '',
          status: '',
          lastTransitionTime: '',
          reason: '',
          message: '',
          observedGeneration: 0
        }
      ],
      observedGeneration: 0,
      processingStartTime: '',
      processingCompletionTime: '',
      deploymentStartTime: '',
      deploymentCompletionTime: '',
      gitCommitHash: '',
      lastRetryTime: '',
      processingInfo: {
        llmModel: '',
        processingTime: '',
        tokensUsed: 0,
        confidenceScore: '',
        requestID: '',
        ragEnhanced: false
      },
      generatedResources: [{apiVersion: '', kind: '', name: '', namespace: ''}]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"apiVersion":"","kind":"","metadata":{"name":"","namespace":"","labels":{},"annotations":{},"uid":"","resourceVersion":"","generation":0,"creationTimestamp":""},"spec":{"intent":"","parameters":{},"priority":"","config":{"llmModel":"","timeout":"","retries":0,"enableRag":false}},"status":{"phase":"","conditions":[{"type":"","status":"","lastTransitionTime":"","reason":"","message":"","observedGeneration":0}],"observedGeneration":0,"processingStartTime":"","processingCompletionTime":"","deploymentStartTime":"","deploymentCompletionTime":"","gitCommitHash":"","lastRetryTime":"","processingInfo":{"llmModel":"","processingTime":"","tokensUsed":0,"confidenceScore":"","requestID":"","ragEnhanced":false},"generatedResources":[{"apiVersion":"","kind":"","name":"","namespace":""}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"apiVersion": @"",
                              @"kind": @"",
                              @"metadata": @{ @"name": @"", @"namespace": @"", @"labels": @{  }, @"annotations": @{  }, @"uid": @"", @"resourceVersion": @"", @"generation": @0, @"creationTimestamp": @"" },
                              @"spec": @{ @"intent": @"", @"parameters": @{  }, @"priority": @"", @"config": @{ @"llmModel": @"", @"timeout": @"", @"retries": @0, @"enableRag": @NO } },
                              @"status": @{ @"phase": @"", @"conditions": @[ @{ @"type": @"", @"status": @"", @"lastTransitionTime": @"", @"reason": @"", @"message": @"", @"observedGeneration": @0 } ], @"observedGeneration": @0, @"processingStartTime": @"", @"processingCompletionTime": @"", @"deploymentStartTime": @"", @"deploymentCompletionTime": @"", @"gitCommitHash": @"", @"lastRetryTime": @"", @"processingInfo": @{ @"llmModel": @"", @"processingTime": @"", @"tokensUsed": @0, @"confidenceScore": @"", @"requestID": @"", @"ragEnhanced": @NO }, @"generatedResources": @[ @{ @"apiVersion": @"", @"kind": @"", @"name": @"", @"namespace": @"" } ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'apiVersion' => '',
    'kind' => '',
    'metadata' => [
        'name' => '',
        'namespace' => '',
        'labels' => [
                
        ],
        'annotations' => [
                
        ],
        'uid' => '',
        'resourceVersion' => '',
        'generation' => 0,
        'creationTimestamp' => ''
    ],
    'spec' => [
        'intent' => '',
        'parameters' => [
                
        ],
        'priority' => '',
        'config' => [
                'llmModel' => '',
                'timeout' => '',
                'retries' => 0,
                'enableRag' => null
        ]
    ],
    'status' => [
        'phase' => '',
        'conditions' => [
                [
                                'type' => '',
                                'status' => '',
                                'lastTransitionTime' => '',
                                'reason' => '',
                                'message' => '',
                                'observedGeneration' => 0
                ]
        ],
        'observedGeneration' => 0,
        'processingStartTime' => '',
        'processingCompletionTime' => '',
        'deploymentStartTime' => '',
        'deploymentCompletionTime' => '',
        'gitCommitHash' => '',
        'lastRetryTime' => '',
        'processingInfo' => [
                'llmModel' => '',
                'processingTime' => '',
                'tokensUsed' => 0,
                'confidenceScore' => '',
                'requestID' => '',
                'ragEnhanced' => null
        ],
        'generatedResources' => [
                [
                                'apiVersion' => '',
                                'kind' => '',
                                'name' => '',
                                'namespace' => ''
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name', [
  'body' => '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'apiVersion' => '',
  'kind' => '',
  'metadata' => [
    'name' => '',
    'namespace' => '',
    'labels' => [
        
    ],
    'annotations' => [
        
    ],
    'uid' => '',
    'resourceVersion' => '',
    'generation' => 0,
    'creationTimestamp' => ''
  ],
  'spec' => [
    'intent' => '',
    'parameters' => [
        
    ],
    'priority' => '',
    'config' => [
        'llmModel' => '',
        'timeout' => '',
        'retries' => 0,
        'enableRag' => null
    ]
  ],
  'status' => [
    'phase' => '',
    'conditions' => [
        [
                'type' => '',
                'status' => '',
                'lastTransitionTime' => '',
                'reason' => '',
                'message' => '',
                'observedGeneration' => 0
        ]
    ],
    'observedGeneration' => 0,
    'processingStartTime' => '',
    'processingCompletionTime' => '',
    'deploymentStartTime' => '',
    'deploymentCompletionTime' => '',
    'gitCommitHash' => '',
    'lastRetryTime' => '',
    'processingInfo' => [
        'llmModel' => '',
        'processingTime' => '',
        'tokensUsed' => 0,
        'confidenceScore' => '',
        'requestID' => '',
        'ragEnhanced' => null
    ],
    'generatedResources' => [
        [
                'apiVersion' => '',
                'kind' => '',
                'name' => '',
                'namespace' => ''
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'apiVersion' => '',
  'kind' => '',
  'metadata' => [
    'name' => '',
    'namespace' => '',
    'labels' => [
        
    ],
    'annotations' => [
        
    ],
    'uid' => '',
    'resourceVersion' => '',
    'generation' => 0,
    'creationTimestamp' => ''
  ],
  'spec' => [
    'intent' => '',
    'parameters' => [
        
    ],
    'priority' => '',
    'config' => [
        'llmModel' => '',
        'timeout' => '',
        'retries' => 0,
        'enableRag' => null
    ]
  ],
  'status' => [
    'phase' => '',
    'conditions' => [
        [
                'type' => '',
                'status' => '',
                'lastTransitionTime' => '',
                'reason' => '',
                'message' => '',
                'observedGeneration' => 0
        ]
    ],
    'observedGeneration' => 0,
    'processingStartTime' => '',
    'processingCompletionTime' => '',
    'deploymentStartTime' => '',
    'deploymentCompletionTime' => '',
    'gitCommitHash' => '',
    'lastRetryTime' => '',
    'processingInfo' => [
        'llmModel' => '',
        'processingTime' => '',
        'tokensUsed' => 0,
        'confidenceScore' => '',
        'requestID' => '',
        'ragEnhanced' => null
    ],
    'generatedResources' => [
        [
                'apiVersion' => '',
                'kind' => '',
                'name' => '',
                'namespace' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

payload = {
    "apiVersion": "",
    "kind": "",
    "metadata": {
        "name": "",
        "namespace": "",
        "labels": {},
        "annotations": {},
        "uid": "",
        "resourceVersion": "",
        "generation": 0,
        "creationTimestamp": ""
    },
    "spec": {
        "intent": "",
        "parameters": {},
        "priority": "",
        "config": {
            "llmModel": "",
            "timeout": "",
            "retries": 0,
            "enableRag": False
        }
    },
    "status": {
        "phase": "",
        "conditions": [
            {
                "type": "",
                "status": "",
                "lastTransitionTime": "",
                "reason": "",
                "message": "",
                "observedGeneration": 0
            }
        ],
        "observedGeneration": 0,
        "processingStartTime": "",
        "processingCompletionTime": "",
        "deploymentStartTime": "",
        "deploymentCompletionTime": "",
        "gitCommitHash": "",
        "lastRetryTime": "",
        "processingInfo": {
            "llmModel": "",
            "processingTime": "",
            "tokensUsed": 0,
            "confidenceScore": "",
            "requestID": "",
            "ragEnhanced": False
        },
        "generatedResources": [
            {
                "apiVersion": "",
                "kind": "",
                "name": "",
                "namespace": ""
            }
        ]
    }
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name"

payload <- "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name') do |req|
  req.body = "{\n  \"apiVersion\": \"\",\n  \"kind\": \"\",\n  \"metadata\": {\n    \"name\": \"\",\n    \"namespace\": \"\",\n    \"labels\": {},\n    \"annotations\": {},\n    \"uid\": \"\",\n    \"resourceVersion\": \"\",\n    \"generation\": 0,\n    \"creationTimestamp\": \"\"\n  },\n  \"spec\": {\n    \"intent\": \"\",\n    \"parameters\": {},\n    \"priority\": \"\",\n    \"config\": {\n      \"llmModel\": \"\",\n      \"timeout\": \"\",\n      \"retries\": 0,\n      \"enableRag\": false\n    }\n  },\n  \"status\": {\n    \"phase\": \"\",\n    \"conditions\": [\n      {\n        \"type\": \"\",\n        \"status\": \"\",\n        \"lastTransitionTime\": \"\",\n        \"reason\": \"\",\n        \"message\": \"\",\n        \"observedGeneration\": 0\n      }\n    ],\n    \"observedGeneration\": 0,\n    \"processingStartTime\": \"\",\n    \"processingCompletionTime\": \"\",\n    \"deploymentStartTime\": \"\",\n    \"deploymentCompletionTime\": \"\",\n    \"gitCommitHash\": \"\",\n    \"lastRetryTime\": \"\",\n    \"processingInfo\": {\n      \"llmModel\": \"\",\n      \"processingTime\": \"\",\n      \"tokensUsed\": 0,\n      \"confidenceScore\": \"\",\n      \"requestID\": \"\",\n      \"ragEnhanced\": false\n    },\n    \"generatedResources\": [\n      {\n        \"apiVersion\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"namespace\": \"\"\n      }\n    ]\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name";

    let payload = json!({
        "apiVersion": "",
        "kind": "",
        "metadata": json!({
            "name": "",
            "namespace": "",
            "labels": json!({}),
            "annotations": json!({}),
            "uid": "",
            "resourceVersion": "",
            "generation": 0,
            "creationTimestamp": ""
        }),
        "spec": json!({
            "intent": "",
            "parameters": json!({}),
            "priority": "",
            "config": json!({
                "llmModel": "",
                "timeout": "",
                "retries": 0,
                "enableRag": false
            })
        }),
        "status": json!({
            "phase": "",
            "conditions": (
                json!({
                    "type": "",
                    "status": "",
                    "lastTransitionTime": "",
                    "reason": "",
                    "message": "",
                    "observedGeneration": 0
                })
            ),
            "observedGeneration": 0,
            "processingStartTime": "",
            "processingCompletionTime": "",
            "deploymentStartTime": "",
            "deploymentCompletionTime": "",
            "gitCommitHash": "",
            "lastRetryTime": "",
            "processingInfo": json!({
                "llmModel": "",
                "processingTime": "",
                "tokensUsed": 0,
                "confidenceScore": "",
                "requestID": "",
                "ragEnhanced": false
            }),
            "generatedResources": (
                json!({
                    "apiVersion": "",
                    "kind": "",
                    "name": "",
                    "namespace": ""
                })
            )
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name \
  --header 'content-type: application/json' \
  --data '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}'
echo '{
  "apiVersion": "",
  "kind": "",
  "metadata": {
    "name": "",
    "namespace": "",
    "labels": {},
    "annotations": {},
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  },
  "spec": {
    "intent": "",
    "parameters": {},
    "priority": "",
    "config": {
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    }
  },
  "status": {
    "phase": "",
    "conditions": [
      {
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      }
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": {
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    },
    "generatedResources": [
      {
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      }
    ]
  }
}' |  \
  http PUT {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "apiVersion": "",\n  "kind": "",\n  "metadata": {\n    "name": "",\n    "namespace": "",\n    "labels": {},\n    "annotations": {},\n    "uid": "",\n    "resourceVersion": "",\n    "generation": 0,\n    "creationTimestamp": ""\n  },\n  "spec": {\n    "intent": "",\n    "parameters": {},\n    "priority": "",\n    "config": {\n      "llmModel": "",\n      "timeout": "",\n      "retries": 0,\n      "enableRag": false\n    }\n  },\n  "status": {\n    "phase": "",\n    "conditions": [\n      {\n        "type": "",\n        "status": "",\n        "lastTransitionTime": "",\n        "reason": "",\n        "message": "",\n        "observedGeneration": 0\n      }\n    ],\n    "observedGeneration": 0,\n    "processingStartTime": "",\n    "processingCompletionTime": "",\n    "deploymentStartTime": "",\n    "deploymentCompletionTime": "",\n    "gitCommitHash": "",\n    "lastRetryTime": "",\n    "processingInfo": {\n      "llmModel": "",\n      "processingTime": "",\n      "tokensUsed": 0,\n      "confidenceScore": "",\n      "requestID": "",\n      "ragEnhanced": false\n    },\n    "generatedResources": [\n      {\n        "apiVersion": "",\n        "kind": "",\n        "name": "",\n        "namespace": ""\n      }\n    ]\n  }\n}' \
  --output-document \
  - {{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "apiVersion": "",
  "kind": "",
  "metadata": [
    "name": "",
    "namespace": "",
    "labels": [],
    "annotations": [],
    "uid": "",
    "resourceVersion": "",
    "generation": 0,
    "creationTimestamp": ""
  ],
  "spec": [
    "intent": "",
    "parameters": [],
    "priority": "",
    "config": [
      "llmModel": "",
      "timeout": "",
      "retries": 0,
      "enableRag": false
    ]
  ],
  "status": [
    "phase": "",
    "conditions": [
      [
        "type": "",
        "status": "",
        "lastTransitionTime": "",
        "reason": "",
        "message": "",
        "observedGeneration": 0
      ]
    ],
    "observedGeneration": 0,
    "processingStartTime": "",
    "processingCompletionTime": "",
    "deploymentStartTime": "",
    "deploymentCompletionTime": "",
    "gitCommitHash": "",
    "lastRetryTime": "",
    "processingInfo": [
      "llmModel": "",
      "processingTime": "",
      "tokensUsed": 0,
      "confidenceScore": "",
      "requestID": "",
      "ragEnhanced": false
    ],
    "generatedResources": [
      [
        "apiVersion": "",
        "kind": "",
        "name": "",
        "namespace": ""
      ]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apis/nephoran.com/v1/namespaces/:namespace/networkintents/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "apiVersion": "nephoran.com/v1",
  "kind": "NetworkIntent",
  "metadata": {
    "name": "example-intent",
    "namespace": "default",
    "labels": {
      "app": "nephoran",
      "component": "intent-processor"
    },
    "annotations": {
      "nephoran.com/processed-by": "llm-processor-v2"
    },
    "uid": "12345678-1234-1234-1234-123456789012",
    "resourceVersion": "12345",
    "generation": 1,
    "creationTimestamp": "2025-01-30T10:30:00Z"
  },
  "spec": {
    "intent": "Deploy AMF with 3 replicas for network slice eMBB with high throughput requirements",
    "parameters": {
      "networkFunction": "AMF",
      "replicas": 3,
      "namespace": "telecom-core",
      "resources": {
        "cpu": "2000m",
        "memory": "4Gi"
      },
      "networkSlice": {
        "type": "eMBB",
        "sla": {
          "latency": "20ms",
          "throughput": "1Gbps"
        }
      }
    },
    "priority": "high"
  },
  "status": {
    "phase": "Processed",
    "observedGeneration": 1,
    "processingStartTime": "2025-01-30T10:30:15Z",
    "processingCompletionTime": "2025-01-30T10:30:17Z",
    "deploymentStartTime": "2025-01-30T10:30:20Z",
    "deploymentCompletionTime": "2025-01-30T10:31:00Z",
    "gitCommitHash": "abc123def456",
    "lastRetryTime": "2025-01-30T10:29:00Z"
  }
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "kind": "Status",
  "apiVersion": "v1",
  "status": "Success",
  "message": "NetworkIntent 'example-intent' deleted",
  "reason": "Deleted",
  "code": 200
}