Class: Google::Apis::AdminDirectoryV1::Feature

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

Overview

JSON template for Feature object in Directory API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Feature

Returns a new instance of Feature.



2467
2468
2469
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2467

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

Instance Attribute Details

#etagsString

ETag of the resource. Corresponds to the JSON property etags

Returns:

  • (String)


2455
2456
2457
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2455

def etags
  @etags
end

#kindString

Kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


2460
2461
2462
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2460

def kind
  @kind
end

#nameString

The name of the feature. Corresponds to the JSON property name

Returns:

  • (String)


2465
2466
2467
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2465

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2472
2473
2474
2475
2476
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2472

def update!(**args)
  @etags = args[:etags] if args.key?(:etags)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
end