Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 48 additions & 48 deletions lib/zitadel-client/api/feature_service_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class FeatureServiceApi
def initialize(api_client = ApiClient.default)
@api_client = api_client
end
# Get instance level features
# Returns all configured features for an instance. Unset fields mean the feature is the current system default.
# Get Instance Features
# Returns all configured features for an instance. Unset fields mean the feature is the current system default. Required permissions: - none
# @param [Hash] opts the optional parameters
# @option opts [Boolean] :inheritance Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource's ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the instance, it will be omitted from the response or Not Found is returned when the instance has no features flags at all.
# @return [FeatureServiceGetInstanceFeaturesResponse]
Expand All @@ -29,8 +29,8 @@ def feature_service_get_instance_features(opts = {})
data
end

# Get instance level features
# Returns all configured features for an instance. Unset fields mean the feature is the current system default.
# Get Instance Features
# Returns all configured features for an instance. Unset fields mean the feature is the current system default. Required permissions: - none
# @param [Hash] opts the optional parameters
# @option opts [Boolean] :inheritance Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource's ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the instance, it will be omitted from the response or Not Found is returned when the instance has no features flags at all.
# @return [Array<(FeatureServiceGetInstanceFeaturesResponse, Integer, Hash)>] FeatureServiceGetInstanceFeaturesResponse data, response status code and response headers
Expand Down Expand Up @@ -79,8 +79,8 @@ def feature_service_get_instance_features_with_http_info(opts = {})
return data, status_code, headers
end

# Get organization level features
# Returns all configured features for an organization. Unset fields mean the feature is the current instance default.
# Get Organization Features
# Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to
# @param organization_id [String]
# @param [Hash] opts the optional parameters
# @option opts [Boolean] :inheritance Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource&#39;s ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the organization, it will be omitted from the response or Not Found is returned when the organization has no features flags at all.
Expand All @@ -90,8 +90,8 @@ def feature_service_get_organization_features(organization_id, opts = {})
data
end

