Class: Google::Apis::MigrationcenterV1::DiscoveryClient
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::DiscoveryClient
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb
Overview
Represents an installed Migration Center Discovery Client instance.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#display_name ⇒ String
Optional.
-
#errors ⇒ Array<Google::Apis::MigrationcenterV1::Status>
Output only.
-
#expire_time ⇒ String
Optional.
-
#heartbeat_time ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Output only.
-
#service_account ⇒ String
Required.
-
#signals_endpoint ⇒ String
Output only.
-
#source ⇒ String
Required.
-
#state ⇒ String
Output only.
-
#ttl ⇒ String
Optional.
-
#update_time ⇒ String
Output only.
-
#version ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiscoveryClient
constructor
A new instance of DiscoveryClient.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiscoveryClient
Returns a new instance of DiscoveryClient.
1189 1190 1191 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1189 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Time when the discovery client was first created.
Corresponds to the JSON property createTime
1110 1111 1112 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1110 def create_time @create_time end |
#description ⇒ String
Optional. Free text description. Maximum length is 1000 characters.
Corresponds to the JSON property description
1115 1116 1117 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1115 def description @description end |
#display_name ⇒ String
Optional. Free text display name. Maximum length is 63 characters.
Corresponds to the JSON property displayName
1120 1121 1122 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1120 def display_name @display_name end |
#errors ⇒ Array<Google::Apis::MigrationcenterV1::Status>
Output only. Errors affecting client functionality.
Corresponds to the JSON property errors
1125 1126 1127 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1125 def errors @errors end |
#expire_time ⇒ String
Optional. Client expiration time in UTC. If specified, the backend will not
accept new frames after this time.
Corresponds to the JSON property expireTime
1131 1132 1133 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1131 def expire_time @expire_time end |
#heartbeat_time ⇒ String
Output only. Last heartbeat time. Healthy clients are expected to send
heartbeats regularly (normally every few minutes).
Corresponds to the JSON property heartbeatTime
1137 1138 1139 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1137 def heartbeat_time @heartbeat_time end |
#labels ⇒ Hash<String,String>
Optional. Labels as key value pairs.
Corresponds to the JSON property labels
1142 1143 1144 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1142 def labels @labels end |
#name ⇒ String
Output only. Identifier. Full name of this discovery client.
Corresponds to the JSON property name
1147 1148 1149 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1147 def name @name end |
#service_account ⇒ String
Required. Service account used by the discovery client for various operation.
Corresponds to the JSON property serviceAccount
1152 1153 1154 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1152 def service_account @service_account end |
#signals_endpoint ⇒ String
Output only. This field is intended for internal use.
Corresponds to the JSON property signalsEndpoint
1157 1158 1159 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1157 def signals_endpoint @signals_endpoint end |
#source ⇒ String
Required. Immutable. Full name of the source object associated with this
discovery client.
Corresponds to the JSON property source
1163 1164 1165 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1163 def source @source end |
#state ⇒ String
Output only. Current state of the discovery client.
Corresponds to the JSON property state
1168 1169 1170 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1168 def state @state end |
#ttl ⇒ String
Optional. Input only. Client time-to-live. If specified, the backend will not
accept new frames after this time. This field is input only. The derived
expiration time is provided as output through the expire_time
field.
Corresponds to the JSON property ttl
1175 1176 1177 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1175 def ttl @ttl end |
#update_time ⇒ String
Output only. Time when the discovery client was last updated. This value is
not updated by heartbeats, to view the last heartbeat time please refer to the
heartbeat_time
field.
Corresponds to the JSON property updateTime
1182 1183 1184 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1182 def update_time @update_time end |
#version ⇒ String
Output only. Client version, as reported in recent heartbeat.
Corresponds to the JSON property version
1187 1188 1189 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1187 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1194 def update!(**args) @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) @errors = args[:errors] if args.key?(:errors) @expire_time = args[:expire_time] if args.key?(:expire_time) @heartbeat_time = args[:heartbeat_time] if args.key?(:heartbeat_time) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @service_account = args[:service_account] if args.key?(:service_account) @signals_endpoint = args[:signals_endpoint] if args.key?(:signals_endpoint) @source = args[:source] if args.key?(:source) @state = args[:state] if args.key?(:state) @ttl = args[:ttl] if args.key?(:ttl) @update_time = args[:update_time] if args.key?(:update_time) @version = args[:version] if args.key?(:version) end |