lib/ff/ruby/server/generated/lib/openapi_client/api/client_api.rb in ff-ruby-server-sdk-1.2.1 vs lib/ff/ruby/server/generated/lib/openapi_client/api/client_api.rb in ff-ruby-server-sdk-1.3.1
- old
+ new
@@ -82,20 +82,24 @@
# Retrieve all segments.
# Used to retrieve all segments for certain account id.
# @param environment_uuid [String] Unique identifier for the environment object in the API.
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
+ # @option opts [String] :rules When set to rules=v2 will return AND rule compatible serving_rules field. When not set or set to any other value will return old rules field only compatible with OR rules.
# @return [Array<Segment>]
def get_all_segments(environment_uuid, opts = {})
data, _status_code, _headers = get_all_segments_with_http_info(environment_uuid, opts)
data
end
# Retrieve all segments.
# Used to retrieve all segments for certain account id.
# @param environment_uuid [String] Unique identifier for the environment object in the API.
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
+ # @option opts [String] :rules When set to rules=v2 will return AND rule compatible serving_rules field. When not set or set to any other value will return old rules field only compatible with OR rules.
# @return [Array<(Array<Segment>, Integer, Hash)>] Array<Segment> data, response status code and response headers
def get_all_segments_with_http_info(environment_uuid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: ClientApi.get_all_segments ...'
end
@@ -106,10 +110,12 @@
# resource path
local_var_path = '/client/env/{environmentUUID}/target-segments'.sub('{' + 'environmentUUID' + '}', CGI.escape(environment_uuid.to_s))
# query parameters
query_params = opts[:query_params] || {}
+ query_params[:'cluster'] = opts[:'cluster'] if !opts[:'cluster'].nil?
+ query_params[:'rules'] = opts[:'rules'] if !opts[:'rules'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
@@ -146,10 +152,11 @@
# Get feature evaluations for target
# @param environment_uuid [String] Unique identifier for the environment object in the API.
# @param feature [String] Unique identifier for the flag object in the API.
# @param target [String] Unique identifier for the target object in the API.
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
# @return [Evaluation]
def get_evaluation_by_identifier(environment_uuid, feature, target, opts = {})
data, _status_code, _headers = get_evaluation_by_identifier_with_http_info(environment_uuid, feature, target, opts)
data
end
@@ -157,10 +164,11 @@
# Get feature evaluations for target
# @param environment_uuid [String] Unique identifier for the environment object in the API.
# @param feature [String] Unique identifier for the flag object in the API.
# @param target [String] Unique identifier for the target object in the API.
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
# @return [Array<(Evaluation, Integer, Hash)>] Evaluation data, response status code and response headers
def get_evaluation_by_identifier_with_http_info(environment_uuid, feature, target, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: ClientApi.get_evaluation_by_identifier ...'
end
@@ -179,10 +187,11 @@
# resource path
local_var_path = '/client/env/{environmentUUID}/target/{target}/evaluations/{feature}'.sub('{' + 'environmentUUID' + '}', CGI.escape(environment_uuid.to_s)).sub('{' + 'feature' + '}', CGI.escape(feature.to_s)).sub('{' + 'target' + '}', CGI.escape(target.to_s))
# query parameters
query_params = opts[:query_params] || {}
+ query_params[:'cluster'] = opts[:'cluster'] if !opts[:'cluster'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
@@ -218,20 +227,22 @@
# Get feature evaluations for target
# @param environment_uuid [String] Unique identifier for the environment object in the API.
# @param target [String] Unique identifier for the target object in the API.
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
# @return [Pagination]
def get_evaluations(environment_uuid, target, opts = {})
data, _status_code, _headers = get_evaluations_with_http_info(environment_uuid, target, opts)
data
end
# Get feature evaluations for target
# @param environment_uuid [String] Unique identifier for the environment object in the API.
# @param target [String] Unique identifier for the target object in the API.
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
# @return [Array<(Pagination, Integer, Hash)>] Pagination data, response status code and response headers
def get_evaluations_with_http_info(environment_uuid, target, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: ClientApi.get_evaluations ...'
end
@@ -246,10 +257,11 @@
# resource path
local_var_path = '/client/env/{environmentUUID}/target/{target}/evaluations'.sub('{' + 'environmentUUID' + '}', CGI.escape(environment_uuid.to_s)).sub('{' + 'target' + '}', CGI.escape(target.to_s))
# query parameters
query_params = opts[:query_params] || {}
+ query_params[:'cluster'] = opts[:'cluster'] if !opts[:'cluster'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
@@ -285,20 +297,22 @@
# Get all feature flags activations
# All feature flags with activations in project environment
# @param environment_uuid [String] Unique identifier for the environment object in the API.
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
# @return [Array<FeatureConfig>]
def get_feature_config(environment_uuid, opts = {})
data, _status_code, _headers = get_feature_config_with_http_info(environment_uuid, opts)
data
end
# Get all feature flags activations
# All feature flags with activations in project environment
# @param environment_uuid [String] Unique identifier for the environment object in the API.
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
# @return [Array<(Array<FeatureConfig>, Integer, Hash)>] Array<FeatureConfig> data, response status code and response headers
def get_feature_config_with_http_info(environment_uuid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: ClientApi.get_feature_config ...'
end
@@ -309,10 +323,11 @@
# resource path
local_var_path = '/client/env/{environmentUUID}/feature-configs'.sub('{' + 'environmentUUID' + '}', CGI.escape(environment_uuid.to_s))
# query parameters
query_params = opts[:query_params] || {}
+ query_params[:'cluster'] = opts[:'cluster'] if !opts[:'cluster'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
@@ -348,20 +363,22 @@
# Get feature config
# @param identifier [String] Unique identifier for the flag object in the API.
# @param environment_uuid [String] Unique identifier for the environment object in the API.
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
# @return [FeatureConfig]
def get_feature_config_by_identifier(identifier, environment_uuid, opts = {})
data, _status_code, _headers = get_feature_config_by_identifier_with_http_info(identifier, environment_uuid, opts)
data
end
# Get feature config
# @param identifier [String] Unique identifier for the flag object in the API.
# @param environment_uuid [String] Unique identifier for the environment object in the API.
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
# @return [Array<(FeatureConfig, Integer, Hash)>] FeatureConfig data, response status code and response headers
def get_feature_config_by_identifier_with_http_info(identifier, environment_uuid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: ClientApi.get_feature_config_by_identifier ...'
end
@@ -376,10 +393,11 @@
# resource path
local_var_path = '/client/env/{environmentUUID}/feature-configs/{identifier}'.sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s)).sub('{' + 'environmentUUID' + '}', CGI.escape(environment_uuid.to_s))
# query parameters
query_params = opts[:query_params] || {}
+ query_params[:'cluster'] = opts[:'cluster'] if !opts[:'cluster'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
@@ -416,10 +434,12 @@
# Retrieve a segment by identifier
# Used to retrieve a segment for a certain account id by identifier
# @param identifier [String] Unique identifier for the segment object in the API
# @param environment_uuid [String] Unique identifier for the environment object in the API
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
+ # @option opts [String] :rules When set to rules=v2 will return AND rule compatible serving_rules field. When not set or set to any other value will return old rules field only compatible with OR rules.
# @return [Segment]
def get_segment_by_identifier(identifier, environment_uuid, opts = {})
data, _status_code, _headers = get_segment_by_identifier_with_http_info(identifier, environment_uuid, opts)
data
end
@@ -427,10 +447,12 @@
# Retrieve a segment by identifier
# Used to retrieve a segment for a certain account id by identifier
# @param identifier [String] Unique identifier for the segment object in the API
# @param environment_uuid [String] Unique identifier for the environment object in the API
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
+ # @option opts [String] :rules When set to rules=v2 will return AND rule compatible serving_rules field. When not set or set to any other value will return old rules field only compatible with OR rules.
# @return [Array<(Segment, Integer, Hash)>] Segment data, response status code and response headers
def get_segment_by_identifier_with_http_info(identifier, environment_uuid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: ClientApi.get_segment_by_identifier ...'
end
@@ -445,10 +467,12 @@
# resource path
local_var_path = '/client/env/{environmentUUID}/target-segments/{identifier}'.sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s)).sub('{' + 'environmentUUID' + '}', CGI.escape(environment_uuid.to_s))
# query parameters
query_params = opts[:query_params] || {}
+ query_params[:'cluster'] = opts[:'cluster'] if !opts[:'cluster'].nil?
+ query_params[:'rules'] = opts[:'rules'] if !opts[:'rules'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
@@ -483,19 +507,21 @@
end
# Stream endpoint.
# @param api_key [String]
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
# @return [nil]
def stream(api_key, opts = {})
stream_with_http_info(api_key, opts)
nil
end
# Stream endpoint.
# @param api_key [String]
# @param [Hash] opts the optional parameters
+ # @option opts [String] :cluster Unique identifier for the cluster for the account
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def stream_with_http_info(api_key, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: ClientApi.stream ...'
end
@@ -506,9 +532,10 @@
# resource path
local_var_path = '/stream'
# query parameters
query_params = opts[:query_params] || {}
+ query_params[:'cluster'] = opts[:'cluster'] if !opts[:'cluster'].nil?
# header parameters
header_params = opts[:header_params] || {}
header_params[:'API-Key'] = api_key