in pkg/clientset/versioned/typed/security/v1beta1/requestauthentication.gen.go [228:254]
func (c *requestAuthentications) ApplyStatus(ctx context.Context, requestAuthentication *securityv1beta1.RequestAuthenticationApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.RequestAuthentication, err error) {
if requestAuthentication == nil {
return nil, fmt.Errorf("requestAuthentication provided to Apply must not be nil")
}
patchOpts := opts.ToPatchOptions()
data, err := json.Marshal(requestAuthentication)
if err != nil {
return nil, err
}
name := requestAuthentication.Name
if name == nil {
return nil, fmt.Errorf("requestAuthentication.Name must be provided to Apply")
}
result = &v1beta1.RequestAuthentication{}
err = c.client.Patch(types.ApplyPatchType).
Namespace(c.ns).
Resource("requestauthentications").
Name(*name).
SubResource("status").
VersionedParams(&patchOpts, scheme.ParameterCodec).
Body(data).
Do(ctx).
Into(result)
return
}