Skip to content

Commit 2dd989a

Browse files
algolia-botsbellone
andcommitted
docs: authentication type can't be updated (generated)
algolia/api-clients-automation#5824 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Sylvain Bellone <sylvain.bellone@algolia.com>
1 parent 1e6f06e commit 2dd989a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/algolia/models/ingestion/authentication_update.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ module Algolia
99
module Ingestion
1010
# Request body for updating an authentication resource.
1111
class AuthenticationUpdate
12-
attr_accessor :type
13-
1412
# Descriptive name for the resource.
1513
attr_accessor :name
1614

@@ -19,7 +17,6 @@ class AuthenticationUpdate
1917
# Attribute mapping from ruby-style variable name to JSON key.
2018
def self.attribute_map
2119
{
22-
:type => :type,
2320
:name => :name,
2421
:input => :input
2522
}
@@ -28,7 +25,6 @@ def self.attribute_map
2825
# Attribute type mapping.
2926
def self.types_mapping
3027
{
31-
:type => :"AuthenticationType",
3228
:name => :"String",
3329
:input => :"AuthInputPartial"
3430
}
@@ -64,10 +60,6 @@ def initialize(attributes = {})
6460
h[k.to_sym] = v
6561
}
6662

67-
if attributes.key?(:type)
68-
self.type = attributes[:type]
69-
end
70-
7163
if attributes.key?(:name)
7264
self.name = attributes[:name]
7365
end
@@ -82,7 +74,6 @@ def initialize(attributes = {})
8274
def ==(other)
8375
return true if self.equal?(other)
8476
self.class == other.class &&
85-
type == other.type &&
8677
name == other.name &&
8778
input == other.input
8879
end
@@ -96,7 +87,7 @@ def eql?(other)
9687
# Calculates hash code according to all attributes.
9788
# @return [Integer] Hash code
9889
def hash
99-
[type, name, input].hash
90+
[name, input].hash
10091
end
10192

10293
# Builds the object from hash

0 commit comments

Comments
 (0)