Class: Google::Apis::ClouddeployV1::CloudRunMetadata

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

Overview

CloudRunMetadata contains information from a Cloud Run deployment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudRunMetadata

Returns a new instance of CloudRunMetadata.



1225
1226
1227
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1225

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

Instance Attribute Details

#jobString

Output only. The name of the Cloud Run job that is associated with a Rollout. Format is projects/project/locations/location/jobs/job_name`. Corresponds to the JSON propertyjob`

Returns:

  • (String)


1206
1207
1208
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1206

def job
  @job
end

#revisionString

Output only. The Cloud Run Revision id associated with a Rollout. Corresponds to the JSON property revision

Returns:

  • (String)


1211
1212
1213
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1211

def revision
  @revision
end

#serviceString

Output only. The name of the Cloud Run Service that is associated with a Rollout. Format is projects/project/locations/location/services/service . Corresponds to the JSON property service

Returns:

  • (String)


1218
1219
1220
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1218

def service
  @service
end

#service_urlsArray<String>

Output only. The Cloud Run Service urls that are associated with a Rollout. Corresponds to the JSON property serviceUrls

Returns:

  • (Array<String>)


1223
1224
1225
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1223

def service_urls
  @service_urls
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1230
1231
1232
1233
1234
1235
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1230

def update!(**args)
  @job = args[:job] if args.key?(:job)
  @revision = args[:revision] if args.key?(:revision)
  @service = args[:service] if args.key?(:service)
  @service_urls = args[:service_urls] if args.key?(:service_urls)
end