Skip to content

Commit 406e774

Browse files
algolia-botmillotp
andcommitted
feat(specs): add the owner attributes to ingestion resources (generated)
algolia/api-clients-automation#4616 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 337c1cf commit 406e774

File tree

5 files changed

+69
-9
lines changed

5 files changed

+69
-9
lines changed

lib/algolia/models/ingestion/authentication.rb

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ class Authentication
1919

2020
attr_accessor :platform
2121

22+
# Owner of the resource.
23+
attr_accessor :owner
24+
2225
attr_accessor :input
2326

2427
# Date of creation in RFC 3339 format.
@@ -34,6 +37,7 @@ def self.attribute_map
3437
:type => :type,
3538
:name => :name,
3639
:platform => :platform,
40+
:owner => :owner,
3741
:input => :input,
3842
:created_at => :createdAt,
3943
:updated_at => :updatedAt
@@ -47,6 +51,7 @@ def self.types_mapping
4751
:type => :"AuthenticationType",
4852
:name => :"String",
4953
:platform => :"Platform",
54+
:owner => :"String",
5055
:input => :"AuthInputPartial",
5156
:created_at => :"String",
5257
:updated_at => :"String"
@@ -57,7 +62,8 @@ def self.types_mapping
5762
def self.openapi_nullable
5863
Set.new(
5964
[
60-
:platform
65+
:platform,
66+
:owner
6167
]
6268
)
6369
end
@@ -107,6 +113,10 @@ def initialize(attributes = {})
107113
self.platform = attributes[:platform]
108114
end
109115

116+
if attributes.key?(:owner)
117+
self.owner = attributes[:owner]
118+
end
119+
110120
if attributes.key?(:input)
111121
self.input = attributes[:input]
112122
else
@@ -133,6 +143,7 @@ def ==(other)
133143
type == other.type &&
134144
name == other.name &&
135145
platform == other.platform &&
146+
owner == other.owner &&
136147
input == other.input &&
137148
created_at == other.created_at &&
138149
updated_at == other.updated_at
@@ -147,7 +158,7 @@ def eql?(other)
147158
# Calculates hash code according to all attributes.
148159
# @return [Integer] Hash code
149160
def hash
150-
[authentication_id, type, name, platform, input, created_at, updated_at].hash
161+
[authentication_id, type, name, platform, owner, input, created_at, updated_at].hash
151162
end
152163

153164
# Builds the object from hash

lib/algolia/models/ingestion/destination.rb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ class Destination
1717
# Descriptive name for the resource.
1818
attr_accessor :name
1919

20+
# Owner of the resource.
21+
attr_accessor :owner
22+
2023
attr_accessor :input
2124

2225
# Date of creation in RFC 3339 format.
@@ -36,6 +39,7 @@ def self.attribute_map
3639
:destination_id => :destinationID,
3740
:type => :type,
3841
:name => :name,
42+
:owner => :owner,
3943
:input => :input,
4044
:created_at => :createdAt,
4145
:updated_at => :updatedAt,
@@ -50,6 +54,7 @@ def self.types_mapping
5054
:destination_id => :"String",
5155
:type => :"DestinationType",
5256
:name => :"String",
57+
:owner => :"String",
5358
:input => :"DestinationInput",
5459
:created_at => :"String",
5560
:updated_at => :"String",
@@ -61,7 +66,9 @@ def self.types_mapping
6166
# List of attributes with nullable: true
6267
def self.openapi_nullable
6368
Set.new(
64-
[]
69+
[
70+
:owner
71+
]
6572
)
6673
end
6774

@@ -106,6 +113,10 @@ def initialize(attributes = {})
106113
self.name = nil
107114
end
108115

116+
if attributes.key?(:owner)
117+
self.owner = attributes[:owner]
118+
end
119+
109120
if attributes.key?(:input)
110121
self.input = attributes[:input]
111122
else
@@ -141,6 +152,7 @@ def ==(other)
141152
destination_id == other.destination_id &&
142153
type == other.type &&
143154
name == other.name &&
155+
owner == other.owner &&
144156
input == other.input &&
145157
created_at == other.created_at &&
146158
updated_at == other.updated_at &&
@@ -157,7 +169,7 @@ def eql?(other)
157169
# Calculates hash code according to all attributes.
158170
# @return [Integer] Hash code
159171
def hash
160-
[destination_id, type, name, input, created_at, updated_at, authentication_id, transformation_ids].hash
172+
[destination_id, type, name, owner, input, created_at, updated_at, authentication_id, transformation_ids].hash
161173
end
162174

163175
# Builds the object from hash

lib/algolia/models/ingestion/source.rb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ class Source
1515

1616
attr_accessor :name
1717

18+
# Owner of the resource.
19+
attr_accessor :owner
20+
1821
attr_accessor :input
1922

2023
# Universally unique identifier (UUID) of an authentication resource.
@@ -32,6 +35,7 @@ def self.attribute_map
3235
:source_id => :sourceID,
3336
:type => :type,
3437
:name => :name,
38+
:owner => :owner,
3539
:input => :input,
3640
:authentication_id => :authenticationID,
3741
:created_at => :createdAt,
@@ -45,6 +49,7 @@ def self.types_mapping
4549
:source_id => :"String",
4650
:type => :"SourceType",
4751
:name => :"String",
52+
:owner => :"String",
4853
:input => :"SourceInput",
4954
:authentication_id => :"String",
5055
:created_at => :"String",
@@ -55,7 +60,9 @@ def self.types_mapping
5560
# List of attributes with nullable: true
5661
def self.openapi_nullable
5762
Set.new(
58-
[]
63+
[
64+
:owner
65+
]
5966
)
6067
end
6168

