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

chore: go example for paramName to baseName #263

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ require (
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
)

retract (
v1.22.0 // Contains known bug
)
retract v1.22.0 // Contains known bug
1 change: 0 additions & 1 deletion rest/accounts/v1/consents_bulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func (params *CreateBulkConsentsParams) SetItems(Items []interface{}) *CreateBul
return params
}

//
func (c *ApiService) CreateBulkConsents(params *CreateBulkConsentsParams) (*AccountsV1BulkConsents, error) {
path := "/v1/Consents/Bulk"

Expand Down
1 change: 0 additions & 1 deletion rest/accounts/v1/contacts_bulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func (params *CreateBulkContactsParams) SetItems(Items []interface{}) *CreateBul
return params
}

//
func (c *ApiService) CreateBulkContacts(params *CreateBulkContactsParams) (*AccountsV1BulkContacts, error) {
path := "/v1/Contacts/Bulk"

Expand Down
6 changes: 1 addition & 5 deletions rest/api/v2010/accounts_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ func (params *CreateAddressParams) SetStreetSecondary(StreetSecondary string) *C
return params
}

//
func (c *ApiService) CreateAddress(params *CreateAddressParams) (*ApiV2010Address, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -165,7 +164,6 @@ func (params *DeleteAddressParams) SetPathAccountSid(PathAccountSid string) *Del
return params
}

//
func (c *ApiService) DeleteAddress(Sid string, params *DeleteAddressParams) error {
path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -201,7 +199,6 @@ func (params *FetchAddressParams) SetPathAccountSid(PathAccountSid string) *Fetc
return params
}

