late-sdk 0.0.729 → 0.0.730

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: 9f475a2763c539edab51634850ef167430c46b8f9be67dcb0bcace2ec944ec7b
4
- data.tar.gz: 396de2da101f78a39d74986fb30abe9d8e278d806f52909ec71b8e69caefb37a
3
+ metadata.gz: 12745b3c766cfc19f5518d02a69e85013c323283d0c1bab05e1a7e8f9290d328
4
+ data.tar.gz: f56ae4fe6c4baab52739cb74c398d560c30f4aef99d53bd622f45d3306f34843
5
5
  SHA512:
6
- metadata.gz: 1df6d52cc517253c97bbe8ee57deab7f42ddbb438ddd5404bbaf5a2453522f95d102b88862dd7ef73b17b49ea35784666297e33f37be93f738ebcd32187884f0
7
- data.tar.gz: e05045371a3a5e935bca906be1d818d6e88a2e42fb7ba4853f310dd56400789cef491d11286eff3cf8b72623191834065a3a40fabbc8e42cf20f0ac1fb669b58
6
+ metadata.gz: 630dfb79d686d12fd0df2bd3876ca2050761b0511a7275ce64cc59756f2ec2596251bc492d6231f4fea77f507b1c383c6b004daeef11254da48a398fe791578a
7
+ data.tar.gz: 4375e1484f1b7ab5d790118e103cfedc7d90dabad8650b1a65b2f85fa5a6b4d243466b72d6a03f986eedfa70cd5f2c16e0a3dbd02dcc541326a36c81182fef2c
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | | [optional] |
8
- | **description** | **String** | | [optional] |
8
+ | **description** | **String** | Set to null to clear the description. | [optional] |
9
9
  | **color** | **String** | | [optional] |
10
10
  | **is_default** | **Boolean** | | [optional] |
11
11
 
@@ -17,7 +17,7 @@
17
17
  | **companies** | [**Array<UploadedOrDerivedAudienceCompaniesInner>**](UploadedOrDerivedAudienceCompaniesInner.md) | Required for company_list audiences (LinkedIn only): plain-text company rows for account targeting. Each row needs at least one identifier. Not hashed, LinkedIn matches these against its own company graph. LinkedIn recommends 1,000+ companies for a usable match rate and takes up to 48h to process the list. Replace the list later with POST /v1/ads/audiences/{audienceId}/companies. | [optional] |
18
18
  | **pixel_id** | **String** | Required for website audiences | [optional] |
19
19
  | **retention_days** | **Integer** | Required for website (max 180) and meta_engagement (max 365) audiences. | [optional] |
