Class: Google::Apis::ConnectorsV2::Entity
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV2::Entity
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v2/classes.rb,
lib/google/apis/connectors_v2/representations.rb,
lib/google/apis/connectors_v2/representations.rb
Overview
'Entity row'/ 'Entity' refers to a single row of an entity type.
Instance Attribute Summary collapse
-
#fields ⇒ Hash<String,Object>
Fields of the entity.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Entity
constructor
A new instance of Entity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Entity
Returns a new instance of Entity.
89 90 91 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 89 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ Hash<String,Object>
Fields of the entity. The key is name of the field and the value contains the
applicable google.protobuf.Value entry for this field.
Corresponds to the JSON property fields
81 82 83 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 81 def fields @fields end |
#name ⇒ String
Output only. Resource name of the Entity. Format: projects/project/locations/
location/connections/connection/entityTypes/type/entities/id
Corresponds to the JSON property name
87 88 89 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 87 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
94 95 96 97 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 94 def update!(**args) @fields = args[:fields] if args.key?(:fields) @name = args[:name] if args.key?(:name) end |