Class: Google::Apis::ReplicapoolupdaterV1beta1::Operation
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolupdaterV1beta1::Operation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/replicapoolupdater_v1beta1/classes.rb,
generated/google/apis/replicapoolupdater_v1beta1/representations.rb,
generated/google/apis/replicapoolupdater_v1beta1/representations.rb
Overview
An operation resource, used to manage asynchronous API requests.
Defined Under Namespace
Instance Attribute Summary collapse
-
#client_operation_id ⇒ String
Corresponds to the JSON property
clientOperationId
. -
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#end_time ⇒ String
Corresponds to the JSON property
endTime
. -
#error ⇒ Google::Apis::ReplicapoolupdaterV1beta1::Operation::Error
[Output Only] If errors occurred during processing of this operation, this field will be populated.
-
#http_error_message ⇒ String
Corresponds to the JSON property
httpErrorMessage
. -
#http_error_status_code ⇒ Fixnum
Corresponds to the JSON property
httpErrorStatusCode
. -
#id ⇒ Fixnum
[Output Only] Unique identifier for the resource; defined by the server.
-
#insert_time ⇒ String
[Output Only] The time that this operation was requested.
-
#kind ⇒ String
[Output Only] Type of the resource.
-
#name ⇒ String
[Output Only] Name of the resource.
-
#operation_type ⇒ String
Corresponds to the JSON property
operationType
. -
#progress ⇒ Fixnum
Corresponds to the JSON property
progress
. -
#region ⇒ String
[Output Only] URL of the region where the operation resides.
-
#self_link ⇒ String
[Output Only] The fully qualified URL for the resource.
-
#start_time ⇒ String
[Output Only] The time that this operation was started by the server.
-
#status ⇒ String
[Output Only] Status of the operation.
-
#status_message ⇒ String
[Output Only] An optional textual description of the current status of the operation.
-
#target_id ⇒ Fixnum
[Output Only] Unique target id which identifies a particular incarnation of the target.
-
#target_link ⇒ String
[Output Only] URL of the resource the operation is mutating.
-
#user ⇒ String
Corresponds to the JSON property
user
. -
#warnings ⇒ Array<Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning>
Corresponds to the JSON property
warnings
. -
#zone ⇒ String
[Output Only] URL of the zone where the operation resides.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Operation
constructor
A new instance of Operation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Operation
Returns a new instance of Operation
275 276 277 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 275 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_operation_id ⇒ String
Corresponds to the JSON property clientOperationId
161 162 163 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 161 def client_operation_id @client_operation_id end |
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
166 167 168 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 166 def @creation_timestamp end |
#end_time ⇒ String
Corresponds to the JSON property endTime
171 172 173 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 171 def end_time @end_time end |
#error ⇒ Google::Apis::ReplicapoolupdaterV1beta1::Operation::Error
[Output Only] If errors occurred during processing of this operation, this
field will be populated.
Corresponds to the JSON property error
177 178 179 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 177 def error @error end |
#http_error_message ⇒ String
Corresponds to the JSON property httpErrorMessage
182 183 184 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 182 def @http_error_message end |
#http_error_status_code ⇒ Fixnum
Corresponds to the JSON property httpErrorStatusCode
187 188 189 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 187 def http_error_status_code @http_error_status_code end |
#id ⇒ Fixnum
[Output Only] Unique identifier for the resource; defined by the server.
Corresponds to the JSON property id
192 193 194 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 192 def id @id end |
#insert_time ⇒ String
[Output Only] The time that this operation was requested. This is in RFC 3339
format.
Corresponds to the JSON property insertTime
198 199 200 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 198 def insert_time @insert_time end |
#kind ⇒ String
[Output Only] Type of the resource. Always replicapoolupdater#operation for
Operation resources.
Corresponds to the JSON property kind
204 205 206 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 204 def kind @kind end |
#name ⇒ String
[Output Only] Name of the resource.
Corresponds to the JSON property name
209 210 211 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 209 def name @name end |
#operation_type ⇒ String
Corresponds to the JSON property operationType
214 215 216 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 214 def operation_type @operation_type end |
#progress ⇒ Fixnum
Corresponds to the JSON property progress
219 220 221 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 219 def progress @progress end |
#region ⇒ String
[Output Only] URL of the region where the operation resides.
Corresponds to the JSON property region
224 225 226 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 224 def region @region end |
#self_link ⇒ String
[Output Only] The fully qualified URL for the resource.
Corresponds to the JSON property selfLink
229 230 231 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 229 def self_link @self_link end |
#start_time ⇒ String
[Output Only] The time that this operation was started by the server. This is
in RFC 3339 format.
Corresponds to the JSON property startTime
235 236 237 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 235 def start_time @start_time end |
#status ⇒ String
[Output Only] Status of the operation. Can be one of the following: "PENDING",
"RUNNING", or "DONE".
Corresponds to the JSON property status
241 242 243 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 241 def status @status end |
#status_message ⇒ String
[Output Only] An optional textual description of the current status of the
operation.
Corresponds to the JSON property statusMessage
247 248 249 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 247 def @status_message end |
#target_id ⇒ Fixnum
[Output Only] Unique target id which identifies a particular incarnation of
the target.
Corresponds to the JSON property targetId
253 254 255 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 253 def target_id @target_id end |
#target_link ⇒ String
[Output Only] URL of the resource the operation is mutating.
Corresponds to the JSON property targetLink
258 259 260 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 258 def target_link @target_link end |
#user ⇒ String
Corresponds to the JSON property user
263 264 265 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 263 def user @user end |
#warnings ⇒ Array<Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning>
Corresponds to the JSON property warnings
268 269 270 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 268 def warnings @warnings end |
#zone ⇒ String
[Output Only] URL of the zone where the operation resides.
Corresponds to the JSON property zone
273 274 275 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 273 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 280 def update!(**args) @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @end_time = args[:end_time] if args.key?(:end_time) @error = args[:error] if args.key?(:error) @http_error_message = args[:http_error_message] if args.key?(:http_error_message) @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code) @id = args[:id] if args.key?(:id) @insert_time = args[:insert_time] if args.key?(:insert_time) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @operation_type = args[:operation_type] if args.key?(:operation_type) @progress = args[:progress] if args.key?(:progress) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @start_time = args[:start_time] if args.key?(:start_time) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) @target_id = args[:target_id] if args.key?(:target_id) @target_link = args[:target_link] if args.key?(:target_link) @user = args[:user] if args.key?(:user) @warnings = args[:warnings] if args.key?(:warnings) @zone = args[:zone] if args.key?(:zone) end |