20
- | **engagement_source** | **String** | Required for meta_engagement audiences (Meta only): what people engaged with. `page` = a Facebook Page, `instagram` = an IG professional account, `video` = a video. The source object must be eligible for engagement audiences or Meta rejects with subcode 1713151 (\"Invalid Event Name\"), surfaced verbatim. | [optional] |
20
+ | **engagement_source** | **String** | Required for meta_engagement audiences (Meta only): what people engaged with. `page` = a Facebook Page, `instagram` = an IG professional account, `video` = a video. | [optional] |
21
21
  | **source_id** | **String** | Required for meta_engagement: the Page / IG account / video id. | [optional] |
22
22
  | **event** | **String** | meta_engagement only. The engagement event; defaults per source (page → page_engaged, instagram → ig_business_profile_all, video → video_watched). Ignored when `rule` is provided. | [optional] |
23
23
  | **source_audience_id** | **String** | Required for lookalike audiences | [optional] |
@@ -17,6 +17,7 @@ module Zernio
17
17
  class UpdateProfileRequest < ApiModelBase
18
18
  attr_accessor :name
19
19
 
20
+ # Set to null to clear the description.
20
21
  attr_accessor :description
21
22
 
22
23
  attr_accessor :color
@@ -56,6 +57,7 @@ module Zernio
56
57
  # List of attributes with nullable: true
57
58
  def self.openapi_nullable
58
59
  Set.new([
60
+ :'description',
59
61
  ])
60
62
  end
61
63
 
@@ -97,6 +99,10 @@ module Zernio
97
99
  def list_invalid_properties
98
100
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
99
101
  invalid_properties = Array.new
102
+ if !@name.nil? && @name.to_s.length < 1
103
+ invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
104
+ end
105
+
100
106
  invalid_properties
101
107
  end
102
108
 
@@ -104,9 +110,24 @@ module Zernio
104
110
  # @return true if the model is valid
105
111
  def valid?
106
112
  warn '[DEPRECATED] the `valid?` method is obsolete'
113
+ return false if !@name.nil? && @name.to_s.length < 1
107
114
  true
108
115
  end
109
116
 
117
+ # Custom attribute writer method with validation
118
+ # @param [Object] name Value to be assigned
119
+ def name=(name)
120
+ if name.nil?
121
+ fail ArgumentError, 'name cannot be nil'
122
+ end
123
+
124
+ if name.to_s.length < 1
125
+ fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
126
+ end
127
+
128
+ @name = name
129
+ end
130
+
110
131
  # Checks equality by comparing each attribute.
111
132
  # @param [Object] Object to be compared
112
133
  def ==(o)
@@ -51,7 +51,7 @@ module Zernio
51
51
  # Required for website (max 180) and meta_engagement (max 365) audiences.
52
52
  attr_accessor :retention_days
53
53
 
54
- # Required for meta_engagement audiences (Meta only): what people engaged with. `page` = a Facebook Page, `instagram` = an IG professional account, `video` = a video. The source object must be eligible for engagement audiences or Meta rejects with subcode 1713151 (\"Invalid Event Name\"), surfaced verbatim.
54
+ # Required for meta_engagement audiences (Meta only): what people engaged with. `page` = a Facebook Page, `instagram` = an IG professional account, `video` = a video.
55
55
  attr_accessor :engagement_source
56
56
 
57
57
  # Required for meta_engagement: the Page / IG account / video id.
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.729'
14
+ VERSION = '0.0.730'
15
15
  end
data/openapi.yaml CHANGED
@@ -15620,9 +15620,10 @@ paths:
15620
15620
  application/json:
15621
15621
  schema:
15622
15622
  type: object
15623
+ minProperties: 1
15623
15624
  properties:
15624
- name: { type: string }
15625
- description: { type: string }
15625
+ name: { type: string, minLength: 1 }
15626
+ description: { type: [string, "null"], description: 'Set to null to clear the description.' }
15626
15627
  color: { type: string }
15627
15628
  isDefault: { type: boolean }
15628
15629
  example:
@@ -15646,7 +15647,7 @@ paths:
15646
15647
  color: "#2196F3"
15647
15648
  isDefault: true
15648
15649
  createdAt: "2024-11-01T10:00:00Z"
15649
- '400': { description: Invalid request }
15650
+ '400': { description: 'Invalid request, including a body that carries none of name, description, color or isDefault (code: missing_required_field).' }
15650
15651
  '401': { $ref: '#/components/responses/Unauthorized' }
15651
15652
  '404': { $ref: '#/components/responses/NotFound' }
15652
15653
  '409': { description: "A profile with this name already exists (code: profile_name_conflict)." }
@@ -44185,9 +44186,7 @@ paths:
44185
44186
  description: |
44186
44187
  Required for meta_engagement audiences (Meta only): what people
44187
44188
  engaged with. `page` = a Facebook Page, `instagram` = an IG
44188
- professional account, `video` = a video. The source object must be
44189
- eligible for engagement audiences or Meta rejects with subcode
44190
- 1713151 ("Invalid Event Name"), surfaced verbatim.
44189
+ professional account, `video` = a video.
44191
44190
  sourceId: { type: string, description: "Required for meta_engagement: the Page / IG account / video id." }
44192
44191
  event:
44193
44192
  type: string
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.729
4
+ version: 0.0.730
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -5375,7 +5375,7 @@ files:
5375
5375
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
5376
5376
  - spec/models/you_tube_video_retention_response_spec.rb
5377
5377
  - spec/spec_helper.rb
5378
- - zernio-sdk-0.0.729.gem
5378
+ - zernio-sdk-0.0.730.gem
5379
5379
  - zernio-sdk.gemspec
5380
5380
  homepage: https://openapi-generator.tech
5381
5381
  licenses:
Binary file