Class: Google::Apis::FirebasehostingV1beta1::Certificate

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

Overview

An SSL certificate used to provide end-to-end encryption for requests against your domain name. A Certificate can be an actual SSL certificate or, for newly-created custom domains, Hosting's intent to create one.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Certificate

Returns a new instance of Certificate.



186
187
188
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 186

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

Instance Attribute Details

#create_timeString

Output only. The certificate's creation time. For TEMPORARY certs this is the time Hosting first generated challenges for your domain name. For all other cert types, it's the time the actual cert was created. Corresponds to the JSON property createTime

Returns:

  • (String)


149
150
151
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 149

def create_time
  @create_time
end

#expire_timeString

Output only. The certificate's expiration time. After this time, the cert can no longer be used to provide secure communication between Hosting and your site's visitors. Corresponds to the JSON property expireTime

Returns:

  • (String)


156
157
158
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 156

def expire_time
  @expire_time
end

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

Output only. A set of errors Hosting encountered when attempting to create a cert for your domain name. Resolve these issues to ensure Hosting is able to provide secure communication with your site's visitors. Corresponds to the JSON property issues



163
164
165
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 163

def issues
  @issues
end

#stateString

Output only. The state of the certificate. Only the CERT_ACTIVE and CERT_EXPIRING_SOON states provide SSL coverage for a domain name. If the state is PROPAGATING and Hosting had an active cert for the domain name before, that formerly-active cert provides SSL coverage for the domain name until the current cert propagates. Corresponds to the JSON property state

Returns:

  • (String)


172
173
174
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 172

def state
  @state
end

#typeString

Output only. The certificate's type. Corresponds to the JSON property type

Returns:

  • (String)


177
178
179
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 177

def type
  @type
end

#verificationGoogle::Apis::FirebasehostingV1beta1::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 verification



184
185
186
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 184

def verification
  @verification
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



191
192
193
194
195
196
197
198
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 191

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @issues = args[:issues] if args.key?(:issues)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
  @verification = args[:verification] if args.key?(:verification)
end