Class: Google::Apis::NetworkmanagementV1::CloudRunRevisionEndpoint

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

Wrapper for Cloud Run revision attributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudRunRevisionEndpoint

Returns a new instance of CloudRunRevisionEndpoint.



379
380
381
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 379

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

Instance Attribute Details

#service_uriString

Output only. The URI of the Cloud Run service that the revision belongs to. The format is: projects/project/locations/location/services/service Corresponds to the JSON property serviceUri

Returns:

  • (String)


370
371
372
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 370

def service_uri
  @service_uri
end

#uriString

A Cloud Run revision URI. The format is: projects/project/locations/location/revisions/revision Corresponds to the JSON property uri

Returns:

  • (String)


377
378
379
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 377

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



384
385
386
387
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 384

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