Skip to content

Commit 9e4b097

Browse files
authored
Java - update to delete allowed status (#697)
<!-- We appreciate the effort for this pull request but before that please make sure you read the contribution guidelines, then fill out the blanks below. Please format the PR title appropriately based on the type of change: <type>[!]: <description> Where <type> is one of: docs, chore, feat, fix, test, misc. Add a '!' after the type for breaking changes (e.g. feat!: new breaking feature). **All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.** Please enter each Issue number you are resolving in your PR after one of the following words [Fixes, Closes, Resolves]. This will auto-link these issues and close them when this PR is merged! e.g. Fixes #1 Closes #2 --> # Fixes # https://twilio-engineering.atlassian.net/browse/DII-2123 A short description of what this PR does. ### Checklist - [x] I acknowledge that all my contributions will be made under the project's license - [ ] Run `make test-docker` - [ ] Verify affected language: - [ ] Generate [twilio-go](https://github.com/twilio/twilio-go) from our [OpenAPI specification](https://github.com/twilio/twilio-oai) using the [build_twilio_go.py](./examples/build_twilio_go.py) using `python examples/build_twilio_go.py path/to/twilio-oai/spec/yaml path/to/twilio-go` and inspect the diff - [ ] Run `make test` in `twilio-go` - [ ] Create a pull request in `twilio-go` - [ ] Provide a link below to the pull request - [ ] I have made a material change to the repo (functionality, testing, spelling, grammar) - [ ] I have read the [Contribution Guidelines](https://github.com/twilio/twilio-oai-generator/blob/main/CONTRIBUTING.md) and my PR follows them - [ ] I have titled the PR appropriately - [ ] I have updated my branch with the main branch - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added the necessary documentation about the functionality in the appropriate .md file - [ ] I have added inline documentation to the code I modified If you have questions, please create a GitHub Issue in this repository.
1 parent c81e1af commit 9e4b097

File tree

101 files changed

+3960
-12003
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+3960
-12003
lines changed

examples/go/go-client/helper/rest/api/v2010/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Class | Method | HTTP request | Description
4949
- [TestResponseObjectTestObject](docs/TestResponseObjectTestObject.md)
5050
- [TestFetchResponseObject](docs/TestFetchResponseObject.md)
5151
- [TestResponseObject](docs/TestResponseObject.md)
52-
- [TestResponseObjectTestArrayOfObjects](docs/TestResponseObjectTestArrayOfObjects.md)
52+
- [TestResponseObjectTestArrayOfObjectsInner](docs/TestResponseObjectTestArrayOfObjectsInner.md)
5353

5454

5555
## Documentation For Authorization

examples/go/go-client/helper/rest/api/v2010/model_test_fetch_response_object.go

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ type TestFetchResponseObject struct {
3535
TestNumberDecimal *float64 `json:"test_number_decimal,omitempty"`
3636
TestEnum *string `json:"test_enum,omitempty"`
3737
// A2P Messaging Profile Bundle BundleSid
38-
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid,omitempty"`
39-
TestArrayOfIntegers []int `json:"test_array_of_integers,omitempty"`
40-
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers,omitempty"`
41-
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjects `json:"test_array_of_objects,omitempty"`
38+
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid,omitempty"`
39+
TestArrayOfIntegers []int `json:"test_array_of_integers,omitempty"`
40+
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers,omitempty"`
41+
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjectsInner `json:"test_array_of_objects,omitempty"`
4242
// Permissions authorized to the app
4343
TestArrayOfEnum *[]string `json:"test_array_of_enum,omitempty"`
4444
// The status of the user
@@ -49,25 +49,25 @@ type TestFetchResponseObject struct {
4949

5050
func (response *TestFetchResponseObject) UnmarshalJSON(bytes []byte) (err error) {
5151
raw := struct {
52-
AccountSid *string `json:"account_sid"`
53-
Sid *string `json:"sid"`
54-
TestString *string `json:"test_string"`
55-
TestInteger *int `json:"test_integer"`
56-
TestObject *TestResponseObjectTestObject `json:"test_object"`
57-
TestDateTime *string `json:"test_date_time"`
58-
TestNumber *interface{} `json:"test_number"`
59-
From *string `json:"from"`
60-
PriceUnit *string `json:"price_unit"`
61-
TestNumberFloat *interface{} `json:"test_number_float"`
62-
TestNumberDecimal *float64 `json:"test_number_decimal"`
63-
TestEnum *string `json:"test_enum"`
64-
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid"`
65-
TestArrayOfIntegers []int `json:"test_array_of_integers"`
66-
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers"`
67-
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjects `json:"test_array_of_objects"`
68-
TestArrayOfEnum *[]string `json:"test_array_of_enum"`
69-
Status string `json:"status"`
70-
Message string `json:"message"`
52+
AccountSid *string `json:"account_sid"`
53+
Sid *string `json:"sid"`
54+
TestString *string `json:"test_string"`
55+
TestInteger *int `json:"test_integer"`
56+
TestObject *TestResponseObjectTestObject `json:"test_object"`
57+
TestDateTime *string `json:"test_date_time"`
58+
TestNumber *interface{} `json:"test_number"`
59+
From *string `json:"from"`
60+
PriceUnit *string `json:"price_unit"`
61+
TestNumberFloat *interface{} `json:"test_number_float"`
62+
TestNumberDecimal *float64 `json:"test_number_decimal"`
63+
TestEnum *string `json:"test_enum"`
64+
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid"`
65+
TestArrayOfIntegers []int `json:"test_array_of_integers"`
66+
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers"`
67+
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjectsInner `json:"test_array_of_objects"`
68+
TestArrayOfEnum *[]string `json:"test_array_of_enum"`
69+
Status string `json:"status"`
70+
Message string `json:"message"`
7171
}{}
7272

7373
if err = json.Unmarshal(bytes, &raw); err != nil {

examples/go/go-client/helper/rest/api/v2010/model_test_response_object.go

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,33 +35,33 @@ type TestResponseObject struct {
3535
TestNumberDecimal *float64 `json:"test_number_decimal,omitempty"`
3636
TestEnum *string `json:"test_enum,omitempty"`
3737
// A2P Messaging Profile Bundle BundleSid
38-
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid,omitempty"`
39-
TestArrayOfIntegers []int `json:"test_array_of_integers,omitempty"`
40-
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers,omitempty"`
41-
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjects `json:"test_array_of_objects,omitempty"`
38+
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid,omitempty"`
39+
TestArrayOfIntegers []int `json:"test_array_of_integers,omitempty"`
40+
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers,omitempty"`
41+
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjectsInner `json:"test_array_of_objects,omitempty"`
4242
// Permissions authorized to the app
4343
TestArrayOfEnum *[]string `json:"test_array_of_enum,omitempty"`
4444
}
4545

4646
func (response *TestResponseObject) UnmarshalJSON(bytes []byte) (err error) {
4747
raw := struct {
48-
AccountSid *string `json:"account_sid"`
49-
Sid *string `json:"sid"`
50-
TestString *string `json:"test_string"`
51-
TestInteger *int `json:"test_integer"`
52-
TestObject *TestResponseObjectTestObject `json:"test_object"`
53-
TestDateTime *string `json:"test_date_time"`
54-
TestNumber *interface{} `json:"test_number"`
55-
From *string `json:"from"`
56-
PriceUnit *string `json:"price_unit"`
57-
TestNumberFloat *interface{} `json:"test_number_float"`
58-
TestNumberDecimal *float64 `json:"test_number_decimal"`
59-
TestEnum *string `json:"test_enum"`
60-
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid"`
61-
TestArrayOfIntegers []int `json:"test_array_of_integers"`
62-
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers"`
63-
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjects `json:"test_array_of_objects"`
64-
TestArrayOfEnum *[]string `json:"test_array_of_enum"`
48+
AccountSid *string `json:"account_sid"`
49+
Sid *string `json:"sid"`
50+
TestString *string `json:"test_string"`
51+
TestInteger *int `json:"test_integer"`
52+
TestObject *TestResponseObjectTestObject `json:"test_object"`
53+
TestDateTime *string `json:"test_date_time"`
54+
TestNumber *interface{} `json:"test_number"`
55+
From *string `json:"from"`
56+
PriceUnit *string `json:"price_unit"`
57+
TestNumberFloat *interface{} `json:"test_number_float"`
58+
TestNumberDecimal *float64 `json:"test_number_decimal"`
59+
TestEnum *string `json:"test_enum"`
60+
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid"`
61+
TestArrayOfIntegers []int `json:"test_array_of_integers"`
62+
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers"`
63+
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjectsInner `json:"test_array_of_objects"`
64+
TestArrayOfEnum *[]string `json:"test_array_of_enum"`
6565
}{}
6666

6767
if err = json.Unmarshal(bytes, &raw); err != nil {

examples/go/go-client/helper/rest/api/v2010/model_test_response_object_test_array_of_objects.go renamed to examples/go/go-client/helper/rest/api/v2010/model_test_response_object_test_array_of_objects_inner.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ import (
2020
"github.com/twilio/twilio-go/client"
2121
)
2222

23-
// TestResponseObjectTestArrayOfObjects struct for TestResponseObjectTestArrayOfObjects
24-
type TestResponseObjectTestArrayOfObjects struct {
23+
// TestResponseObjectTestArrayOfObjectsInner struct for TestResponseObjectTestArrayOfObjectsInner
24+
type TestResponseObjectTestArrayOfObjectsInner struct {
2525
Count float32 `json:"count,omitempty"`
2626
Description string `json:"description,omitempty"`
2727
}
2828

29-
func (response *TestResponseObjectTestArrayOfObjects) UnmarshalJSON(bytes []byte) (err error) {
29+
func (response *TestResponseObjectTestArrayOfObjectsInner) UnmarshalJSON(bytes []byte) (err error) {
3030
raw := struct {
3131
Count interface{} `json:"count"`
3232
Description string `json:"description"`
@@ -36,7 +36,7 @@ func (response *TestResponseObjectTestArrayOfObjects) UnmarshalJSON(bytes []byte
3636
return err
3737
}
3838

39-
*response = TestResponseObjectTestArrayOfObjects{
39+
*response = TestResponseObjectTestArrayOfObjectsInner{
4040
Description: raw.Description,
4141
}
4242

0 commit comments

Comments
 (0)