public Task <ClusterGetComponentTemplateResponse> GetComponentTemplateAsync(Action <ClusterGetComponentTemplateRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new ClusterGetComponentTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <ClusterGetComponentTemplateRequestDescriptor, ClusterGetComponentTemplateResponse>(descriptor)); }
public ClusterGetComponentTemplateResponse GetComponentTemplate(Action <ClusterGetComponentTemplateRequestDescriptor> configureRequest = null) { var descriptor = new ClusterGetComponentTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <ClusterGetComponentTemplateRequestDescriptor, ClusterGetComponentTemplateResponse>(descriptor)); }