Class: Google::Apis::CloudfunctionsV1::OperationMetadataV1Beta2

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudfunctions_v1/classes.rb,
generated/google/apis/cloudfunctions_v1/representations.rb,
generated/google/apis/cloudfunctions_v1/representations.rb

Overview

Metadata describing an Operation

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OperationMetadataV1Beta2

Returns a new instance of OperationMetadataV1Beta2



238
239
240
# File 'generated/google/apis/cloudfunctions_v1/classes.rb', line 238

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

Instance Attribute Details

#requestHash<String,Object>

The original request that started the operation. Corresponds to the JSON property request

Returns:

  • (Hash<String,Object>)


219
220
221
# File 'generated/google/apis/cloudfunctions_v1/classes.rb', line 219

def request
  @request
end

#targetString

Target of the operation - for example projects/project-1/locations/region-1/functions/function-1 Corresponds to the JSON property target

Returns:

  • (String)


225
226
227
# File 'generated/google/apis/cloudfunctions_v1/classes.rb', line 225

def target
  @target
end

#typeString

Type of operation. Corresponds to the JSON property type

Returns:

  • (String)


230
231
232
# File 'generated/google/apis/cloudfunctions_v1/classes.rb', line 230

def type
  @type
end

#version_idFixnum

Version id of the function created or updated by an API call. This field is only pupulated for Create and Update operations. Corresponds to the JSON property versionId

Returns:

  • (Fixnum)


236
237
238
# File 'generated/google/apis/cloudfunctions_v1/classes.rb', line 236

def version_id
  @version_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



243
244
245
246
247
248
# File 'generated/google/apis/cloudfunctions_v1/classes.rb', line 243

def update!(**args)
  @request = args[:request] if args.key?(:request)
  @target = args[:target] if args.key?(:target)
  @type = args[:type] if args.key?(:type)
  @version_id = args[:version_id] if args.key?(:version_id)
end