Class Rulesets


  • public class Rulesets
    extends com.ibm.cloud.sdk.core.service.BaseService
    Rulesets Engine. API Version: 1.0.1
    • Field Detail

      • DEFAULT_SERVICE_NAME

        public static final String DEFAULT_SERVICE_NAME
        Default service name used when configuring the `Rulesets` client.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Rulesets

        public Rulesets​(String crn,
                        String zoneIdentifier,
                        String serviceName,
                        com.ibm.cloud.sdk.core.security.Authenticator authenticator)
        Constructs an instance of the `Rulesets` client. The specified service name and authenticator are used to configure the client instance.
        Parameters:
        crn - Full url-encoded CRN of the service instance.
        zoneIdentifier - zone identifier.
        serviceName - the service name to be used when configuring the client instance
        authenticator - the Authenticator instance to be configured for this client
    • Method Detail

      • newInstance

        public static Rulesets newInstance​(String crn,
                                           String zoneIdentifier)
        Class method which constructs an instance of the `Rulesets` client. The default service name is used to configure the client instance.
        Parameters:
        crn - Full url-encoded CRN of the service instance.
        zoneIdentifier - zone identifier.
        Returns:
        an instance of the `Rulesets` client using external configuration
      • newInstance

        public static Rulesets newInstance​(String crn,
                                           String zoneIdentifier,
                                           String serviceName)
        Class method which constructs an instance of the `Rulesets` client. The specified service name is used to configure the client instance.
        Parameters:
        crn - Full url-encoded CRN of the service instance.
        zoneIdentifier - zone identifier.
        serviceName - the service name to be used when configuring the client instance
        Returns:
        an instance of the `Rulesets` client using external configuration
      • getCrn

        public String getCrn()
        Gets the crn. Full url-encoded CRN of the service instance.
        Returns:
        the crn
      • setCrn

        public void setCrn​(String crn)
        Sets the crn.
        Parameters:
        crn - the new crn
      • getZoneIdentifier

        public String getZoneIdentifier()
        Gets the zoneIdentifier. zone identifier.
        Returns:
        the zoneIdentifier
      • setZoneIdentifier

        public void setZoneIdentifier​(String zoneIdentifier)
        Sets the zoneIdentifier.
        Parameters:
        zoneIdentifier - the new zoneIdentifier
      • getInstanceRulesets

        public com.ibm.cloud.sdk.core.http.ServiceCall<ListRulesetsResp> getInstanceRulesets()
        List Instance rulesets. List all rulesets at the instance level.
        Returns:
        a ServiceCall with a result of type ListRulesetsResp
      • getInstanceRuleset

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> getInstanceRuleset​(GetInstanceRulesetOptions getInstanceRulesetOptions)
        Get an instance ruleset. View a specific instance ruleset.
        Parameters:
        getInstanceRulesetOptions - the GetInstanceRulesetOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • updateInstanceRuleset

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> updateInstanceRuleset​(UpdateInstanceRulesetOptions updateInstanceRulesetOptions)
        Update an instance ruleset. Update a specific instance ruleset.
        Parameters:
        updateInstanceRulesetOptions - the UpdateInstanceRulesetOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • deleteInstanceRuleset

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteInstanceRuleset​(DeleteInstanceRulesetOptions deleteInstanceRulesetOptions)
        Delete an instance ruleset. Delete a specific instance ruleset.
        Parameters:
        deleteInstanceRulesetOptions - the DeleteInstanceRulesetOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • getInstanceRulesetVersion

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> getInstanceRulesetVersion​(GetInstanceRulesetVersionOptions getInstanceRulesetVersionOptions)
        Get a specific version of an instance ruleset. View a specific version of a specific instance ruleset.
        Parameters:
        getInstanceRulesetVersionOptions - the GetInstanceRulesetVersionOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • deleteInstanceRulesetVersion

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteInstanceRulesetVersion​(DeleteInstanceRulesetVersionOptions deleteInstanceRulesetVersionOptions)
        Delete a specific version of an instance ruleset. Delete a specific version of a specific instance ruleset.
        Parameters:
        deleteInstanceRulesetVersionOptions - the DeleteInstanceRulesetVersionOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • getInstanceEntrypointRuleset

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> getInstanceEntrypointRuleset​(GetInstanceEntrypointRulesetOptions getInstanceEntrypointRulesetOptions)
        Get an instance entrypoint ruleset. Get the instance ruleset for the given phase's entrypoint.
        Parameters:
        getInstanceEntrypointRulesetOptions - the GetInstanceEntrypointRulesetOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • updateInstanceEntrypointRuleset

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> updateInstanceEntrypointRuleset​(UpdateInstanceEntrypointRulesetOptions updateInstanceEntrypointRulesetOptions)
        Update an instance entrypoint ruleset. Updates the instance ruleset for the given phase's entry point.
        Parameters:
        updateInstanceEntrypointRulesetOptions - the UpdateInstanceEntrypointRulesetOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • getInstanceEntryPointRulesetVersion

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> getInstanceEntryPointRulesetVersion​(GetInstanceEntryPointRulesetVersionOptions getInstanceEntryPointRulesetVersionOptions)
        Get an instance entry point ruleset version. Fetches a specific version of an instance entry point ruleset.
        Parameters:
        getInstanceEntryPointRulesetVersionOptions - the GetInstanceEntryPointRulesetVersionOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • deleteInstanceRulesetRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<RuleResp> deleteInstanceRulesetRule​(DeleteInstanceRulesetRuleOptions deleteInstanceRulesetRuleOptions)
        Delete an instance ruleset rule. Delete an instance ruleset rule.
        Parameters:
        deleteInstanceRulesetRuleOptions - the DeleteInstanceRulesetRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RuleResp
      • getInstanceRulesetVersionByTag

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> getInstanceRulesetVersionByTag​(GetInstanceRulesetVersionByTagOptions getInstanceRulesetVersionByTagOptions)
        List an instance ruleset verion's rules by tag. Lists rules by tag for a specific version of an instance ruleset.
        Parameters:
        getInstanceRulesetVersionByTagOptions - the GetInstanceRulesetVersionByTagOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • getZoneRulesets

        public com.ibm.cloud.sdk.core.http.ServiceCall<ListRulesetsResp> getZoneRulesets()
        List zone rulesets. List all rulesets at the zone level.
        Returns:
        a ServiceCall with a result of type ListRulesetsResp
      • getZoneRuleset

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> getZoneRuleset​(GetZoneRulesetOptions getZoneRulesetOptions)
        Get a zone ruleset. View a specific zone ruleset.
        Parameters:
        getZoneRulesetOptions - the GetZoneRulesetOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • updateZoneRuleset

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> updateZoneRuleset​(UpdateZoneRulesetOptions updateZoneRulesetOptions)
        Update a zone ruleset. Update a specific zone ruleset.
        Parameters:
        updateZoneRulesetOptions - the UpdateZoneRulesetOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • deleteZoneRuleset

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteZoneRuleset​(DeleteZoneRulesetOptions deleteZoneRulesetOptions)
        Delete a zone ruleset. Delete a specific zone ruleset.
        Parameters:
        deleteZoneRulesetOptions - the DeleteZoneRulesetOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • getZoneRulesetVersion

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> getZoneRulesetVersion​(GetZoneRulesetVersionOptions getZoneRulesetVersionOptions)
        Get a specific version of a zone ruleset. View a specific version of a specific zone ruleset.
        Parameters:
        getZoneRulesetVersionOptions - the GetZoneRulesetVersionOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • deleteZoneRulesetVersion

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteZoneRulesetVersion​(DeleteZoneRulesetVersionOptions deleteZoneRulesetVersionOptions)
        Delete a specific version of a zone ruleset. Delete a specific version of a specific zone ruleset.
        Parameters:
        deleteZoneRulesetVersionOptions - the DeleteZoneRulesetVersionOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • getZoneEntrypointRuleset

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> getZoneEntrypointRuleset​(GetZoneEntrypointRulesetOptions getZoneEntrypointRulesetOptions)
        Get a zone entrypoint ruleset. Get the zone ruleset for the given phase's entrypoint.
        Parameters:
        getZoneEntrypointRulesetOptions - the GetZoneEntrypointRulesetOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • updateZoneEntrypointRuleset

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> updateZoneEntrypointRuleset​(UpdateZoneEntrypointRulesetOptions updateZoneEntrypointRulesetOptions)
        Update a zone entrypoint ruleset. Updates the instance ruleset for the given phase's entry point.
        Parameters:
        updateZoneEntrypointRulesetOptions - the UpdateZoneEntrypointRulesetOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • getZoneEntryPointRulesetVersion

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> getZoneEntryPointRulesetVersion​(GetZoneEntryPointRulesetVersionOptions getZoneEntryPointRulesetVersionOptions)
        Get a zone entry point ruleset version. Fetches a specific version of a zone entry point ruleset.
        Parameters:
        getZoneEntryPointRulesetVersionOptions - the GetZoneEntryPointRulesetVersionOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • createZoneRulesetRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> createZoneRulesetRule​(CreateZoneRulesetRuleOptions createZoneRulesetRuleOptions)
        Create a zone ruleset rule. Create a zone ruleset rule.
        Parameters:
        createZoneRulesetRuleOptions - the CreateZoneRulesetRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • updateZoneRulesetRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<RulesetResp> updateZoneRulesetRule​(UpdateZoneRulesetRuleOptions updateZoneRulesetRuleOptions)
        Update a zone ruleset rule. Update a zone ruleset rule.
        Parameters:
        updateZoneRulesetRuleOptions - the UpdateZoneRulesetRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RulesetResp
      • deleteZoneRulesetRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<RuleResp> deleteZoneRulesetRule​(DeleteZoneRulesetRuleOptions deleteZoneRulesetRuleOptions)
        Delete a zone ruleset rule. Delete an instance ruleset rule.
        Parameters:
        deleteZoneRulesetRuleOptions - the DeleteZoneRulesetRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RuleResp