files.com 1.0.247 → 1.0.248
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/_VERSION +1 -1
- data/docs/as2_partner.md +11 -1
- data/docs/as2_station.md +14 -15
- data/lib/files.com/models/as2_partner.rb +45 -0
- data/lib/files.com/models/as2_station.rb +54 -23
- 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: e4c09fe9d2d62e1ae7d77bea7bf3a14ab725a1e0ba4f7d72b0b49c0d44cc8d1d
         | 
| 4 | 
            +
              data.tar.gz: e81e6a73a9060e2a8db493c8243006114698da5f994e2c65d54ea2e54b80b420
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 6d0c0f4c00fe9980b325b2b71d3a8b180cabd1f71bdc4c0c01ee9d76db8bc790f19214b5eec3c417488b0c9211bd79b4171b01514064dcc548c5c4f0cfc647cd
         | 
| 7 | 
            +
              data.tar.gz: da820c3ebd4f8edff2eafc94c4f08cb6ae3f1888ffc95b1e197c5683d2d34d8643977ad9037804d4f5b76eca0f5016b941ae8807c81e5a083fe3fa90265a71ec
         | 
    
        data/_VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1.0. | 
| 1 | 
            +
            1.0.248
         | 
    
        data/docs/as2_partner.md
    CHANGED
    
    | @@ -8,7 +8,12 @@ | |
| 8 8 | 
             
              "as2_station_id": 1,
         | 
| 9 9 | 
             
              "name": "AS2 Partner Name",
         | 
| 10 10 | 
             
              "uri": "",
         | 
| 11 | 
            -
              "public_certificate_md5": ""
         | 
| 11 | 
            +
              "public_certificate_md5": "",
         | 
| 12 | 
            +
              "public_certificate_subject": "",
         | 
| 13 | 
            +
              "public_certificate_issuer": "",
         | 
| 14 | 
            +
              "public_certificate_serial": "",
         | 
| 15 | 
            +
              "public_certificate_not_before": "",
         | 
| 16 | 
            +
              "public_certificate_not_after": ""
         | 
| 12 17 | 
             
            }
         | 
| 13 18 | 
             
            ```
         | 
| 14 19 |  | 
| @@ -17,6 +22,11 @@ | |
| 17 22 | 
             
            * `name` (string): The partner's formal AS2 name.
         | 
| 18 23 | 
             
            * `uri` (string): Public URI for sending AS2 message to.
         | 
| 19 24 | 
             
            * `public_certificate_md5` (string): MD5 hash of public certificate used for message security.
         | 
| 25 | 
            +
            * `public_certificate_subject` (string): Subject of public certificate used for message security.
         | 
| 26 | 
            +
            * `public_certificate_issuer` (string): Issuer of public certificate used for message security.
         | 
| 27 | 
            +
            * `public_certificate_serial` (string): Serial of public certificate used for message security.
         | 
| 28 | 
            +
            * `public_certificate_not_before` (string): Not before value of public certificate used for message security.
         | 
| 29 | 
            +
            * `public_certificate_not_after` (string): Not after value of public certificate used for message security.
         | 
| 20 30 | 
             
            * `public_certificate` (string): 
         | 
| 21 31 |  | 
| 22 32 |  | 
    
        data/docs/as2_station.md
    CHANGED
    
    | @@ -8,9 +8,13 @@ | |
| 8 8 | 
             
              "name": "AS2 Station Name",
         | 
| 9 9 | 
             
              "uri": "",
         | 
| 10 10 | 
             
              "domain": "domain.test",
         | 
| 11 | 
            -
              "public_certificate": "",
         | 
| 12 11 | 
             
              "public_certificate_md5": "",
         | 
| 13 | 
            -
              "private_key_md5": ""
         | 
| 12 | 
            +
              "private_key_md5": "",
         | 
| 13 | 
            +
              "public_certificate_subject": "",
         | 
| 14 | 
            +
              "public_certificate_issuer": "",
         | 
| 15 | 
            +
              "public_certificate_serial": "",
         | 
| 16 | 
            +
              "public_certificate_not_before": "",
         | 
| 17 | 
            +
              "public_certificate_not_after": ""
         | 
| 14 18 | 
             
            }
         | 
| 15 19 | 
             
            ```
         | 
