Class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1beta1CommonMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastore_v1beta3/classes.rb,
lib/google/apis/datastore_v1beta3/representations.rb,
lib/google/apis/datastore_v1beta3/representations.rb

Overview

Metadata common to all Datastore Admin operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDatastoreAdminV1beta1CommonMetadata

Returns a new instance of GoogleDatastoreAdminV1beta1CommonMetadata.



1031
1032
1033
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1031

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#end_timeString

The time the operation ended, either successfully or otherwise. Corresponds to the JSON property endTime

Returns:

  • (String)


1008
1009
1010
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1008

def end_time
  @end_time
end

#labelsHash<String,String>

The client-assigned labels which were provided when the operation was created. May also include additional labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1014
1015
1016
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1014

def labels
  @labels
end

#operation_typeString

The type of the operation. Can be used as a filter in ListOperationsRequest. Corresponds to the JSON property operationType

Returns:

  • (String)


1019
1020
1021
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1019

def operation_type
  @operation_type
end

#start_timeString

The time that work began on the operation. Corresponds to the JSON property startTime

Returns:

  • (String)


1024
1025
1026
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1024

def start_time
  @start_time
end

#stateString

The current state of the Operation. Corresponds to the JSON property state

Returns:

  • (String)


1029
1030
1031
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1029

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1036
1037
1038
1039
1040
1041
1042
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1036

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @labels = args[:labels] if args.key?(:labels)
  @operation_type = args[:operation_type] if args.key?(:operation_type)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
end