Class: Google::Apis::CloudsearchV1::HostProto
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::HostProto
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Represents a single host. Optionally, the MDB owner of the host can be specified.
Instance Attribute Summary collapse
-
#host_name ⇒ String
Lower-case, fully qualified hostname.
-
#host_owner ⇒ String
If present, then any checks that compare this Principal to LOAS peer info must confirm the peer's machine owner is equal to 'host_owner'.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HostProto
constructor
A new instance of HostProto.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HostProto
Returns a new instance of HostProto.
11222 11223 11224 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11222 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host_name ⇒ String
Lower-case, fully qualified hostname.
Corresponds to the JSON property hostName
11213 11214 11215 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11213 def host_name @host_name end |
#host_owner ⇒ String
If present, then any checks that compare this Principal to LOAS peer info must
confirm the peer's machine owner is equal to 'host_owner'. If absent, then any
peer machine owner is acceptable.
Corresponds to the JSON property hostOwner
11220 11221 11222 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11220 def host_owner @host_owner end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11227 11228 11229 11230 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11227 def update!(**args) @host_name = args[:host_name] if args.key?(:host_name) @host_owner = args[:host_owner] if args.key?(:host_owner) end |