Class: Google::Apis::NetworkmanagementV1::CloudFunctionInfo

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

Overview

For display only. Metadata associated with a Cloud Function.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudFunctionInfo

Returns a new instance of CloudFunctionInfo.



353
354
355
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 353

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

Instance Attribute Details

#display_nameString

Name of a Cloud Function. Corresponds to the JSON property displayName

Returns:

  • (String)


335
336
337
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 335

def display_name
  @display_name
end

#locationString

Location in which the Cloud Function is deployed. Corresponds to the JSON property location

Returns:

  • (String)


340
341
342
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 340

def location
  @location
end

#uriString

URI of the Cloud Function. Format: projects/project_id/locations/location/ functions/function_id` Corresponds to the JSON propertyuri`

Returns:

  • (String)


346
347
348
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 346

def uri
  @uri
end

#version_idFixnum

Latest successfully deployed version id of the Cloud Function. Corresponds to the JSON property versionId

Returns:

  • (Fixnum)


351
352
353
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 351

def version_id
  @version_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



358
359
360
361
362
363
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 358

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @location = args[:location] if args.key?(:location)
  @uri = args[:uri] if args.key?(:uri)
  @version_id = args[:version_id] if args.key?(:version_id)
end