@@ -97,6 +104,10 @@ def initialize(attributes = {})
97104
self.name = nil
98105
end
99106

107+
if attributes.key?(:owner)
108+
self.owner = attributes[:owner]
109+
end
110+
100111
if attributes.key?(:input)
101112
self.input = attributes[:input]
102113
end
@@ -124,6 +135,7 @@ def ==(other)
124135
source_id == other.source_id &&
125136
type == other.type &&
126137
name == other.name &&
138+
owner == other.owner &&
127139
input == other.input &&
128140
authentication_id == other.authentication_id &&
129141
created_at == other.created_at &&
@@ -139,7 +151,7 @@ def eql?(other)
139151
# Calculates hash code according to all attributes.
140152
# @return [Integer] Hash code
141153
def hash
142-
[source_id, type, name, input, authentication_id, created_at, updated_at].hash
154+
[source_id, type, name, owner, input, authentication_id, created_at, updated_at].hash
143155
end
144156

145157
# Builds the object from hash

lib/algolia/models/ingestion/task.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class Task
2626
# The next scheduled run of the task in RFC 3339 format.
2727
attr_accessor :next_run
2828

29+
# Owner of the resource.
30+
attr_accessor :owner
31+
2932
attr_accessor :input
3033

3134
# Whether the task is enabled.
@@ -60,6 +63,7 @@ def self.attribute_map
6063
:cron => :cron,
6164
:last_run => :lastRun,
6265
:next_run => :nextRun,
66+
:owner => :owner,
6367
:input => :input,
6468
:enabled => :enabled,
6569
:failure_threshold => :failureThreshold,
@@ -82,6 +86,7 @@ def self.types_mapping
8286
:cron => :"String",
8387
:last_run => :"String",
8488
:next_run => :"String",
89+
:owner => :"String",
8590
:input => :"TaskInput",
8691
:enabled => :"Boolean",
8792
:failure_threshold => :"Integer",
@@ -98,7 +103,9 @@ def self.types_mapping
98103
# List of attributes with nullable: true
99104
def self.openapi_nullable
100105
Set.new(
101-
[]
106+
[
107+
:owner
108+
]
102109
)
103110
end
104111

@@ -152,6 +159,10 @@ def initialize(attributes = {})
152159
self.next_run = attributes[:next_run]
153160
end
154161

162+
if attributes.key?(:owner)
163+
self.owner = attributes[:owner]
164+
end
165+
155166
if attributes.key?(:input)
156167
self.input = attributes[:input]
157168
end
@@ -208,6 +219,7 @@ def ==(other)
208219
cron == other.cron &&
209220
last_run == other.last_run &&
210221
next_run == other.next_run &&
222+
owner == other.owner &&
211223
input == other.input &&
212224
enabled == other.enabled &&
213225
failure_threshold == other.failure_threshold &&
@@ -236,6 +248,7 @@ def hash
236248
cron,
237249
last_run,
238250
next_run,
251+
owner,
239252
input,
240253
enabled,
241254
failure_threshold,

lib/algolia/models/ingestion/transformation.rb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ class Transformation
2323
# A descriptive name for your transformation of what it does.
2424
attr_accessor :description
2525

26+
# Owner of the resource.
27+
attr_accessor :owner
28+
2629
# Date of creation in RFC 3339 format.
2730
attr_accessor :created_at
2831

@@ -37,6 +40,7 @@ def self.attribute_map
3740
:code => :code,
3841
:name => :name,
3942
:description => :description,
43+
:owner => :owner,
4044
:created_at => :createdAt,
4145
:updated_at => :updatedAt
4246
}
@@ -50,6 +54,7 @@ def self.types_mapping
5054
:code => :"String",
5155
:name => :"String",
5256
:description => :"String",
57+
:owner => :"String",
5358
:created_at => :"String",
5459
:updated_at => :"String"
5560
}
@@ -58,7 +63,9 @@ def self.types_mapping
5863
# List of attributes with nullable: true
5964
def self.openapi_nullable
6065
Set.new(
61-
[]
66+
[
67+
:owner
68+
]
6269
)
6370
end
6471

@@ -113,6 +120,10 @@ def initialize(attributes = {})
113120
self.description = attributes[:description]
114121
end
115122

123+
if attributes.key?(:owner)
124+
self.owner = attributes[:owner]
125+
end
126+
116127
if attributes.key?(:created_at)
117128
self.created_at = attributes[:created_at]
118129
else
@@ -134,6 +145,7 @@ def ==(other)
134145
code == other.code &&
135146
name == other.name &&
136147
description == other.description &&
148+
owner == other.owner &&
137149
created_at == other.created_at &&
138150
updated_at == other.updated_at
139151
end
@@ -147,7 +159,7 @@ def eql?(other)
147159
# Calculates hash code according to all attributes.
148160
# @return [Integer] Hash code
149161
def hash
150-
[transformation_id, authentication_ids, code, name, description, created_at, updated_at].hash
162+
[transformation_id, authentication_ids, code, name, description, owner, created_at, updated_at].hash
151163
end
152164

153165
# Builds the object from hash

0 commit comments

Comments
 (0)