Class: Google::Apis::RunV1alpha1::DomainMapping

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

Overview

Resource to hold the state and status of a user's 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) ⇒ DomainMapping

Returns a new instance of DomainMapping



854
855
856
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 854

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

Instance Attribute Details

#api_versionString

The API version for this call such as "v1alpha1". Corresponds to the JSON property apiVersion

Returns:

  • (String)


831
832
833
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 831

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


836
837
838
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 836

def kind
  @kind
end

#metadataGoogle::Apis::RunV1alpha1::ObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Corresponds to the JSON property metadata



842
843
844
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 842

def 
  @metadata
end

#specGoogle::Apis::RunV1alpha1::DomainMappingSpec

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



847
848
849
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 847

def spec
  @spec
end

#statusGoogle::Apis::RunV1alpha1::DomainMappingStatus

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



852
853
854
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 852

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



859
860
861
862
863
864
865
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 859

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