Class: Google::Apis::CertificatemanagerV1::TrustConfig

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

Overview

Defines a trust config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TrustConfig

Returns a new instance of TrustConfig.



1222
1223
1224
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 1222

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

Instance Attribute Details

#create_timeString

Output only. The creation timestamp of a TrustConfig. Corresponds to the JSON property createTime

Returns:

  • (String)


1184
1185
1186
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 1184

def create_time
  @create_time
end

#descriptionString

One or more paragraphs of text description of a TrustConfig. Corresponds to the JSON property description

Returns:

  • (String)


1189
1190
1191
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 1189

def description
  @description
end

#etagString

This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up- to-date value before proceeding. Corresponds to the JSON property etag

Returns:

  • (String)


1196
1197
1198
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 1196

def etag
  @etag
end

#labelsHash<String,String>

Set of labels associated with a TrustConfig. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1201
1202
1203
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 1201

def labels
  @labels
end

#nameString

A user-defined name of the trust config. TrustConfig names must be unique globally and match pattern projects/*/locations/*/trustConfigs/*. Corresponds to the JSON property name

Returns:

  • (String)


1207
1208
1209
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 1207

def name
  @name
end

#trust_storesArray<Google::Apis::CertificatemanagerV1::TrustStore>

Set of trust stores to perform validation against. This field is supported when TrustConfig is configured with Load Balancers, currently not supported for SPIFFE certificate validation. Only one TrustStore specified is currently allowed. Corresponds to the JSON property trustStores



1215
1216
1217
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 1215

def trust_stores
  @trust_stores
end

#update_timeString

Output only. The last update timestamp of a TrustConfig. Corresponds to the JSON property updateTime

Returns:

  • (String)


1220
1221
1222
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 1220

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1227
1228
1229
1230
1231
1232
1233
1234
1235
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 1227

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @trust_stores = args[:trust_stores] if args.key?(:trust_stores)
  @update_time = args[:update_time] if args.key?(:update_time)
end