Class: Google::Apis::RunV1::AutoDomainMapping

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

Overview

Resource to hold the state and status of a user's auto domain mapping.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AutoDomainMapping

Returns a new instance of AutoDomainMapping



218
219
220
# File 'generated/google/apis/run_v1/classes.rb', line 218

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

Instance Attribute Details

#api_versionString

The API version for this call such as "serving.knative.dev/v1". Corresponds to the JSON property apiVersion

Returns:

  • (String)


195
196
197
# File 'generated/google/apis/run_v1/classes.rb', line 195

def api_version
  @api_version
end

#kindString

The kind of resource, in this case "AutoDomainMapping". Corresponds to the JSON property kind

Returns:

  • (String)


200
201
202
# File 'generated/google/apis/run_v1/classes.rb', line 200

def kind
  @kind
end

#metadataGoogle::Apis::RunV1::ObjectMeta

k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Corresponds to the JSON property metadata



206
207
208
# File 'generated/google/apis/run_v1/classes.rb', line 206

def 
  @metadata
end

#specGoogle::Apis::RunV1::AutoDomainMappingSpec

The desired state of the Auto Domain Mapping. Corresponds to the JSON property spec



211
212
213
# File 'generated/google/apis/run_v1/classes.rb', line 211

def spec
  @spec
end

#statusGoogle::Apis::RunV1::AutoDomainMappingStatus

The current state of the Domain Mapping. Corresponds to the JSON property status



216
217
218
# File 'generated/google/apis/run_v1/classes.rb', line 216

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



223
224
225
226
227
228
229
# File 'generated/google/apis/run_v1/classes.rb', line 223

def update!(**args)
  @api_version = args[:api_version] if args.key?(:api_version)
  @kind = args[:kind] if args.key?(:kind)
  @metadata = args[:metadata] if args.key?(:metadata)
  @spec = args[:spec] if args.key?(:spec)
  @status = args[:status] if args.key?(:status)
end