Class: Google::Apis::ApihubV1::GoogleCloudApihubV1ExternalApi
- Inherits:
-
Object
- Object
- Google::Apis::ApihubV1::GoogleCloudApihubV1ExternalApi
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apihub_v1/classes.rb,
lib/google/apis/apihub_v1/representations.rb,
lib/google/apis/apihub_v1/representations.rb
Overview
An external API represents an API being provided by external sources. This can be used to model third-party APIs and can be used to define dependencies.
Instance Attribute Summary collapse
-
#attributes ⇒ Hash<String,Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues>
Optional.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#display_name ⇒ String
Required.
-
#documentation ⇒ Google::Apis::ApihubV1::GoogleCloudApihubV1Documentation
Documentation details.
-
#endpoints ⇒ Array<String>
Optional.
-
#name ⇒ String
Identifier.
-
#paths ⇒ Array<String>
Optional.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApihubV1ExternalApi
constructor
A new instance of GoogleCloudApihubV1ExternalApi.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApihubV1ExternalApi
Returns a new instance of GoogleCloudApihubV1ExternalApi.
2297 2298 2299 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2297 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Hash<String,Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues>
Optional. The list of user defined attributes associated with the Version
resource. The key is the attribute name. It will be of the format: projects/
project/locations/location/attributes/attribute`. The value is the
attribute values associated with the resource.
Corresponds to the JSON propertyattributes`
2252 2253 2254 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2252 def attributes @attributes end |
#create_time ⇒ String
Output only. Creation timestamp.
Corresponds to the JSON property createTime
2257 2258 2259 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2257 def create_time @create_time end |
#description ⇒ String
Optional. Description of the external API. Max length is 2000 characters (
Unicode Code Points).
Corresponds to the JSON property description
2263 2264 2265 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2263 def description @description end |
#display_name ⇒ String
Required. Display name of the external API. Max length is 63 characters (
Unicode Code Points).
Corresponds to the JSON property displayName
2269 2270 2271 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2269 def display_name @display_name end |
#documentation ⇒ Google::Apis::ApihubV1::GoogleCloudApihubV1Documentation
Documentation details.
Corresponds to the JSON property documentation
2274 2275 2276 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2274 def documentation @documentation end |
#endpoints ⇒ Array<String>
Optional. List of endpoints on which this API is accessible.
Corresponds to the JSON property endpoints
2279 2280 2281 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2279 def endpoints @endpoints end |
#name ⇒ String
Identifier. Format: projects/project/locations/location/externalApi/
externalApi`.
Corresponds to the JSON propertyname`
2285 2286 2287 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2285 def name @name end |
#paths ⇒ Array<String>
Optional. List of paths served by this API.
Corresponds to the JSON property paths
2290 2291 2292 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2290 def paths @paths end |
#update_time ⇒ String
Output only. Last update timestamp.
Corresponds to the JSON property updateTime
2295 2296 2297 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2295 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 2302 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @documentation = args[:documentation] if args.key?(:documentation) @endpoints = args[:endpoints] if args.key?(:endpoints) @name = args[:name] if args.key?(:name) @paths = args[:paths] if args.key?(:paths) @update_time = args[:update_time] if args.key?(:update_time) end |