public Task <GetSnapshotResponse> GetAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, Action <GetSnapshotRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <GetSnapshotRequestDescriptor, GetSnapshotResponse>(descriptor));
        }
        public SnapshotCleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elasticsearch.Name repository, Action <SnapshotCleanupRepositoryRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SnapshotCleanupRepositoryRequestDescriptor(repository);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SnapshotCleanupRepositoryRequestDescriptor, SnapshotCleanupRepositoryResponse>(descriptor));
        }
        public Task <EnrichExecutePolicyResponse> ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action <EnrichExecutePolicyRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new EnrichExecutePolicyRequestDescriptor(name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <EnrichExecutePolicyRequestDescriptor, EnrichExecutePolicyResponse>(descriptor));
        }
        public GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, Action <GetSnapshotRequestDescriptor> configureRequest = null)
        {
            var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <GetSnapshotRequestDescriptor, GetSnapshotResponse>(descriptor));
        }
        public Task <SlmExecuteLifecycleResponse> ExecuteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy_id, Action <SlmExecuteLifecycleRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SlmExecuteLifecycleRequestDescriptor(policy_id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SlmExecuteLifecycleRequestDescriptor, SlmExecuteLifecycleResponse>(descriptor));
        }
        public EnrichExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name, Action <EnrichExecutePolicyRequestDescriptor> configureRequest = null)
        {
            var descriptor = new EnrichExecutePolicyRequestDescriptor(name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <EnrichExecutePolicyRequestDescriptor, EnrichExecutePolicyResponse>(descriptor));
        }
        public SlmExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elasticsearch.Name policy_id, Action <SlmExecuteLifecycleRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SlmExecuteLifecycleRequestDescriptor(policy_id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SlmExecuteLifecycleRequestDescriptor, SlmExecuteLifecycleResponse>(descriptor));
        }
Beispiel #8
0
        public Task <ClusterPutComponentTemplateResponse> PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action <ClusterPutComponentTemplateRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new ClusterPutComponentTemplateRequestDescriptor(name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <ClusterPutComponentTemplateRequestDescriptor, ClusterPutComponentTemplateResponse>(descriptor));
        }
Beispiel #9
0
        public ClusterPutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name, Action <ClusterPutComponentTemplateRequestDescriptor> configureRequest = null)
        {
            var descriptor = new ClusterPutComponentTemplateRequestDescriptor(name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <ClusterPutComponentTemplateRequestDescriptor, ClusterPutComponentTemplateResponse>(descriptor));
        }
        public Task <SnapshotCleanupRepositoryResponse> CleanupRepositoryAsync(Elastic.Clients.Elasticsearch.Name repository, Action <SnapshotCleanupRepositoryRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SnapshotCleanupRepositoryRequestDescriptor(repository);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SnapshotCleanupRepositoryRequestDescriptor, SnapshotCleanupRepositoryResponse>(descriptor));
        }
        public SnapshotCloneResponse Clone(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name target_snapshot, Action <SnapshotCloneRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SnapshotCloneRequestDescriptor(repository, snapshot, target_snapshot);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SnapshotCloneRequestDescriptor, SnapshotCloneResponse>(descriptor));
        }
        public IlmDeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name policy, Action <IlmDeleteLifecycleRequestDescriptor> configureRequest = null)
        {
            var descriptor = new IlmDeleteLifecycleRequestDescriptor(policy);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <IlmDeleteLifecycleRequestDescriptor, IlmDeleteLifecycleResponse>(descriptor));
        }
Beispiel #13
0
 public CcrPutAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
 {
 }
Beispiel #14
0
        public Task <SecuritySamlServiceProviderMetadataResponse> SamlServiceProviderMetadataAsync(Elastic.Clients.Elasticsearch.Name realm_name, Action <SecuritySamlServiceProviderMetadataRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SecuritySamlServiceProviderMetadataRequestDescriptor(realm_name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SecuritySamlServiceProviderMetadataRequestDescriptor, SecuritySamlServiceProviderMetadataResponse>(descriptor));
        }
 public SlmDeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Name policy_id) : base(r => r.Required("policy_id", policy_id))
 {
 }
Beispiel #16
0
        public Task <SecurityClearCachedPrivilegesResponse> ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, Action <SecurityClearCachedPrivilegesRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SecurityClearCachedPrivilegesRequestDescriptor(application);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SecurityClearCachedPrivilegesRequestDescriptor, SecurityClearCachedPrivilegesResponse>(descriptor));
        }
Beispiel #17
0
        public SecuritySamlServiceProviderMetadataResponse SamlServiceProviderMetadata(Elastic.Clients.Elasticsearch.Name realm_name, Action <SecuritySamlServiceProviderMetadataRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SecuritySamlServiceProviderMetadataRequestDescriptor(realm_name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SecuritySamlServiceProviderMetadataRequestDescriptor, SecuritySamlServiceProviderMetadataResponse>(descriptor));
        }
Beispiel #18
0
 public SecuritySamlServiceProviderMetadataRequest(Elastic.Clients.Elasticsearch.Name realm_name) : base(r => r.Required("realm_name", realm_name))
 {
 }
 public AutoscalingDeleteAutoscalingPolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
 {
 }
Beispiel #20
0
 public EnrichDeletePolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
 {
 }
        public Task <AutoscalingDeleteAutoscalingPolicyResponse> DeleteAutoscalingPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action <AutoscalingDeleteAutoscalingPolicyRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new AutoscalingDeleteAutoscalingPolicyRequestDescriptor(name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <AutoscalingDeleteAutoscalingPolicyRequestDescriptor, AutoscalingDeleteAutoscalingPolicyResponse>(descriptor));
        }
Beispiel #22
0
        public SearchableSnapshotsMountResponse Mount(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action <SearchableSnapshotsMountRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SearchableSnapshotsMountRequestDescriptor(repository, snapshot);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SearchableSnapshotsMountRequestDescriptor, SearchableSnapshotsMountResponse>(descriptor));
        }
Beispiel #23
0
 public MlDeleteTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias) : base(r => r.Required("model_id", model_id).Required("model_alias", model_alias))
 {
 }
 public SecurityClearCachedPrivilegesRequest(Elastic.Clients.Elasticsearch.Name application) : base(r => r.Required("application", application))
 {
 }