Class: Google::Apis::DiscoveryV1::DirectoryList::Item

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

Defined Under Namespace

Classes: Icons

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Item

Returns a new instance of Item.



120
121
122
# File 'lib/google/apis/discovery_v1/classes.rb', line 120

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

Instance Attribute Details

#descriptionString

The description of this API. Corresponds to the JSON property description

Returns:

  • (String)


62
63
64
# File 'lib/google/apis/discovery_v1/classes.rb', line 62

def description
  @description
end

A link to the discovery document. Corresponds to the JSON property discoveryLink

Returns:

  • (String)


67
68
69
# File 'lib/google/apis/discovery_v1/classes.rb', line 67

def discovery_link
  @discovery_link
end

#discovery_rest_urlString

The URL for the discovery REST document. Corresponds to the JSON property discoveryRestUrl

Returns:

  • (String)


72
73
74
# File 'lib/google/apis/discovery_v1/classes.rb', line 72

def discovery_rest_url
  @discovery_rest_url
end

A link to human readable documentation for the API. Corresponds to the JSON property documentationLink

Returns:

  • (String)


77
78
79
# File 'lib/google/apis/discovery_v1/classes.rb', line 77

def documentation_link
  @documentation_link
end

#iconsGoogle::Apis::DiscoveryV1::DirectoryList::Item::Icons

Links to 16x16 and 32x32 icons representing the API. Corresponds to the JSON property icons



82
83
84
# File 'lib/google/apis/discovery_v1/classes.rb', line 82

def icons
  @icons
end

#idString

The id of this API. Corresponds to the JSON property id

Returns:

  • (String)


87
88
89
# File 'lib/google/apis/discovery_v1/classes.rb', line 87

def id
  @id
end

#kindString

The kind for this response. Corresponds to the JSON property kind

Returns:

  • (String)


92
93
94
# File 'lib/google/apis/discovery_v1/classes.rb', line 92

def kind
  @kind
end

#labelsArray<String>

Labels for the status of this API, such as labs or deprecated. Corresponds to the JSON property labels

Returns:

  • (Array<String>)


97
98
99
# File 'lib/google/apis/discovery_v1/classes.rb', line 97

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


102
103
104
# File 'lib/google/apis/discovery_v1/classes.rb', line 102

def name
  @name
end

#preferredBoolean Also known as: preferred?

True if this version is the preferred version to use. Corresponds to the JSON property preferred

Returns:

  • (Boolean)


107
108
109
# File 'lib/google/apis/discovery_v1/classes.rb', line 107

def preferred
  @preferred
end

#titleString

The title of this API. Corresponds to the JSON property title

Returns:

  • (String)


113
114
115
# File 'lib/google/apis/discovery_v1/classes.rb', line 113

def title
  @title
end

#versionString

The version of the API. Corresponds to the JSON property version

Returns:

  • (String)


118
119
120
# File 'lib/google/apis/discovery_v1/classes.rb', line 118

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



125
126
127
128
129
130
131
132
133
134
135
136
137
138
# File 'lib/google/apis/discovery_v1/classes.rb', line 125

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @discovery_link = args[:discovery_link] if args.key?(:discovery_link)
  @discovery_rest_url = args[:discovery_rest_url] if args.key?(:discovery_rest_url)
  @documentation_link = args[:documentation_link] if args.key?(:documentation_link)
  @icons = args[:icons] if args.key?(:icons)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @preferred = args[:preferred] if args.key?(:preferred)
  @title = args[:title] if args.key?(:title)
  @version = args[:version] if args.key?(:version)
end