| 16 20 |  | 
| @@ -18,9 +22,14 @@ | |
| 18 22 | 
             
            * `name` (string): The station's formal AS2 name.
         | 
| 19 23 | 
             
            * `uri` (string): Public URI for sending AS2 message to.
         | 
| 20 24 | 
             
            * `domain` (string): The station's AS2 domain name.
         | 
| 21 | 
            -
            * `public_certificate` (string): Public certificate used for message security.
         | 
| 22 25 | 
             
            * `public_certificate_md5` (string): MD5 hash of public certificate used for message security.
         | 
| 23 26 | 
             
            * `private_key_md5` (string): MD5 hash of private key used for message security.
         | 
| 27 | 
            +
            * `public_certificate_subject` (string): Subject of public certificate used for message security.
         | 
| 28 | 
            +
            * `public_certificate_issuer` (string): Issuer of public certificate used for message security.
         | 
| 29 | 
            +
            * `public_certificate_serial` (string): Serial of public certificate used for message security.
         | 
| 30 | 
            +
            * `public_certificate_not_before` (string): Not before value of public certificate used for message security.
         | 
| 31 | 
            +
            * `public_certificate_not_after` (string): Not after value of public certificate used for message security.
         | 
| 32 | 
            +
            * `public_certificate` (string): 
         | 
| 24 33 | 
             
            * `private_key` (string): 
         | 
| 25 34 |  | 
| 26 35 |  | 
| @@ -60,8 +69,6 @@ Files::As2Station.find(id) | |
| 60 69 | 
             
            ```
         | 
| 61 70 | 
             
            Files::As2Station.create(
         | 
| 62 71 | 
             
              name: "name", 
         | 
| 63 | 
            -
              domain: "domain", 
         | 
| 64 | 
            -
              uri: "uri", 
         | 
| 65 72 | 
             
              public_certificate: "public_certificate", 
         | 
| 66 73 | 
             
              private_key: "private_key"
         | 
| 67 74 | 
             
            )
         | 
| @@ -70,8 +77,6 @@ Files::As2Station.create( | |
| 70 77 | 
             
            ### Parameters
         | 
| 71 78 |  | 
| 72 79 | 
             
            * `name` (string): Required - AS2 Name
         | 
| 73 | 
            -
            * `domain` (string): Required - AS2 Domain
         | 
| 74 | 
            -
            * `uri` (string): Required - URL base for AS2 responses
         | 
| 75 80 | 
             
            * `public_certificate` (string): Required - 
         | 
| 76 81 | 
             
            * `private_key` (string): Required - 
         | 
| 77 82 |  | 
| @@ -82,8 +87,7 @@ Files::As2Station.create( | |
| 82 87 |  | 
| 83 88 | 
             
            ```
         | 
| 84 89 | 
             
            Files::As2Station.update(id, 
         | 
| 85 | 
            -
              name: "AS2 Station Name" | 
| 86 | 
            -
              domain: "domain.test"
         | 
| 90 | 
            +
              name: "AS2 Station Name"
         | 
| 87 91 | 
             
            )
         | 
| 88 92 | 
             
            ```
         | 
| 89 93 |  | 
| @@ -91,8 +95,6 @@ Files::As2Station.update(id, | |
| 91 95 |  | 
| 92 96 | 
             
            * `id` (int64): Required - As2 Station ID.
         | 
| 93 97 | 
             
            * `name` (string): AS2 Name
         | 
| 94 | 
            -
            * `domain` (string): AS2 Domain
         | 
| 95 | 
            -
            * `uri` (string): URL base for AS2 responses
         | 
| 96 98 | 
             
            * `public_certificate` (string): 
         | 
| 97 99 | 
             
            * `private_key` (string): 
         | 
| 98 100 |  | 
| @@ -118,8 +120,7 @@ Files::As2Station.delete(id) | |
| 118 120 | 
             
            as2_station = Files::As2Station.list.first
         | 
| 119 121 |  | 
| 120 122 | 
             
            as2_station.update(
         | 
| 121 | 
            -
              name: "AS2 Station Name" | 
| 122 | 
            -
              domain: "domain.test"
         | 
| 123 | 
            +
              name: "AS2 Station Name"
         | 
| 123 124 | 
             
            )
         | 
| 124 125 | 
             
            ```
         | 
