Class: Google::Apis::RunV1::DomainMapping

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 domain mapping. NOTE: This resource is currently in Beta.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DomainMapping

Returns a new instance of DomainMapping.



694
695
696
# File 'generated/google/apis/run_v1/classes.rb', line 694

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

Instance Attribute Details

#api_versionString

The API version for this call such as "domains.cloudrun.com/v1". Corresponds to the JSON property apiVersion

Returns:

  • (String)


671
672
673
# File 'generated/google/apis/run_v1/classes.rb', line 671

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


676
677
678
# File 'generated/google/apis/run_v1/classes.rb', line 676

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



682
683
684
# File 'generated/google/apis/run_v1/classes.rb', line 682

def 
  @metadata
end

#specGoogle::Apis::RunV1::DomainMappingSpec

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



687
688
689
# File 'generated/google/apis/run_v1/classes.rb', line 687

def spec
  @spec
end

#statusGoogle::Apis::RunV1::DomainMappingStatus

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



692
693
694
# File 'generated/google/apis/run_v1/classes.rb', line 692

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



699
700
701
702
703
704
705
# File 'generated/google/apis/run_v1/classes.rb', line 699

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