Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1DefineCertificateRequest

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

Overview

Request object for creating a certificate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyVersionsV1DefineCertificateRequest

Returns a new instance of GoogleChromePolicyVersionsV1DefineCertificateRequest.



221
222
223
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 221

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

Instance Attribute Details

#ceritificate_nameString

Optional. The optional name of the certificate. If not specified, the certificate issuer will be used as the name. Corresponds to the JSON property ceritificateName

Returns:

  • (String)


201
202
203
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 201

def ceritificate_name
  @ceritificate_name
end

#certificateString

Required. The raw contents of the .PEM, .CRT, or .CER file. Corresponds to the JSON property certificate

Returns:

  • (String)


206
207
208
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 206

def certificate
  @certificate
end

#settingsArray<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1NetworkSetting>

Optional. Certificate settings within the chrome.networks.certificates namespace. Corresponds to the JSON property settings



212
213
214
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 212

def settings
  @settings
end

#target_resourceString

Required. The target resource on which this certificate is applied. The following resources are supported: * Organizational Unit ("orgunits/ orgunit_id") Corresponds to the JSON property targetResource

Returns:

  • (String)


219
220
221
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 219

def target_resource
  @target_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



226
227
228
229
230
231
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 226

def update!(**args)
  @ceritificate_name = args[:ceritificate_name] if args.key?(:ceritificate_name)
  @certificate = args[:certificate] if args.key?(:certificate)
  @settings = args[:settings] if args.key?(:settings)
  @target_resource = args[:target_resource] if args.key?(:target_resource)
end