zernio-sdk 0.0.1605 → 0.0.1607

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5973a0ba35c625d71035dffd1e01bc09892d4c2b272819c8f2dfdd41c59b509
4
- data.tar.gz: 5e3e2f61589e7643c87f49a853d84efe2af86ed487a246265c0cc06e20160899
3
+ metadata.gz: 20202cf3ac96daf6ca5d0c92fb993e977a2f1029a65a0d2b5283a3600254b906
4
+ data.tar.gz: ee4b9a3b6c3718c4d852840c34db95f294167b50a6df369476890d7775787197
5
5
  SHA512:
6
- metadata.gz: 89bb1baaa6b190aab8bd0d6ffbd9ef775f482b02e2e913920778b3a76b898203da84299d6db81e83e3f6420c23783aaa351d491345bd4d7147b2a13a3874c8e1
7
- data.tar.gz: 7d2d66870348f5ea5532ef7511f517c1bb15154381639622e41b20d5a04d18a5b6c1f6a510f1170cdd8e67dc58cdc19ddc344a0abf783c390d1781dcddab7958
6
+ metadata.gz: 513d88bd4df5eba093f4f322c760dac5e0d8debf14252ef4b23ab30f91959d1909a3da03881f6e96f2b424141eca6334d6d63761103e7e42750a101f345744f1
7
+ data.tar.gz: d586d67d2f6e402d17e9dedd9276b6db12569270c2d6985ede44ed2498ad41fb5eaad62bb22399010e272a6187928bb73ba7d87e8b165ed06c0454faa3f4401f
data/README.md CHANGED
@@ -3081,6 +3081,7 @@ Class | Method | HTTP request | Description
3081
3081
  - [Zernio::OAuthAppSetup](docs/OAuthAppSetup.md)
3082
3082
  - [Zernio::OAuthAppSetupScopeAreasInner](docs/OAuthAppSetupScopeAreasInner.md)
3083
3083
  - [Zernio::OAuthAppWebhook](docs/OAuthAppWebhook.md)
3084
+ - [Zernio::OAuthAppWebhookObject](docs/OAuthAppWebhookObject.md)
3084
3085
  - [Zernio::OnBrandedCallingIdentityActionRequiredRequest](docs/OnBrandedCallingIdentityActionRequiredRequest.md)
3085
3086
  - [Zernio::OnBrandedCallingIdentityActionRequiredRequestIdentity](docs/OnBrandedCallingIdentityActionRequiredRequestIdentity.md)
3086
3087
  - [Zernio::OnBrandedCallingIdentityStatusUpdatedRequest](docs/OnBrandedCallingIdentityStatusUpdatedRequest.md)
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **callback_url** | **String** | | |
8
8
  | **verify_token** | **String** | | |
9
- | **object** | **String** | The webhook object to configure. | |
9
+ | **object** | [**OAuthAppWebhookObject**](OAuthAppWebhookObject.md) | | |
10
10
  | **fields** | **Array<String>** | Subscribe the app to these fields. | |
11
11
 
12
12
  ## Example
@@ -0,0 +1,15 @@
1
+ # Zernio::OAuthAppWebhookObject
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'zernio-sdk'
12
+
13
+ instance = Zernio::OAuthAppWebhookObject.new()
14
+ ```
15
+
@@ -20,7 +20,6 @@ module Zernio
20
20
 
21
21
  attr_accessor :verify_token
22
22
 
23
- # The webhook object to configure.
24
23
  attr_accessor :object
25
24
 
26
25
  # Subscribe the app to these fields.
@@ -73,7 +72,7 @@ module Zernio
73
72
  {
74
73
  :'callback_url' => :'String',
75
74
  :'verify_token' => :'String',
76
- :'object' => :'String',
75
+ :'object' => :'OAuthAppWebhookObject',
77
76
  :'fields' => :'Array<String>'
78
77
  }
79
78
  end
@@ -158,8 +157,6 @@ module Zernio
158
157
  return false if @callback_url.nil?
159
158
  return false if @verify_token.nil?
160
159
  return false if @object.nil?
161
- object_validator = EnumAttributeValidator.new('String', ["page", "instagram"])
162
- return false unless object_validator.valid?(@object)
163
160
  return false if @fields.nil?
164
161
  true
165
162
  end
@@ -184,13 +181,13 @@ module Zernio
184
181
  @verify_token = verify_token
185
182
  end
186
183
 
187
- # Custom attribute writer method checking allowed values (enum).
188
- # @param [Object] object Object to be assigned
184
+ # Custom attribute writer method with validation
185
+ # @param [Object] object Value to be assigned
189
186
  def object=(object)
190
- validator = EnumAttributeValidator.new('String', ["page", "instagram"])
191
- unless validator.valid?(object)
192
- fail ArgumentError, "invalid value for \"object\", must be one of #{validator.allowable_values}."
187
+ if object.nil?
188
+ fail ArgumentError, 'object cannot be nil'
193
189
  end
190
+
194
191
  @object = object
195
192
  end
196
193
 
@@ -0,0 +1,40 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
5
+
6
+ The version of the OpenAPI document: 1.393.0
7
+ Contact: support@zernio.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zernio
17
+ class OAuthAppWebhookObject
18
+ PAGE = "page".freeze
19
+ INSTAGRAM = "instagram".freeze
20
+
21
+ def self.all_vars
22
+ @all_vars ||= [PAGE, INSTAGRAM].freeze
23
+ end
24
+
25
+ # Builds the enum from string
26
+ # @param [String] The enum value in the form of the string
27
+ # @return [String] The enum value
28
+ def self.build_from_hash(value)
29
+ new.build_from_hash(value)
30
+ end
31
+
32
+ # Builds the enum from string
33
+ # @param [String] The enum value in the form of the string
34
+ # @return [String] The enum value
35
+ def build_from_hash(value)
36
+ return value if OAuthAppWebhookObject.all_vars.include?(value)
37
+ raise "Invalid ENUM value #{value} for class #OAuthAppWebhookObject"
38
+ end
39
+ end
40
+ end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.1605'
14
+ VERSION = '0.0.1607'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -1947,6 +1947,7 @@ require 'zernio-sdk/models/o_auth_app'
1947
1947
  require 'zernio-sdk/models/o_auth_app_setup'
1948
1948
  require 'zernio-sdk/models/o_auth_app_setup_scope_areas_inner'
1949
1949
  require 'zernio-sdk/models/o_auth_app_webhook'
1950
+ require 'zernio-sdk/models/o_auth_app_webhook_object'
1950
1951
  require 'zernio-sdk/models/on_branded_calling_identity_action_required_request'
1951
1952
  require 'zernio-sdk/models/on_branded_calling_identity_action_required_request_identity'
1952
1953
  require 'zernio-sdk/models/on_branded_calling_identity_status_updated_request'