Class: Google::Apis::ConnectorsV1::AuthObject

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb

Overview

AuthObject defines a JSON schema of an authentication type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuthObject

Returns a new instance of AuthObject.



291
292
293
# File 'lib/google/apis/connectors_v1/classes.rb', line 291

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#additional_propertiesBoolean Also known as: additional_properties?

Whether the object has additional properties. Corresponds to the JSON property additionalProperties

Returns:

  • (Boolean)


257
258
259
# File 'lib/google/apis/connectors_v1/classes.rb', line 257

def additional_properties
  @additional_properties
end

#auth_keyString

Auth key of the object. Corresponds to the JSON property authKey

Returns:

  • (String)


263
264
265
# File 'lib/google/apis/connectors_v1/classes.rb', line 263

def auth_key
  @auth_key
end

#auth_typeString

Auth type of the object. Corresponds to the JSON property authType

Returns:

  • (String)


268
269
270
# File 'lib/google/apis/connectors_v1/classes.rb', line 268

def auth_type
  @auth_type
end

#descriptionString

Description of the object. Corresponds to the JSON property description

Returns:

  • (String)


273
274
275
# File 'lib/google/apis/connectors_v1/classes.rb', line 273

def description
  @description
end

#is_defaultBoolean Also known as: is_default?

Whether the object is the default one. Corresponds to the JSON property isDefault

Returns:

  • (Boolean)


278
279
280
# File 'lib/google/apis/connectors_v1/classes.rb', line 278

def is_default
  @is_default
end

#propertiesHash<String,Google::Apis::ConnectorsV1::AuthProperty>

Properties of the object. Corresponds to the JSON property properties



284
285
286
# File 'lib/google/apis/connectors_v1/classes.rb', line 284

def properties
  @properties
end

#typeString

Type of the object. Corresponds to the JSON property type

Returns:

  • (String)


289
290
291
# File 'lib/google/apis/connectors_v1/classes.rb', line 289

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



296
297
298
299
300
301
302
303
304
# File 'lib/google/apis/connectors_v1/classes.rb', line 296

def update!(**args)
  @additional_properties = args[:additional_properties] if args.key?(:additional_properties)
  @auth_key = args[:auth_key] if args.key?(:auth_key)
  @auth_type = args[:auth_type] if args.key?(:auth_type)
  @description = args[:description] if args.key?(:description)
  @is_default = args[:is_default] if args.key?(:is_default)
  @properties = args[:properties] if args.key?(:properties)
  @type = args[:type] if args.key?(:type)
end