23
23
_api_function (name:: Symbol ) = isdefined (@__MODULE__ , name) ? eval (name) : nothing
24
24
_api_function (name) = _api_function (Symbol (name))
25
25
26
- function list (ctx:: KuberContext , O:: Symbol , name:: String , apiversion:: Union{String,Nothing} = nothing ; namespace:: Union{String,Nothing} = ctx. namespace, kwargs... )
26
+ function list (ctx:: KuberContext , O:: Symbol , name:: String ; apiversion:: Union{String,Nothing} = nothing , namespace:: Union{String,Nothing} = ctx. namespace, kwargs... )
27
27
isempty (ctx. apis) && set_api_versions! (ctx)
28
28
29
29
apictx = _get_apictx (ctx, O, apiversion)
@@ -42,7 +42,7 @@ function list(ctx::KuberContext, O::Symbol, name::String, apiversion::Union{Stri
42
42
end
43
43
end
44
44
45
- function list (ctx:: KuberContext , O:: Symbol , apiversion:: Union{String,Nothing} = nothing ; namespace:: Union{String,Nothing} = ctx. namespace, kwargs... )
45
+ function list (ctx:: KuberContext , O:: Symbol ; apiversion:: Union{String,Nothing} = nothing , namespace:: Union{String,Nothing} = ctx. namespace, kwargs... )
46
46
isempty (ctx. apis) && set_api_versions! (ctx)
47
47
48
48
apictx = _get_apictx (ctx, O, apiversion)
@@ -61,7 +61,7 @@ function list(ctx::KuberContext, O::Symbol, apiversion::Union{String,Nothing}=no
61
61
end
62
62
end
63
63
64
- function get (ctx:: KuberContext , O:: Symbol , name:: String , apiversion:: Union{String,Nothing} = nothing ; max_tries:: Integer = 1 , kwargs... )
64
+ function get (ctx:: KuberContext , O:: Symbol , name:: String ; apiversion:: Union{String,Nothing} = nothing , max_tries:: Integer = 1 , kwargs... )
65
65
isempty (ctx. apis) && set_api_versions! (ctx; max_tries= max_tries)
66
66
67
67
apictx = _get_apictx (ctx, O, apiversion)
@@ -88,7 +88,7 @@ function get(ctx::KuberContext, O::Symbol, name::String, apiversion::Union{Strin
88
88
end
89
89
end
90
90
91
- function get (ctx:: KuberContext , O:: Symbol , apiversion:: Union{String,Nothing} = nothing ; label_selector= nothing , namespace:: Union{String,Nothing} = ctx. namespace, max_tries:: Integer = 1 )
91
+ function get (ctx:: KuberContext , O:: Symbol ; apiversion:: Union{String,Nothing} = nothing , label_selector= nothing , namespace:: Union{String,Nothing} = ctx. namespace, max_tries:: Integer = 1 )
92
92
isempty (ctx. apis) && set_api_versions! (ctx; max_tries= max_tries)
93
93
94
94
apictx = _get_apictx (ctx, O, apiversion)
@@ -139,10 +139,10 @@ function delete!(ctx::KuberContext, v::T; kwargs...) where {T<:SwaggerModel}
139
139
vjson = convert (Dict{String,Any}, v)
140
140
kind = vjson[" kind" ]
141
141
name = vjson[" metadata" ][" name" ]
142
- delete! (ctx, Symbol (kind), name, get (vjson, " apiVersion" , nothing ); kwargs... )
142
+ delete! (ctx, Symbol (kind), name; apiversion = get (vjson, " apiVersion" , nothing ), kwargs... )
143
143
end
144
144
145
- function delete! (ctx:: KuberContext , O:: Symbol , name:: String , apiversion:: Union{String,Nothing} = nothing ; kwargs... )
145
+ function delete! (ctx:: KuberContext , O:: Symbol , name:: String ; apiversion:: Union{String,Nothing} = nothing , kwargs... )
146
146
isempty (ctx. apis) && set_api_versions! (ctx)
147
147
apictx = _get_apictx (ctx, O, apiversion)
148
148
@@ -162,10 +162,10 @@ function update!(ctx::KuberContext, v::T, patch, patch_type) where {T<:SwaggerMo
162
162
vjson = convert (Dict{String,Any}, v)
163
163
kind = vjson[" kind" ]
164
164
name = vjson[" metadata" ][" name" ]
165
- update! (ctx, Symbol (kind), name, patch, patch_type, get (vjson, " apiVersion" , nothing ))
165
+ update! (ctx, Symbol (kind), name, patch, patch_type; apiversion = get (vjson, " apiVersion" , nothing ))
166
166
end
167
167
168
- function update! (ctx:: KuberContext , O:: Symbol , name:: String , patch, patch_type, apiversion:: Union{String,Nothing} = nothing )
168
+ function update! (ctx:: KuberContext , O:: Symbol , name:: String , patch, patch_type; apiversion:: Union{String,Nothing} = nothing )
169
169
isempty (ctx. apis) && set_api_versions! (ctx)
170
170
171
171
apictx = _get_apictx (ctx, O, apiversion)
0 commit comments