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.



255
256
257
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 255

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)


235
236
237
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 235

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)


240
241
242
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 240

def certificate
  @certificate
end

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

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



246
247
248
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 246

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)


253
254
255
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 253

def target_resource
  @target_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



260
261
262
263
264
265
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 260

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