|
| 1 | +# This file was generated by the Julia Swagger Code Generator |
| 2 | +# Do not modify this file directly. Modify the swagger specification instead. |
| 3 | + |
| 4 | +struct MetricsV1beta1Api <: SwaggerApi |
| 5 | + client::Swagger.Client |
| 6 | +end |
| 7 | + |
| 8 | +""" |
| 9 | +
|
| 10 | +list or watch objects of kind NodeMetrics |
| 11 | +Param: allowWatchBookmarks::Bool |
| 12 | +Param: __continue__::String |
| 13 | +Param: fieldSelector::String |
| 14 | +Param: labelSelector::String |
| 15 | +Param: limit::Int32 |
| 16 | +Param: resourceVersion::String |
| 17 | +Param: timeoutSeconds::Int32 |
| 18 | +Param: watch::Bool |
| 19 | +Return: IoK8sApiMetricsV1beta1NodeMetricsList |
| 20 | +""" |
| 21 | +function listMetricsV1beta1NodeMetrics(_api::MetricsV1beta1Api; allowWatchBookmarks=nothing, __continue__=nothing, fieldSelector=nothing, labelSelector=nothing, limit=nothing, resourceVersion=nothing, timeoutSeconds=nothing, watch=nothing, _mediaType=nothing) |
| 22 | + _ctx = Swagger.Ctx(_api.client, "GET", IoK8sApiMetricsV1beta1NodeMetricsList, "/apis/metrics.k8s.io/v1beta1/nodes", ["BearerToken"]) |
| 23 | + Swagger.set_param(_ctx.query, "allowWatchBookmarks", allowWatchBookmarks) # type Bool |
| 24 | + Swagger.set_param(_ctx.query, "continue", __continue__) # type String |
| 25 | + Swagger.set_param(_ctx.query, "fieldSelector", fieldSelector) # type String |
| 26 | + Swagger.set_param(_ctx.query, "labelSelector", labelSelector) # type String |
| 27 | + Swagger.set_param(_ctx.query, "limit", limit) # type Int32 |
| 28 | + Swagger.set_param(_ctx.query, "resourceVersion", resourceVersion) # type String |
| 29 | + Swagger.set_param(_ctx.query, "timeoutSeconds", timeoutSeconds) # type Int32 |
| 30 | + Swagger.set_param(_ctx.query, "watch", watch) # type Bool |
| 31 | + Swagger.set_header_accept(_ctx, ["application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"]) |
| 32 | + Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["*/*"] : [_mediaType]) |
| 33 | + Swagger.exec(_ctx) |
| 34 | +end |
| 35 | + |
| 36 | +""" |
| 37 | +
|
| 38 | +list or watch objects of kind PodMetrics |
| 39 | +Param: allowWatchBookmarks::Bool |
| 40 | +Param: __continue__::String |
| 41 | +Param: fieldSelector::String |
| 42 | +Param: labelSelector::String |
| 43 | +Param: limit::Int32 |
| 44 | +Param: resourceVersion::String |
| 45 | +Param: timeoutSeconds::Int32 |
| 46 | +Param: watch::Bool |
| 47 | +Return: IoK8sApiMetricsV1beta1PodMetricsList |
| 48 | +""" |
| 49 | +function listMetricsV1beta1PodMetrics(_api::MetricsV1beta1Api; allowWatchBookmarks=nothing, __continue__=nothing, fieldSelector=nothing, labelSelector=nothing, limit=nothing, resourceVersion=nothing, timeoutSeconds=nothing, watch=nothing, _mediaType=nothing) |
| 50 | + _ctx = Swagger.Ctx(_api.client, "GET", IoK8sApiMetricsV1beta1PodMetricsList, "/apis/metrics.k8s.io/v1beta1/pods", ["BearerToken"]) |
| 51 | + Swagger.set_param(_ctx.query, "allowWatchBookmarks", allowWatchBookmarks) # type Bool |
| 52 | + Swagger.set_param(_ctx.query, "continue", __continue__) # type String |
| 53 | + Swagger.set_param(_ctx.query, "fieldSelector", fieldSelector) # type String |
| 54 | + Swagger.set_param(_ctx.query, "labelSelector", labelSelector) # type String |
| 55 | + Swagger.set_param(_ctx.query, "limit", limit) # type Int32 |
| 56 | + Swagger.set_param(_ctx.query, "resourceVersion", resourceVersion) # type String |
| 57 | + Swagger.set_param(_ctx.query, "timeoutSeconds", timeoutSeconds) # type Int32 |
| 58 | + Swagger.set_param(_ctx.query, "watch", watch) # type Bool |
| 59 | + Swagger.set_header_accept(_ctx, ["application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"]) |
| 60 | + Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["*/*"] : [_mediaType]) |
| 61 | + Swagger.exec(_ctx) |
| 62 | +end |
| 63 | + |
| 64 | +""" |
| 65 | +
|
| 66 | +read the specified PodMetrics |
| 67 | +Param: name::String (required) |
| 68 | +Param: namespace::String (required) |
| 69 | +Param: pretty::String |
| 70 | +Param: exact::Bool |
| 71 | +Param: __export__::Bool |
| 72 | +Return: IoK8sApiMetricsV1beta1PodMetrics |
| 73 | +""" |
| 74 | +function readMetricsV1beta1NamespacedPodMetrics(_api::MetricsV1beta1Api, name::String, namespace::String; pretty=nothing, exact=nothing, __export__=nothing, _mediaType=nothing) |
| 75 | + _ctx = Swagger.Ctx(_api.client, "GET", IoK8sApiMetricsV1beta1PodMetrics, "/apis/metrics.k8s.io/v1beta1/namespaces/{namespace}/pods/{name}", ["BearerToken"]) |
| 76 | + Swagger.set_param(_ctx.path, "name", name) # type String |
| 77 | + Swagger.set_param(_ctx.path, "namespace", namespace) # type String |
| 78 | + Swagger.set_param(_ctx.query, "pretty", pretty) # type String |
| 79 | + Swagger.set_param(_ctx.query, "exact", exact) # type Bool |
| 80 | + Swagger.set_param(_ctx.query, "export", __export__) # type Bool |
| 81 | + Swagger.set_header_accept(_ctx, ["application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"]) |
| 82 | + Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["*/*"] : [_mediaType]) |
| 83 | + Swagger.exec(_ctx) |
| 84 | +end |
| 85 | + |
| 86 | +""" |
| 87 | +
|
| 88 | +read the specified NodeMetrics |
| 89 | +Param: name::String (required) |
| 90 | +Param: pretty::String |
| 91 | +Param: exact::Bool |
| 92 | +Param: __export__::Bool |
| 93 | +Return: IoK8sApiMetricsV1beta1NodeMetrics |
| 94 | +""" |
| 95 | +function readMetricsV1beta1NodeMetrics(_api::MetricsV1beta1Api, name::String; pretty=nothing, exact=nothing, __export__=nothing, _mediaType=nothing) |
| 96 | + _ctx = Swagger.Ctx(_api.client, "GET", IoK8sApiMetricsV1beta1NodeMetrics, "/apis/metrics.k8s.io/v1beta1/nodes/{name}", ["BearerToken"]) |
| 97 | + Swagger.set_param(_ctx.path, "name", name) # type String |
| 98 | + Swagger.set_param(_ctx.query, "pretty", pretty) # type String |
| 99 | + Swagger.set_param(_ctx.query, "exact", exact) # type Bool |
| 100 | + Swagger.set_param(_ctx.query, "export", __export__) # type Bool |
| 101 | + Swagger.set_header_accept(_ctx, ["application/json", "application/yaml", "application/vnd.kubernetes.protobuf"]) |
| 102 | + Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["*/*"] : [_mediaType]) |
| 103 | + Swagger.exec(_ctx) |
| 104 | +end |
| 105 | + |
| 106 | +export listMetricsV1beta1NodeMetrics, listMetricsV1beta1PodMetrics, readMetricsV1beta1NamespacedPodMetrics, readMetricsV1beta1NodeMetrics |
0 commit comments