OperationResponse constructor
- required Input<
String> clientOperationId, - required Input<
String> creationTimestamp, - required Input<
String> description, - required Input<
String> endTime, - required Input<
OperationErrorResponse> error, - required Input<
String> httpErrorMessage, - required Input<
int> httpErrorStatusCode, - required Input<
String> insertTime, - required Input<
InstancesBulkInsertOperationMetadataResponse> instancesBulkInsertOperationMetadata, - required Input<
String> kind, - required Input<
String> name, - required Input<
String> operationGroupId, - required Input<
String> operationType, - required Input<
int> progress, - required Input<
String> region, - required Input<
String> selfLink, - required Input<
SetCommonInstanceMetadataOperationMetadataResponse> setCommonInstanceMetadataOperationMetadata, - required Input<
String> startTime, - required Input<
String> status, - required Input<
String> statusMessage, - required Input<
String> targetId, - required Input<
String> targetLink, - required Input<
String> user, - required Input<
List< warnings,OperationWarningsItemResponse> > - required Input<
String> zone,
Creates a new OperationResponse.
clientOperationId The value of requestId if you provided it in the request. Not present otherwise.
creationTimestamp Deprecated This field is deprecated.
description A textual description of the operation, which is set when the operation is created.
endTime The time that this operation was completed. This value is in RFC3339 text format.
error If errors are generated during processing of the operation, this field will be populated.
httpErrorMessage If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
httpErrorStatusCode If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
insertTime The time that this operation was requested. This value is in RFC3339 text format.
instancesBulkInsertOperationMetadata Required.
kind Type of the resource. Always compute#operation for Operation resources.
name Name of the operation.
operationGroupId An ID that represents a group of operations, such as when a group of operations results from a bulkInsert API request.
operationType The type of operation, such as insert, update, or delete, and so on.
progress An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
region The URL of the region where the operation resides. Only applicable when performing regional operations.
selfLink Server-defined URL for the resource.
setCommonInstanceMetadataOperationMetadata If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state.
startTime The time that this operation was started by the server. This value is in RFC3339 text format.
status The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
statusMessage An optional textual description of the current status of the operation.
targetId The unique target ID, which identifies a specific incarnation of the target resource.
targetLink The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
user User who requested the operation, for example: user@example.com or alice_smith_identifier (global/workforcePools/example-com-us-employees).
warnings If warning messages are generated during processing of the operation, this field will be populated.
zone The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
Implementation
const OperationResponse({
required this.clientOperationId,
required this.creationTimestamp,
required this.description,
required this.endTime,
required this.error,
required this.httpErrorMessage,
required this.httpErrorStatusCode,
required this.insertTime,
required this.instancesBulkInsertOperationMetadata,
required this.kind,
required this.name,
required this.operationGroupId,
required this.operationType,
required this.progress,
required this.region,
required this.selfLink,
required this.setCommonInstanceMetadataOperationMetadata,
required this.startTime,
required this.status,
required this.statusMessage,
required this.targetId,
required this.targetLink,
required this.user,
required this.warnings,
required this.zone,
});