Skip to content
Merged
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
2 changes: 0 additions & 2 deletions examples/go/go-client/helper/rest/api/v2010/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import (
"encoding/json"
"fmt"
"net/url"
"strings"
"time"

"github.com/twilio/twilio-go/client"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import (
"encoding/json"
"fmt"
"net/url"
"strings"

"github.com/twilio/twilio-go/client"
)

// Optional parameters for the method 'CreateCall'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import (
"encoding/json"
"fmt"
"net/url"
"strings"

"github.com/twilio/twilio-go/client"
)

// Optional parameters for the method 'UpdateCallFeedbackSummary'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

package openapi

import (
"encoding/json"
"github.com/twilio/twilio-go/client"
)

// ListAccountResponse struct for ListAccountResponse
type ListAccountResponse struct {
End int `json:"end,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

package openapi

import (
"encoding/json"
"github.com/twilio/twilio-go/client"
)

// ListHealthCheck struct for ListHealthCheck
type ListHealthCheck struct {
Status []string `json:"status,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package openapi

import (
"encoding/json"

"github.com/twilio/twilio-go/client"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package openapi

import (
"encoding/json"

"github.com/twilio/twilio-go/client"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

package openapi

import (
"encoding/json"
"github.com/twilio/twilio-go/client"
)

// TestResponseObjectTestObject struct for TestResponseObjectTestObject
type TestResponseObjectTestObject struct {
Fax bool `json:"fax,omitempty"`
Expand Down
2 changes: 0 additions & 2 deletions examples/go/go-client/helper/rest/flex/v1/credentials_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import (
"encoding/json"
"fmt"
"net/url"
"strings"
"time"

"github.com/twilio/twilio-go/client"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ package openapi

import (
"encoding/json"
"fmt"
"net/url"
"strings"

"github.com/twilio/twilio-go/client"
)

// Optional parameters for the method 'FetchCredentialHistory'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

package openapi

import (
"encoding/json"
"github.com/twilio/twilio-go/client"
)

// ListCredentialAwsResponse struct for ListCredentialAwsResponse
type ListCredentialAwsResponse struct {
Credentials []TestResponseObject `json:"credentials,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

package openapi

import (
"encoding/json"
"github.com/twilio/twilio-go/client"
)

// ListCredentialAwsResponseMeta struct for ListCredentialAwsResponseMeta
type ListCredentialAwsResponseMeta struct {
FirstPageUrl string `json:"first_page_url,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

package openapi

import (
"encoding/json"
"github.com/twilio/twilio-go/client"
)

// TestResponseObject struct for TestResponseObject
type TestResponseObject struct {
AccountSid *string `json:"account_sid,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

package openapi

import (
"encoding/json"
"github.com/twilio/twilio-go/client"
)

// UpdateCallResponse struct for UpdateCallResponse
type UpdateCallResponse struct {
// Non-string path parameter in the response.
Expand Down
4 changes: 3 additions & 1 deletion examples/go/go-client/helper/rest/flex/v1/voice.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ package openapi

import (
"encoding/json"
"fmt"
"net/url"
"strings"

"github.com/twilio/twilio-go/client"
)

func (c *ApiService) UpdateCall(Sid string) (*UpdateCallResponse, error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@ package openapi

import (
"context"
"fmt"
. "go-client/helper/rest/api/v2010"
"go-client/terraform/client"
"strings"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
. "github.com/twilio/terraform-provider-twilio/core"
. "go-client/helper/rest/api/v2010"
"go-client/terraform/client"
)

func ResourceAccounts() *schema.Resource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@ package openapi

import (
"context"
"fmt"
. "go-client/helper/rest/flex/v1"
"go-client/terraform/client"
"strings"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
. "github.com/twilio/terraform-provider-twilio/core"
. "go-client/helper/rest/flex/v1"
"go-client/terraform/client"
)

func ResourceCredentialsAWS() *schema.Resource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if params != nil && params.PathAccountSid != nil {
{{/vendorExtensions.x-is-account-sid}}
{{/queryParams}}
{{#pathParams}}
path = strings.Replace(path, "{"+"{{paramName}}"+"}", {{^isString}}fmt.Sprint({{/isString}}{{paramName}}{{^isString}}){{/isString}}, -1)
path = strings.Replace(path, "{"+"{{baseName}}"+"}", {{^isString}}fmt.Sprint({{/isString}}{{paramName}}{{^isString}}){{/isString}}, -1)
{{/pathParams}}

data := url.Values{}
Expand Down
Loading