algolia 3.12.3 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/models/ingestion/task.rb +10 -0
- data/lib/algolia/models/ingestion/task_create.rb +22 -1
- data/lib/algolia/models/ingestion/task_update.rb +10 -1
- data/lib/algolia/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 15617f15ff7f9f7c25035345947117aa64fbe8a6d08b717924ec0971484ed4b0
         | 
| 4 | 
            +
              data.tar.gz: 84fd518cf5098cf7766b73a19f21c57b9767dc40ccae3d3c92e610a9412c6a9c
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 34b9c321cae37ad5a9d29e1d9a81dc3cee8c4164117b2332a27fafaf239edd38e9638458e9590fb31be1ae9a6754db585142dfcad9f8e640e965c3e34db77868
         | 
| 7 | 
            +
              data.tar.gz: 51cb90ff9a5ac360a3ea4b0a01d8cf7a446ce7083b0e57e7a807f0fc4a223ddeaa77a9406b0540106ed4d129158fbc063ad0cc2b161b109353893517d1aa7824
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,3 +1,7 @@ | |
| 1 | 
            +
            ## [3.13.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.12.3...3.13.0)
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            - [ab623194e](https://github.com/algolia/api-clients-automation/commit/ab623194e) feat(specs): add `subscriptionAction` to ingestion specs ([#4587](https://github.com/algolia/api-clients-automation/pull/4587)) by [@shortcuts](https://github.com/shortcuts/)
         | 
| 4 | 
            +
             | 
| 1 5 | 
             
            ## [3.12.3](https://github.com/algolia/algoliasearch-client-ruby/compare/3.12.2...3.12.3)
         | 
| 2 6 |  | 
| 3 7 | 
             
            - [92bd911848](https://github.com/algolia/api-clients-automation/commit/92bd911848) chore(scripts): point jira issues to another epic ([#4505](https://github.com/algolia/api-clients-automation/pull/4505)) by [@millotp](https://github.com/millotp/)
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
| @@ -36,6 +36,8 @@ module Algolia | |
| 36 36 |  | 
| 37 37 | 
             
                  attr_accessor :action
         | 
| 38 38 |  | 
| 39 | 
            +
                  attr_accessor :subscription_action
         | 
| 40 | 
            +
             | 
| 39 41 | 
             
                  # Date of the last cursor in RFC 3339 format.
         | 
| 40 42 | 
             
                  attr_accessor :cursor
         | 
| 41 43 |  | 
| @@ -62,6 +64,7 @@ module Algolia | |
| 62 64 | 
             
                      :enabled => :enabled,
         | 
| 63 65 | 
             
                      :failure_threshold => :failureThreshold,
         | 
| 64 66 | 
             
                      :action => :action,
         | 
| 67 | 
            +
                      :subscription_action => :subscriptionAction,
         | 
| 65 68 | 
             
                      :cursor => :cursor,
         | 
| 66 69 | 
             
                      :notifications => :notifications,
         | 
| 67 70 | 
             
                      :policies => :policies,
         | 
| @@ -83,6 +86,7 @@ module Algolia | |
| 83 86 | 
             
                      :enabled => :"Boolean",
         | 
| 84 87 | 
             
                      :failure_threshold => :"Integer",
         | 
| 85 88 | 
             
                      :action => :"ActionType",
         | 
| 89 | 
            +
                      :subscription_action => :"ActionType",
         | 
| 86 90 | 
             
                      :cursor => :"String",
         | 
| 87 91 | 
             
                      :notifications => :"Notifications",
         | 
| 88 92 | 
             
                      :policies => :"Policies",
         | 
| @@ -166,6 +170,10 @@ module Algolia | |
| 166 170 | 
             
                      self.action = attributes[:action]
         | 
| 167 171 | 
             
                    end
         | 
| 168 172 |  | 
| 173 | 
            +
                    if attributes.key?(:subscription_action)
         | 
| 174 | 
            +
                      self.subscription_action = attributes[:subscription_action]
         | 
| 175 | 
            +
                    end
         | 
| 176 | 
            +
             | 
| 169 177 | 
             
                    if attributes.key?(:cursor)
         | 
| 170 178 | 
             
                      self.cursor = attributes[:cursor]
         | 
| 171 179 | 
             
                    end
         | 
| @@ -204,6 +212,7 @@ module Algolia | |
| 204 212 | 
             
                      enabled == other.enabled &&
         | 
| 205 213 | 
             
                      failure_threshold == other.failure_threshold &&
         | 
| 206 214 | 
             
                      action == other.action &&
         | 
| 215 | 
            +
                      subscription_action == other.subscription_action &&
         | 
| 207 216 | 
             
                      cursor == other.cursor &&
         | 
| 208 217 | 
             
                      notifications == other.notifications &&
         | 
| 209 218 | 
             
                      policies == other.policies &&
         | 
| @@ -231,6 +240,7 @@ module Algolia | |
| 231 240 | 
             
                      enabled,
         | 
| 232 241 | 
             
                      failure_threshold,
         | 
| 233 242 | 
             
                      action,
         | 
| 243 | 
            +
                      subscription_action,
         | 
| 234 244 | 
             
                      cursor,
         | 
| 235 245 | 
             
                      notifications,
         | 
| 236 246 | 
             
                      policies,
         | 
| @@ -17,6 +17,8 @@ module Algolia | |
| 17 17 |  | 
| 18 18 | 
             
                  attr_accessor :action
         | 
| 19 19 |  | 
| 20 | 
            +
                  attr_accessor :subscription_action
         | 
| 21 | 
            +
             | 
| 20 22 | 
             
                  # Cron expression for the task's schedule.
         | 
| 21 23 | 
             
                  attr_accessor :cron
         | 
| 22 24 |  | 
| @@ -41,6 +43,7 @@ module Algolia | |
| 41 43 | 
             
                      :source_id => :sourceID,
         | 
| 42 44 | 
             
                      :destination_id => :destinationID,
         | 
| 43 45 | 
             
                      :action => :action,
         | 
| 46 | 
            +
                      :subscription_action => :subscriptionAction,
         | 
| 44 47 | 
             
                      :cron => :cron,
         | 
| 45 48 | 
             
                      :enabled => :enabled,
         | 
| 46 49 | 
             
                      :failure_threshold => :failureThreshold,
         | 
| @@ -57,6 +60,7 @@ module Algolia | |
| 57 60 | 
             
                      :source_id => :"String",
         | 
| 58 61 | 
             
                      :destination_id => :"String",
         | 
| 59 62 | 
             
                      :action => :"ActionType",
         | 
| 63 | 
            +
                      :subscription_action => :"ActionType",
         | 
| 60 64 | 
             
                      :cron => :"String",
         | 
| 61 65 | 
             
                      :enabled => :"Boolean",
         | 
| 62 66 | 
             
                      :failure_threshold => :"Integer",
         | 
| @@ -115,6 +119,10 @@ module Algolia | |
| 115 119 | 
             
                      self.action = nil
         | 
| 116 120 | 
             
                    end
         | 
| 117 121 |  | 
| 122 | 
            +
                    if attributes.key?(:subscription_action)
         | 
| 123 | 
            +
                      self.subscription_action = attributes[:subscription_action]
         | 
| 124 | 
            +
                    end
         | 
| 125 | 
            +
             | 
| 118 126 | 
             
                    if attributes.key?(:cron)
         | 
| 119 127 | 
             
                      self.cron = attributes[:cron]
         | 
| 120 128 | 
             
                    end
         | 
| @@ -152,6 +160,7 @@ module Algolia | |
| 152 160 | 
             
                      source_id == other.source_id &&
         | 
| 153 161 | 
             
                      destination_id == other.destination_id &&
         | 
| 154 162 | 
             
                      action == other.action &&
         | 
| 163 | 
            +
                      subscription_action == other.subscription_action &&
         | 
| 155 164 | 
             
                      cron == other.cron &&
         | 
| 156 165 | 
             
                      enabled == other.enabled &&
         | 
| 157 166 | 
             
                      failure_threshold == other.failure_threshold &&
         | 
| @@ -170,7 +179,19 @@ module Algolia | |
| 170 179 | 
             
                  # Calculates hash code according to all attributes.
         | 
| 171 180 | 
             
                  # @return [Integer] Hash code
         | 
| 172 181 | 
             
                  def hash
         | 
| 173 | 
            -
                    [ | 
| 182 | 
            +
                    [
         | 
| 183 | 
            +
                      source_id,
         | 
| 184 | 
            +
                      destination_id,
         | 
| 185 | 
            +
                      action,
         | 
| 186 | 
            +
                      subscription_action,
         | 
| 187 | 
            +
                      cron,
         | 
| 188 | 
            +
                      enabled,
         | 
| 189 | 
            +
                      failure_threshold,
         | 
| 190 | 
            +
                      input,
         | 
| 191 | 
            +
                      cursor,
         | 
| 192 | 
            +
                      notifications,
         | 
| 193 | 
            +
                      policies
         | 
| 194 | 
            +
                    ].hash
         | 
| 174 195 | 
             
                  end
         | 
| 175 196 |  | 
| 176 197 | 
             
                  # Builds the object from hash
         | 
| @@ -20,6 +20,8 @@ module Algolia | |
| 20 20 | 
             
                  # Whether the task is enabled.
         | 
| 21 21 | 
             
                  attr_accessor :enabled
         | 
| 22 22 |  | 
| 23 | 
            +
                  attr_accessor :subscription_action
         | 
| 24 | 
            +
             | 
| 23 25 | 
             
                  # Maximum accepted percentage of failures for a task run to finish successfully.
         | 
| 24 26 | 
             
                  attr_accessor :failure_threshold
         | 
| 25 27 |  | 
| @@ -34,6 +36,7 @@ module Algolia | |
| 34 36 | 
             
                      :cron => :cron,
         | 
| 35 37 | 
             
                      :input => :input,
         | 
| 36 38 | 
             
                      :enabled => :enabled,
         | 
| 39 | 
            +
                      :subscription_action => :subscriptionAction,
         | 
| 37 40 | 
             
                      :failure_threshold => :failureThreshold,
         | 
| 38 41 | 
             
                      :notifications => :notifications,
         | 
| 39 42 | 
             
                      :policies => :policies
         | 
| @@ -47,6 +50,7 @@ module Algolia | |
| 47 50 | 
             
                      :cron => :"String",
         | 
| 48 51 | 
             
                      :input => :"TaskInput",
         | 
| 49 52 | 
             
                      :enabled => :"Boolean",
         | 
| 53 | 
            +
                      :subscription_action => :"ActionType",
         | 
| 50 54 | 
             
                      :failure_threshold => :"Integer",
         | 
| 51 55 | 
             
                      :notifications => :"Notifications",
         | 
| 52 56 | 
             
                      :policies => :"Policies"
         | 
| @@ -99,6 +103,10 @@ module Algolia | |
| 99 103 | 
             
                      self.enabled = attributes[:enabled]
         | 
| 100 104 | 
             
                    end
         | 
| 101 105 |  | 
| 106 | 
            +
                    if attributes.key?(:subscription_action)
         | 
| 107 | 
            +
                      self.subscription_action = attributes[:subscription_action]
         | 
| 108 | 
            +
                    end
         | 
| 109 | 
            +
             | 
| 102 110 | 
             
                    if attributes.key?(:failure_threshold)
         | 
| 103 111 | 
             
                      self.failure_threshold = attributes[:failure_threshold]
         | 
| 104 112 | 
             
                    end
         | 
| @@ -121,6 +129,7 @@ module Algolia | |
| 121 129 | 
             
                      cron == other.cron &&
         | 
| 122 130 | 
             
                      input == other.input &&
         | 
| 123 131 | 
             
                      enabled == other.enabled &&
         | 
| 132 | 
            +
                      subscription_action == other.subscription_action &&
         | 
| 124 133 | 
             
                      failure_threshold == other.failure_threshold &&
         | 
| 125 134 | 
             
                      notifications == other.notifications &&
         | 
| 126 135 | 
             
                      policies == other.policies
         | 
| @@ -135,7 +144,7 @@ module Algolia | |
| 135 144 | 
             
                  # Calculates hash code according to all attributes.
         | 
| 136 145 | 
             
                  # @return [Integer] Hash code
         | 
| 137 146 | 
             
                  def hash
         | 
| 138 | 
            -
                    [destination_id, cron, input, enabled, failure_threshold, notifications, policies].hash
         | 
| 147 | 
            +
                    [destination_id, cron, input, enabled, subscription_action, failure_threshold, notifications, policies].hash
         | 
| 139 148 | 
             
                  end
         | 
| 140 149 |  | 
| 141 150 | 
             
                  # Builds the object from hash
         | 
    
        data/lib/algolia/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,13 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: algolia
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3. | 
| 4 | 
            +
              version: 3.13.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - https://alg.li/support
         | 
| 8 8 | 
             
            bindir: bin
         | 
| 9 9 | 
             
            cert_chain: []
         | 
| 10 | 
            -
            date: 2025-03- | 
| 10 | 
            +
            date: 2025-03-11 00:00:00.000000000 Z
         | 
| 11 11 | 
             
            dependencies:
         | 
| 12 12 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 13 13 | 
             
              name: faraday
         |