/** * Fill contentKey from array * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } if (isset($options['ContentKeyType'])) { Validate::isInteger($options['ContentKeyType'], 'options[ContentKeyType]'); $this->_contentKeyType = $options['ContentKeyType']; } if (isset($options['EncryptedContentKey'])) { Validate::isString($options['EncryptedContentKey'], 'options[EncryptedContentKey]'); $this->_encryptedContentKey = $options['EncryptedContentKey']; } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['ProtectionKeyId'])) { Validate::isString($options['ProtectionKeyId'], 'options[ProtectionKeyId]'); $this->_protectionKeyId = $options['ProtectionKeyId']; } if (isset($options['ProtectionKeyType'])) { Validate::isInteger($options['ProtectionKeyType'], 'options[ProtectionKeyType]'); $this->_protectionKeyType = $options['ProtectionKeyType']; } if (isset($options['Checksum'])) { Validate::isString($options['Checksum'], 'options[Checksum]'); $this->_checksum = $options['Checksum']; } }
/** * Fill locator from array * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['ExpirationDateTime'])) { Validate::isDateString($options['ExpirationDateTime'], 'options[ExpirationDateTime]'); $this->_expirationDateTime = new \DateTime($options['ExpirationDateTime']); } if (isset($options['Type'])) { Validate::isInteger($options['Type'], 'options[Type]'); $this->_type = $options['Type']; } if (isset($options['Path'])) { Validate::isValidUri($options['Path'], 'options[Path]'); $this->_path = $options['Path']; } if (isset($options['BaseUri'])) { Validate::isValidUri($options['BaseUri'], 'options[BaseUri]'); $this->_baseUri = $options['BaseUri']; } if (isset($options['ContentAccessComponent'])) { Validate::isString($options['ContentAccessComponent'], 'options[ContentAccessComponent]'); $this->_contentAccessComponent = $options['ContentAccessComponent']; } if (isset($options['AccessPolicyId'])) { Validate::isString($options['AccessPolicyId'], 'options[AccessPolicyId]'); $this->_accessPolicyId = $options['AccessPolicyId']; } if (isset($options['AssetId'])) { Validate::isString($options['AssetId'], 'options[AssetId]'); $this->_assetId = $options['AssetId']; } if (isset($options['StartTime'])) { Validate::isDateString($options['StartTime'], 'options[StartTime]'); $this->_startTime = new \DateTime($options['StartTime']); } }
/** * Fill access policy from array * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['DurationInMinutes'])) { Validate::isDouble($options['DurationInMinutes'], 'options[DurationInMinutes]'); $this->_durationInMinutes = $options['DurationInMinutes']; } if (isset($options['Permissions'])) { Validate::isInteger($options['Permissions'], 'options[Permissions]'); $this->_permissions = $options['Permissions']; } }
/** * Fill asset from array * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } if (isset($options['EndTime'])) { Validate::isDateString($options['EndTime'], 'options[EndTime]'); $this->_endTime = new \DateTime($options['EndTime']); } if (isset($options['Priority'])) { Validate::isInteger($options['Priority'], 'options[Priority]'); $this->_priority = $options['Priority']; } if (isset($options['RunningDuration'])) { Validate::isDouble($options['RunningDuration'], 'options[RunningDuration]'); $this->_runningDuration = $options['RunningDuration']; } if (isset($options['StartTime'])) { Validate::isDateString($options['StartTime'], 'options[StartTime]'); $this->_startTime = new \DateTime($options['StartTime']); } if (isset($options['State'])) { Validate::isInteger($options['State'], 'options[State]'); $this->_state = $options['State']; } if (isset($options['TemplateId'])) { Validate::isString($options['TemplateId'], 'options[TemplateId]'); $this->_templateId = $options['TemplateId']; } }
/** * Fill manifest from array * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['State'])) { Validate::isInteger($options['State'], 'options[State]'); $this->_state = $options['State']; } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['BlobStorageUriForUpload'])) { Validate::isValidUri($options['BlobStorageUriForUpload'], 'options[BlobStorageUriForUpload]'); $this->_blobStorageUriForUpload = $options['BlobStorageUriForUpload']; } if (isset($options['Statistics'])) { $this->_statistics = null; if (is_array($options['Statistics'])) { $this->_statistics = IngestManifestStatistics::createFromOptions($options['Statistics']); } } if (isset($options['StorageAccountName'])) { Validate::isString($options['StorageAccountName'], 'options[StorageAccountName]'); $this->_storageAccountName = $options['StorageAccountName']; } }
/** * Fill manifest file from array * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['EncryptionVersion'])) { Validate::isString($options['EncryptionVersion'], 'options[EncryptionVersion]'); $this->_encryptionVersion = $options['EncryptionVersion']; } if (isset($options['EncryptionScheme'])) { Validate::isString($options['EncryptionScheme'], 'options[EncryptionScheme]'); $this->_encryptionScheme = $options['EncryptionScheme']; } if (isset($options['IsEncrypted'])) { Validate::isBoolean($options['IsEncrypted'], 'options[IsEncrypted]'); $this->_isEncrypted = $options['IsEncrypted']; } if (isset($options['EncryptionKeyId'])) { Validate::isString($options['EncryptionKeyId'], 'options[EncryptionKeyId]'); $this->_encryptionKeyId = $options['EncryptionKeyId']; } if (isset($options['InitializationVector'])) { Validate::isString($options['InitializationVector'], 'options[InitializationVector]'); $this->_initializationVector = $options['InitializationVector']; } if (isset($options['IsPrimary'])) { Validate::isBoolean($options['IsPrimary'], 'options[IsPrimary]'); $this->_isPrimary = $options['IsPrimary']; } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['MimeType'])) { Validate::isString($options['MimeType'], 'options[MimeType]'); $this->_mimeType = $options['MimeType']; } if (isset($options['State'])) { Validate::isInteger($options['State'], 'options[State]'); $this->_state = $options['State']; } if (isset($options['ParentIngestManifestId'])) { Validate::isString($options['ParentIngestManifestId'], 'options[ParentIngestManifestId]'); $this->_parentIngestManifestId = $options['ParentIngestManifestId']; } if (isset($options['ParentIngestManifestAssetId'])) { Validate::isString($options['ParentIngestManifestAssetId'], 'options[ParentIngestManifestAssetId]'); $id = $options['ParentIngestManifestAssetId']; $this->_parentIngestManifestAssetId = $id; } if (isset($options['ErrorDetail'])) { Validate::isString($options['ErrorDetail'], 'options[ErrorDetail]'); $this->_errorDetail = $options['ErrorDetail']; } }
/** * Fill asset from array * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['State'])) { Validate::isInteger($options['State'], 'options[State]'); $this->_state = $options['State']; } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } if (isset($options['AlternateId'])) { Validate::isString($options['AlternateId'], 'options[AlternateId]'); $this->_alternateId = $options['AlternateId']; } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['Options'])) { Validate::isInteger($options['Options'], 'options[Options]'); $this->_options = $options['Options']; } if (isset($options['Uri'])) { Validate::isValidUri($options['Uri'], 'options[Uri]'); $this->_uri = $options['Uri']; } if (isset($options['StorageAccountName'])) { Validate::isString($options['StorageAccountName'], 'options[StorageAccountName]'); $this->_storageAccountName = $options['StorageAccountName']; } }
/** * Fill Channel from array. * * @param array $options Array containing values for object properties */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['Description'])) { Validate::isString($options['Description'], 'options[Description]'); $this->_description = $options['Description']; } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } if (isset($options['State'])) { Validate::isString($options['State'], 'options[State]'); $this->_state = $options['State']; } if (!empty($options['Input'])) { Validate::isArray($options['Input'], 'options[Input]'); $this->_input = ChannelInput::createFromOptions($options['Input']); } if (!empty($options['Output'])) { Validate::isArray($options['Output'], 'options[Output]'); $this->_output = ChannelOutput::createFromOptions($options['Output']); } if (!empty($options['Preview'])) { Validate::isArray($options['Preview'], 'options[Preview]'); $this->_preview = ChannelPreview::createFromOptions($options['Preview']); } if (!empty($options['CrossSiteAccessPolicies'])) { Validate::isArray($options['CrossSiteAccessPolicies'], 'options[CrossSiteAccessPolicies]'); $this->_crossSiteAccessPolicies = CrossSiteAccessPolicies::createFromOptions($options['CrossSiteAccessPolicies']); } if (isset($options['EncodingType'])) { Validate::isString($options['EncodingType'], 'options[EncodingType]'); $this->_encodingType = $options['EncodingType']; } if (!empty($options['Encoding'])) { Validate::isArray($options['Encoding'], 'options[Encoding]'); $this->_encoding = ChannelEncoding::createFromOptions($options['Encoding']); } if (!empty($options['Slate'])) { Validate::isArray($options['Slate'], 'options[Slate]'); $this->_slate = ChannelSlate::createFromOptions($options['Slate']); } }
/** * Fill task template from array. * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Configuration'])) { Validate::isString($options['Configuration'], 'options[Configuration]'); $this->_configuration = $options['Configuration']; } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['Description'])) { Validate::isString($options['Description'], 'options[Description]'); $this->_description = $options['Description']; } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } if (isset($options['MediaProcessorId'])) { Validate::isString($options['MediaProcessorId'], 'options[MediaProcessorId]'); $this->_mediaProcessorId = $options['MediaProcessorId']; } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['NumberofInputAssets'])) { Validate::isInteger($options['NumberofInputAssets'], 'options[NumberofInputAssets]'); $this->_numberofInputAssets = $options['NumberofInputAssets']; } if (isset($options['NumberofOutputAssets'])) { Validate::isInteger($options['NumberofOutputAssets'], 'options[NumberofOutputAssets]'); $this->_numberofOutputAssets = $options['NumberofOutputAssets']; } if (isset($options['Options'])) { Validate::isInteger($options['Options'], 'options[Options]'); $this->_options = $options['Options']; } if (isset($options['EncryptionKeyId'])) { Validate::isString($options['EncryptionKeyId'], 'options[EncryptionKeyId]'); $this->_encryptionKeyId = $options['EncryptionKeyId']; } if (isset($options['EncryptionScheme'])) { Validate::isString($options['EncryptionScheme'], 'options[EncryptionScheme]'); $this->_encryptionScheme = $options['EncryptionScheme']; } if (isset($options['EncryptionVersion'])) { Validate::isString($options['EncryptionVersion'], 'options[EncryptionVersion]'); $this->_encryptionVersion = $options['EncryptionVersion']; } if (isset($options['InitializationVector'])) { Validate::isString($options['InitializationVector'], 'options[InitializationVector]'); $this->_initializationVector = $options['InitializationVector']; } }
/** * Fill job template from array * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } if (isset($options['JobTemplateBody'])) { Validate::isString($options['JobTemplateBody'], 'options[JobTemplateBody]'); $this->_jobTemplateBody = $options['JobTemplateBody']; } if (isset($options['NumberofInputAssets'])) { Validate::isInteger($options['NumberofInputAssets'], 'options[NumberofInputAssets]'); $this->_numberofInputAssets = $options['NumberofInputAssets']; } if (isset($options['TemplateType'])) { Validate::isInteger($options['TemplateType'], 'options[TemplateType]'); $this->_templateType = $options['TemplateType']; } }
/** * Fill task from array * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Configuration'])) { Validate::isString($options['Configuration'], 'options[Configuration]'); $this->_configuration = $options['Configuration']; } if (isset($options['EndTime'])) { Validate::isDateString($options['EndTime'], 'options[EndTime]'); $this->_endTime = new \DateTime($options['EndTime']); } if (isset($options['MediaProcessorId'])) { Validate::isString($options['MediaProcessorId'], 'options[MediaProcessorId]'); $this->_mediaProcessorId = $options['MediaProcessorId']; } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['PerfMessage'])) { Validate::isString($options['PerfMessage'], 'options[PerfMessage]'); $this->_perfMessage = $options['PerfMessage']; } if (isset($options['Priority'])) { Validate::isInteger($options['Priority'], 'options[Priority]'); $this->_priority = $options['Priority']; } if (isset($options['Progress'])) { Validate::isDouble($options['Progress'], 'options[Progress]'); $this->_progress = $options['Progress']; } if (isset($options['RunningDuration'])) { Validate::isDouble($options['RunningDuration'], 'options[RunningDuration]'); $this->_runningDuration = $options['RunningDuration']; } if (isset($options['StartTime'])) { Validate::isDateString($options['StartTime'], 'options[StartTime]'); $this->_startTime = new \DateTime($options['StartTime']); } if (isset($options['State'])) { Validate::isInteger($options['State'], 'options[State]'); $this->_state = $options['State']; } if (isset($options['TaskBody'])) { Validate::isString($options['TaskBody'], 'options[TaskBody]'); $this->_taskBody = $options['TaskBody']; } if (isset($options['Options'])) { Validate::isInteger($options['Options'], 'options[Options]'); $this->_options = $options['Options']; } if (isset($options['EncryptionKeyId'])) { Validate::isString($options['EncryptionKeyId'], 'options[EncryptionKeyId]'); $this->_encryptionKeyId = $options['EncryptionKeyId']; } if (isset($options['EncryptionScheme'])) { Validate::isString($options['EncryptionScheme'], 'options[EncryptionScheme]'); $this->_encryptionScheme = $options['EncryptionScheme']; } if (isset($options['EncryptionVersion'])) { Validate::isString($options['EncryptionVersion'], 'options[EncryptionVersion]'); $this->_encryptionVersion = $options['EncryptionVersion']; } if (isset($options['InitializationVector'])) { Validate::isString($options['InitializationVector'], 'options[InitializationVector]'); $this->_initializationVector = $options['InitializationVector']; } if (isset($options['ErrorDetails'])) { $this->_errorDetails = array(); if (is_array($options['ErrorDetails'])) { foreach ($options['ErrorDetails'] as $errorDetail) { $this->_errorDetails[] = ErrorDetail::createFromOptions($errorDetail); } } } if (isset($options['HistoricalEvents'])) { $this->_historicalEvents = array(); if (is_array($options['HistoricalEvents'])) { foreach ($options['HistoricalEvents'] as $historicalEvent) { $evnt = TaskHistoricalEvent::createFromOptions($historicalEvent); $this->_historicalEvents[] = $evnt; } } } }
/** * @covers WindowsAzure\Common\Internal\Validate::isDateString */ public function testIsDateStringNotValid() { // Setup $this->setExpectedException('\\InvalidArgumentException'); $value = 'not a date'; // Test $result = Validate::isDateString($value, 'name'); // Assert }
/** * Fill Operation from array. * * @param array $options Array containing values for object properties */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['AssetId'])) { Validate::isString($options['AssetId'], 'options[AssetId]'); $this->_assetId = $options['AssetId']; } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['Description'])) { Validate::isString($options['Description'], 'options[Description]'); $this->_description = $options['Description']; } if (isset($options['ArchiveWindowLength'])) { Validate::isDateInterval($options['ArchiveWindowLength'], 'ArchiveWindowLength[Created]'); $this->_archiveWindowLength = new \DateInterval($options['ArchiveWindowLength']); } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } if (isset($options['ManifestName'])) { Validate::isString($options['ManifestName'], 'options[ManifestName]'); $this->_manifestName = $options['ManifestName']; } if (isset($options['State'])) { Validate::isInteger($options['State'], 'options[State]'); $this->_state = $options['State']; } if (isset($options['ChannelId'])) { Validate::isString($options['ChannelId'], 'options[ChannelId]'); $this->_channelId = $options['ChannelId']; } }
/** * Fill task historical event from array * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Code'])) { Validate::isInteger($options['Code'], 'options[Code]'); $this->_code = $options['Code']; } if (isset($options['Message'])) { Validate::isString($options['Message'], 'options[Message]'); $this->_message = $options['Message']; } if (isset($options['TimeStamp'])) { Validate::isDateString($options['TimeStamp'], 'options[TimeStamp]'); $this->_timeStamp = new \DateTime($options['TimeStamp']); } }
/** * Fill AssetDeliveryPolicy from array * * @param array $options Array containing values for object properties * * @return void */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['AssetDeliveryProtocol'])) { Validate::isInteger($options['AssetDeliveryProtocol'], 'options[AssetDeliveryProtocol]'); $this->_protocol = $options['AssetDeliveryProtocol']; } if (isset($options['AssetDeliveryPolicyType'])) { Validate::isInteger($options['AssetDeliveryPolicyType'], 'options[AssetDeliveryPolicyType]'); $this->_policyType = $options['AssetDeliveryPolicyType']; } if (isset($options['AssetDeliveryConfiguration'])) { Validate::isString($options['AssetDeliveryConfiguration'], 'options[AssetDeliveryConfiguration]'); $this->_configuration = $options['AssetDeliveryConfiguration']; } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } }
/** * Fill asset file from array * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Name'])) { Validate::isString($options['Name'], 'options[Name]'); $this->_name = $options['Name']; } if (isset($options['ContentFileSize'])) { Validate::isString($options['ContentFileSize'], 'options[ContentFileSize]'); $this->_contentFileSize = $options['ContentFileSize']; } if (isset($options['ParentAssetId'])) { Validate::isString($options['ParentAssetId'], 'options[ParentAssetId]'); $this->_parentAssetId = $options['ParentAssetId']; } if (isset($options['EncryptionVersion'])) { Validate::isString($options['EncryptionVersion'], 'options[EncryptionVersion]'); $this->_encryptionVersion = $options['EncryptionVersion']; } if (isset($options['EncryptionScheme'])) { Validate::isString($options['EncryptionScheme'], 'options[EncryptionScheme]'); $this->_encryptionScheme = $options['EncryptionScheme']; } if (isset($options['IsEncrypted'])) { Validate::isBoolean($options['IsEncrypted'], 'options[IsEncrypted]'); $this->_isEncrypted = $options['IsEncrypted']; } if (isset($options['EncryptionKeyId'])) { Validate::isString($options['EncryptionKeyId'], 'options[EncryptionKeyId]'); $this->_encryptionKeyId = $options['EncryptionKeyId']; } if (isset($options['InitializationVector'])) { Validate::isString($options['InitializationVector'], 'options[InitializationVector]'); $this->_initializationVector = $options['InitializationVector']; } if (isset($options['IsPrimary'])) { Validate::isBoolean($options['IsPrimary'], 'options[IsPrimary]'); $this->_isPrimary = $options['IsPrimary']; } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['MimeType'])) { Validate::isString($options['MimeType'], 'options[MimeType]'); $this->_mimeType = $options['MimeType']; } if (isset($options['ContentChecksum'])) { Validate::isString($options['ContentChecksum'], 'options[ContentChecksum]'); $this->_contentCheckSum = $options['ContentChecksum']; } }
/** * Fill IngestManifestAsset from array. * * @param array $options Array containing values for object properties * * @return none */ public function fromArray($options) { if (isset($options['Id'])) { Validate::isString($options['Id'], 'options[Id]'); $this->_id = $options['Id']; } if (isset($options['Created'])) { Validate::isDateString($options['Created'], 'options[Created]'); $this->_created = new \DateTime($options['Created']); } if (isset($options['LastModified'])) { Validate::isDateString($options['LastModified'], 'options[LastModified]'); $this->_lastModified = new \DateTime($options['LastModified']); } if (isset($options['ParentIngestManifestId'])) { Validate::isString($options['ParentIngestManifestId'], 'options[ParentIngestManifestId]'); $this->_parentIngestManifestId = $options['ParentIngestManifestId']; } }