-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Librarian] Regenerated @ bd01257c5bef8696988f5e9f18d803d8ccdb5a0f 0d…
…301f7b8858e2f9dc391bd6803943499955b8f0
- Loading branch information
Showing
19 changed files
with
404 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# FlexV2FlexUser | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**AccountSid** | Pointer to **string** | The unique SID of the account that created the resource. | | ||
**InstanceSid** | Pointer to **string** | The unique ID created by Twilio to identify a Flex instance. | | ||
**UserSid** | Pointer to **string** | The unique SID identifier of the Twilio Unified User. | | ||
**FlexUserSid** | Pointer to **string** | The unique SID identifier of the Flex User. | | ||
**WorkerSid** | Pointer to **string** | The unique SID identifier of the worker. | | ||
**WorkspaceSid** | Pointer to **string** | The unique SID identifier of the workspace. | | ||
**FlexTeamSid** | Pointer to **string** | The unique SID identifier of the Flex Team. | | ||
**FirstName** | Pointer to **string** | First name of the User. | | ||
**LastName** | Pointer to **string** | Last name of the User. | | ||
**Username** | Pointer to **string** | Username of the User. | | ||
**Email** | Pointer to **string** | Email of the User. | | ||
**FriendlyName** | Pointer to **string** | Friendly name of the User. | | ||
**CreatedDate** | Pointer to [**time.Time**](time.Time.md) | The date that this user was created, given in ISO 8601 format. | | ||
**UpdatedDate** | Pointer to [**time.Time**](time.Time.md) | The date that this user was updated, given in ISO 8601 format. | | ||
**Version** | Pointer to **int** | The current version of the user. | | ||
**Url** | Pointer to **string** | | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# InstancesUsersApi | ||
|
||
All URIs are relative to *https://flex-api.twilio.com* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**FetchFlexUser**](InstancesUsersApi.md#FetchFlexUser) | **Get** /v2/Instances/{InstanceSid}/Users/{FlexUserSid} | | ||
|
||
|
||
|
||
## FetchFlexUser | ||
|
||
> FlexV2FlexUser FetchFlexUser(ctx, InstanceSidFlexUserSid) | ||
|
||
|
||
Fetch flex user for the given flex user sid | ||
|
||
### Path Parameters | ||
|
||
|
||
Name | Type | Description | ||
------------- | ------------- | ------------- | ||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. | ||
**InstanceSid** | **string** | The unique ID created by Twilio to identify a Flex instance. | ||
**FlexUserSid** | **string** | The unique id for the flex user to be retrieved. | ||
|
||
### Other Parameters | ||
|
||
Other parameters are passed through a pointer to a FetchFlexUserParams struct | ||
|
||
|
||
Name | Type | Description | ||
------------- | ------------- | ------------- | ||
|
||
### Return type | ||
|
||
[**FlexV2FlexUser**](FlexV2FlexUser.md) | ||
|
||
### Authorization | ||
|
||
[accountSid_authToken](../README.md#accountSid_authToken) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: application/json | ||
|
||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) | ||
[[Back to Model list]](../README.md#documentation-for-models) | ||
[[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* This code was generated by | ||
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | ||
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | ||
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ | ||
* | ||
* Twilio - Flex | ||
* This is the public Twilio REST API. | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator. | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
package openapi | ||
|
||
import ( | ||
"encoding/json" | ||
"net/url" | ||
"strings" | ||
) | ||
|
||
// Fetch flex user for the given flex user sid | ||
func (c *ApiService) FetchFlexUser(InstanceSid string, FlexUserSid string) (*FlexV2FlexUser, error) { | ||
path := "/v2/Instances/{InstanceSid}/Users/{FlexUserSid}" | ||
path = strings.Replace(path, "{"+"InstanceSid"+"}", InstanceSid, -1) | ||
path = strings.Replace(path, "{"+"FlexUserSid"+"}", FlexUserSid, -1) | ||
|
||
data := url.Values{} | ||
headers := make(map[string]interface{}) | ||
|
||
resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
defer resp.Body.Close() | ||
|
||
ps := &FlexV2FlexUser{} | ||
if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { | ||
return nil, err | ||
} | ||
|
||
return ps, err | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* This code was generated by | ||
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | ||
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | ||
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ | ||
* | ||
* Twilio - Flex | ||
* This is the public Twilio REST API. | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator. | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
package openapi | ||
|
||
import ( | ||
"time" | ||
) | ||
|
||
// FlexV2FlexUser struct for FlexV2FlexUser | ||
type FlexV2FlexUser struct { | ||
// The unique SID of the account that created the resource. | ||
AccountSid *string `json:"account_sid,omitempty"` | ||
// The unique ID created by Twilio to identify a Flex instance. | ||
InstanceSid *string `json:"instance_sid,omitempty"` | ||
// The unique SID identifier of the Twilio Unified User. | ||
UserSid *string `json:"user_sid,omitempty"` | ||
// The unique SID identifier of the Flex User. | ||
FlexUserSid *string `json:"flex_user_sid,omitempty"` | ||
// The unique SID identifier of the worker. | ||
WorkerSid *string `json:"worker_sid,omitempty"` | ||
// The unique SID identifier of the workspace. | ||
WorkspaceSid *string `json:"workspace_sid,omitempty"` | ||
// The unique SID identifier of the Flex Team. | ||
FlexTeamSid *string `json:"flex_team_sid,omitempty"` | ||
// First name of the User. | ||
FirstName *string `json:"first_name,omitempty"` | ||
// Last name of the User. | ||
LastName *string `json:"last_name,omitempty"` | ||
// Username of the User. | ||
Username *string `json:"username,omitempty"` | ||
// Email of the User. | ||
Email *string `json:"email,omitempty"` | ||
// Friendly name of the User. | ||
FriendlyName *string `json:"friendly_name,omitempty"` | ||
// The date that this user was created, given in ISO 8601 format. | ||
CreatedDate *time.Time `json:"created_date,omitempty"` | ||
// The date that this user was updated, given in ISO 8601 format. | ||
UpdatedDate *time.Time `json:"updated_date,omitempty"` | ||
// The current version of the user. | ||
Version *int `json:"version,omitempty"` | ||
Url *string `json:"url,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# NumbersV1PortingPortInPhoneNumber | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**PortInRequestSid** | Pointer to **string** | The SID of the Port In request. This is a unique identifier of the port in request. | | ||
**PhoneNumberSid** | Pointer to **string** | The SID of the Port In request phone number. This is a unique identifier of the phone number. | | ||
**Url** | Pointer to **string** | | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
Oops, something went wrong.