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.



410
411
412
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 410

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)


401
402
403
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 401

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)


408
409
410
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 408

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



415
416
417
418
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 415

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