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. 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.



1552
1553
1554
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1552

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

Instance Attribute Details

#api_versionString

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

Returns:

  • (String)


1529
1530
1531
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1529

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


1534
1535
1536
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1534

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



1540
1541
1542
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1540

def 
  @metadata
end

#specGoogle::Apis::RunV1alpha1::DomainMappingSpec

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



1545
1546
1547
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1545

def spec
  @spec
end

#statusGoogle::Apis::RunV1alpha1::DomainMappingStatus

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



1550
1551
1552
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1550

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1557
1558
1559
1560
1561
1562
1563
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1557

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