|
| 1 | +# Copyright 2019 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# NOTE: This file is auto generated by the elixir code generator program. |
| 16 | +# Do not edit this file manually. |
| 17 | + |
| 18 | +defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess do |
| 19 | + @moduledoc """ |
| 20 | + A certificate provisioning process. |
| 21 | +
|
| 22 | + ## Attributes |
| 23 | +
|
| 24 | + * `caConnectionAdapterConfigReference` (*type:* `String.t`, *default:* `nil`) - Output only. A JSON string that contains the administrator-provided configuration for the certification authority service. This field can be missing if no configuration was given. |
| 25 | + * `chromeOsDevice` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice.t`, *default:* `nil`) - Output only. The client certificate is being provisioned for a ChromeOS device. This contains information about the device. |
| 26 | + * `chromeOsUserSession` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession.t`, *default:* `nil`) - Output only. The client certificate is being provisioned for a ChromeOS user session. This contains information about the user session. |
| 27 | + * `failureMessage` (*type:* `String.t`, *default:* `nil`) - Output only. A message describing why this `CertificateProvisioningProcess` failed. Presence of this field indicates that the `CertificateProvisioningProcess` has failed. |
| 28 | + * `issuedCertificate` (*type:* `String.t`, *default:* `nil`) - Output only. The issued certificate for this `CertificateProvisioningProcess` in PEM format. |
| 29 | + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Resource name of the `CertificateProvisioningProcess`. The name pattern is given as `customers/{customer}/certificateProvisioningProcesses/{certificate_provisioning_process}` with `{customer}` being the obfuscated customer id and `{certificate_provisioning_process}` being the certificate provisioning process id. |
| 30 | + * `profileAdapterConfigReference` (*type:* `String.t`, *default:* `nil`) - Output only. A JSON string that contains the administrator-provided configuration for the certificate provisioning profile. This field can be missing if no configuration was given. |
| 31 | + * `provisioningProfileId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the certificate provisioning profile. |
| 32 | + * `signData` (*type:* `String.t`, *default:* `nil`) - Output only. The data that the client was asked to sign. This field is only present after the `SignData` operation has been initiated. |
| 33 | + * `signature` (*type:* `String.t`, *default:* `nil`) - Output only. The signature of `signature_algorithm`, generated using the client's private key using `signature_algorithm`. This field is only present after the`SignData` operation has finished. |
| 34 | + * `signatureAlgorithm` (*type:* `String.t`, *default:* `nil`) - Output only. The signature algorithm that the adapter expects the client and backend components to use when processing `sign_data`. This field is only present after the `SignData` operation has been initiated. |
| 35 | + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Server-generated timestamp of when the certificate provisioning process has been created. |
| 36 | + * `subjectPublicKeyInfo` (*type:* `String.t`, *default:* `nil`) - Output only. The public key for which a certificate should be provisioned. Represented as a DER-encoded X.509 SubjectPublicKeyInfo. |
| 37 | + """ |
| 38 | + |
| 39 | + use GoogleApi.Gax.ModelBase |
| 40 | + |
| 41 | + @type t :: %__MODULE__{ |
| 42 | + :caConnectionAdapterConfigReference => String.t() | nil, |
| 43 | + :chromeOsDevice => |
| 44 | + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice.t() |
| 45 | + | nil, |
| 46 | + :chromeOsUserSession => |
| 47 | + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession.t() |
| 48 | + | nil, |
| 49 | + :failureMessage => String.t() | nil, |
| 50 | + :issuedCertificate => String.t() | nil, |
| 51 | + :name => String.t() | nil, |
| 52 | + :profileAdapterConfigReference => String.t() | nil, |
| 53 | + :provisioningProfileId => String.t() | nil, |
| 54 | + :signData => String.t() | nil, |
| 55 | + :signature => String.t() | nil, |
| 56 | + :signatureAlgorithm => String.t() | nil, |
| 57 | + :startTime => DateTime.t() | nil, |
| 58 | + :subjectPublicKeyInfo => String.t() | nil |
| 59 | + } |
| 60 | + |
| 61 | + field(:caConnectionAdapterConfigReference) |
| 62 | + |
| 63 | + field(:chromeOsDevice, |
| 64 | + as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice |
| 65 | + ) |
| 66 | + |
| 67 | + field(:chromeOsUserSession, |
| 68 | + as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession |
| 69 | + ) |
| 70 | + |
| 71 | + field(:failureMessage) |
| 72 | + field(:issuedCertificate) |
| 73 | + field(:name) |
| 74 | + field(:profileAdapterConfigReference) |
| 75 | + field(:provisioningProfileId) |
| 76 | + field(:signData) |
| 77 | + field(:signature) |
| 78 | + field(:signatureAlgorithm) |
| 79 | + field(:startTime, as: DateTime) |
| 80 | + field(:subjectPublicKeyInfo) |
| 81 | +end |
| 82 | + |
| 83 | +defimpl Poison.Decoder, |
| 84 | + for: |
| 85 | + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess do |
| 86 | + def decode(value, options) do |
| 87 | + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess.decode( |
| 88 | + value, |
| 89 | + options |
| 90 | + ) |
| 91 | + end |
| 92 | +end |
| 93 | + |
| 94 | +defimpl Poison.Encoder, |
| 95 | + for: |
| 96 | + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess do |
| 97 | + def encode(value, options) do |
| 98 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 99 | + end |
| 100 | +end |
0 commit comments