Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DMARC to CreateDomainModelDnsRecords model #48

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 38 additions & 7 deletions lib/Model/CreateDomainModelDnsRecords.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ class CreateDomainModelDnsRecords implements ModelInterface, ArrayAccess
*/
protected static $swaggerTypes = [
'dkimRecord' => '\Brevo\Client\Model\CreateDomainModelDnsRecordsDkimRecord',
'brevoCode' => '\Brevo\Client\Model\CreateDomainModelDnsRecordsDkimRecord'
'brevoCode' => '\Brevo\Client\Model\CreateDomainModelDnsRecordsDkimRecord',
'dmarcRecord' => '\Brevo\Client\Model\CreateDomainModelDnsRecordsDkimRecord'
];

/**
Expand All @@ -68,7 +69,8 @@ class CreateDomainModelDnsRecords implements ModelInterface, ArrayAccess
*/
protected static $swaggerFormats = [
'dkimRecord' => null,
'brevoCode' => null
'brevoCode' => null,
'dmarcRecord' => null
];

/**
Expand Down Expand Up @@ -99,7 +101,8 @@ public static function swaggerFormats()
*/
protected static $attributeMap = [
'dkimRecord' => 'dkim_record',
'brevoCode' => 'brevo_code'
'brevoCode' => 'brevo_code',
'dmarcRecord' => 'dmarc_record'
];

/**
Expand All @@ -109,7 +112,8 @@ public static function swaggerFormats()
*/
protected static $setters = [
'dkimRecord' => 'setDkimRecord',
'brevoCode' => 'setBrevoCode'
'brevoCode' => 'setBrevoCode',
'dmarcRecord' => 'setDmarcRecord'
];

/**
Expand All @@ -119,7 +123,8 @@ public static function swaggerFormats()
*/
protected static $getters = [
'dkimRecord' => 'getDkimRecord',
'brevoCode' => 'getBrevoCode'
'brevoCode' => 'getBrevoCode',
'dmarcRecord' => 'getDmarcRecord'
];

/**
Expand Down Expand Up @@ -163,9 +168,9 @@ public function getModelName()
return self::$swaggerModelName;
}







/**
* Associative array for storing property values
Expand All @@ -184,6 +189,7 @@ public function __construct(array $data = null)
{
$this->container['dkimRecord'] = isset($data['dkimRecord']) ? $data['dkimRecord'] : null;
$this->container['brevoCode'] = isset($data['brevoCode']) ? $data['brevoCode'] : null;
$this->container['dmarcRecord'] = isset($data['dmarcRecord']) ? $data['dmarcRecord'] : null;
}

/**
Expand Down Expand Up @@ -257,6 +263,31 @@ public function setBrevoCode($brevoCode)

return $this;
}


/**
* Gets dmarcRecord
*
* @return \Brevo\Client\Model\CreateDomainModelDnsRecordsDkimRecord
*/
public function getDmarcRecord()
{
return $this->container['dmarcRecord'];
}

/**
* Sets dmarcRecord
*
* @param \Brevo\Client\Model\CreateDomainModelDnsRecordsDkimRecord $dmarcRecord dmarcRecord
*
* @return $this
*/
public function setDmarcRecord($dmarcRecord)
{
$this->container['dmarcRecord'] = $dmarcRecord;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down