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.
11145 11146 11147 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11145 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host_name ⇒ String
Lower-case, fully qualified hostname.
Corresponds to the JSON property hostName
11136 11137 11138 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11136 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
11143 11144 11145 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11143 def host_owner @host_owner end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11150 11151 11152 11153 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11150 def update!(**args) @host_name = args[:host_name] if args.key?(:host_name) @host_owner = args[:host_owner] if args.key?(:host_owner) end |