# Get organization level features
# Returns all configured features for an organization. Unset fields mean the feature is the current instance default.
# Get Organization Features
# Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to
# @param organization_id [String]
# @param [Hash] opts the optional parameters
# @option opts [Boolean] :inheritance Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource&#39;s ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the organization, it will be omitted from the response or Not Found is returned when the organization has no features flags at all.
Expand Down Expand Up @@ -145,17 +145,17 @@ def feature_service_get_organization_features_with_http_info(organization_id, op
return data, status_code, headers
end

# Get system level features
# Returns all configured features for the system. Unset fields mean the feature is the current system default.
# Get System Features
# Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none
# @param [Hash] opts the optional parameters
# @return [FeatureServiceGetSystemFeaturesResponse]
def feature_service_get_system_features(opts = {})
data, _status_code, _headers = feature_service_get_system_features_with_http_info(opts)
data
end

# Get system level features
# Returns all configured features for the system. Unset fields mean the feature is the current system default.
# Get System Features
# Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none
# @param [Hash] opts the optional parameters
# @return [Array<(FeatureServiceGetSystemFeaturesResponse, Integer, Hash)>] FeatureServiceGetSystemFeaturesResponse data, response status code and response headers
def feature_service_get_system_features_with_http_info(opts = {})
Expand Down Expand Up @@ -202,8 +202,8 @@ def feature_service_get_system_features_with_http_info(opts = {})
return data, status_code, headers
end

# Get organization level features
# Returns all configured features for an organization. Unset fields mean the feature is the current instance default.
# Get User Features
# Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user
# @param user_id [String]
# @param [Hash] opts the optional parameters
# @option opts [Boolean] :inheritance Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource&#39;s ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the user, it will be ommitted from the response or Not Found is returned when the user has no features flags at all.
Expand All @@ -213,8 +213,8 @@ def feature_service_get_user_features(user_id, opts = {})
data
end

# Get organization level features
# Returns all configured features for an organization. Unset fields mean the feature is the current instance default.
# Get User Features
# Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user
# @param user_id [String]
# @param [Hash] opts the optional parameters
# @option opts [Boolean] :inheritance Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource&#39;s ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the user, it will be ommitted from the response or Not Found is returned when the user has no features flags at all.
Expand Down Expand Up @@ -268,17 +268,17 @@ def feature_service_get_user_features_with_http_info(user_id, opts = {})
return data, status_code, headers
end

# Reset instance level features
# Deletes ALL configured features for an instance, reverting the behaviors to system defaults.
# Reset Instance Features
# Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete
# @param [Hash] opts the optional parameters
# @return [FeatureServiceResetInstanceFeaturesResponse]
def feature_service_reset_instance_features(opts = {})
data, _status_code, _headers = feature_service_reset_instance_features_with_http_info(opts)
data
end

# Reset instance level features
# Deletes ALL configured features for an instance, reverting the behaviors to system defaults.
# Reset Instance Features
# Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete
# @param [Hash] opts the optional parameters
# @return [Array<(FeatureServiceResetInstanceFeaturesResponse, Integer, Hash)>] FeatureServiceResetInstanceFeaturesResponse data, response status code and response headers
def feature_service_reset_instance_features_with_http_info(opts = {})
Expand Down Expand Up @@ -325,8 +325,8 @@ def feature_service_reset_instance_features_with_http_info(opts = {})
return data, status_code, headers
end

# Reset organization level features
# Deletes ALL configured features for an organization, reverting the behaviors to instance defaults.
# Reset Organization Features
# Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete
# @param organization_id [String]
# @param [Hash] opts the optional parameters
# @return [FeatureServiceResetOrganizationFeaturesResponse]
Expand All @@ -335,8 +335,8 @@ def feature_service_reset_organization_features(organization_id, opts = {})
data
end

# Reset organization level features
# Deletes ALL configured features for an organization, reverting the behaviors to instance defaults.
# Reset Organization Features
# Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete
# @param organization_id [String]
# @param [Hash] opts the optional parameters
# @return [Array<(FeatureServiceResetOrganizationFeaturesResponse, Integer, Hash)>] FeatureServiceResetOrganizationFeaturesResponse data, response status code and response headers
Expand Down Expand Up @@ -388,17 +388,17 @@ def feature_service_reset_organization_features_with_http_info(organization_id,
return data, status_code, headers
end

# Reset system level features
# Deletes ALL configured features for the system, reverting the behaviors to system defaults.
# Reset System Features
# Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete
# @param [Hash] opts the optional parameters
# @return [FeatureServiceResetSystemFeaturesResponse]
def feature_service_reset_system_features(opts = {})
data, _status_code, _headers = feature_service_reset_system_features_with_http_info(opts)
data
end

# Reset system level features
# Deletes ALL configured features for the system, reverting the behaviors to system defaults.
# Reset System Features
# Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete
# @param [Hash] opts the optional parameters
# @return [Array<(FeatureServiceResetSystemFeaturesResponse, Integer, Hash)>] FeatureServiceResetSystemFeaturesResponse data, response status code and response headers
def feature_service_reset_system_features_with_http_info(opts = {})
Expand Down Expand Up @@ -445,8 +445,8 @@ def feature_service_reset_system_features_with_http_info(opts = {})
return data, status_code, headers
end

# Reset user level features
# Deletes ALL configured features for a user, reverting the behaviors to organization defaults.
# Reset User Features
# Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete
# @param user_id [String]
# @param [Hash] opts the optional parameters
# @return [FeatureServiceResetUserFeaturesResponse]
Expand All @@ -455,8 +455,8 @@ def feature_service_reset_user_features(user_id, opts = {})
data
end

# Reset user level features
# Deletes ALL configured features for a user, reverting the behaviors to organization defaults.
# Reset User Features
# Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete
# @param user_id [String]
# @param [Hash] opts the optional parameters
# @return [Array<(FeatureServiceResetUserFeaturesResponse, Integer, Hash)>] FeatureServiceResetUserFeaturesResponse data, response status code and response headers
Expand Down Expand Up @@ -508,8 +508,8 @@ def feature_service_reset_user_features_with_http_info(user_id, opts = {})
return data, status_code, headers
end

# Set instance level features
# Configure and set features that apply to a complete instance. Only fields present in the request are set or unset.
# Set Instance Features
# Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write
# @param feature_service_set_instance_features_request [FeatureServiceSetInstanceFeaturesRequest]
# @param [Hash] opts the optional parameters
# @return [FeatureServiceSetInstanceFeaturesResponse]
Expand All @@ -518,8 +518,8 @@ def feature_service_set_instance_features(feature_service_set_instance_features_
data
end

# Set instance level features
# Configure and set features that apply to a complete instance. Only fields present in the request are set or unset.
# Set Instance Features
# Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write
# @param feature_service_set_instance_features_request [FeatureServiceSetInstanceFeaturesRequest]
# @param [Hash] opts the optional parameters
# @return [Array<(FeatureServiceSetInstanceFeaturesResponse, Integer, Hash)>] FeatureServiceSetInstanceFeaturesResponse data, response status code and response headers
Expand Down Expand Up @@ -576,8 +576,8 @@ def feature_service_set_instance_features_with_http_info(feature_service_set_ins
return data, status_code, headers
end

# Set organization level features
# Configure and set features that apply to a complete instance. Only fields present in the request are set or unset.
# Set Organization Features
# Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write
# @param organization_id [String]
# @param [Hash] opts the optional parameters
# @return [FeatureServiceSetOrganizationFeaturesResponse]
Expand All @@ -586,8 +586,8 @@ def feature_service_set_organization_features(organization_id, opts = {})
data
end

# Set organization level features
# Configure and set features that apply to a complete instance. Only fields present in the request are set or unset.
# Set Organization Features
# Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write
# @param organization_id [String]
# @param [Hash] opts the optional parameters
# @return [Array<(FeatureServiceSetOrganizationFeaturesResponse, Integer, Hash)>] FeatureServiceSetOrganizationFeaturesResponse data, response status code and response headers
Expand Down Expand Up @@ -644,8 +644,8 @@ def feature_service_set_organization_features_with_http_info(organization_id, op
return data, status_code, headers
end

# Set system level features
# Configure and set features that apply to the complete system. Only fields present in the request are set or unset.
# Set System Features
# Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write
# @param feature_service_set_system_features_request [FeatureServiceSetSystemFeaturesRequest]
# @param [Hash] opts the optional parameters
# @return [FeatureServiceSetSystemFeaturesResponse]
Expand All @@ -654,8 +654,8 @@ def feature_service_set_system_features(feature_service_set_system_features_requ
data
end

# Set system level features
# Configure and set features that apply to the complete system. Only fields present in the request are set or unset.
# Set System Features
# Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write
# @param feature_service_set_system_features_request [FeatureServiceSetSystemFeaturesRequest]
# @param [Hash] opts the optional parameters
# @return [Array<(FeatureServiceSetSystemFeaturesResponse, Integer, Hash)>] FeatureServiceSetSystemFeaturesResponse data, response status code and response headers
Expand Down Expand Up @@ -712,8 +712,8 @@ def feature_service_set_system_features_with_http_info(feature_service_set_syste
return data, status_code, headers
end

# Set user level features
# Configure and set features that apply to an user. Only fields present in the request are set or unset.
# Set User Features
# Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write
# @param user_id [String]
# @param [Hash] opts the optional parameters
# @return [FeatureServiceSetUserFeaturesResponse]
Expand All @@ -722,8 +722,8 @@ def feature_service_set_user_features(user_id, opts = {})
data
end

# Set user level features
# Configure and set features that apply to an user. Only fields present in the request are set or unset.
# Set User Features
# Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write
# @param user_id [String]
# @param [Hash] opts the optional parameters
# @return [Array<(FeatureServiceSetUserFeaturesResponse, Integer, Hash)>] FeatureServiceSetUserFeaturesResponse data, response status code and response headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ class UserServiceRetrieveIdentityProviderIntentResponse
# ID of the user in ZITADEL if external user is linked
attr_accessor :user_id

attr_accessor :add_human_user

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'details' => :'details',
:'idp_information' => :'idpInformation',
:'user_id' => :'userId'
:'user_id' => :'userId',
:'add_human_user' => :'addHumanUser'
}
end

Expand All @@ -46,7 +49,8 @@ def self.openapi_types
{
:'details' => :'UserServiceDetails',
:'idp_information' => :'UserServiceIDPInformation',
:'user_id' => :'String'
:'user_id' => :'String',
:'add_human_user' => :'UserServiceAddHumanUserRequest'
}
end

Expand Down Expand Up @@ -83,6 +87,10 @@ def initialize(attributes = {})
if attributes.key?(:'user_id')
self.user_id = attributes[:'user_id']
end

if attributes.key?(:'add_human_user')
self.add_human_user = attributes[:'add_human_user']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand All @@ -107,7 +115,8 @@ def ==(o)
self.class == o.class &&
details == o.details &&
idp_information == o.idp_information &&
user_id == o.user_id
user_id == o.user_id &&
add_human_user == o.add_human_user
end

# @see the `==` method
Expand All @@ -119,7 +128,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[details, idp_information, user_id].hash
[details, idp_information, user_id, add_human_user].hash
end

# Builds the object from hash
Expand Down