late-sdk 0.0.869 → 0.0.870
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/README.md +1 -0
- data/docs/GetCampaignTargeting200ResponseLocationsInner.md +9 -1
- data/docs/MetaLeadFormPlatformDataContextCard.md +1 -1
- data/docs/UpdateCampaignTargeting200Response.md +1 -1
- data/docs/UpdateCampaignTargeting200ResponseLocationsInner.md +28 -0
- data/lib/zernio-sdk/models/get_campaign_targeting200_response_locations_inner.rb +48 -4
- data/lib/zernio-sdk/models/meta_lead_form_platform_data_context_card.rb +1 -1
- data/lib/zernio-sdk/models/update_campaign_targeting200_response.rb +1 -1
- data/lib/zernio-sdk/models/update_campaign_targeting200_response_locations_inner.rb +202 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +1 -0
- data/openapi.yaml +9 -1
- data/spec/models/get_campaign_targeting200_response_locations_inner_spec.rb +24 -0
- data/spec/models/update_campaign_targeting200_response_locations_inner_spec.rb +66 -0
- data/zernio-sdk-0.0.870.gem +0 -0
- metadata +6 -2
- data/zernio-sdk-0.0.869.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c88295698661718b67d8be043f2220be917e264d67be062a71b23de7fcc60bb6
|
|
4
|
+
data.tar.gz: c16457e4d5fed93ff4c30dfd3a70880a0f97c38776a6b143afa9e77a50c16783
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1434f70a0e3d2c38de6a7b4872c79c11875b1539fa74ff87f073a9e14e44e68de7636229d92f051b3a8bb4ce37e45810bd8cb972d252b1b34c870d6f4dbf8a62
|
|
7
|
+
data.tar.gz: 8b97f6750d1a1f01da91ebc7c2eded99cb5ffdd95731a3dffff7072c7a4be53622a432ece8117c4619d32067a2f4c8122eba90993d4d132bd67f63eac28d10f6
|
data/README.md
CHANGED
|
@@ -2217,6 +2217,7 @@ Class | Method | HTTP request | Description
|
|
|
2217
2217
|
- [Zernio::UpdateCampaignTargeting200Response](docs/UpdateCampaignTargeting200Response.md)
|
|
2218
2218
|
- [Zernio::UpdateCampaignTargeting200ResponseDevicesInner](docs/UpdateCampaignTargeting200ResponseDevicesInner.md)
|
|
2219
2219
|
- [Zernio::UpdateCampaignTargeting200ResponseLanguagesInner](docs/UpdateCampaignTargeting200ResponseLanguagesInner.md)
|
|
2220
|
+
- [Zernio::UpdateCampaignTargeting200ResponseLocationsInner](docs/UpdateCampaignTargeting200ResponseLocationsInner.md)
|
|
2220
2221
|
- [Zernio::UpdateCampaignTargetingRequest](docs/UpdateCampaignTargetingRequest.md)
|
|
2221
2222
|
- [Zernio::UpdateCampaignTargetingRequestTargeting](docs/UpdateCampaignTargetingRequestTargeting.md)
|
|
2222
2223
|
- [Zernio::UpdateCampaignTargetingRequestTargetingDevicesInner](docs/UpdateCampaignTargetingRequestTargetingDevicesInner.md)
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **geo_target_id** | **String** | Numeric id from Google's geoTargetConstants/{id}. | [optional] |
|
|
8
8
|
| **negative** | **Boolean** | true = excluded location. | [optional] |
|
|
9
|
+
| **name** | **String** | Google's geo_target_constant.name, e.g. \"United States\"; null when the id could not be resolved. | [optional] |
|
|
10
|
+
| **canonical_name** | **String** | Google's geo_target_constant.canonical_name, e.g. \"California, United States\"; null when the id could not be resolved. | [optional] |
|
|
11
|
+
| **type** | **String** | Google's geo_target_constant.target_type, e.g. \"Country\", \"Region\", \"City\"; null when the id could not be resolved. | [optional] |
|
|
12
|
+
| **country_code** | **String** | Google's geo_target_constant.country_code, an ISO 3166-1 alpha-2 code; null when the id could not be resolved. | [optional] |
|
|
9
13
|
|
|
10
14
|
## Example
|
|
11
15
|
|
|
@@ -14,7 +18,11 @@ require 'zernio-sdk'
|
|
|
14
18
|
|
|
15
19
|
instance = Zernio::GetCampaignTargeting200ResponseLocationsInner.new(
|
|
16
20
|
geo_target_id: null,
|
|
17
|
-
negative: null
|
|
21
|
+
negative: null,
|
|
22
|
+
name: null,
|
|
23
|
+
canonical_name: null,
|
|
24
|
+
type: null,
|
|
25
|
+
country_code: null
|
|
18
26
|
)
|
|
19
27
|
```
|
|
20
28
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
| **content** | **Array<String>** | | [optional] |
|
|
9
9
|
| **style** | **String** | | [optional] |
|
|
10
10
|
| **button_text** | **String** | | [optional] |
|
|
11
|
-
| **cover_photo** | **String** | Direct public JPEG or PNG image URL, up to 5 MB. Redirects, Ad Image hashes and IDs are not supported. | [optional] |
|
|
11
|
+
| **cover_photo** | **String** | Direct public JPEG or PNG image URL, up to 5 MB. Uploaded as an unpublished Page photo and attached to the form. Redirects, Ad Image hashes and IDs are not supported. | [optional] |
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| **campaign_id** | **String** | | [optional] |
|
|
8
8
|
| **updated** | **Array<String>** | Which targeting fields were applied. | [optional] |
|
|
9
9
|
| **devices** | [**Array<UpdateCampaignTargeting200ResponseDevicesInner>**](UpdateCampaignTargeting200ResponseDevicesInner.md) | | [optional] |
|
|
10
|
-
| **locations** | [**Array<
|
|
10
|
+
| **locations** | [**Array<UpdateCampaignTargeting200ResponseLocationsInner>**](UpdateCampaignTargeting200ResponseLocationsInner.md) | | [optional] |
|
|
11
11
|
| **languages** | [**Array<UpdateCampaignTargeting200ResponseLanguagesInner>**](UpdateCampaignTargeting200ResponseLanguagesInner.md) | | [optional] |
|
|
12
12
|
|
|
13
13
|
## Example
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Zernio::UpdateCampaignTargeting200ResponseLocationsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **geo_target_id** | **String** | Numeric id from Google's geoTargetConstants/{id}. | [optional] |
|
|
8
|
+
| **negative** | **Boolean** | true = excluded location. | [optional] |
|
|
9
|
+
| **name** | **String** | Google's geo_target_constant.name; see GET's description. | [optional] |
|
|
10
|
+
| **canonical_name** | **String** | Google's geo_target_constant.canonical_name; see GET's description. | [optional] |
|
|
11
|
+
| **type** | **String** | Google's geo_target_constant.target_type; see GET's description. | [optional] |
|
|
12
|
+
| **country_code** | **String** | Google's geo_target_constant.country_code; see GET's description. | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'zernio-sdk'
|
|
18
|
+
|
|
19
|
+
instance = Zernio::UpdateCampaignTargeting200ResponseLocationsInner.new(
|
|
20
|
+
geo_target_id: null,
|
|
21
|
+
negative: null,
|
|
22
|
+
name: null,
|
|
23
|
+
canonical_name: null,
|
|
24
|
+
type: null,
|
|
25
|
+
country_code: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -21,11 +21,27 @@ module Zernio
|
|
|
21
21
|
# true = excluded location.
|
|
22
22
|
attr_accessor :negative
|
|
23
23
|
|
|
24
|
+
# Google's geo_target_constant.name, e.g. \"United States\"; null when the id could not be resolved.
|
|
25
|
+
attr_accessor :name
|
|
26
|
+
|
|
27
|
+
# Google's geo_target_constant.canonical_name, e.g. \"California, United States\"; null when the id could not be resolved.
|
|
28
|
+
attr_accessor :canonical_name
|
|
29
|
+
|
|
30
|
+
# Google's geo_target_constant.target_type, e.g. \"Country\", \"Region\", \"City\"; null when the id could not be resolved.
|
|
31
|
+
attr_accessor :type
|
|
32
|
+
|
|
33
|
+
# Google's geo_target_constant.country_code, an ISO 3166-1 alpha-2 code; null when the id could not be resolved.
|
|
34
|
+
attr_accessor :country_code
|
|
35
|
+
|
|
24
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
37
|
def self.attribute_map
|
|
26
38
|
{
|
|
27
39
|
:'geo_target_id' => :'geoTargetId',
|
|
28
|
-
:'negative' => :'negative'
|
|
40
|
+
:'negative' => :'negative',
|
|
41
|
+
:'name' => :'name',
|
|
42
|
+
:'canonical_name' => :'canonicalName',
|
|
43
|
+
:'type' => :'type',
|
|
44
|
+
:'country_code' => :'countryCode'
|
|
29
45
|
}
|
|
30
46
|
end
|
|
31
47
|
|
|
@@ -43,13 +59,21 @@ module Zernio
|
|
|
43
59
|
def self.openapi_types
|
|
44
60
|
{
|
|
45
61
|
:'geo_target_id' => :'String',
|
|
46
|
-
:'negative' => :'Boolean'
|
|
62
|
+
:'negative' => :'Boolean',
|
|
63
|
+
:'name' => :'String',
|
|
64
|
+
:'canonical_name' => :'String',
|
|
65
|
+
:'type' => :'String',
|
|
66
|
+
:'country_code' => :'String'
|
|
47
67
|
}
|
|
48
68
|
end
|
|
49
69
|
|
|
50
70
|
# List of attributes with nullable: true
|
|
51
71
|
def self.openapi_nullable
|
|
52
72
|
Set.new([
|
|
73
|
+
:'name',
|
|
74
|
+
:'canonical_name',
|
|
75
|
+
:'type',
|
|
76
|
+
:'country_code'
|
|
53
77
|
])
|
|
54
78
|
end
|
|
55
79
|
|
|
@@ -76,6 +100,22 @@ module Zernio
|
|
|
76
100
|
if attributes.key?(:'negative')
|
|
77
101
|
self.negative = attributes[:'negative']
|
|
78
102
|
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'name')
|
|
105
|
+
self.name = attributes[:'name']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'canonical_name')
|
|
109
|
+
self.canonical_name = attributes[:'canonical_name']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'type')
|
|
113
|
+
self.type = attributes[:'type']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'country_code')
|
|
117
|
+
self.country_code = attributes[:'country_code']
|
|
118
|
+
end
|
|
79
119
|
end
|
|
80
120
|
|
|
81
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -99,7 +139,11 @@ module Zernio
|
|
|
99
139
|
return true if self.equal?(o)
|
|
100
140
|
self.class == o.class &&
|
|
101
141
|
geo_target_id == o.geo_target_id &&
|
|
102
|
-
negative == o.negative
|
|
142
|
+
negative == o.negative &&
|
|
143
|
+
name == o.name &&
|
|
144
|
+
canonical_name == o.canonical_name &&
|
|
145
|
+
type == o.type &&
|
|
146
|
+
country_code == o.country_code
|
|
103
147
|
end
|
|
104
148
|
|
|
105
149
|
# @see the `==` method
|
|
@@ -111,7 +155,7 @@ module Zernio
|
|
|
111
155
|
# Calculates hash code according to all attributes.
|
|
112
156
|
# @return [Integer] Hash code
|
|
113
157
|
def hash
|
|
114
|
-
[geo_target_id, negative].hash
|
|
158
|
+
[geo_target_id, negative, name, canonical_name, type, country_code].hash
|
|
115
159
|
end
|
|
116
160
|
|
|
117
161
|
# Builds the object from hash
|
|
@@ -23,7 +23,7 @@ module Zernio
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :button_text
|
|
25
25
|
|
|
26
|
-
# Direct public JPEG or PNG image URL, up to 5 MB. Redirects, Ad Image hashes and IDs are not supported.
|
|
26
|
+
# Direct public JPEG or PNG image URL, up to 5 MB. Uploaded as an unpublished Page photo and attached to the form. Redirects, Ad Image hashes and IDs are not supported.
|
|
27
27
|
attr_accessor :cover_photo
|
|
28
28
|
|
|
29
29
|
class EnumAttributeValidator
|
|
@@ -75,7 +75,7 @@ module Zernio
|
|
|
75
75
|
:'campaign_id' => :'String',
|
|
76
76
|
:'updated' => :'Array<String>',
|
|
77
77
|
:'devices' => :'Array<UpdateCampaignTargeting200ResponseDevicesInner>',
|
|
78
|
-
:'locations' => :'Array<
|
|
78
|
+
:'locations' => :'Array<UpdateCampaignTargeting200ResponseLocationsInner>',
|
|
79
79
|
:'languages' => :'Array<UpdateCampaignTargeting200ResponseLanguagesInner>'
|
|
80
80
|
}
|
|
81
81
|
end
|
|
@@ -0,0 +1,202 @@
|
|
|
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).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
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 UpdateCampaignTargeting200ResponseLocationsInner < ApiModelBase
|
|
18
|
+
# Numeric id from Google's geoTargetConstants/{id}.
|
|
19
|
+
attr_accessor :geo_target_id
|
|
20
|
+
|
|
21
|
+
# true = excluded location.
|
|
22
|
+
attr_accessor :negative
|
|
23
|
+
|
|
24
|
+
# Google's geo_target_constant.name; see GET's description.
|
|
25
|
+
attr_accessor :name
|
|
26
|
+
|
|
27
|
+
# Google's geo_target_constant.canonical_name; see GET's description.
|
|
28
|
+
attr_accessor :canonical_name
|
|
29
|
+
|
|
30
|
+
# Google's geo_target_constant.target_type; see GET's description.
|
|
31
|
+
attr_accessor :type
|
|
32
|
+
|
|
33
|
+
# Google's geo_target_constant.country_code; see GET's description.
|
|
34
|
+
attr_accessor :country_code
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'geo_target_id' => :'geoTargetId',
|
|
40
|
+
:'negative' => :'negative',
|
|
41
|
+
:'name' => :'name',
|
|
42
|
+
:'canonical_name' => :'canonicalName',
|
|
43
|
+
:'type' => :'type',
|
|
44
|
+
:'country_code' => :'countryCode'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Returns attribute mapping this model knows about
|
|
49
|
+
def self.acceptable_attribute_map
|
|
50
|
+
attribute_map
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Returns all the JSON keys this model knows about
|
|
54
|
+
def self.acceptable_attributes
|
|
55
|
+
acceptable_attribute_map.values
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Attribute type mapping.
|
|
59
|
+
def self.openapi_types
|
|
60
|
+
{
|
|
61
|
+
:'geo_target_id' => :'String',
|
|
62
|
+
:'negative' => :'Boolean',
|
|
63
|
+
:'name' => :'String',
|
|
64
|
+
:'canonical_name' => :'String',
|
|
65
|
+
:'type' => :'String',
|
|
66
|
+
:'country_code' => :'String'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
:'name',
|
|
74
|
+
:'canonical_name',
|
|
75
|
+
:'type',
|
|
76
|
+
:'country_code'
|
|
77
|
+
])
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Initializes the object
|
|
81
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
82
|
+
def initialize(attributes = {})
|
|
83
|
+
if (!attributes.is_a?(Hash))
|
|
84
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::UpdateCampaignTargeting200ResponseLocationsInner` initialize method"
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
88
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
89
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
90
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::UpdateCampaignTargeting200ResponseLocationsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
92
|
+
end
|
|
93
|
+
h[k.to_sym] = v
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'geo_target_id')
|
|
97
|
+
self.geo_target_id = attributes[:'geo_target_id']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'negative')
|
|
101
|
+
self.negative = attributes[:'negative']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'name')
|
|
105
|
+
self.name = attributes[:'name']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'canonical_name')
|
|
109
|
+
self.canonical_name = attributes[:'canonical_name']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'type')
|
|
113
|
+
self.type = attributes[:'type']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'country_code')
|
|
117
|
+
self.country_code = attributes[:'country_code']
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
122
|
+
# @return Array for valid properties with the reasons
|
|
123
|
+
def list_invalid_properties
|
|
124
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
125
|
+
invalid_properties = Array.new
|
|
126
|
+
invalid_properties
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Check to see if the all the properties in the model are valid
|
|
130
|
+
# @return true if the model is valid
|
|
131
|
+
def valid?
|
|
132
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
133
|
+
true
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Checks equality by comparing each attribute.
|
|
137
|
+
# @param [Object] Object to be compared
|
|
138
|
+
def ==(o)
|
|
139
|
+
return true if self.equal?(o)
|
|
140
|
+
self.class == o.class &&
|
|
141
|
+
geo_target_id == o.geo_target_id &&
|
|
142
|
+
negative == o.negative &&
|
|
143
|
+
name == o.name &&
|
|
144
|
+
canonical_name == o.canonical_name &&
|
|
145
|
+
type == o.type &&
|
|
146
|
+
country_code == o.country_code
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# @see the `==` method
|
|
150
|
+
# @param [Object] Object to be compared
|
|
151
|
+
def eql?(o)
|
|
152
|
+
self == o
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Calculates hash code according to all attributes.
|
|
156
|
+
# @return [Integer] Hash code
|
|
157
|
+
def hash
|
|
158
|
+
[geo_target_id, negative, name, canonical_name, type, country_code].hash
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Builds the object from hash
|
|
162
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
163
|
+
# @return [Object] Returns the model itself
|
|
164
|
+
def self.build_from_hash(attributes)
|
|
165
|
+
return nil unless attributes.is_a?(Hash)
|
|
166
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
167
|
+
transformed_hash = {}
|
|
168
|
+
openapi_types.each_pair do |key, type|
|
|
169
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
170
|
+
transformed_hash["#{key}"] = nil
|
|
171
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
172
|
+
# check to ensure the input is an array given that the attribute
|
|
173
|
+
# is documented as an array but the input is not
|
|
174
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
175
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
176
|
+
end
|
|
177
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
178
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
new(transformed_hash)
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Returns the object in the form of hash
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
def to_hash
|
|
187
|
+
hash = {}
|
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
189
|
+
value = self.send(attr)
|
|
190
|
+
if value.nil?
|
|
191
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
192
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
hash[param] = _to_hash(value)
|
|
196
|
+
end
|
|
197
|
+
hash
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
end
|
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -1535,6 +1535,7 @@ require 'zernio-sdk/models/update_broadcast_request_template_variable_mapping_va
|
|
|
1535
1535
|
require 'zernio-sdk/models/update_campaign_targeting200_response'
|
|
1536
1536
|
require 'zernio-sdk/models/update_campaign_targeting200_response_devices_inner'
|
|
1537
1537
|
require 'zernio-sdk/models/update_campaign_targeting200_response_languages_inner'
|
|
1538
|
+
require 'zernio-sdk/models/update_campaign_targeting200_response_locations_inner'
|
|
1538
1539
|
require 'zernio-sdk/models/update_campaign_targeting_request'
|
|
1539
1540
|
require 'zernio-sdk/models/update_campaign_targeting_request_targeting'
|
|
1540
1541
|
require 'zernio-sdk/models/update_campaign_targeting_request_targeting_devices_inner'
|
data/openapi.yaml
CHANGED
|
@@ -42524,6 +42524,10 @@ paths:
|
|
|
42524
42524
|
properties:
|
|
42525
42525
|
geoTargetId: { type: string, description: "Numeric id from Google's geoTargetConstants/{id}." }
|
|
42526
42526
|
negative: { type: boolean, description: "true = excluded location." }
|
|
42527
|
+
name: { type: [string, "null"], description: "Google's geo_target_constant.name, e.g. \"United States\"; null when the id could not be resolved." }
|
|
42528
|
+
canonicalName: { type: [string, "null"], description: "Google's geo_target_constant.canonical_name, e.g. \"California, United States\"; null when the id could not be resolved." }
|
|
42529
|
+
type: { type: [string, "null"], description: "Google's geo_target_constant.target_type, e.g. \"Country\", \"Region\", \"City\"; null when the id could not be resolved." }
|
|
42530
|
+
countryCode: { type: [string, "null"], description: "Google's geo_target_constant.country_code, an ISO 3166-1 alpha-2 code; null when the id could not be resolved." }
|
|
42527
42531
|
languages:
|
|
42528
42532
|
type: array
|
|
42529
42533
|
items:
|
|
@@ -42640,6 +42644,10 @@ paths:
|
|
|
42640
42644
|
properties:
|
|
42641
42645
|
geoTargetId: { type: string, description: "Numeric id from Google's geoTargetConstants/{id}." }
|
|
42642
42646
|
negative: { type: boolean, description: "true = excluded location." }
|
|
42647
|
+
name: { type: [string, "null"], description: "Google's geo_target_constant.name; see GET's description." }
|
|
42648
|
+
canonicalName: { type: [string, "null"], description: "Google's geo_target_constant.canonical_name; see GET's description." }
|
|
42649
|
+
type: { type: [string, "null"], description: "Google's geo_target_constant.target_type; see GET's description." }
|
|
42650
|
+
countryCode: { type: [string, "null"], description: "Google's geo_target_constant.country_code; see GET's description." }
|
|
42643
42651
|
languages:
|
|
42644
42652
|
type: array
|
|
42645
42653
|
items:
|
|
@@ -47316,7 +47324,7 @@ paths:
|
|
|
47316
47324
|
content: { type: array, items: { type: string } }
|
|
47317
47325
|
style: { type: string, enum: [LIST_STYLE, PARAGRAPH_STYLE] }
|
|
47318
47326
|
buttonText: { type: string }
|
|
47319
|
-
coverPhoto: { type: string, format: uri, description: "Direct public JPEG or PNG image URL, up to 5 MB. Redirects, Ad Image hashes and IDs are not supported." }
|
|
47327
|
+
coverPhoto: { type: string, format: uri, description: "Direct public JPEG or PNG image URL, up to 5 MB. Uploaded as an unpublished Page photo and attached to the form. Redirects, Ad Image hashes and IDs are not supported." }
|
|
47320
47328
|
- type: object
|
|
47321
47329
|
title: LinkedInLeadFormPlatformData
|
|
47322
47330
|
required: [adAccountId, headline, description, questions]
|
|
@@ -39,4 +39,28 @@ describe Zernio::GetCampaignTargeting200ResponseLocationsInner do
|
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
describe 'test attribute "name"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "canonical_name"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "type"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "country_code"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
42
66
|
end
|
|
@@ -0,0 +1,66 @@
|
|
|
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).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::UpdateCampaignTargeting200ResponseLocationsInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::UpdateCampaignTargeting200ResponseLocationsInner do
|
|
21
|
+
#let(:instance) { Zernio::UpdateCampaignTargeting200ResponseLocationsInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of UpdateCampaignTargeting200ResponseLocationsInner' do
|
|
24
|
+
it 'should create an instance of UpdateCampaignTargeting200ResponseLocationsInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::UpdateCampaignTargeting200ResponseLocationsInner)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "geo_target_id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "negative"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "name"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "canonical_name"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "type"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "country_code"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
end
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.870
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -1638,6 +1638,7 @@ files:
|
|
|
1638
1638
|
- docs/UpdateCampaignTargeting200Response.md
|
|
1639
1639
|
- docs/UpdateCampaignTargeting200ResponseDevicesInner.md
|
|
1640
1640
|
- docs/UpdateCampaignTargeting200ResponseLanguagesInner.md
|
|
1641
|
+
- docs/UpdateCampaignTargeting200ResponseLocationsInner.md
|
|
1641
1642
|
- docs/UpdateCampaignTargetingRequest.md
|
|
1642
1643
|
- docs/UpdateCampaignTargetingRequestTargeting.md
|
|
1643
1644
|
- docs/UpdateCampaignTargetingRequestTargetingDevicesInner.md
|
|
@@ -3568,6 +3569,7 @@ files:
|
|
|
3568
3569
|
- lib/zernio-sdk/models/update_campaign_targeting200_response.rb
|
|
3569
3570
|
- lib/zernio-sdk/models/update_campaign_targeting200_response_devices_inner.rb
|
|
3570
3571
|
- lib/zernio-sdk/models/update_campaign_targeting200_response_languages_inner.rb
|
|
3572
|
+
- lib/zernio-sdk/models/update_campaign_targeting200_response_locations_inner.rb
|
|
3571
3573
|
- lib/zernio-sdk/models/update_campaign_targeting_request.rb
|
|
3572
3574
|
- lib/zernio-sdk/models/update_campaign_targeting_request_targeting.rb
|
|
3573
3575
|
- lib/zernio-sdk/models/update_campaign_targeting_request_targeting_devices_inner.rb
|
|
@@ -5477,6 +5479,7 @@ files:
|
|
|
5477
5479
|
- spec/models/update_broadcast_request_template_variable_mapping_value_spec.rb
|
|
5478
5480
|
- spec/models/update_campaign_targeting200_response_devices_inner_spec.rb
|
|
5479
5481
|
- spec/models/update_campaign_targeting200_response_languages_inner_spec.rb
|
|
5482
|
+
- spec/models/update_campaign_targeting200_response_locations_inner_spec.rb
|
|
5480
5483
|
- spec/models/update_campaign_targeting200_response_spec.rb
|
|
5481
5484
|
- spec/models/update_campaign_targeting_request_spec.rb
|
|
5482
5485
|
- spec/models/update_campaign_targeting_request_targeting_devices_inner_one_of_spec.rb
|
|
@@ -5803,7 +5806,7 @@ files:
|
|
|
5803
5806
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
5804
5807
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
5805
5808
|
- spec/spec_helper.rb
|
|
5806
|
-
- zernio-sdk-0.0.
|
|
5809
|
+
- zernio-sdk-0.0.870.gem
|
|
5807
5810
|
- zernio-sdk.gemspec
|
|
5808
5811
|
homepage: https://openapi-generator.tech
|
|
5809
5812
|
licenses:
|
|
@@ -6386,6 +6389,7 @@ test_files:
|
|
|
6386
6389
|
- spec/models/update_whats_app_calling_legacy_request_spec.rb
|
|
6387
6390
|
- spec/models/set_whatsapp_business_username200_response_spec.rb
|
|
6388
6391
|
- spec/models/create_lead_form_request_questions_inner_spec.rb
|
|
6392
|
+
- spec/models/update_campaign_targeting200_response_locations_inner_spec.rb
|
|
6389
6393
|
- spec/models/update_google_business_location_details200_response_spec.rb
|
|
6390
6394
|
- spec/models/update_sequence200_response_spec.rb
|
|
6391
6395
|
- spec/models/reply_to_mention_request_spec.rb
|
data/zernio-sdk-0.0.869.gem
DELETED
|
Binary file
|