//
func (c *ApiService) FetchAddress(Sid string, params *FetchAddressParams) (*ApiV2010Address, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -412,7 +409,7 @@ func (c *ApiService) getNextListAddressResponse(nextPageUrl string) (interface{}
type UpdateAddressParams struct {
// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to update.
PathAccountSid *string `json:"PathAccountSid,omitempty"`
// A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
// A descriptive string that you create to describe the address. It can be up to 64 characters long.
FriendlyName *string `json:"FriendlyName,omitempty"`
// The name to associate with the address.
CustomerName *string `json:"CustomerName,omitempty"`
Expand Down Expand Up @@ -473,7 +470,6 @@ func (params *UpdateAddressParams) SetStreetSecondary(StreetSecondary string) *U
return params
}

//
func (c *ApiService) UpdateAddress(Sid string, params *UpdateAddressParams) (*ApiV2010Address, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_available_phone_numbers.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func (params *FetchAvailablePhoneNumberCountryParams) SetPathAccountSid(PathAcco
return params
}

//
func (c *ApiService) FetchAvailablePhoneNumberCountry(CountryCode string, params *FetchAvailablePhoneNumberCountryParams) (*ApiV2010AvailablePhoneNumberCountry, error) {
path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_calls_notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func (params *FetchCallNotificationParams) SetPathAccountSid(PathAccountSid stri
return params
}

//
func (c *ApiService) FetchCallNotification(CallSid string, Sid string, params *FetchCallNotificationParams) (*ApiV2010CallNotificationInstance, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_conferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ func (params *UpdateConferenceParams) SetAnnounceMethod(AnnounceMethod string) *
return params
}

//
func (c *ApiService) UpdateConference(Sid string, params *UpdateConferenceParams) (*ApiV2010Conference, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_conferences_participants.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ func (params *CreateParticipantParams) SetCallToken(CallToken string) *CreatePar
return params
}

//
func (c *ApiService) CreateParticipant(ConferenceSid string, params *CreateParticipantParams) (*ApiV2010Participant, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_incoming_phone_numbers_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ func (params *CreateIncomingPhoneNumberLocalParams) SetBundleSid(BundleSid strin
return params
}

//
func (c *ApiService) CreateIncomingPhoneNumberLocal(params *CreateIncomingPhoneNumberLocalParams) (*ApiV2010IncomingPhoneNumberLocal, error) {
path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_incoming_phone_numbers_mobile.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ func (params *CreateIncomingPhoneNumberMobileParams) SetBundleSid(BundleSid stri
return params
}

//
func (c *ApiService) CreateIncomingPhoneNumberMobile(params *CreateIncomingPhoneNumberMobileParams) (*ApiV2010IncomingPhoneNumberMobile, error) {
path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ func (params *CreateIncomingPhoneNumberTollFreeParams) SetBundleSid(BundleSid st
return params
}

//
func (c *ApiService) CreateIncomingPhoneNumberTollFree(params *CreateIncomingPhoneNumberTollFreeParams) (*ApiV2010IncomingPhoneNumberTollFree, error) {
path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
4 changes: 0 additions & 4 deletions rest/api/v2010/accounts_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func (params *CreateNewKeyParams) SetFriendlyName(FriendlyName string) *CreateNe
return params
}

//
func (c *ApiService) CreateNewKey(params *CreateNewKeyParams) (*ApiV2010NewKey, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Keys.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -84,7 +83,6 @@ func (params *DeleteKeyParams) SetPathAccountSid(PathAccountSid string) *DeleteK
return params
}

//
func (c *ApiService) DeleteKey(Sid string, params *DeleteKeyParams) error {
path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -120,7 +118,6 @@ func (params *FetchKeyParams) SetPathAccountSid(PathAccountSid string) *FetchKey
return params
}

//
func (c *ApiService) FetchKey(Sid string, params *FetchKeyParams) (*ApiV2010Key, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -317,7 +314,6 @@ func (params *UpdateKeyParams) SetFriendlyName(FriendlyName string) *UpdateKeyPa
return params
}

//
func (c *ApiService) UpdateKey(Sid string, params *UpdateKeyParams) (*ApiV2010Key, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_outgoing_caller_ids.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ func (params *CreateValidationRequestParams) SetStatusCallbackMethod(StatusCallb
return params
}

//
func (c *ApiService) CreateValidationRequest(params *CreateValidationRequestParams) (*ApiV2010ValidationRequest, error) {
path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
2 changes: 0 additions & 2 deletions rest/api/v2010/accounts_recordings_transcriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func (params *DeleteRecordingTranscriptionParams) SetPathAccountSid(PathAccountS
return params
}

//
func (c *ApiService) DeleteRecordingTranscription(RecordingSid string, Sid string, params *DeleteRecordingTranscriptionParams) error {
path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -71,7 +70,6 @@ func (params *FetchRecordingTranscriptionParams) SetPathAccountSid(PathAccountSi
return params
}

//
func (c *ApiService) FetchRecordingTranscription(RecordingSid string, Sid string, params *FetchRecordingTranscriptionParams) (*ApiV2010RecordingTranscription, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
3 changes: 0 additions & 3 deletions rest/api/v2010/accounts_signing_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ func (params *DeleteSigningKeyParams) SetPathAccountSid(PathAccountSid string) *
return params
}

//
func (c *ApiService) DeleteSigningKey(Sid string, params *DeleteSigningKeyParams) error {
path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -120,7 +119,6 @@ func (params *FetchSigningKeyParams) SetPathAccountSid(PathAccountSid string) *F
return params
}

//
func (c *ApiService) FetchSigningKey(Sid string, params *FetchSigningKeyParams) (*ApiV2010SigningKey, error) {
path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -317,7 +315,6 @@ func (params *UpdateSigningKeyParams) SetFriendlyName(FriendlyName string) *Upda
return params
}

//
func (c *ApiService) UpdateSigningKey(Sid string, params *UpdateSigningKeyParams) (*ApiV2010SigningKey, error) {
path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_usage_triggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ func (params *DeleteUsageTriggerParams) SetPathAccountSid(PathAccountSid string)
return params
}

//
func (c *ApiService) DeleteUsageTrigger(Sid string, params *DeleteUsageTriggerParams) error {
path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v2010/docs/AccountsAddressesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Other parameters are passed through a pointer to a UpdateAddressParams struct
Name | Type | Description
------------- | ------------- | -------------
**PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to update.
**FriendlyName** | **string** | A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
**FriendlyName** | **string** | A descriptive string that you create to describe the address. It can be up to 64 characters long.
**CustomerName** | **string** | The name to associate with the address.
**Street** | **string** | The number and street address of the address.
**City** | **string** | The city of the address.
Expand Down
6 changes: 3 additions & 3 deletions rest/assistants/v1/assistants.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (c *ApiService) CreateAssistant(params *CreateAssistantParams) (*Assistants
// delete an assistant
func (c *ApiService) DeleteAssistant(Id string) error {
path := "/v1/Assistants/{id}"
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand All @@ -90,7 +90,7 @@ func (c *ApiService) DeleteAssistant(Id string) error {
// get an assistant
func (c *ApiService) FetchAssistant(Id string) (*AssistantsV1AssistantWithToolsAndKnowledge, error) {
path := "/v1/Assistants/{id}"
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down Expand Up @@ -264,7 +264,7 @@ func (params *UpdateAssistantParams) SetAssistantsV1UpdateAssistantRequest(Assis
// update an assistant
func (c *ApiService) UpdateAssistant(Id string, params *UpdateAssistantParams) (*AssistantsV1Assistant, error) {
path := "/v1/Assistants/{id}"
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down
4 changes: 2 additions & 2 deletions rest/assistants/v1/assistants_feedbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (params *CreateFeedbackParams) SetAssistantsV1CreateFeedbackRequest(Assista
// Create feedback
func (c *ApiService) CreateFeedback(Id string, params *CreateFeedbackParams) (*AssistantsV1Feedback, error) {
path := "/v1/Assistants/{id}/Feedbacks"
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down Expand Up @@ -89,7 +89,7 @@ func (params *ListFeedbackParams) SetLimit(Limit int) *ListFeedbackParams {
func (c *ApiService) PageFeedback(Id string, params *ListFeedbackParams, pageToken, pageNumber string) (*ListFeedbacksResponse, error) {
path := "/v1/Assistants/{id}/Feedbacks"

path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down
10 changes: 5 additions & 5 deletions rest/assistants/v1/assistants_knowledge.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
// Attach Knowledge to Assistant
func (c *ApiService) CreateAssistantKnowledgeAttachment(AssistantId string, Id string) error {
path := "/v1/Assistants/{assistantId}/Knowledge/{id}"
path = strings.Replace(path, "{"+"AssistantId"+"}", AssistantId, -1)
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"assistantId"+"}", AssistantId, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand All @@ -47,8 +47,8 @@ func (c *ApiService) CreateAssistantKnowledgeAttachment(AssistantId string, Id s
// Detach Knowledge to Assistant
func (c *ApiService) DeleteAssistantKnowledgeAttachment(AssistantId string, Id string) error {
path := "/v1/Assistants/{assistantId}/Knowledge/{id}"
path = strings.Replace(path, "{"+"AssistantId"+"}", AssistantId, -1)
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"assistantId"+"}", AssistantId, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down Expand Up @@ -86,7 +86,7 @@ func (params *ListKnowledgeByAssistantParams) SetLimit(Limit int) *ListKnowledge
func (c *ApiService) PageKnowledgeByAssistant(AssistantId string, params *ListKnowledgeByAssistantParams, pageToken, pageNumber string) (*ListKnowledgeByAssistantResponse, error) {
path := "/v1/Assistants/{assistantId}/Knowledge"

path = strings.Replace(path, "{"+"AssistantId"+"}", AssistantId, -1)
path = strings.Replace(path, "{"+"assistantId"+"}", AssistantId, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down
2 changes: 1 addition & 1 deletion rest/assistants/v1/assistants_messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (params *CreateMessageParams) SetAssistantsV1AssistantSendMessageRequest(As
// send a message
func (c *ApiService) CreateMessage(Id string, params *CreateMessageParams) (*AssistantsV1AssistantSendMessageResponse, error) {
path := "/v1/Assistants/{id}/Messages"
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down
10 changes: 5 additions & 5 deletions rest/assistants/v1/assistants_tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
// Attach Tool to Assistant
func (c *ApiService) CreateAssistantToolAttachment(AssistantId string, Id string) error {
path := "/v1/Assistants/{assistantId}/Tools/{id}"
path = strings.Replace(path, "{"+"AssistantId"+"}", AssistantId, -1)
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"assistantId"+"}", AssistantId, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand All @@ -47,8 +47,8 @@ func (c *ApiService) CreateAssistantToolAttachment(AssistantId string, Id string
// Detach Tool to Assistant
func (c *ApiService) DeleteAssistantToolAttachment(AssistantId string, Id string) error {
path := "/v1/Assistants/{assistantId}/Tools/{id}"
path = strings.Replace(path, "{"+"AssistantId"+"}", AssistantId, -1)
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"assistantId"+"}", AssistantId, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down Expand Up @@ -86,7 +86,7 @@ func (params *ListToolsByAssistantParams) SetLimit(Limit int) *ListToolsByAssist
func (c *ApiService) PageToolsByAssistant(AssistantId string, params *ListToolsByAssistantParams, pageToken, pageNumber string) (*ListToolsByAssistantResponse, error) {
path := "/v1/Assistants/{assistantId}/Tools"

path = strings.Replace(path, "{"+"AssistantId"+"}", AssistantId, -1)
path = strings.Replace(path, "{"+"assistantId"+"}", AssistantId, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down
6 changes: 3 additions & 3 deletions rest/assistants/v1/knowledge.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (c *ApiService) CreateKnowledge(params *CreateKnowledgeParams) (*Assistants
// Delete knowledge
func (c *ApiService) DeleteKnowledge(Id string) error {
path := "/v1/Knowledge/{id}"
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand All @@ -90,7 +90,7 @@ func (c *ApiService) DeleteKnowledge(Id string) error {
// Get knowledge
func (c *ApiService) FetchKnowledge(Id string) (*AssistantsV1Knowledge, error) {
path := "/v1/Knowledge/{id}"
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down Expand Up @@ -273,7 +273,7 @@ func (params *UpdateKnowledgeParams) SetAssistantsV1UpdateKnowledgeRequest(Assis
// Update knowledge
func (c *ApiService) UpdateKnowledge(Id string, params *UpdateKnowledgeParams) (*AssistantsV1Knowledge, error) {
path := "/v1/Knowledge/{id}"
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down
2 changes: 1 addition & 1 deletion rest/assistants/v1/knowledge_chunks.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (params *ListKnowledgeChunksParams) SetLimit(Limit int) *ListKnowledgeChunk
func (c *ApiService) PageKnowledgeChunks(Id string, params *ListKnowledgeChunksParams, pageToken, pageNumber string) (*ListKnowledgeChunksResponse, error) {
path := "/v1/Knowledge/{id}/Chunks"

path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down
2 changes: 1 addition & 1 deletion rest/assistants/v1/knowledge_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
// Get knowledge status
func (c *ApiService) FetchKnowledgeStatus(Id string) (*AssistantsV1KnowledgeStatus, error) {
path := "/v1/Knowledge/{id}/Status"
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down
2 changes: 1 addition & 1 deletion rest/assistants/v1/sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
// get a session
func (c *ApiService) FetchSession(Id string) (*AssistantsV1Session, error) {
path := "/v1/Sessions/{id}"
path = strings.Replace(path, "{"+"Id"+"}", Id, -1)
path = strings.Replace(path, "{"+"id"+"}", Id, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down
2 changes: 1 addition & 1 deletion rest/assistants/v1/sessions_messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (params *ListMessagesParams) SetLimit(Limit int) *ListMessagesParams {
func (c *ApiService) PageMessages(SessionId string, params *ListMessagesParams, pageToken, pageNumber string) (*ListMessagesResponse, error) {
path := "/v1/Sessions/{sessionId}/Messages"

path = strings.Replace(path, "{"+"SessionId"+"}", SessionId, -1)
path = strings.Replace(path, "{"+"sessionId"+"}", SessionId, -1)

data := url.Values{}
headers := map[string]interface{}{
Expand Down
Loading
Loading