Class: Google::Apis::DiscoveryV1::DirectoryList::Item
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryV1::DirectoryList::Item
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/discovery_v1/classes.rb,
generated/google/apis/discovery_v1/representations.rb,
generated/google/apis/discovery_v1/representations.rb
Defined Under Namespace
Classes: Icons
Instance Attribute Summary collapse
-
#description ⇒ String
The description of this API.
-
#discovery_link ⇒ String
A link to the discovery document.
-
#discovery_rest_url ⇒ String
The URL for the discovery REST document.
-
#documentation_link ⇒ String
A link to human readable documentation for the API.
-
#icons ⇒ Google::Apis::DiscoveryV1::DirectoryList::Item::Icons
Links to 16x16 and 32x32 icons representing the API.
-
#id ⇒ String
The id of this API.
-
#kind ⇒ String
The kind for this response.
-
#labels ⇒ Array<String>
Labels for the status of this API, such as labs or deprecated.
-
#name ⇒ String
The name of the API.
-
#preferred ⇒ Boolean
(also: #preferred?)
True if this version is the preferred version to use.
-
#title ⇒ String
The title of this API.
-
#version ⇒ String
The version of the API.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Item
constructor
A new instance of Item.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Item
Returns a new instance of Item
120 121 122 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 120 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of this API.
Corresponds to the JSON property description
62 63 64 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 62 def description @description end |
#discovery_link ⇒ String
A link to the discovery document.
Corresponds to the JSON property discoveryLink
67 68 69 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 67 def discovery_link @discovery_link end |
#discovery_rest_url ⇒ String
The URL for the discovery REST document.
Corresponds to the JSON property discoveryRestUrl
72 73 74 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 72 def discovery_rest_url @discovery_rest_url end |
#documentation_link ⇒ String
A link to human readable documentation for the API.
Corresponds to the JSON property documentationLink
77 78 79 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 77 def documentation_link @documentation_link end |
#icons ⇒ Google::Apis::DiscoveryV1::DirectoryList::Item::Icons
Links to 16x16 and 32x32 icons representing the API.
Corresponds to the JSON property icons
82 83 84 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 82 def icons @icons end |
#id ⇒ String
The id of this API.
Corresponds to the JSON property id
87 88 89 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 87 def id @id end |
#kind ⇒ String
The kind for this response.
Corresponds to the JSON property kind
92 93 94 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 92 def kind @kind end |
#labels ⇒ Array<String>
Labels for the status of this API, such as labs or deprecated.
Corresponds to the JSON property labels
97 98 99 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 97 def labels @labels end |
#name ⇒ String
The name of the API.
Corresponds to the JSON property name
102 103 104 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 102 def name @name end |
#preferred ⇒ Boolean Also known as: preferred?
True if this version is the preferred version to use.
Corresponds to the JSON property preferred
107 108 109 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 107 def preferred @preferred end |
#title ⇒ String
The title of this API.
Corresponds to the JSON property title
113 114 115 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 113 def title @title end |
#version ⇒ String
The version of the API.
Corresponds to the JSON property version
118 119 120 |
# File 'generated/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 'generated/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 |