| 125 126 |  | 
| @@ -127,8 +128,6 @@ as2_station.update( | |
| 127 128 |  | 
| 128 129 | 
             
            * `id` (int64): Required - As2 Station ID.
         | 
| 129 130 | 
             
            * `name` (string): AS2 Name
         | 
| 130 | 
            -
            * `domain` (string): AS2 Domain
         | 
| 131 | 
            -
            * `uri` (string): URL base for AS2 responses
         | 
| 132 131 | 
             
            * `public_certificate` (string): 
         | 
| 133 132 | 
             
            * `private_key` (string): 
         | 
| 134 133 |  | 
| @@ -54,6 +54,51 @@ module Files | |
| 54 54 | 
             
                  @attributes[:public_certificate_md5] = value
         | 
| 55 55 | 
             
                end
         | 
| 56 56 |  | 
| 57 | 
            +
                # string - Subject of public certificate used for message security.
         | 
| 58 | 
            +
                def public_certificate_subject
         | 
| 59 | 
            +
                  @attributes[:public_certificate_subject]
         | 
| 60 | 
            +
                end
         | 
| 61 | 
            +
             | 
| 62 | 
            +
                def public_certificate_subject=(value)
         | 
| 63 | 
            +
                  @attributes[:public_certificate_subject] = value
         | 
| 64 | 
            +
                end
         | 
| 65 | 
            +
             | 
| 66 | 
            +
                # string - Issuer of public certificate used for message security.
         | 
| 67 | 
            +
                def public_certificate_issuer
         | 
| 68 | 
            +
                  @attributes[:public_certificate_issuer]
         | 
| 69 | 
            +
                end
         | 
| 70 | 
            +
             | 
| 71 | 
            +
                def public_certificate_issuer=(value)
         | 
| 72 | 
            +
                  @attributes[:public_certificate_issuer] = value
         | 
| 73 | 
            +
                end
         | 
| 74 | 
            +
             | 
| 75 | 
            +
                # string - Serial of public certificate used for message security.
         | 
| 76 | 
            +
                def public_certificate_serial
         | 
| 77 | 
            +
                  @attributes[:public_certificate_serial]
         | 
| 78 | 
            +
                end
         | 
| 79 | 
            +
             | 
| 80 | 
            +
                def public_certificate_serial=(value)
         | 
| 81 | 
            +
                  @attributes[:public_certificate_serial] = value
         | 
| 82 | 
            +
                end
         | 
| 83 | 
            +
             | 
| 84 | 
            +
                # string - Not before value of public certificate used for message security.
         | 
| 85 | 
            +
                def public_certificate_not_before
         | 
| 86 | 
            +
                  @attributes[:public_certificate_not_before]
         | 
| 87 | 
            +
                end
         | 
| 88 | 
            +
             | 
| 89 | 
            +
                def public_certificate_not_before=(value)
         | 
| 90 | 
            +
                  @attributes[:public_certificate_not_before] = value
         | 
| 91 | 
            +
                end
         | 
| 92 | 
            +
             | 
| 93 | 
            +
                # string - Not after value of public certificate used for message security.
         | 
| 94 | 
            +
                def public_certificate_not_after
         | 
| 95 | 
            +
                  @attributes[:public_certificate_not_after]
         | 
| 96 | 
            +
                end
         | 
| 97 | 
            +
             | 
| 98 | 
            +
                def public_certificate_not_after=(value)
         | 
| 99 | 
            +
                  @attributes[:public_certificate_not_after] = value
         | 
| 100 | 
            +
                end
         | 
| 101 | 
            +
             | 
| 57 102 | 
             
                # string
         | 
| 58 103 | 
             
                def public_certificate
         | 
| 59 104 | 
             
                  @attributes[:public_certificate]
         | 
| @@ -45,15 +45,6 @@ module Files | |
| 45 45 | 
             
                  @attributes[:domain] = value
         | 
| 46 46 | 
             
                end
         | 
| 47 47 |  | 
| 48 | 
            -
                # string - Public certificate used for message security.
         | 
| 49 | 
            -
                def public_certificate
         | 
| 50 | 
            -
                  @attributes[:public_certificate]
         | 
| 51 | 
            -
                end
         | 
| 52 | 
            -
             | 
| 53 | 
            -
                def public_certificate=(value)
         | 
| 54 | 
            -
                  @attributes[:public_certificate] = value
         | 
| 55 | 
            -
                end
         | 
| 56 | 
            -
             | 
| 57 48 | 
             
                # string - MD5 hash of public certificate used for message security.
         | 
| 58 49 | 
             
                def public_certificate_md5
         | 
| 59 50 | 
             
                  @attributes[:public_certificate_md5]
         | 
| @@ -72,6 +63,60 @@ module Files | |
| 72 63 | 
             
                  @attributes[:private_key_md5] = value
         | 
| 73 64 | 
             
                end
         | 
| 74 65 |  | 
| 66 | 
            +
                # string - Subject of public certificate used for message security.
         | 
| 67 | 
            +
                def public_certificate_subject
         | 
| 68 | 
            +
                  @attributes[:public_certificate_subject]
         | 
| 69 | 
            +
                end
         | 
| 70 | 
            +
             | 
| 71 | 
            +
                def public_certificate_subject=(value)
         | 
| 72 | 
            +
                  @attributes[:public_certificate_subject] = value
         | 
| 73 | 
            +
                end
         | 
| 74 | 
            +
             | 
| 75 | 
            +
                # string - Issuer of public certificate used for message security.
         | 
| 76 | 
            +
                def public_certificate_issuer
         | 
| 77 | 
            +
                  @attributes[:public_certificate_issuer]
         | 
| 78 | 
            +
                end
         | 
| 79 | 
            +
             | 
| 80 | 
            +
                def public_certificate_issuer=(value)
         | 
| 81 | 
            +
                  @attributes[:public_certificate_issuer] = value
         | 
| 82 | 
            +
                end
         | 
| 83 | 
            +
             | 
| 84 | 
            +
                # string - Serial of public certificate used for message security.
         | 
| 85 | 
            +
                def public_certificate_serial
         | 
| 86 | 
            +
                  @attributes[:public_certificate_serial]
         | 
| 87 | 
            +
                end
         | 
| 88 | 
            +
             | 
| 89 | 
            +
                def public_certificate_serial=(value)
         | 
| 90 | 
            +
                  @attributes[:public_certificate_serial] = value
         | 
| 91 | 
            +
                end
         | 
| 92 | 
            +
             | 
| 93 | 
            +
                # string - Not before value of public certificate used for message security.
         | 
| 94 | 
            +
                def public_certificate_not_before
         | 
| 95 | 
            +
                  @attributes[:public_certificate_not_before]
         | 
| 96 | 
            +
                end
         | 
| 97 | 
            +
             | 
| 98 | 
            +
                def public_certificate_not_before=(value)
         | 
| 99 | 
            +
                  @attributes[:public_certificate_not_before] = value
         | 
| 100 | 
            +
                end
         | 
| 101 | 
            +
             | 
| 102 | 
            +
                # string - Not after value of public certificate used for message security.
         | 
| 103 | 
            +
                def public_certificate_not_after
         | 
| 104 | 
            +
                  @attributes[:public_certificate_not_after]
         | 
| 105 | 
            +
                end
         | 
| 106 | 
            +
             | 
| 107 | 
            +
                def public_certificate_not_after=(value)
         | 
| 108 | 
            +
                  @attributes[:public_certificate_not_after] = value
         | 
| 109 | 
            +
                end
         | 
| 110 | 
            +
             | 
| 111 | 
            +
                # string
         | 
| 112 | 
            +
                def public_certificate
         | 
| 113 | 
            +
                  @attributes[:public_certificate]
         | 
| 114 | 
            +
                end
         | 
| 115 | 
            +
             | 
| 116 | 
            +
                def public_certificate=(value)
         | 
| 117 | 
            +
                  @attributes[:public_certificate] = value
         | 
| 118 | 
            +
                end
         | 
| 119 | 
            +
             | 
| 75 120 | 
             
                # string
         | 
| 76 121 | 
             
                def private_key
         | 
| 77 122 | 
             
                  @attributes[:private_key]
         | 
| @@ -83,8 +128,6 @@ module Files | |
| 83 128 |  | 
| 84 129 | 
             
                # Parameters:
         | 
| 85 130 | 
             
                #   name - string - AS2 Name
         | 
| 86 | 
            -
                #   domain - string - AS2 Domain
         | 
| 87 | 
            -
                #   uri - string - URL base for AS2 responses
         | 
| 88 131 | 
             
                #   public_certificate - string
         | 
| 89 132 | 
             
                #   private_key - string
         | 
| 90 133 | 
             
                def update(params = {})
         | 
| @@ -93,8 +136,6 @@ module Files | |
| 93 136 | 
             
                  raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
         | 
| 94 137 | 
             
                  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
         | 
| 95 138 | 
             
                  raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
         | 
| 96 | 
            -
                  raise InvalidParameterError.new("Bad parameter: domain must be an String") if params.dig(:domain) and !params.dig(:domain).is_a?(String)
         | 
| 97 | 
            -
                  raise InvalidParameterError.new("Bad parameter: uri must be an String") if params.dig(:uri) and !params.dig(:uri).is_a?(String)
         | 
| 98 139 | 
             
                  raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
         | 
| 99 140 | 
             
                  raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
         | 
| 100 141 | 
             
                  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
         | 
| @@ -159,19 +200,13 @@ module Files | |
| 159 200 |  | 
| 160 201 | 
             
                # Parameters:
         | 
| 161 202 | 
             
                #   name (required) - string - AS2 Name
         | 
| 162 | 
            -
                #   domain (required) - string - AS2 Domain
         | 
| 163 | 
            -
                #   uri (required) - string - URL base for AS2 responses
         | 
| 164 203 | 
             
                #   public_certificate (required) - string
         | 
| 165 204 | 
             
                #   private_key (required) - string
         | 
| 166 205 | 
             
                def self.create(params = {}, options = {})
         | 
| 167 206 | 
             
                  raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
         | 
| 168 | 
            -
                  raise InvalidParameterError.new("Bad parameter: domain must be an String") if params.dig(:domain) and !params.dig(:domain).is_a?(String)
         | 
| 169 | 
            -
                  raise InvalidParameterError.new("Bad parameter: uri must be an String") if params.dig(:uri) and !params.dig(:uri).is_a?(String)
         | 
| 170 207 | 
             
                  raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
         | 
| 171 208 | 
             
                  raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
         | 
| 172 209 | 
             
                  raise MissingParameterError.new("Parameter missing: name") unless params.dig(:name)
         | 
| 173 | 
            -
                  raise MissingParameterError.new("Parameter missing: domain") unless params.dig(:domain)
         | 
| 174 | 
            -
                  raise MissingParameterError.new("Parameter missing: uri") unless params.dig(:uri)
         | 
| 175 210 | 
             
                  raise MissingParameterError.new("Parameter missing: public_certificate") unless params.dig(:public_certificate)
         | 
| 176 211 | 
             
                  raise MissingParameterError.new("Parameter missing: private_key") unless params.dig(:private_key)
         | 
| 177 212 |  | 
| @@ -181,8 +216,6 @@ module Files | |
| 181 216 |  | 
| 182 217 | 
             
                # Parameters:
         | 
| 183 218 | 
             
                #   name - string - AS2 Name
         | 
| 184 | 
            -
                #   domain - string - AS2 Domain
         | 
| 185 | 
            -
                #   uri - string - URL base for AS2 responses
         | 
| 186 219 | 
             
                #   public_certificate - string
         | 
| 187 220 | 
             
                #   private_key - string
         | 
| 188 221 | 
             
                def self.update(id, params = {}, options = {})
         | 
| @@ -190,8 +223,6 @@ module Files | |
| 190 223 | 
             
                  params[:id] = id
         | 
| 191 224 | 
             
                  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
         | 
| 192 225 | 
             
                  raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
         | 
| 193 | 
            -
                  raise InvalidParameterError.new("Bad parameter: domain must be an String") if params.dig(:domain) and !params.dig(:domain).is_a?(String)
         | 
| 194 | 
            -
                  raise InvalidParameterError.new("Bad parameter: uri must be an String") if params.dig(:uri) and !params.dig(:uri).is_a?(String)
         | 
| 195 226 | 
             
                  raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
         | 
| 196 227 | 
             
                  raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
         | 
| 197 228 | 
             
                  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: files.com
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.0. | 
| 4 | 
            +
              version: 1.0.248
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - files.com
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2022-03- | 
| 11 | 
            +
            date: 2022-03-15 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: addressable
         |