-
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 @ d97b0740a0c7cf86beebd56c6973927b07719cde 1f…
…c3bb6195ebcbd02451fb8fc9080c695b075d4f
- Loading branch information
Showing
10 changed files
with
195 additions
and
28 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
51 changes: 51 additions & 0 deletions
51
rest/messaging/v1/docs/LinkShorteningDomainsRequestManagedCertApi.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,51 @@ | ||
# LinkShorteningDomainsRequestManagedCertApi | ||
|
||
All URIs are relative to *https://messaging.twilio.com* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**UpdateRequestManagedCert**](LinkShorteningDomainsRequestManagedCertApi.md#UpdateRequestManagedCert) | **Post** /v1/LinkShortening/Domains/{DomainSid}/RequestManagedCert | | ||
|
||
|
||
|
||
## UpdateRequestManagedCert | ||
|
||
> MessagingV1RequestManagedCert UpdateRequestManagedCert(ctx, DomainSid) | ||
|
||
|
||
|
||
|
||
### Path Parameters | ||
|
||
|
||
Name | Type | Description | ||
------------- | ------------- | ------------- | ||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. | ||
**DomainSid** | **string** | Unique string used to identify the domain that this certificate should be associated with. | ||
|
||
### Other Parameters | ||
|
||
Other parameters are passed through a pointer to a UpdateRequestManagedCertParams struct | ||
|
||
|
||
Name | Type | Description | ||
------------- | ------------- | ------------- | ||
|
||
### Return type | ||
|
||
[**MessagingV1RequestManagedCert**](MessagingV1RequestManagedCert.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# MessagingV1RequestManagedCert | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**DomainSid** | Pointer to **string** | The unique string that we created to identify the Domain resource. | | ||
**DateUpdated** | Pointer to [**time.Time**](time.Time.md) | Date that this Domain was last updated. | | ||
**DateCreated** | Pointer to [**time.Time**](time.Time.md) | Date that this Domain was registered to the Twilio platform to create a new Domain object. | | ||
**DateExpires** | Pointer to [**time.Time**](time.Time.md) | Date that the private certificate associated with this domain expires. This is the expiration date of your existing cert. | | ||
**DomainName** | Pointer to **string** | Full url path for this domain. | | ||
**CertificateSid** | Pointer to **string** | The unique string that we created to identify this Certificate resource. | | ||
**Url** | Pointer to **string** | | | ||
**Managed** | Pointer to **bool** | A boolean flag indicating if the certificate is managed by Twilio. | | ||
**Requesting** | Pointer to **bool** | A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio. | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
46 changes: 46 additions & 0 deletions
46
rest/messaging/v1/link_shortening_domains_request_managed_cert.go
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,46 @@ | ||
/* | ||
* This code was generated by | ||
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | ||
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | ||
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ | ||
* | ||
* Twilio - Messaging | ||
* 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" | ||
) | ||
|
||
// | ||
func (c *ApiService) UpdateRequestManagedCert(DomainSid string) (*MessagingV1RequestManagedCert, error) { | ||
path := "/v1/LinkShortening/Domains/{DomainSid}/RequestManagedCert" | ||
path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) | ||
|
||
data := url.Values{} | ||
headers := map[string]interface{}{ | ||
"Content-Type": "application/x-www-form-urlencoded", | ||
} | ||
|
||
resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
defer resp.Body.Close() | ||
|
||
ps := &MessagingV1RequestManagedCert{} | ||
if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { | ||
return nil, err | ||
} | ||
|
||
return ps, err | ||
} |
40 changes: 40 additions & 0 deletions
40
rest/messaging/v1/model_messaging_v1_request_managed_cert.go
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,40 @@ | ||
/* | ||
* This code was generated by | ||
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | ||
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | ||
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ | ||
* | ||
* Twilio - Messaging | ||
* 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" | ||
) | ||
|
||
// MessagingV1RequestManagedCert struct for MessagingV1RequestManagedCert | ||
type MessagingV1RequestManagedCert struct { | ||
// The unique string that we created to identify the Domain resource. | ||
DomainSid *string `json:"domain_sid,omitempty"` | ||
// Date that this Domain was last updated. | ||
DateUpdated *time.Time `json:"date_updated,omitempty"` | ||
// Date that this Domain was registered to the Twilio platform to create a new Domain object. | ||
DateCreated *time.Time `json:"date_created,omitempty"` | ||
// Date that the private certificate associated with this domain expires. This is the expiration date of your existing cert. | ||
DateExpires *time.Time `json:"date_expires,omitempty"` | ||
// Full url path for this domain. | ||
DomainName *string `json:"domain_name,omitempty"` | ||
// The unique string that we created to identify this Certificate resource. | ||
CertificateSid *string `json:"certificate_sid,omitempty"` | ||
Url *string `json:"url,omitempty"` | ||
// A boolean flag indicating if the certificate is managed by Twilio. | ||
Managed *bool `json:"managed,omitempty"` | ||
// A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio. | ||
Requesting *bool `json:"requesting,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
Oops, something went wrong.