Skip to content

Commit

Permalink
chore: to check diff from param name change
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Jan 6, 2025
1 parent b8a7924 commit 7aeeec9
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 47 deletions.
4 changes: 2 additions & 2 deletions src/Twilio/Rest/Assistants/V1/Assistant/FeedbackModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ class AssistantsV1ServiceCreateFeedbackRequest implements \JsonSerializable
protected $sessionId;
protected $text;
public function __construct(array $payload = []) {
$this->messageId = Values::array_get($payload, 'messageId');
$this->messageId = Values::array_get($payload, 'message_id');
$this->score = Values::array_get($payload, 'score');
$this->sessionId = Values::array_get($payload, 'sessionId');
$this->sessionId = Values::array_get($payload, 'session_id');
$this->text = Values::array_get($payload, 'text');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Twilio/Rest/Assistants/V1/Assistant/MessageModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class AssistantsV1ServiceAssistantSendMessageRequest implements \JsonSerializabl
protected $mode;
public function __construct(array $payload = []) {
$this->identity = Values::array_get($payload, 'identity');
$this->sessionId = Values::array_get($payload, 'sessionId');
$this->sessionId = Values::array_get($payload, 'session_id');
$this->body = Values::array_get($payload, 'body');
$this->webhook = Values::array_get($payload, 'webhook');
$this->mode = Values::array_get($payload, 'mode');
Expand Down
22 changes: 11 additions & 11 deletions src/Twilio/Rest/Assistants/V1/AssistantModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class AssistantsV1ServiceCustomerAi implements \JsonSerializable
protected $perceptionEngineEnabled;
protected $personalizationEngineEnabled;
public function __construct(array $payload = []) {
$this->perceptionEngineEnabled = Values::array_get($payload, 'perceptionEngineEnabled');
$this->personalizationEngineEnabled = Values::array_get($payload, 'personalizationEngineEnabled');
$this->perceptionEngineEnabled = Values::array_get($payload, 'perception_engine_enabled');
$this->personalizationEngineEnabled = Values::array_get($payload, 'personalization_engine_enabled');
}

public function toArray(): array
Expand Down Expand Up @@ -101,9 +101,9 @@ class AssistantsV1ServiceSegmentCredential implements \JsonSerializable
protected $spaceId;
protected $writeKey;
public function __construct(array $payload = []) {
$this->profileApiKey = Values::array_get($payload, 'profileApiKey');
$this->spaceId = Values::array_get($payload, 'spaceId');
$this->writeKey = Values::array_get($payload, 'writeKey');
$this->profileApiKey = Values::array_get($payload, 'profile_api_key');
$this->spaceId = Values::array_get($payload, 'space_id');
$this->writeKey = Values::array_get($payload, 'write_key');
}

public function toArray(): array
Expand Down Expand Up @@ -136,11 +136,11 @@ class AssistantsV1ServiceCreateAssistantRequest implements \JsonSerializable
protected $personalityPrompt;
protected $segmentCredential;
public function __construct(array $payload = []) {
$this->customerAi = Values::array_get($payload, 'customerAi');
$this->customerAi = Values::array_get($payload, 'customer_ai');
$this->name = Values::array_get($payload, 'name');
$this->owner = Values::array_get($payload, 'owner');
$this->personalityPrompt = Values::array_get($payload, 'personalityPrompt');
$this->segmentCredential = Values::array_get($payload, 'segmentCredential');
$this->personalityPrompt = Values::array_get($payload, 'personality_prompt');
$this->segmentCredential = Values::array_get($payload, 'segment_credential');
}

public function toArray(): array
Expand Down Expand Up @@ -175,11 +175,11 @@ class AssistantsV1ServiceUpdateAssistantRequest implements \JsonSerializable
protected $personalityPrompt;
protected $segmentCredential;
public function __construct(array $payload = []) {
$this->customerAi = Values::array_get($payload, 'customerAi');
$this->customerAi = Values::array_get($payload, 'customer_ai');
$this->name = Values::array_get($payload, 'name');
$this->owner = Values::array_get($payload, 'owner');
$this->personalityPrompt = Values::array_get($payload, 'personalityPrompt');
$this->segmentCredential = Values::array_get($payload, 'segmentCredential');
$this->personalityPrompt = Values::array_get($payload, 'personality_prompt');
$this->segmentCredential = Values::array_get($payload, 'segment_credential');
}

public function toArray(): array
Expand Down
8 changes: 4 additions & 4 deletions src/Twilio/Rest/Assistants/V1/KnowledgeModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function __construct(array $payload = []) {
$this->description = Values::array_get($payload, 'description');
$this->id = Values::array_get($payload, 'id');
$this->name = Values::array_get($payload, 'name');
$this->policyDetails = Values::array_get($payload, 'policyDetails');
$this->policyDetails = Values::array_get($payload, 'policy_details');
$this->type = Values::array_get($payload, 'type');
}

Expand Down Expand Up @@ -113,9 +113,9 @@ class AssistantsV1ServiceCreateKnowledgeRequest implements \JsonSerializable
protected $policy;
protected $type;
public function __construct(array $payload = []) {
$this->assistantId = Values::array_get($payload, 'assistantId');
$this->assistantId = Values::array_get($payload, 'assistant_id');
$this->description = Values::array_get($payload, 'description');
$this->knowledgeSourceDetails = Values::array_get($payload, 'knowledgeSourceDetails');
$this->knowledgeSourceDetails = Values::array_get($payload, 'knowledge_source_details');
$this->name = Values::array_get($payload, 'name');
$this->policy = Values::array_get($payload, 'policy');
$this->type = Values::array_get($payload, 'type');
Expand Down Expand Up @@ -155,7 +155,7 @@ class AssistantsV1ServiceUpdateKnowledgeRequest implements \JsonSerializable
protected $type;
public function __construct(array $payload = []) {
$this->description = Values::array_get($payload, 'description');
$this->knowledgeSourceDetails = Values::array_get($payload, 'knowledgeSourceDetails');
$this->knowledgeSourceDetails = Values::array_get($payload, 'knowledge_source_details');
$this->name = Values::array_get($payload, 'name');
$this->policy = Values::array_get($payload, 'policy');
$this->type = Values::array_get($payload, 'type');
Expand Down
6 changes: 3 additions & 3 deletions src/Twilio/Rest/Assistants/V1/ToolModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function __construct(array $payload = []) {
$this->description = Values::array_get($payload, 'description');
$this->id = Values::array_get($payload, 'id');
$this->name = Values::array_get($payload, 'name');
$this->policyDetails = Values::array_get($payload, 'policyDetails');
$this->policyDetails = Values::array_get($payload, 'policy_details');
$this->type = Values::array_get($payload, 'type');
}

Expand Down Expand Up @@ -118,7 +118,7 @@ class AssistantsV1ServiceCreateToolRequest implements \JsonSerializable
protected $policy;
protected $type;
public function __construct(array $payload = []) {
$this->assistantId = Values::array_get($payload, 'assistantId');
$this->assistantId = Values::array_get($payload, 'assistant_id');
$this->description = Values::array_get($payload, 'description');
$this->enabled = Values::array_get($payload, 'enabled');
$this->meta = Values::array_get($payload, 'meta');
Expand Down Expand Up @@ -165,7 +165,7 @@ class AssistantsV1ServiceUpdateToolRequest implements \JsonSerializable
protected $policy;
protected $type;
public function __construct(array $payload = []) {
$this->assistantId = Values::array_get($payload, 'assistantId');
$this->assistantId = Values::array_get($payload, 'assistant_id');
$this->description = Values::array_get($payload, 'description');
$this->enabled = Values::array_get($payload, 'enabled');
$this->meta = Values::array_get($payload, 'meta');
Expand Down
46 changes: 23 additions & 23 deletions src/Twilio/Rest/Content/V1/ContentModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,9 @@ class CatalogItem implements \JsonSerializable
protected $description;
public function __construct(array $payload = []) {
$this->id = Values::array_get($payload, 'id');
$this->sectionTitle = Values::array_get($payload, 'sectionTitle');
$this->sectionTitle = Values::array_get($payload, 'section_title');
$this->name = Values::array_get($payload, 'name');
$this->mediaUrl = Values::array_get($payload, 'mediaUrl');
$this->mediaUrl = Values::array_get($payload, 'media_url');
$this->price = Values::array_get($payload, 'price');
$this->description = Values::array_get($payload, 'description');
}
Expand Down Expand Up @@ -705,7 +705,7 @@ public function __construct(array $payload = []) {
$this->subtitle = Values::array_get($payload, 'subtitle');
$this->id = Values::array_get($payload, 'id');
$this->items = Values::array_get($payload, 'items');
$this->dynamicItems = Values::array_get($payload, 'dynamicItems');
$this->dynamicItems = Values::array_get($payload, 'dynamic_items');
}

public function toArray(): array
Expand Down Expand Up @@ -905,7 +905,7 @@ class FlowsPage implements \JsonSerializable
protected $layout;
public function __construct(array $payload = []) {
$this->id = Values::array_get($payload, 'id');
$this->nextPageId = Values::array_get($payload, 'nextPageId');
$this->nextPageId = Values::array_get($payload, 'next_page_id');
$this->title = Values::array_get($payload, 'title');
$this->subtitle = Values::array_get($payload, 'subtitle');
$this->layout = Values::array_get($payload, 'layout');
Expand Down Expand Up @@ -946,9 +946,9 @@ class TwilioFlows implements \JsonSerializable
protected $type;
public function __construct(array $payload = []) {
$this->body = Values::array_get($payload, 'body');
$this->buttonText = Values::array_get($payload, 'buttonText');
$this->buttonText = Values::array_get($payload, 'button_text');
$this->subtitle = Values::array_get($payload, 'subtitle');
$this->mediaUrl = Values::array_get($payload, 'mediaUrl');
$this->mediaUrl = Values::array_get($payload, 'media_url');
$this->pages = Values::array_get($payload, 'pages');
$this->type = Values::array_get($payload, 'type');
}
Expand Down Expand Up @@ -989,7 +989,7 @@ public function __construct(array $payload = []) {
$this->body = Values::array_get($payload, 'body');
$this->footer = Values::array_get($payload, 'footer');
$this->media = Values::array_get($payload, 'media');
$this->headerText = Values::array_get($payload, 'headerText');
$this->headerText = Values::array_get($payload, 'header_text');
$this->actions = Values::array_get($payload, 'actions');
}

Expand Down Expand Up @@ -1020,7 +1020,7 @@ class AuthenticationAction implements \JsonSerializable
protected $copyCodeText;
public function __construct(array $payload = []) {
$this->type = Values::array_get($payload, 'type');
$this->copyCodeText = Values::array_get($payload, 'copyCodeText');
$this->copyCodeText = Values::array_get($payload, 'copy_code_text');
}

public function toArray(): array
Expand Down Expand Up @@ -1048,8 +1048,8 @@ class WhatsappAuthentication implements \JsonSerializable
protected $codeExpirationMinutes;
protected $actions;
public function __construct(array $payload = []) {
$this->addSecurityRecommendation = Values::array_get($payload, 'addSecurityRecommendation');
$this->codeExpirationMinutes = Values::array_get($payload, 'codeExpirationMinutes');
$this->addSecurityRecommendation = Values::array_get($payload, 'add_security_recommendation');
$this->codeExpirationMinutes = Values::array_get($payload, 'code_expiration_minutes');
$this->actions = Values::array_get($payload, 'actions');
}

Expand Down Expand Up @@ -1097,18 +1097,18 @@ class Types implements \JsonSerializable
protected $whatsappCard;
protected $whatsappAuthentication;
public function __construct(array $payload = []) {
$this->twilioText = Values::array_get($payload, 'twilioText');
$this->twilioMedia = Values::array_get($payload, 'twilioMedia');
$this->twilioLocation = Values::array_get($payload, 'twilioLocation');
$this->twilioListPicker = Values::array_get($payload, 'twilioListPicker');
$this->twilioCallToAction = Values::array_get($payload, 'twilioCallToAction');
$this->twilioQuickReply = Values::array_get($payload, 'twilioQuickReply');
$this->twilioCard = Values::array_get($payload, 'twilioCard');
$this->twilioCatalog = Values::array_get($payload, 'twilioCatalog');
$this->twilioCarousel = Values::array_get($payload, 'twilioCarousel');
$this->twilioFlows = Values::array_get($payload, 'twilioFlows');
$this->whatsappCard = Values::array_get($payload, 'whatsappCard');
$this->whatsappAuthentication = Values::array_get($payload, 'whatsappAuthentication');
$this->twilioText = Values::array_get($payload, 'twilio_text');
$this->twilioMedia = Values::array_get($payload, 'twilio_media');
$this->twilioLocation = Values::array_get($payload, 'twilio_location');
$this->twilioListPicker = Values::array_get($payload, 'twilio_list_picker');
$this->twilioCallToAction = Values::array_get($payload, 'twilio_call_to_action');
$this->twilioQuickReply = Values::array_get($payload, 'twilio_quick_reply');
$this->twilioCard = Values::array_get($payload, 'twilio_card');
$this->twilioCatalog = Values::array_get($payload, 'twilio_catalog');
$this->twilioCarousel = Values::array_get($payload, 'twilio_carousel');
$this->twilioFlows = Values::array_get($payload, 'twilio_flows');
$this->whatsappCard = Values::array_get($payload, 'whatsapp_card');
$this->whatsappAuthentication = Values::array_get($payload, 'whatsapp_authentication');
}

public function toArray(): array
Expand Down Expand Up @@ -1148,7 +1148,7 @@ class ContentCreateRequest implements \JsonSerializable
protected $language;
protected $types;
public function __construct(array $payload = []) {
$this->friendlyName = Values::array_get($payload, 'friendlyName');
$this->friendlyName = Values::array_get($payload, 'friendly_name');
$this->variables = Values::array_get($payload, 'variables');
$this->language = Values::array_get($payload, 'language');
$this->types = Values::array_get($payload, 'types');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ class MarketplaceV1InstalledAddOnInstalledAddOnUsage implements \JsonSerializabl
protected $totalSubmitted;
protected $billableItems;
public function __construct(array $payload = []) {
$this->totalSubmitted = Values::array_get($payload, 'totalSubmitted');
$this->billableItems = Values::array_get($payload, 'billableItems');
$this->totalSubmitted = Values::array_get($payload, 'total_submitted');
$this->billableItems = Values::array_get($payload, 'billable_items');
}

public function toArray(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CreateReferralConversionRequest implements \JsonSerializable
*/
protected $referralAccountSid;
public function __construct(array $payload = []) {
$this->referralAccountSid = Values::array_get($payload, 'referralAccountSid');
$this->referralAccountSid = Values::array_get($payload, 'referral_account_sid');
}

public function toArray(): array
Expand Down

0 comments on commit 7aeeec9

Please sign in to comment.