Class: Google::Apis::FirebasehostingV1::LiveMigrationStep

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

Overview

A set of updates including ACME challenges and DNS records that allow Hosting to create an SSL certificate and establish project ownership for your domain name before you direct traffic to Hosting servers. Use these updates to facilitate zero downtime migrations to Hosting from other services. After you' ve made the recommended updates, check your custom domain's ownershipState and certState. To avoid downtime, they should be OWNERSHIP_ACTIVE and CERT_ACTIVE, respectively, before you update your A and AAAA records.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LiveMigrationStep

Returns a new instance of LiveMigrationStep.



381
382
383
# File 'lib/google/apis/firebasehosting_v1/classes.rb', line 381

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

Instance Attribute Details

#cert_verificationGoogle::Apis::FirebasehostingV1::CertVerification

A set of ACME challenges you can use to allow Hosting to create an SSL certificate for your domain name before directing traffic to Hosting servers. Use either the DNS or HTTP challenge; it's not necessary to provide both. Corresponds to the JSON property certVerification



358
359
360
# File 'lib/google/apis/firebasehosting_v1/classes.rb', line 358

def cert_verification
  @cert_verification
end

#dns_updatesGoogle::Apis::FirebasehostingV1::DnsUpdates

A set of DNS record updates that you should make to allow Hosting to serve secure content in response to requests against your domain name. These updates present the current state of your domain name's DNS records when Hosting last queried them, and the desired set of records that Hosting needs to see before your custom domain can be fully active. Corresponds to the JSON property dnsUpdates



367
368
369
# File 'lib/google/apis/firebasehosting_v1/classes.rb', line 367

def dns_updates
  @dns_updates
end

#issuesArray<Google::Apis::FirebasehostingV1::Status>

Output only. Issues that prevent the current step from completing. Corresponds to the JSON property issues



372
373
374
# File 'lib/google/apis/firebasehosting_v1/classes.rb', line 372

def issues
  @issues
end

#stateString

Output only. The state of the live migration step, indicates whether you should work to complete the step now, in the future, or have already completed it. Corresponds to the JSON property state

Returns:

  • (String)


379
380
381
# File 'lib/google/apis/firebasehosting_v1/classes.rb', line 379

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



386
387
388
389
390
391
# File 'lib/google/apis/firebasehosting_v1/classes.rb', line 386

def update!(**args)
  @cert_verification = args[:cert_verification] if args.key?(:cert_verification)
  @dns_updates = args[:dns_updates] if args.key?(:dns_updates)
  @issues = args[:issues] if args.key?(:issues)
  @state = args[:state] if args.key?(:state)
end