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

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

Overview

JSON template for Feature object in Directory API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Feature

Returns a new instance of Feature.


1559
1560
1561
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1559

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

Instance Attribute Details

#etagsString

ETag of the resource. Corresponds to the JSON property etags

Returns:

  • (String)

1547
1548
1549
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1547

def etags
  @etags
end

#kindString

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

Returns:

  • (String)

1552
1553
1554
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1552

def kind
  @kind
end

#nameString

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

Returns:

  • (String)

1557
1558
1559
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1557

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1564
1565
1566
1567
1568
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1564

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