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.



209
210
211
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 209

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)


189
190
191
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 189

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)


194
195
196
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 194

def certificate
  @certificate
end

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

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



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

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)


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

def target_resource
  @target_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



214
215
216
217
218
219
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 214

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