From d2dcbb20fa48a123380b15bfc716ec9d26a71664 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 12 Jul 2023 09:39:30 +0000 Subject: [PATCH] Generated v1.0.0-beta.17 --- CHANGELOG.md | 8 + README.md | 2 +- docs/BillingEstimateLines.md | 54 ++++ ...ne.md => BillingEstimateLinesLineItems.md} | 86 +++---- docs/BillingEstimateResponse.md | 26 +- docs/BillingEstimateResponseAllOf.md | 54 ---- docs/BillingEstimateResponseAllOfLines.md | 54 ---- ...lOf.md => BillingResponseItemItemsData.md} | 22 +- docs/BillingResponseLineItem.md | 8 +- docs/BillingStatus.md | 12 +- ...sponseLineItemAllOf.md => LineItemData.md} | 172 ++++++------- docs/LineItemDataReadOnlyInvoiceId.md | 28 +++ docs/SchemasUserResponse.md | 36 ++- docs/SchemasUserResponseReadOnly.md | 106 ++++++++ docs/User.md | 36 ++- docs/UserResponse.md | 36 ++- ...sponseAllOf.md => UserResponseReadOnly.md} | 38 +-- fastly/configuration.go | 2 +- ..._of.go => model_billing_estimate_lines.go} | 66 ++--- ...odel_billing_estimate_lines_line_items.go} | 124 +++++----- fastly/model_billing_estimate_response.go | 38 +-- .../model_billing_estimate_response_all_of.go | 155 ------------ ..._billing_estimate_response_all_of_lines.go | 155 ------------ .../model_billing_response_item_items_data.go | 155 ++++++++++++ fastly/model_billing_response_line_item.go | 12 +- fastly/model_billing_status.go | 33 ++- ...item_all_of.go => model_line_item_data.go} | 214 ++++++++-------- ...del_line_item_data_read_only_invoice_id.go | 92 +++++++ fastly/model_schemas_user_response.go | 96 +++++--- .../model_schemas_user_response_read_only.go | 230 ++++++++++++++++++ fastly/model_user.go | 96 +++++--- fastly/model_user_response.go | 96 +++++--- ...of.go => model_user_response_read_only.go} | 76 +++--- sig.json | 2 +- 34 files changed, 1438 insertions(+), 982 deletions(-) create mode 100644 docs/BillingEstimateLines.md rename docs/{BillingEstimateResponseAllOfLine.md => BillingEstimateLinesLineItems.md} (62%) delete mode 100644 docs/BillingEstimateResponseAllOf.md delete mode 100644 docs/BillingEstimateResponseAllOfLines.md rename docs/{BillingResponseAllOf.md => BillingResponseItemItemsData.md} (58%) rename docs/{BillingResponseLineItemAllOf.md => LineItemData.md} (63%) create mode 100644 docs/LineItemDataReadOnlyInvoiceId.md create mode 100644 docs/SchemasUserResponseReadOnly.md rename docs/{UserResponseAllOf.md => UserResponseReadOnly.md} (65%) rename fastly/{model_billing_response_all_of.go => model_billing_estimate_lines.go} (60%) rename fastly/{model_billing_estimate_response_all_of_line.go => model_billing_estimate_lines_line_items.go} (68%) delete mode 100644 fastly/model_billing_estimate_response_all_of.go delete mode 100644 fastly/model_billing_estimate_response_all_of_lines.go create mode 100644 fastly/model_billing_response_item_items_data.go rename fastly/{model_billing_response_line_item_all_of.go => model_line_item_data.go} (71%) create mode 100644 fastly/model_line_item_data_read_only_invoice_id.go create mode 100644 fastly/model_schemas_user_response_read_only.go rename fastly/{model_user_response_all_of.go => model_user_response_read_only.go} (68%) diff --git a/CHANGELOG.md b/CHANGELOG.md index c98292d8..a27cc456 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [v1.0.0-beta.17](https://github.com/fastly/fastly-go/releases/tag/v1.0.0-beta.17) (2023-07-12) + +**Bug fixes:** + +- fix(billing): rename response field 'lines' to 'line_items'. +- fix(billing): restructure response models like 'aria_invoice_id'. +- fix(billing): make 'sent_at', 'locked', 'require_new_password', 'two_factor_auth_enabled' nullable. + ## [v1.0.0-beta.16](https://github.com/fastly/fastly-go/releases/tag/v1.0.0-beta.16) (2023-07-06) Substantial changes were made to the underlying OpenAPI specification that produces this API client. These changes have resulted in multiple new endpoints being supported as well as multiple breaking type changes and so we're publishing these changes as a new major release. diff --git a/README.md b/README.md index ba822ce6..dd73d8db 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Add the following to your project's `go.mod`: ```go.mod require ( - github.com/fastly/fastly-go v1.0.0-beta.16 + github.com/fastly/fastly-go v1.0.0-beta.17 ) ``` diff --git a/docs/BillingEstimateLines.md b/docs/BillingEstimateLines.md new file mode 100644 index 00000000..b2b623a6 --- /dev/null +++ b/docs/BillingEstimateLines.md @@ -0,0 +1,54 @@ +# BillingEstimateLines + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LineItems** | Pointer to [**[]BillingEstimateLinesLineItems**](BillingEstimateLinesLineItems.md) | | [optional] + +## Methods + +### NewBillingEstimateLines + +`func NewBillingEstimateLines() *BillingEstimateLines` + +NewBillingEstimateLines instantiates a new BillingEstimateLines object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBillingEstimateLinesWithDefaults + +`func NewBillingEstimateLinesWithDefaults() *BillingEstimateLines` + +NewBillingEstimateLinesWithDefaults instantiates a new BillingEstimateLines object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLineItems + +`func (o *BillingEstimateLines) GetLineItems() []BillingEstimateLinesLineItems` + +GetLineItems returns the LineItems field if non-nil, zero value otherwise. + +### GetLineItemsOk + +`func (o *BillingEstimateLines) GetLineItemsOk() (*[]BillingEstimateLinesLineItems, bool)` + +GetLineItemsOk returns a tuple with the LineItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLineItems + +`func (o *BillingEstimateLines) SetLineItems(v []BillingEstimateLinesLineItems)` + +SetLineItems sets LineItems field to given value. + +### HasLineItems + +`func (o *BillingEstimateLines) HasLineItems() bool` + +HasLineItems returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/BillingEstimateResponseAllOfLine.md b/docs/BillingEstimateLinesLineItems.md similarity index 62% rename from docs/BillingEstimateResponseAllOfLine.md rename to docs/BillingEstimateLinesLineItems.md index cfe20d28..06624b6f 100644 --- a/docs/BillingEstimateResponseAllOfLine.md +++ b/docs/BillingEstimateLinesLineItems.md @@ -1,4 +1,4 @@ -# BillingEstimateResponseAllOfLine +# BillingEstimateLinesLineItems ## Properties @@ -16,245 +16,245 @@ Name | Type | Description | Notes ## Methods -### NewBillingEstimateResponseAllOfLine +### NewBillingEstimateLinesLineItems -`func NewBillingEstimateResponseAllOfLine() *BillingEstimateResponseAllOfLine` +`func NewBillingEstimateLinesLineItems() *BillingEstimateLinesLineItems` -NewBillingEstimateResponseAllOfLine instantiates a new BillingEstimateResponseAllOfLine object +NewBillingEstimateLinesLineItems instantiates a new BillingEstimateLinesLineItems object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewBillingEstimateResponseAllOfLineWithDefaults +### NewBillingEstimateLinesLineItemsWithDefaults -`func NewBillingEstimateResponseAllOfLineWithDefaults() *BillingEstimateResponseAllOfLine` +`func NewBillingEstimateLinesLineItemsWithDefaults() *BillingEstimateLinesLineItems` -NewBillingEstimateResponseAllOfLineWithDefaults instantiates a new BillingEstimateResponseAllOfLine object +NewBillingEstimateLinesLineItemsWithDefaults instantiates a new BillingEstimateLinesLineItems object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetPlanNo -`func (o *BillingEstimateResponseAllOfLine) GetPlanNo() int32` +`func (o *BillingEstimateLinesLineItems) GetPlanNo() int32` GetPlanNo returns the PlanNo field if non-nil, zero value otherwise. ### GetPlanNoOk -`func (o *BillingEstimateResponseAllOfLine) GetPlanNoOk() (*int32, bool)` +`func (o *BillingEstimateLinesLineItems) GetPlanNoOk() (*int32, bool)` GetPlanNoOk returns a tuple with the PlanNo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlanNo -`func (o *BillingEstimateResponseAllOfLine) SetPlanNo(v int32)` +`func (o *BillingEstimateLinesLineItems) SetPlanNo(v int32)` SetPlanNo sets PlanNo field to given value. ### HasPlanNo -`func (o *BillingEstimateResponseAllOfLine) HasPlanNo() bool` +`func (o *BillingEstimateLinesLineItems) HasPlanNo() bool` HasPlanNo returns a boolean if a field has been set. ### GetDescription -`func (o *BillingEstimateResponseAllOfLine) GetDescription() string` +`func (o *BillingEstimateLinesLineItems) GetDescription() string` GetDescription returns the Description field if non-nil, zero value otherwise. ### GetDescriptionOk -`func (o *BillingEstimateResponseAllOfLine) GetDescriptionOk() (*string, bool)` +`func (o *BillingEstimateLinesLineItems) GetDescriptionOk() (*string, bool)` GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDescription -`func (o *BillingEstimateResponseAllOfLine) SetDescription(v string)` +`func (o *BillingEstimateLinesLineItems) SetDescription(v string)` SetDescription sets Description field to given value. ### HasDescription -`func (o *BillingEstimateResponseAllOfLine) HasDescription() bool` +`func (o *BillingEstimateLinesLineItems) HasDescription() bool` HasDescription returns a boolean if a field has been set. ### GetUnits -`func (o *BillingEstimateResponseAllOfLine) GetUnits() float32` +`func (o *BillingEstimateLinesLineItems) GetUnits() float32` GetUnits returns the Units field if non-nil, zero value otherwise. ### GetUnitsOk -`func (o *BillingEstimateResponseAllOfLine) GetUnitsOk() (*float32, bool)` +`func (o *BillingEstimateLinesLineItems) GetUnitsOk() (*float32, bool)` GetUnitsOk returns a tuple with the Units field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUnits -`func (o *BillingEstimateResponseAllOfLine) SetUnits(v float32)` +`func (o *BillingEstimateLinesLineItems) SetUnits(v float32)` SetUnits sets Units field to given value. ### HasUnits -`func (o *BillingEstimateResponseAllOfLine) HasUnits() bool` +`func (o *BillingEstimateLinesLineItems) HasUnits() bool` HasUnits returns a boolean if a field has been set. ### GetPerUnitCost -`func (o *BillingEstimateResponseAllOfLine) GetPerUnitCost() float32` +`func (o *BillingEstimateLinesLineItems) GetPerUnitCost() float32` GetPerUnitCost returns the PerUnitCost field if non-nil, zero value otherwise. ### GetPerUnitCostOk -`func (o *BillingEstimateResponseAllOfLine) GetPerUnitCostOk() (*float32, bool)` +`func (o *BillingEstimateLinesLineItems) GetPerUnitCostOk() (*float32, bool)` GetPerUnitCostOk returns a tuple with the PerUnitCost field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPerUnitCost -`func (o *BillingEstimateResponseAllOfLine) SetPerUnitCost(v float32)` +`func (o *BillingEstimateLinesLineItems) SetPerUnitCost(v float32)` SetPerUnitCost sets PerUnitCost field to given value. ### HasPerUnitCost -`func (o *BillingEstimateResponseAllOfLine) HasPerUnitCost() bool` +`func (o *BillingEstimateLinesLineItems) HasPerUnitCost() bool` HasPerUnitCost returns a boolean if a field has been set. ### GetServiceNo -`func (o *BillingEstimateResponseAllOfLine) GetServiceNo() float32` +`func (o *BillingEstimateLinesLineItems) GetServiceNo() float32` GetServiceNo returns the ServiceNo field if non-nil, zero value otherwise. ### GetServiceNoOk -`func (o *BillingEstimateResponseAllOfLine) GetServiceNoOk() (*float32, bool)` +`func (o *BillingEstimateLinesLineItems) GetServiceNoOk() (*float32, bool)` GetServiceNoOk returns a tuple with the ServiceNo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetServiceNo -`func (o *BillingEstimateResponseAllOfLine) SetServiceNo(v float32)` +`func (o *BillingEstimateLinesLineItems) SetServiceNo(v float32)` SetServiceNo sets ServiceNo field to given value. ### HasServiceNo -`func (o *BillingEstimateResponseAllOfLine) HasServiceNo() bool` +`func (o *BillingEstimateLinesLineItems) HasServiceNo() bool` HasServiceNo returns a boolean if a field has been set. ### GetServiceType -`func (o *BillingEstimateResponseAllOfLine) GetServiceType() string` +`func (o *BillingEstimateLinesLineItems) GetServiceType() string` GetServiceType returns the ServiceType field if non-nil, zero value otherwise. ### GetServiceTypeOk -`func (o *BillingEstimateResponseAllOfLine) GetServiceTypeOk() (*string, bool)` +`func (o *BillingEstimateLinesLineItems) GetServiceTypeOk() (*string, bool)` GetServiceTypeOk returns a tuple with the ServiceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetServiceType -`func (o *BillingEstimateResponseAllOfLine) SetServiceType(v string)` +`func (o *BillingEstimateLinesLineItems) SetServiceType(v string)` SetServiceType sets ServiceType field to given value. ### HasServiceType -`func (o *BillingEstimateResponseAllOfLine) HasServiceType() bool` +`func (o *BillingEstimateLinesLineItems) HasServiceType() bool` HasServiceType returns a boolean if a field has been set. ### GetAmount -`func (o *BillingEstimateResponseAllOfLine) GetAmount() float32` +`func (o *BillingEstimateLinesLineItems) GetAmount() float32` GetAmount returns the Amount field if non-nil, zero value otherwise. ### GetAmountOk -`func (o *BillingEstimateResponseAllOfLine) GetAmountOk() (*float32, bool)` +`func (o *BillingEstimateLinesLineItems) GetAmountOk() (*float32, bool)` GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAmount -`func (o *BillingEstimateResponseAllOfLine) SetAmount(v float32)` +`func (o *BillingEstimateLinesLineItems) SetAmount(v float32)` SetAmount sets Amount field to given value. ### HasAmount -`func (o *BillingEstimateResponseAllOfLine) HasAmount() bool` +`func (o *BillingEstimateLinesLineItems) HasAmount() bool` HasAmount returns a boolean if a field has been set. ### GetClientServiceID -`func (o *BillingEstimateResponseAllOfLine) GetClientServiceID() string` +`func (o *BillingEstimateLinesLineItems) GetClientServiceID() string` GetClientServiceID returns the ClientServiceID field if non-nil, zero value otherwise. ### GetClientServiceIDOk -`func (o *BillingEstimateResponseAllOfLine) GetClientServiceIDOk() (*string, bool)` +`func (o *BillingEstimateLinesLineItems) GetClientServiceIDOk() (*string, bool)` GetClientServiceIDOk returns a tuple with the ClientServiceID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetClientServiceID -`func (o *BillingEstimateResponseAllOfLine) SetClientServiceID(v string)` +`func (o *BillingEstimateLinesLineItems) SetClientServiceID(v string)` SetClientServiceID sets ClientServiceID field to given value. ### HasClientServiceID -`func (o *BillingEstimateResponseAllOfLine) HasClientServiceID() bool` +`func (o *BillingEstimateLinesLineItems) HasClientServiceID() bool` HasClientServiceID returns a boolean if a field has been set. ### GetClientPlanID -`func (o *BillingEstimateResponseAllOfLine) GetClientPlanID() string` +`func (o *BillingEstimateLinesLineItems) GetClientPlanID() string` GetClientPlanID returns the ClientPlanID field if non-nil, zero value otherwise. ### GetClientPlanIDOk -`func (o *BillingEstimateResponseAllOfLine) GetClientPlanIDOk() (*string, bool)` +`func (o *BillingEstimateLinesLineItems) GetClientPlanIDOk() (*string, bool)` GetClientPlanIDOk returns a tuple with the ClientPlanID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetClientPlanID -`func (o *BillingEstimateResponseAllOfLine) SetClientPlanID(v string)` +`func (o *BillingEstimateLinesLineItems) SetClientPlanID(v string)` SetClientPlanID sets ClientPlanID field to given value. ### HasClientPlanID -`func (o *BillingEstimateResponseAllOfLine) HasClientPlanID() bool` +`func (o *BillingEstimateLinesLineItems) HasClientPlanID() bool` HasClientPlanID returns a boolean if a field has been set. diff --git a/docs/BillingEstimateResponse.md b/docs/BillingEstimateResponse.md index e09df9b9..a093d12f 100644 --- a/docs/BillingEstimateResponse.md +++ b/docs/BillingEstimateResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **Status** | Pointer to [**BillingStatus**](BillingStatus.md) | | [optional] **Total** | Pointer to [**BillingTotal**](BillingTotal.md) | | [optional] **Regions** | Pointer to **map[string]map[string]map[string]any** | Breakdown of regional data for products that are region based. | [optional] -**Lines** | Pointer to [**[]BillingEstimateResponseAllOfLines**](BillingEstimateResponseAllOfLines.md) | | [optional] +**LineItems** | Pointer to [**[]BillingEstimateLinesLineItems**](BillingEstimateLinesLineItems.md) | | [optional] ## Methods @@ -253,30 +253,30 @@ SetRegions sets Regions field to given value. HasRegions returns a boolean if a field has been set. -### GetLines +### GetLineItems -`func (o *BillingEstimateResponse) GetLines() []BillingEstimateResponseAllOfLines` +`func (o *BillingEstimateResponse) GetLineItems() []BillingEstimateLinesLineItems` -GetLines returns the Lines field if non-nil, zero value otherwise. +GetLineItems returns the LineItems field if non-nil, zero value otherwise. -### GetLinesOk +### GetLineItemsOk -`func (o *BillingEstimateResponse) GetLinesOk() (*[]BillingEstimateResponseAllOfLines, bool)` +`func (o *BillingEstimateResponse) GetLineItemsOk() (*[]BillingEstimateLinesLineItems, bool)` -GetLinesOk returns a tuple with the Lines field if it's non-nil, zero value otherwise +GetLineItemsOk returns a tuple with the LineItems field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetLines +### SetLineItems -`func (o *BillingEstimateResponse) SetLines(v []BillingEstimateResponseAllOfLines)` +`func (o *BillingEstimateResponse) SetLineItems(v []BillingEstimateLinesLineItems)` -SetLines sets Lines field to given value. +SetLineItems sets LineItems field to given value. -### HasLines +### HasLineItems -`func (o *BillingEstimateResponse) HasLines() bool` +`func (o *BillingEstimateResponse) HasLineItems() bool` -HasLines returns a boolean if a field has been set. +HasLineItems returns a boolean if a field has been set. [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/BillingEstimateResponseAllOf.md b/docs/BillingEstimateResponseAllOf.md deleted file mode 100644 index 1301d824..00000000 --- a/docs/BillingEstimateResponseAllOf.md +++ /dev/null @@ -1,54 +0,0 @@ -# BillingEstimateResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Lines** | Pointer to [**[]BillingEstimateResponseAllOfLines**](BillingEstimateResponseAllOfLines.md) | | [optional] - -## Methods - -### NewBillingEstimateResponseAllOf - -`func NewBillingEstimateResponseAllOf() *BillingEstimateResponseAllOf` - -NewBillingEstimateResponseAllOf instantiates a new BillingEstimateResponseAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewBillingEstimateResponseAllOfWithDefaults - -`func NewBillingEstimateResponseAllOfWithDefaults() *BillingEstimateResponseAllOf` - -NewBillingEstimateResponseAllOfWithDefaults instantiates a new BillingEstimateResponseAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLines - -`func (o *BillingEstimateResponseAllOf) GetLines() []BillingEstimateResponseAllOfLines` - -GetLines returns the Lines field if non-nil, zero value otherwise. - -### GetLinesOk - -`func (o *BillingEstimateResponseAllOf) GetLinesOk() (*[]BillingEstimateResponseAllOfLines, bool)` - -GetLinesOk returns a tuple with the Lines field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLines - -`func (o *BillingEstimateResponseAllOf) SetLines(v []BillingEstimateResponseAllOfLines)` - -SetLines sets Lines field to given value. - -### HasLines - -`func (o *BillingEstimateResponseAllOf) HasLines() bool` - -HasLines returns a boolean if a field has been set. - - -[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/BillingEstimateResponseAllOfLines.md b/docs/BillingEstimateResponseAllOfLines.md deleted file mode 100644 index ad568849..00000000 --- a/docs/BillingEstimateResponseAllOfLines.md +++ /dev/null @@ -1,54 +0,0 @@ -# BillingEstimateResponseAllOfLines - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Line** | Pointer to [**BillingEstimateResponseAllOfLine**](BillingEstimateResponseAllOfLine.md) | | [optional] - -## Methods - -### NewBillingEstimateResponseAllOfLines - -`func NewBillingEstimateResponseAllOfLines() *BillingEstimateResponseAllOfLines` - -NewBillingEstimateResponseAllOfLines instantiates a new BillingEstimateResponseAllOfLines object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewBillingEstimateResponseAllOfLinesWithDefaults - -`func NewBillingEstimateResponseAllOfLinesWithDefaults() *BillingEstimateResponseAllOfLines` - -NewBillingEstimateResponseAllOfLinesWithDefaults instantiates a new BillingEstimateResponseAllOfLines object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLine - -`func (o *BillingEstimateResponseAllOfLines) GetLine() BillingEstimateResponseAllOfLine` - -GetLine returns the Line field if non-nil, zero value otherwise. - -### GetLineOk - -`func (o *BillingEstimateResponseAllOfLines) GetLineOk() (*BillingEstimateResponseAllOfLine, bool)` - -GetLineOk returns a tuple with the Line field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLine - -`func (o *BillingEstimateResponseAllOfLines) SetLine(v BillingEstimateResponseAllOfLine)` - -SetLine sets Line field to given value. - -### HasLine - -`func (o *BillingEstimateResponseAllOfLines) HasLine() bool` - -HasLine returns a boolean if a field has been set. - - -[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/BillingResponseAllOf.md b/docs/BillingResponseItemItemsData.md similarity index 58% rename from docs/BillingResponseAllOf.md rename to docs/BillingResponseItemItemsData.md index 535d3f10..6baac74a 100644 --- a/docs/BillingResponseAllOf.md +++ b/docs/BillingResponseItemItemsData.md @@ -1,4 +1,4 @@ -# BillingResponseAllOf +# BillingResponseItemItemsData ## Properties @@ -8,45 +8,45 @@ Name | Type | Description | Notes ## Methods -### NewBillingResponseAllOf +### NewBillingResponseItemItemsData -`func NewBillingResponseAllOf() *BillingResponseAllOf` +`func NewBillingResponseItemItemsData() *BillingResponseItemItemsData` -NewBillingResponseAllOf instantiates a new BillingResponseAllOf object +NewBillingResponseItemItemsData instantiates a new BillingResponseItemItemsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewBillingResponseAllOfWithDefaults +### NewBillingResponseItemItemsDataWithDefaults -`func NewBillingResponseAllOfWithDefaults() *BillingResponseAllOf` +`func NewBillingResponseItemItemsDataWithDefaults() *BillingResponseItemItemsData` -NewBillingResponseAllOfWithDefaults instantiates a new BillingResponseAllOf object +NewBillingResponseItemItemsDataWithDefaults instantiates a new BillingResponseItemItemsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetLineItems -`func (o *BillingResponseAllOf) GetLineItems() []BillingResponseLineItem` +`func (o *BillingResponseItemItemsData) GetLineItems() []BillingResponseLineItem` GetLineItems returns the LineItems field if non-nil, zero value otherwise. ### GetLineItemsOk -`func (o *BillingResponseAllOf) GetLineItemsOk() (*[]BillingResponseLineItem, bool)` +`func (o *BillingResponseItemItemsData) GetLineItemsOk() (*[]BillingResponseLineItem, bool)` GetLineItemsOk returns a tuple with the LineItems field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLineItems -`func (o *BillingResponseAllOf) SetLineItems(v []BillingResponseLineItem)` +`func (o *BillingResponseItemItemsData) SetLineItems(v []BillingResponseLineItem)` SetLineItems sets LineItems field to given value. ### HasLineItems -`func (o *BillingResponseAllOf) HasLineItems() bool` +`func (o *BillingResponseItemItemsData) HasLineItems() bool` HasLineItems returns a boolean if a field has been set. diff --git a/docs/BillingResponseLineItem.md b/docs/BillingResponseLineItem.md index 824db77b..54fb4dab 100644 --- a/docs/BillingResponseLineItem.md +++ b/docs/BillingResponseLineItem.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **DeletedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] **UpdatedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] **Amount** | Pointer to **float32** | | [optional] -**AriaInvoiceID** | Pointer to **string** | | [optional] [readonly] +**AriaInvoiceID** | Pointer to [**LineItemDataReadOnlyInvoiceID**](LineItemDataReadOnlyInvoiceID.md) | | [optional] **ClientServiceID** | Pointer to **string** | | [optional] **CreditCouponCode** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -176,20 +176,20 @@ HasAmount returns a boolean if a field has been set. ### GetAriaInvoiceID -`func (o *BillingResponseLineItem) GetAriaInvoiceID() string` +`func (o *BillingResponseLineItem) GetAriaInvoiceID() LineItemDataReadOnlyInvoiceID` GetAriaInvoiceID returns the AriaInvoiceID field if non-nil, zero value otherwise. ### GetAriaInvoiceIDOk -`func (o *BillingResponseLineItem) GetAriaInvoiceIDOk() (*string, bool)` +`func (o *BillingResponseLineItem) GetAriaInvoiceIDOk() (*LineItemDataReadOnlyInvoiceID, bool)` GetAriaInvoiceIDOk returns a tuple with the AriaInvoiceID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAriaInvoiceID -`func (o *BillingResponseLineItem) SetAriaInvoiceID(v string)` +`func (o *BillingResponseLineItem) SetAriaInvoiceID(v LineItemDataReadOnlyInvoiceID)` SetAriaInvoiceID sets AriaInvoiceID field to given value. diff --git a/docs/BillingStatus.md b/docs/BillingStatus.md index 4038cf85..b8a1ecf9 100644 --- a/docs/BillingStatus.md +++ b/docs/BillingStatus.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Status** | Pointer to **string** | What the current status of this invoice can be. | [optional] -**SentAt** | Pointer to [**time.Time**](time.Time.md) | | [optional] +**SentAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] ## Methods @@ -76,5 +76,15 @@ SetSentAt sets SentAt field to given value. HasSentAt returns a boolean if a field has been set. +### SetSentAtNil + +`func (o *BillingStatus) SetSentAtNil(b bool)` + + SetSentAtNil sets the value for SentAt to be an explicit nil + +### UnsetSentAt +`func (o *BillingStatus) UnsetSentAt()` + +UnsetSentAt ensures that no value is present for SentAt, not even an explicit nil [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/BillingResponseLineItemAllOf.md b/docs/LineItemData.md similarity index 63% rename from docs/BillingResponseLineItemAllOf.md rename to docs/LineItemData.md index 0b8ae1ac..c31b930d 100644 --- a/docs/BillingResponseLineItemAllOf.md +++ b/docs/LineItemData.md @@ -1,11 +1,11 @@ -# BillingResponseLineItemAllOf +# LineItemData ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Amount** | Pointer to **float32** | | [optional] -**AriaInvoiceID** | Pointer to **string** | | [optional] [readonly] +**AriaInvoiceID** | Pointer to [**LineItemDataReadOnlyInvoiceID**](LineItemDataReadOnlyInvoiceID.md) | | [optional] **ClientServiceID** | Pointer to **string** | | [optional] **CreditCouponCode** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -24,496 +24,496 @@ Name | Type | Description | Notes ## Methods -### NewBillingResponseLineItemAllOf +### NewLineItemData -`func NewBillingResponseLineItemAllOf() *BillingResponseLineItemAllOf` +`func NewLineItemData() *LineItemData` -NewBillingResponseLineItemAllOf instantiates a new BillingResponseLineItemAllOf object +NewLineItemData instantiates a new LineItemData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewBillingResponseLineItemAllOfWithDefaults +### NewLineItemDataWithDefaults -`func NewBillingResponseLineItemAllOfWithDefaults() *BillingResponseLineItemAllOf` +`func NewLineItemDataWithDefaults() *LineItemData` -NewBillingResponseLineItemAllOfWithDefaults instantiates a new BillingResponseLineItemAllOf object +NewLineItemDataWithDefaults instantiates a new LineItemData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetAmount -`func (o *BillingResponseLineItemAllOf) GetAmount() float32` +`func (o *LineItemData) GetAmount() float32` GetAmount returns the Amount field if non-nil, zero value otherwise. ### GetAmountOk -`func (o *BillingResponseLineItemAllOf) GetAmountOk() (*float32, bool)` +`func (o *LineItemData) GetAmountOk() (*float32, bool)` GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAmount -`func (o *BillingResponseLineItemAllOf) SetAmount(v float32)` +`func (o *LineItemData) SetAmount(v float32)` SetAmount sets Amount field to given value. ### HasAmount -`func (o *BillingResponseLineItemAllOf) HasAmount() bool` +`func (o *LineItemData) HasAmount() bool` HasAmount returns a boolean if a field has been set. ### GetAriaInvoiceID -`func (o *BillingResponseLineItemAllOf) GetAriaInvoiceID() string` +`func (o *LineItemData) GetAriaInvoiceID() LineItemDataReadOnlyInvoiceID` GetAriaInvoiceID returns the AriaInvoiceID field if non-nil, zero value otherwise. ### GetAriaInvoiceIDOk -`func (o *BillingResponseLineItemAllOf) GetAriaInvoiceIDOk() (*string, bool)` +`func (o *LineItemData) GetAriaInvoiceIDOk() (*LineItemDataReadOnlyInvoiceID, bool)` GetAriaInvoiceIDOk returns a tuple with the AriaInvoiceID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAriaInvoiceID -`func (o *BillingResponseLineItemAllOf) SetAriaInvoiceID(v string)` +`func (o *LineItemData) SetAriaInvoiceID(v LineItemDataReadOnlyInvoiceID)` SetAriaInvoiceID sets AriaInvoiceID field to given value. ### HasAriaInvoiceID -`func (o *BillingResponseLineItemAllOf) HasAriaInvoiceID() bool` +`func (o *LineItemData) HasAriaInvoiceID() bool` HasAriaInvoiceID returns a boolean if a field has been set. ### GetClientServiceID -`func (o *BillingResponseLineItemAllOf) GetClientServiceID() string` +`func (o *LineItemData) GetClientServiceID() string` GetClientServiceID returns the ClientServiceID field if non-nil, zero value otherwise. ### GetClientServiceIDOk -`func (o *BillingResponseLineItemAllOf) GetClientServiceIDOk() (*string, bool)` +`func (o *LineItemData) GetClientServiceIDOk() (*string, bool)` GetClientServiceIDOk returns a tuple with the ClientServiceID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetClientServiceID -`func (o *BillingResponseLineItemAllOf) SetClientServiceID(v string)` +`func (o *LineItemData) SetClientServiceID(v string)` SetClientServiceID sets ClientServiceID field to given value. ### HasClientServiceID -`func (o *BillingResponseLineItemAllOf) HasClientServiceID() bool` +`func (o *LineItemData) HasClientServiceID() bool` HasClientServiceID returns a boolean if a field has been set. ### GetCreditCouponCode -`func (o *BillingResponseLineItemAllOf) GetCreditCouponCode() string` +`func (o *LineItemData) GetCreditCouponCode() string` GetCreditCouponCode returns the CreditCouponCode field if non-nil, zero value otherwise. ### GetCreditCouponCodeOk -`func (o *BillingResponseLineItemAllOf) GetCreditCouponCodeOk() (*string, bool)` +`func (o *LineItemData) GetCreditCouponCodeOk() (*string, bool)` GetCreditCouponCodeOk returns a tuple with the CreditCouponCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreditCouponCode -`func (o *BillingResponseLineItemAllOf) SetCreditCouponCode(v string)` +`func (o *LineItemData) SetCreditCouponCode(v string)` SetCreditCouponCode sets CreditCouponCode field to given value. ### HasCreditCouponCode -`func (o *BillingResponseLineItemAllOf) HasCreditCouponCode() bool` +`func (o *LineItemData) HasCreditCouponCode() bool` HasCreditCouponCode returns a boolean if a field has been set. ### SetCreditCouponCodeNil -`func (o *BillingResponseLineItemAllOf) SetCreditCouponCodeNil(b bool)` +`func (o *LineItemData) SetCreditCouponCodeNil(b bool)` SetCreditCouponCodeNil sets the value for CreditCouponCode to be an explicit nil ### UnsetCreditCouponCode -`func (o *BillingResponseLineItemAllOf) UnsetCreditCouponCode()` +`func (o *LineItemData) UnsetCreditCouponCode()` UnsetCreditCouponCode ensures that no value is present for CreditCouponCode, not even an explicit nil ### GetDescription -`func (o *BillingResponseLineItemAllOf) GetDescription() string` +`func (o *LineItemData) GetDescription() string` GetDescription returns the Description field if non-nil, zero value otherwise. ### GetDescriptionOk -`func (o *BillingResponseLineItemAllOf) GetDescriptionOk() (*string, bool)` +`func (o *LineItemData) GetDescriptionOk() (*string, bool)` GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDescription -`func (o *BillingResponseLineItemAllOf) SetDescription(v string)` +`func (o *LineItemData) SetDescription(v string)` SetDescription sets Description field to given value. ### HasDescription -`func (o *BillingResponseLineItemAllOf) HasDescription() bool` +`func (o *LineItemData) HasDescription() bool` HasDescription returns a boolean if a field has been set. ### GetID -`func (o *BillingResponseLineItemAllOf) GetID() string` +`func (o *LineItemData) GetID() string` GetID returns the ID field if non-nil, zero value otherwise. ### GetIDOk -`func (o *BillingResponseLineItemAllOf) GetIDOk() (*string, bool)` +`func (o *LineItemData) GetIDOk() (*string, bool)` GetIDOk returns a tuple with the ID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetID -`func (o *BillingResponseLineItemAllOf) SetID(v string)` +`func (o *LineItemData) SetID(v string)` SetID sets ID field to given value. ### HasID -`func (o *BillingResponseLineItemAllOf) HasID() bool` +`func (o *LineItemData) HasID() bool` HasID returns a boolean if a field has been set. ### GetLineNumber -`func (o *BillingResponseLineItemAllOf) GetLineNumber() int32` +`func (o *LineItemData) GetLineNumber() int32` GetLineNumber returns the LineNumber field if non-nil, zero value otherwise. ### GetLineNumberOk -`func (o *BillingResponseLineItemAllOf) GetLineNumberOk() (*int32, bool)` +`func (o *LineItemData) GetLineNumberOk() (*int32, bool)` GetLineNumberOk returns a tuple with the LineNumber field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLineNumber -`func (o *BillingResponseLineItemAllOf) SetLineNumber(v int32)` +`func (o *LineItemData) SetLineNumber(v int32)` SetLineNumber sets LineNumber field to given value. ### HasLineNumber -`func (o *BillingResponseLineItemAllOf) HasLineNumber() bool` +`func (o *LineItemData) HasLineNumber() bool` HasLineNumber returns a boolean if a field has been set. ### GetPlanName -`func (o *BillingResponseLineItemAllOf) GetPlanName() string` +`func (o *LineItemData) GetPlanName() string` GetPlanName returns the PlanName field if non-nil, zero value otherwise. ### GetPlanNameOk -`func (o *BillingResponseLineItemAllOf) GetPlanNameOk() (*string, bool)` +`func (o *LineItemData) GetPlanNameOk() (*string, bool)` GetPlanNameOk returns a tuple with the PlanName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlanName -`func (o *BillingResponseLineItemAllOf) SetPlanName(v string)` +`func (o *LineItemData) SetPlanName(v string)` SetPlanName sets PlanName field to given value. ### HasPlanName -`func (o *BillingResponseLineItemAllOf) HasPlanName() bool` +`func (o *LineItemData) HasPlanName() bool` HasPlanName returns a boolean if a field has been set. ### GetPlanNo -`func (o *BillingResponseLineItemAllOf) GetPlanNo() float32` +`func (o *LineItemData) GetPlanNo() float32` GetPlanNo returns the PlanNo field if non-nil, zero value otherwise. ### GetPlanNoOk -`func (o *BillingResponseLineItemAllOf) GetPlanNoOk() (*float32, bool)` +`func (o *LineItemData) GetPlanNoOk() (*float32, bool)` GetPlanNoOk returns a tuple with the PlanNo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlanNo -`func (o *BillingResponseLineItemAllOf) SetPlanNo(v float32)` +`func (o *LineItemData) SetPlanNo(v float32)` SetPlanNo sets PlanNo field to given value. ### HasPlanNo -`func (o *BillingResponseLineItemAllOf) HasPlanNo() bool` +`func (o *LineItemData) HasPlanNo() bool` HasPlanNo returns a boolean if a field has been set. ### GetRatePerUnit -`func (o *BillingResponseLineItemAllOf) GetRatePerUnit() float32` +`func (o *LineItemData) GetRatePerUnit() float32` GetRatePerUnit returns the RatePerUnit field if non-nil, zero value otherwise. ### GetRatePerUnitOk -`func (o *BillingResponseLineItemAllOf) GetRatePerUnitOk() (*float32, bool)` +`func (o *LineItemData) GetRatePerUnitOk() (*float32, bool)` GetRatePerUnitOk returns a tuple with the RatePerUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRatePerUnit -`func (o *BillingResponseLineItemAllOf) SetRatePerUnit(v float32)` +`func (o *LineItemData) SetRatePerUnit(v float32)` SetRatePerUnit sets RatePerUnit field to given value. ### HasRatePerUnit -`func (o *BillingResponseLineItemAllOf) HasRatePerUnit() bool` +`func (o *LineItemData) HasRatePerUnit() bool` HasRatePerUnit returns a boolean if a field has been set. ### GetRateScheduleNo -`func (o *BillingResponseLineItemAllOf) GetRateScheduleNo() float32` +`func (o *LineItemData) GetRateScheduleNo() float32` GetRateScheduleNo returns the RateScheduleNo field if non-nil, zero value otherwise. ### GetRateScheduleNoOk -`func (o *BillingResponseLineItemAllOf) GetRateScheduleNoOk() (*float32, bool)` +`func (o *LineItemData) GetRateScheduleNoOk() (*float32, bool)` GetRateScheduleNoOk returns a tuple with the RateScheduleNo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRateScheduleNo -`func (o *BillingResponseLineItemAllOf) SetRateScheduleNo(v float32)` +`func (o *LineItemData) SetRateScheduleNo(v float32)` SetRateScheduleNo sets RateScheduleNo field to given value. ### HasRateScheduleNo -`func (o *BillingResponseLineItemAllOf) HasRateScheduleNo() bool` +`func (o *LineItemData) HasRateScheduleNo() bool` HasRateScheduleNo returns a boolean if a field has been set. ### SetRateScheduleNoNil -`func (o *BillingResponseLineItemAllOf) SetRateScheduleNoNil(b bool)` +`func (o *LineItemData) SetRateScheduleNoNil(b bool)` SetRateScheduleNoNil sets the value for RateScheduleNo to be an explicit nil ### UnsetRateScheduleNo -`func (o *BillingResponseLineItemAllOf) UnsetRateScheduleNo()` +`func (o *LineItemData) UnsetRateScheduleNo()` UnsetRateScheduleNo ensures that no value is present for RateScheduleNo, not even an explicit nil ### GetRateScheduleTierNo -`func (o *BillingResponseLineItemAllOf) GetRateScheduleTierNo() float32` +`func (o *LineItemData) GetRateScheduleTierNo() float32` GetRateScheduleTierNo returns the RateScheduleTierNo field if non-nil, zero value otherwise. ### GetRateScheduleTierNoOk -`func (o *BillingResponseLineItemAllOf) GetRateScheduleTierNoOk() (*float32, bool)` +`func (o *LineItemData) GetRateScheduleTierNoOk() (*float32, bool)` GetRateScheduleTierNoOk returns a tuple with the RateScheduleTierNo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRateScheduleTierNo -`func (o *BillingResponseLineItemAllOf) SetRateScheduleTierNo(v float32)` +`func (o *LineItemData) SetRateScheduleTierNo(v float32)` SetRateScheduleTierNo sets RateScheduleTierNo field to given value. ### HasRateScheduleTierNo -`func (o *BillingResponseLineItemAllOf) HasRateScheduleTierNo() bool` +`func (o *LineItemData) HasRateScheduleTierNo() bool` HasRateScheduleTierNo returns a boolean if a field has been set. ### SetRateScheduleTierNoNil -`func (o *BillingResponseLineItemAllOf) SetRateScheduleTierNoNil(b bool)` +`func (o *LineItemData) SetRateScheduleTierNoNil(b bool)` SetRateScheduleTierNoNil sets the value for RateScheduleTierNo to be an explicit nil ### UnsetRateScheduleTierNo -`func (o *BillingResponseLineItemAllOf) UnsetRateScheduleTierNo()` +`func (o *LineItemData) UnsetRateScheduleTierNo()` UnsetRateScheduleTierNo ensures that no value is present for RateScheduleTierNo, not even an explicit nil ### GetServiceName -`func (o *BillingResponseLineItemAllOf) GetServiceName() string` +`func (o *LineItemData) GetServiceName() string` GetServiceName returns the ServiceName field if non-nil, zero value otherwise. ### GetServiceNameOk -`func (o *BillingResponseLineItemAllOf) GetServiceNameOk() (*string, bool)` +`func (o *LineItemData) GetServiceNameOk() (*string, bool)` GetServiceNameOk returns a tuple with the ServiceName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetServiceName -`func (o *BillingResponseLineItemAllOf) SetServiceName(v string)` +`func (o *LineItemData) SetServiceName(v string)` SetServiceName sets ServiceName field to given value. ### HasServiceName -`func (o *BillingResponseLineItemAllOf) HasServiceName() bool` +`func (o *LineItemData) HasServiceName() bool` HasServiceName returns a boolean if a field has been set. ### GetServiceNo -`func (o *BillingResponseLineItemAllOf) GetServiceNo() float32` +`func (o *LineItemData) GetServiceNo() float32` GetServiceNo returns the ServiceNo field if non-nil, zero value otherwise. ### GetServiceNoOk -`func (o *BillingResponseLineItemAllOf) GetServiceNoOk() (*float32, bool)` +`func (o *LineItemData) GetServiceNoOk() (*float32, bool)` GetServiceNoOk returns a tuple with the ServiceNo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetServiceNo -`func (o *BillingResponseLineItemAllOf) SetServiceNo(v float32)` +`func (o *LineItemData) SetServiceNo(v float32)` SetServiceNo sets ServiceNo field to given value. ### HasServiceNo -`func (o *BillingResponseLineItemAllOf) HasServiceNo() bool` +`func (o *LineItemData) HasServiceNo() bool` HasServiceNo returns a boolean if a field has been set. ### GetUnits -`func (o *BillingResponseLineItemAllOf) GetUnits() float32` +`func (o *LineItemData) GetUnits() float32` GetUnits returns the Units field if non-nil, zero value otherwise. ### GetUnitsOk -`func (o *BillingResponseLineItemAllOf) GetUnitsOk() (*float32, bool)` +`func (o *LineItemData) GetUnitsOk() (*float32, bool)` GetUnitsOk returns a tuple with the Units field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUnits -`func (o *BillingResponseLineItemAllOf) SetUnits(v float32)` +`func (o *LineItemData) SetUnits(v float32)` SetUnits sets Units field to given value. ### HasUnits -`func (o *BillingResponseLineItemAllOf) HasUnits() bool` +`func (o *LineItemData) HasUnits() bool` HasUnits returns a boolean if a field has been set. ### GetUsageTypeCd -`func (o *BillingResponseLineItemAllOf) GetUsageTypeCd() string` +`func (o *LineItemData) GetUsageTypeCd() string` GetUsageTypeCd returns the UsageTypeCd field if non-nil, zero value otherwise. ### GetUsageTypeCdOk -`func (o *BillingResponseLineItemAllOf) GetUsageTypeCdOk() (*string, bool)` +`func (o *LineItemData) GetUsageTypeCdOk() (*string, bool)` GetUsageTypeCdOk returns a tuple with the UsageTypeCd field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUsageTypeCd -`func (o *BillingResponseLineItemAllOf) SetUsageTypeCd(v string)` +`func (o *LineItemData) SetUsageTypeCd(v string)` SetUsageTypeCd sets UsageTypeCd field to given value. ### HasUsageTypeCd -`func (o *BillingResponseLineItemAllOf) HasUsageTypeCd() bool` +`func (o *LineItemData) HasUsageTypeCd() bool` HasUsageTypeCd returns a boolean if a field has been set. ### SetUsageTypeCdNil -`func (o *BillingResponseLineItemAllOf) SetUsageTypeCdNil(b bool)` +`func (o *LineItemData) SetUsageTypeCdNil(b bool)` SetUsageTypeCdNil sets the value for UsageTypeCd to be an explicit nil ### UnsetUsageTypeCd -`func (o *BillingResponseLineItemAllOf) UnsetUsageTypeCd()` +`func (o *LineItemData) UnsetUsageTypeCd()` UnsetUsageTypeCd ensures that no value is present for UsageTypeCd, not even an explicit nil ### GetUsageTypeNo -`func (o *BillingResponseLineItemAllOf) GetUsageTypeNo() float32` +`func (o *LineItemData) GetUsageTypeNo() float32` GetUsageTypeNo returns the UsageTypeNo field if non-nil, zero value otherwise. ### GetUsageTypeNoOk -`func (o *BillingResponseLineItemAllOf) GetUsageTypeNoOk() (*float32, bool)` +`func (o *LineItemData) GetUsageTypeNoOk() (*float32, bool)` GetUsageTypeNoOk returns a tuple with the UsageTypeNo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUsageTypeNo -`func (o *BillingResponseLineItemAllOf) SetUsageTypeNo(v float32)` +`func (o *LineItemData) SetUsageTypeNo(v float32)` SetUsageTypeNo sets UsageTypeNo field to given value. ### HasUsageTypeNo -`func (o *BillingResponseLineItemAllOf) HasUsageTypeNo() bool` +`func (o *LineItemData) HasUsageTypeNo() bool` HasUsageTypeNo returns a boolean if a field has been set. ### SetUsageTypeNoNil -`func (o *BillingResponseLineItemAllOf) SetUsageTypeNoNil(b bool)` +`func (o *LineItemData) SetUsageTypeNoNil(b bool)` SetUsageTypeNoNil sets the value for UsageTypeNo to be an explicit nil ### UnsetUsageTypeNo -`func (o *BillingResponseLineItemAllOf) UnsetUsageTypeNo()` +`func (o *LineItemData) UnsetUsageTypeNo()` UnsetUsageTypeNo ensures that no value is present for UsageTypeNo, not even an explicit nil diff --git a/docs/LineItemDataReadOnlyInvoiceId.md b/docs/LineItemDataReadOnlyInvoiceId.md new file mode 100644 index 00000000..05f250a5 --- /dev/null +++ b/docs/LineItemDataReadOnlyInvoiceId.md @@ -0,0 +1,28 @@ +# LineItemDataReadOnlyInvoiceID + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewLineItemDataReadOnlyInvoiceID + +`func NewLineItemDataReadOnlyInvoiceID() *LineItemDataReadOnlyInvoiceID` + +NewLineItemDataReadOnlyInvoiceID instantiates a new LineItemDataReadOnlyInvoiceID object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLineItemDataReadOnlyInvoiceIDWithDefaults + +`func NewLineItemDataReadOnlyInvoiceIDWithDefaults() *LineItemDataReadOnlyInvoiceID` + +NewLineItemDataReadOnlyInvoiceIDWithDefaults instantiates a new LineItemDataReadOnlyInvoiceID object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/SchemasUserResponse.md b/docs/SchemasUserResponse.md index 0c9850d5..a9f50301 100644 --- a/docs/SchemasUserResponse.md +++ b/docs/SchemasUserResponse.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **Login** | Pointer to **string** | | [optional] [readonly] **Name** | Pointer to **string** | The real life name of the user. | [optional] **LimitServices** | Pointer to **bool** | Indicates that the user has limited access to the customer's services. | [optional] -**Locked** | Pointer to **bool** | Indicates whether the is account is locked for editing or not. | [optional] -**RequireNewPassword** | Pointer to **bool** | Indicates if a new password is required at next login. | [optional] +**Locked** | Pointer to **NullableBool** | Indicates whether the is account is locked for editing or not. | [optional] +**RequireNewPassword** | Pointer to **NullableBool** | Indicates if a new password is required at next login. | [optional] **Role** | Pointer to [**RoleUser**](RoleUser.md) | | [optional] -**TwoFactorAuthEnabled** | Pointer to **bool** | Indicates if 2FA is enabled on the user. | [optional] +**TwoFactorAuthEnabled** | Pointer to **NullableBool** | Indicates if 2FA is enabled on the user. | [optional] **TwoFactorSetupRequired** | Pointer to **bool** | Indicates if 2FA is required by the user's customer account. | [optional] **CreatedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] **DeletedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] @@ -138,6 +138,16 @@ SetLocked sets Locked field to given value. HasLocked returns a boolean if a field has been set. +### SetLockedNil + +`func (o *SchemasUserResponse) SetLockedNil(b bool)` + + SetLockedNil sets the value for Locked to be an explicit nil + +### UnsetLocked +`func (o *SchemasUserResponse) UnsetLocked()` + +UnsetLocked ensures that no value is present for Locked, not even an explicit nil ### GetRequireNewPassword `func (o *SchemasUserResponse) GetRequireNewPassword() bool` @@ -163,6 +173,16 @@ SetRequireNewPassword sets RequireNewPassword field to given value. HasRequireNewPassword returns a boolean if a field has been set. +### SetRequireNewPasswordNil + +`func (o *SchemasUserResponse) SetRequireNewPasswordNil(b bool)` + + SetRequireNewPasswordNil sets the value for RequireNewPassword to be an explicit nil + +### UnsetRequireNewPassword +`func (o *SchemasUserResponse) UnsetRequireNewPassword()` + +UnsetRequireNewPassword ensures that no value is present for RequireNewPassword, not even an explicit nil ### GetRole `func (o *SchemasUserResponse) GetRole() RoleUser` @@ -213,6 +233,16 @@ SetTwoFactorAuthEnabled sets TwoFactorAuthEnabled field to given value. HasTwoFactorAuthEnabled returns a boolean if a field has been set. +### SetTwoFactorAuthEnabledNil + +`func (o *SchemasUserResponse) SetTwoFactorAuthEnabledNil(b bool)` + + SetTwoFactorAuthEnabledNil sets the value for TwoFactorAuthEnabled to be an explicit nil + +### UnsetTwoFactorAuthEnabled +`func (o *SchemasUserResponse) UnsetTwoFactorAuthEnabled()` + +UnsetTwoFactorAuthEnabled ensures that no value is present for TwoFactorAuthEnabled, not even an explicit nil ### GetTwoFactorSetupRequired `func (o *SchemasUserResponse) GetTwoFactorSetupRequired() bool` diff --git a/docs/SchemasUserResponseReadOnly.md b/docs/SchemasUserResponseReadOnly.md new file mode 100644 index 00000000..4ef5e9ab --- /dev/null +++ b/docs/SchemasUserResponseReadOnly.md @@ -0,0 +1,106 @@ +# SchemasUserResponseReadOnly + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ID** | Pointer to **string** | | [optional] [readonly] +**EmailHash** | Pointer to **string** | The alphanumeric string identifying a email login. | [optional] [readonly] +**CustomerID** | Pointer to **string** | | [optional] [readonly] + +## Methods + +### NewSchemasUserResponseReadOnly + +`func NewSchemasUserResponseReadOnly() *SchemasUserResponseReadOnly` + +NewSchemasUserResponseReadOnly instantiates a new SchemasUserResponseReadOnly object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemasUserResponseReadOnlyWithDefaults + +`func NewSchemasUserResponseReadOnlyWithDefaults() *SchemasUserResponseReadOnly` + +NewSchemasUserResponseReadOnlyWithDefaults instantiates a new SchemasUserResponseReadOnly object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetID + +`func (o *SchemasUserResponseReadOnly) GetID() string` + +GetID returns the ID field if non-nil, zero value otherwise. + +### GetIDOk + +`func (o *SchemasUserResponseReadOnly) GetIDOk() (*string, bool)` + +GetIDOk returns a tuple with the ID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetID + +`func (o *SchemasUserResponseReadOnly) SetID(v string)` + +SetID sets ID field to given value. + +### HasID + +`func (o *SchemasUserResponseReadOnly) HasID() bool` + +HasID returns a boolean if a field has been set. + +### GetEmailHash + +`func (o *SchemasUserResponseReadOnly) GetEmailHash() string` + +GetEmailHash returns the EmailHash field if non-nil, zero value otherwise. + +### GetEmailHashOk + +`func (o *SchemasUserResponseReadOnly) GetEmailHashOk() (*string, bool)` + +GetEmailHashOk returns a tuple with the EmailHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailHash + +`func (o *SchemasUserResponseReadOnly) SetEmailHash(v string)` + +SetEmailHash sets EmailHash field to given value. + +### HasEmailHash + +`func (o *SchemasUserResponseReadOnly) HasEmailHash() bool` + +HasEmailHash returns a boolean if a field has been set. + +### GetCustomerID + +`func (o *SchemasUserResponseReadOnly) GetCustomerID() string` + +GetCustomerID returns the CustomerID field if non-nil, zero value otherwise. + +### GetCustomerIDOk + +`func (o *SchemasUserResponseReadOnly) GetCustomerIDOk() (*string, bool)` + +GetCustomerIDOk returns a tuple with the CustomerID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerID + +`func (o *SchemasUserResponseReadOnly) SetCustomerID(v string)` + +SetCustomerID sets CustomerID field to given value. + +### HasCustomerID + +`func (o *SchemasUserResponseReadOnly) HasCustomerID() bool` + +HasCustomerID returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/User.md b/docs/User.md index b7ef4636..718f699f 100644 --- a/docs/User.md +++ b/docs/User.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **Login** | Pointer to **string** | | [optional] [readonly] **Name** | Pointer to **string** | The real life name of the user. | [optional] **LimitServices** | Pointer to **bool** | Indicates that the user has limited access to the customer's services. | [optional] -**Locked** | Pointer to **bool** | Indicates whether the is account is locked for editing or not. | [optional] -**RequireNewPassword** | Pointer to **bool** | Indicates if a new password is required at next login. | [optional] +**Locked** | Pointer to **NullableBool** | Indicates whether the is account is locked for editing or not. | [optional] +**RequireNewPassword** | Pointer to **NullableBool** | Indicates if a new password is required at next login. | [optional] **Role** | Pointer to [**RoleUser**](RoleUser.md) | | [optional] -**TwoFactorAuthEnabled** | Pointer to **bool** | Indicates if 2FA is enabled on the user. | [optional] +**TwoFactorAuthEnabled** | Pointer to **NullableBool** | Indicates if 2FA is enabled on the user. | [optional] **TwoFactorSetupRequired** | Pointer to **bool** | Indicates if 2FA is required by the user's customer account. | [optional] ## Methods @@ -132,6 +132,16 @@ SetLocked sets Locked field to given value. HasLocked returns a boolean if a field has been set. +### SetLockedNil + +`func (o *User) SetLockedNil(b bool)` + + SetLockedNil sets the value for Locked to be an explicit nil + +### UnsetLocked +`func (o *User) UnsetLocked()` + +UnsetLocked ensures that no value is present for Locked, not even an explicit nil ### GetRequireNewPassword `func (o *User) GetRequireNewPassword() bool` @@ -157,6 +167,16 @@ SetRequireNewPassword sets RequireNewPassword field to given value. HasRequireNewPassword returns a boolean if a field has been set. +### SetRequireNewPasswordNil + +`func (o *User) SetRequireNewPasswordNil(b bool)` + + SetRequireNewPasswordNil sets the value for RequireNewPassword to be an explicit nil + +### UnsetRequireNewPassword +`func (o *User) UnsetRequireNewPassword()` + +UnsetRequireNewPassword ensures that no value is present for RequireNewPassword, not even an explicit nil ### GetRole `func (o *User) GetRole() RoleUser` @@ -207,6 +227,16 @@ SetTwoFactorAuthEnabled sets TwoFactorAuthEnabled field to given value. HasTwoFactorAuthEnabled returns a boolean if a field has been set. +### SetTwoFactorAuthEnabledNil + +`func (o *User) SetTwoFactorAuthEnabledNil(b bool)` + + SetTwoFactorAuthEnabledNil sets the value for TwoFactorAuthEnabled to be an explicit nil + +### UnsetTwoFactorAuthEnabled +`func (o *User) UnsetTwoFactorAuthEnabled()` + +UnsetTwoFactorAuthEnabled ensures that no value is present for TwoFactorAuthEnabled, not even an explicit nil ### GetTwoFactorSetupRequired `func (o *User) GetTwoFactorSetupRequired() bool` diff --git a/docs/UserResponse.md b/docs/UserResponse.md index b72c670e..224c3472 100644 --- a/docs/UserResponse.md +++ b/docs/UserResponse.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **Login** | Pointer to **string** | | [optional] [readonly] **Name** | Pointer to **string** | The real life name of the user. | [optional] **LimitServices** | Pointer to **bool** | Indicates that the user has limited access to the customer's services. | [optional] -**Locked** | Pointer to **bool** | Indicates whether the is account is locked for editing or not. | [optional] -**RequireNewPassword** | Pointer to **bool** | Indicates if a new password is required at next login. | [optional] +**Locked** | Pointer to **NullableBool** | Indicates whether the is account is locked for editing or not. | [optional] +**RequireNewPassword** | Pointer to **NullableBool** | Indicates if a new password is required at next login. | [optional] **Role** | Pointer to [**RoleUser**](RoleUser.md) | | [optional] -**TwoFactorAuthEnabled** | Pointer to **bool** | Indicates if 2FA is enabled on the user. | [optional] +**TwoFactorAuthEnabled** | Pointer to **NullableBool** | Indicates if 2FA is enabled on the user. | [optional] **TwoFactorSetupRequired** | Pointer to **bool** | Indicates if 2FA is required by the user's customer account. | [optional] **CreatedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] **DeletedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] @@ -138,6 +138,16 @@ SetLocked sets Locked field to given value. HasLocked returns a boolean if a field has been set. +### SetLockedNil + +`func (o *UserResponse) SetLockedNil(b bool)` + + SetLockedNil sets the value for Locked to be an explicit nil + +### UnsetLocked +`func (o *UserResponse) UnsetLocked()` + +UnsetLocked ensures that no value is present for Locked, not even an explicit nil ### GetRequireNewPassword `func (o *UserResponse) GetRequireNewPassword() bool` @@ -163,6 +173,16 @@ SetRequireNewPassword sets RequireNewPassword field to given value. HasRequireNewPassword returns a boolean if a field has been set. +### SetRequireNewPasswordNil + +`func (o *UserResponse) SetRequireNewPasswordNil(b bool)` + + SetRequireNewPasswordNil sets the value for RequireNewPassword to be an explicit nil + +### UnsetRequireNewPassword +`func (o *UserResponse) UnsetRequireNewPassword()` + +UnsetRequireNewPassword ensures that no value is present for RequireNewPassword, not even an explicit nil ### GetRole `func (o *UserResponse) GetRole() RoleUser` @@ -213,6 +233,16 @@ SetTwoFactorAuthEnabled sets TwoFactorAuthEnabled field to given value. HasTwoFactorAuthEnabled returns a boolean if a field has been set. +### SetTwoFactorAuthEnabledNil + +`func (o *UserResponse) SetTwoFactorAuthEnabledNil(b bool)` + + SetTwoFactorAuthEnabledNil sets the value for TwoFactorAuthEnabled to be an explicit nil + +### UnsetTwoFactorAuthEnabled +`func (o *UserResponse) UnsetTwoFactorAuthEnabled()` + +UnsetTwoFactorAuthEnabled ensures that no value is present for TwoFactorAuthEnabled, not even an explicit nil ### GetTwoFactorSetupRequired `func (o *UserResponse) GetTwoFactorSetupRequired() bool` diff --git a/docs/UserResponseAllOf.md b/docs/UserResponseReadOnly.md similarity index 65% rename from docs/UserResponseAllOf.md rename to docs/UserResponseReadOnly.md index 30919ac5..01e285ba 100644 --- a/docs/UserResponseAllOf.md +++ b/docs/UserResponseReadOnly.md @@ -1,4 +1,4 @@ -# UserResponseAllOf +# UserResponseReadOnly ## Properties @@ -10,95 +10,95 @@ Name | Type | Description | Notes ## Methods -### NewUserResponseAllOf +### NewUserResponseReadOnly -`func NewUserResponseAllOf() *UserResponseAllOf` +`func NewUserResponseReadOnly() *UserResponseReadOnly` -NewUserResponseAllOf instantiates a new UserResponseAllOf object +NewUserResponseReadOnly instantiates a new UserResponseReadOnly object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewUserResponseAllOfWithDefaults +### NewUserResponseReadOnlyWithDefaults -`func NewUserResponseAllOfWithDefaults() *UserResponseAllOf` +`func NewUserResponseReadOnlyWithDefaults() *UserResponseReadOnly` -NewUserResponseAllOfWithDefaults instantiates a new UserResponseAllOf object +NewUserResponseReadOnlyWithDefaults instantiates a new UserResponseReadOnly object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetID -`func (o *UserResponseAllOf) GetID() string` +`func (o *UserResponseReadOnly) GetID() string` GetID returns the ID field if non-nil, zero value otherwise. ### GetIDOk -`func (o *UserResponseAllOf) GetIDOk() (*string, bool)` +`func (o *UserResponseReadOnly) GetIDOk() (*string, bool)` GetIDOk returns a tuple with the ID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetID -`func (o *UserResponseAllOf) SetID(v string)` +`func (o *UserResponseReadOnly) SetID(v string)` SetID sets ID field to given value. ### HasID -`func (o *UserResponseAllOf) HasID() bool` +`func (o *UserResponseReadOnly) HasID() bool` HasID returns a boolean if a field has been set. ### GetEmailHash -`func (o *UserResponseAllOf) GetEmailHash() string` +`func (o *UserResponseReadOnly) GetEmailHash() string` GetEmailHash returns the EmailHash field if non-nil, zero value otherwise. ### GetEmailHashOk -`func (o *UserResponseAllOf) GetEmailHashOk() (*string, bool)` +`func (o *UserResponseReadOnly) GetEmailHashOk() (*string, bool)` GetEmailHashOk returns a tuple with the EmailHash field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEmailHash -`func (o *UserResponseAllOf) SetEmailHash(v string)` +`func (o *UserResponseReadOnly) SetEmailHash(v string)` SetEmailHash sets EmailHash field to given value. ### HasEmailHash -`func (o *UserResponseAllOf) HasEmailHash() bool` +`func (o *UserResponseReadOnly) HasEmailHash() bool` HasEmailHash returns a boolean if a field has been set. ### GetCustomerID -`func (o *UserResponseAllOf) GetCustomerID() string` +`func (o *UserResponseReadOnly) GetCustomerID() string` GetCustomerID returns the CustomerID field if non-nil, zero value otherwise. ### GetCustomerIDOk -`func (o *UserResponseAllOf) GetCustomerIDOk() (*string, bool)` +`func (o *UserResponseReadOnly) GetCustomerIDOk() (*string, bool)` GetCustomerIDOk returns a tuple with the CustomerID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCustomerID -`func (o *UserResponseAllOf) SetCustomerID(v string)` +`func (o *UserResponseReadOnly) SetCustomerID(v string)` SetCustomerID sets CustomerID field to given value. ### HasCustomerID -`func (o *UserResponseAllOf) HasCustomerID() bool` +`func (o *UserResponseReadOnly) HasCustomerID() bool` HasCustomerID returns a boolean if a field has been set. diff --git a/fastly/configuration.go b/fastly/configuration.go index 6b4aeb95..d4b99f15 100644 --- a/fastly/configuration.go +++ b/fastly/configuration.go @@ -105,7 +105,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "fastly-go/v1.0.0-beta.16", + UserAgent: "fastly-go/v1.0.0-beta.17", Debug: false, Servers: ServerConfigurations{ { diff --git a/fastly/model_billing_response_all_of.go b/fastly/model_billing_estimate_lines.go similarity index 60% rename from fastly/model_billing_response_all_of.go rename to fastly/model_billing_estimate_lines.go index 6b95aa65..ae277717 100644 --- a/fastly/model_billing_response_all_of.go +++ b/fastly/model_billing_estimate_lines.go @@ -17,35 +17,35 @@ import ( "encoding/json" ) -// BillingResponseAllOf struct for BillingResponseAllOf -type BillingResponseAllOf struct { - LineItems []BillingResponseLineItem `json:"line_items,omitempty"` +// BillingEstimateLines struct for BillingEstimateLines +type BillingEstimateLines struct { + LineItems []BillingEstimateLinesLineItems `json:"line_items,omitempty"` AdditionalProperties map[string]any } -type _BillingResponseAllOf BillingResponseAllOf +type _BillingEstimateLines BillingEstimateLines -// NewBillingResponseAllOf instantiates a new BillingResponseAllOf object +// NewBillingEstimateLines instantiates a new BillingEstimateLines object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewBillingResponseAllOf() *BillingResponseAllOf { - this := BillingResponseAllOf{} +func NewBillingEstimateLines() *BillingEstimateLines { + this := BillingEstimateLines{} return &this } -// NewBillingResponseAllOfWithDefaults instantiates a new BillingResponseAllOf object +// NewBillingEstimateLinesWithDefaults instantiates a new BillingEstimateLines object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewBillingResponseAllOfWithDefaults() *BillingResponseAllOf { - this := BillingResponseAllOf{} +func NewBillingEstimateLinesWithDefaults() *BillingEstimateLines { + this := BillingEstimateLines{} return &this } // GetLineItems returns the LineItems field value if set, zero value otherwise. -func (o *BillingResponseAllOf) GetLineItems() []BillingResponseLineItem { +func (o *BillingEstimateLines) GetLineItems() []BillingEstimateLinesLineItems { if o == nil || o.LineItems == nil { - var ret []BillingResponseLineItem + var ret []BillingEstimateLinesLineItems return ret } return o.LineItems @@ -53,7 +53,7 @@ func (o *BillingResponseAllOf) GetLineItems() []BillingResponseLineItem { // GetLineItemsOk returns a tuple with the LineItems field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseAllOf) GetLineItemsOk() ([]BillingResponseLineItem, bool) { +func (o *BillingEstimateLines) GetLineItemsOk() ([]BillingEstimateLinesLineItems, bool) { if o == nil || o.LineItems == nil { return nil, false } @@ -61,7 +61,7 @@ func (o *BillingResponseAllOf) GetLineItemsOk() ([]BillingResponseLineItem, bool } // HasLineItems returns a boolean if a field has been set. -func (o *BillingResponseAllOf) HasLineItems() bool { +func (o *BillingEstimateLines) HasLineItems() bool { if o != nil && o.LineItems != nil { return true } @@ -69,14 +69,14 @@ func (o *BillingResponseAllOf) HasLineItems() bool { return false } -// SetLineItems gets a reference to the given []BillingResponseLineItem and assigns it to the LineItems field. -func (o *BillingResponseAllOf) SetLineItems(v []BillingResponseLineItem) { +// SetLineItems gets a reference to the given []BillingEstimateLinesLineItems and assigns it to the LineItems field. +func (o *BillingEstimateLines) SetLineItems(v []BillingEstimateLinesLineItems) { o.LineItems = v } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (o BillingResponseAllOf) MarshalJSON() ([]byte, error) { +func (o BillingEstimateLines) MarshalJSON() ([]byte, error) { toSerialize := map[string]any{} if o.LineItems != nil { toSerialize["line_items"] = o.LineItems @@ -91,11 +91,11 @@ func (o BillingResponseAllOf) MarshalJSON() ([]byte, error) { // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (o *BillingResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { - varBillingResponseAllOf := _BillingResponseAllOf{} +func (o *BillingEstimateLines) UnmarshalJSON(bytes []byte) (err error) { + varBillingEstimateLines := _BillingEstimateLines{} - if err = json.Unmarshal(bytes, &varBillingResponseAllOf); err == nil { - *o = BillingResponseAllOf(varBillingResponseAllOf) + if err = json.Unmarshal(bytes, &varBillingEstimateLines); err == nil { + *o = BillingEstimateLines(varBillingEstimateLines) } additionalProperties := make(map[string]any) @@ -108,48 +108,48 @@ func (o *BillingResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingResponseAllOf is a helper abstraction for handling nullable billingresponseallof types. -type NullableBillingResponseAllOf struct { - value *BillingResponseAllOf +// NullableBillingEstimateLines is a helper abstraction for handling nullable billingestimatelines types. +type NullableBillingEstimateLines struct { + value *BillingEstimateLines isSet bool } // Get returns the value. -func (v NullableBillingResponseAllOf) Get() *BillingResponseAllOf { +func (v NullableBillingEstimateLines) Get() *BillingEstimateLines { return v.value } // Set modifies the value. -func (v *NullableBillingResponseAllOf) Set(val *BillingResponseAllOf) { +func (v *NullableBillingEstimateLines) Set(val *BillingEstimateLines) { v.value = val v.isSet = true } // IsSet indicates if the value was set. -func (v NullableBillingResponseAllOf) IsSet() bool { +func (v NullableBillingEstimateLines) IsSet() bool { return v.isSet } // Unset removes the value. -func (v *NullableBillingResponseAllOf) Unset() { +func (v *NullableBillingEstimateLines) Unset() { v.value = nil v.isSet = false } -// NewNullableBillingResponseAllOf returns a pointer to a new instance of NullableBillingResponseAllOf. -func NewNullableBillingResponseAllOf(val *BillingResponseAllOf) *NullableBillingResponseAllOf { - return &NullableBillingResponseAllOf{value: val, isSet: true} +// NewNullableBillingEstimateLines returns a pointer to a new instance of NullableBillingEstimateLines. +func NewNullableBillingEstimateLines(val *BillingEstimateLines) *NullableBillingEstimateLines { + return &NullableBillingEstimateLines{value: val, isSet: true} } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (v NullableBillingResponseAllOf) MarshalJSON() ([]byte, error) { +func (v NullableBillingEstimateLines) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (v *NullableBillingResponseAllOf) UnmarshalJSON(src []byte) error { +func (v *NullableBillingEstimateLines) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/fastly/model_billing_estimate_response_all_of_line.go b/fastly/model_billing_estimate_lines_line_items.go similarity index 68% rename from fastly/model_billing_estimate_response_all_of_line.go rename to fastly/model_billing_estimate_lines_line_items.go index 6b6804ae..98ea97bf 100644 --- a/fastly/model_billing_estimate_response_all_of_line.go +++ b/fastly/model_billing_estimate_lines_line_items.go @@ -17,8 +17,8 @@ import ( "encoding/json" ) -// BillingEstimateResponseAllOfLine struct for BillingEstimateResponseAllOfLine -type BillingEstimateResponseAllOfLine struct { +// BillingEstimateLinesLineItems struct for BillingEstimateLinesLineItems +type BillingEstimateLinesLineItems struct { PlanNo *int32 `json:"plan_no,omitempty"` Description *string `json:"description,omitempty"` Units *float32 `json:"units,omitempty"` @@ -31,27 +31,27 @@ type BillingEstimateResponseAllOfLine struct { AdditionalProperties map[string]any } -type _BillingEstimateResponseAllOfLine BillingEstimateResponseAllOfLine +type _BillingEstimateLinesLineItems BillingEstimateLinesLineItems -// NewBillingEstimateResponseAllOfLine instantiates a new BillingEstimateResponseAllOfLine object +// NewBillingEstimateLinesLineItems instantiates a new BillingEstimateLinesLineItems object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewBillingEstimateResponseAllOfLine() *BillingEstimateResponseAllOfLine { - this := BillingEstimateResponseAllOfLine{} +func NewBillingEstimateLinesLineItems() *BillingEstimateLinesLineItems { + this := BillingEstimateLinesLineItems{} return &this } -// NewBillingEstimateResponseAllOfLineWithDefaults instantiates a new BillingEstimateResponseAllOfLine object +// NewBillingEstimateLinesLineItemsWithDefaults instantiates a new BillingEstimateLinesLineItems object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewBillingEstimateResponseAllOfLineWithDefaults() *BillingEstimateResponseAllOfLine { - this := BillingEstimateResponseAllOfLine{} +func NewBillingEstimateLinesLineItemsWithDefaults() *BillingEstimateLinesLineItems { + this := BillingEstimateLinesLineItems{} return &this } // GetPlanNo returns the PlanNo field value if set, zero value otherwise. -func (o *BillingEstimateResponseAllOfLine) GetPlanNo() int32 { +func (o *BillingEstimateLinesLineItems) GetPlanNo() int32 { if o == nil || o.PlanNo == nil { var ret int32 return ret @@ -61,7 +61,7 @@ func (o *BillingEstimateResponseAllOfLine) GetPlanNo() int32 { // GetPlanNoOk returns a tuple with the PlanNo field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingEstimateResponseAllOfLine) GetPlanNoOk() (*int32, bool) { +func (o *BillingEstimateLinesLineItems) GetPlanNoOk() (*int32, bool) { if o == nil || o.PlanNo == nil { return nil, false } @@ -69,7 +69,7 @@ func (o *BillingEstimateResponseAllOfLine) GetPlanNoOk() (*int32, bool) { } // HasPlanNo returns a boolean if a field has been set. -func (o *BillingEstimateResponseAllOfLine) HasPlanNo() bool { +func (o *BillingEstimateLinesLineItems) HasPlanNo() bool { if o != nil && o.PlanNo != nil { return true } @@ -78,12 +78,12 @@ func (o *BillingEstimateResponseAllOfLine) HasPlanNo() bool { } // SetPlanNo gets a reference to the given int32 and assigns it to the PlanNo field. -func (o *BillingEstimateResponseAllOfLine) SetPlanNo(v int32) { +func (o *BillingEstimateLinesLineItems) SetPlanNo(v int32) { o.PlanNo = &v } // GetDescription returns the Description field value if set, zero value otherwise. -func (o *BillingEstimateResponseAllOfLine) GetDescription() string { +func (o *BillingEstimateLinesLineItems) GetDescription() string { if o == nil || o.Description == nil { var ret string return ret @@ -93,7 +93,7 @@ func (o *BillingEstimateResponseAllOfLine) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingEstimateResponseAllOfLine) GetDescriptionOk() (*string, bool) { +func (o *BillingEstimateLinesLineItems) GetDescriptionOk() (*string, bool) { if o == nil || o.Description == nil { return nil, false } @@ -101,7 +101,7 @@ func (o *BillingEstimateResponseAllOfLine) GetDescriptionOk() (*string, bool) { } // HasDescription returns a boolean if a field has been set. -func (o *BillingEstimateResponseAllOfLine) HasDescription() bool { +func (o *BillingEstimateLinesLineItems) HasDescription() bool { if o != nil && o.Description != nil { return true } @@ -110,12 +110,12 @@ func (o *BillingEstimateResponseAllOfLine) HasDescription() bool { } // SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *BillingEstimateResponseAllOfLine) SetDescription(v string) { +func (o *BillingEstimateLinesLineItems) SetDescription(v string) { o.Description = &v } // GetUnits returns the Units field value if set, zero value otherwise. -func (o *BillingEstimateResponseAllOfLine) GetUnits() float32 { +func (o *BillingEstimateLinesLineItems) GetUnits() float32 { if o == nil || o.Units == nil { var ret float32 return ret @@ -125,7 +125,7 @@ func (o *BillingEstimateResponseAllOfLine) GetUnits() float32 { // GetUnitsOk returns a tuple with the Units field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingEstimateResponseAllOfLine) GetUnitsOk() (*float32, bool) { +func (o *BillingEstimateLinesLineItems) GetUnitsOk() (*float32, bool) { if o == nil || o.Units == nil { return nil, false } @@ -133,7 +133,7 @@ func (o *BillingEstimateResponseAllOfLine) GetUnitsOk() (*float32, bool) { } // HasUnits returns a boolean if a field has been set. -func (o *BillingEstimateResponseAllOfLine) HasUnits() bool { +func (o *BillingEstimateLinesLineItems) HasUnits() bool { if o != nil && o.Units != nil { return true } @@ -142,12 +142,12 @@ func (o *BillingEstimateResponseAllOfLine) HasUnits() bool { } // SetUnits gets a reference to the given float32 and assigns it to the Units field. -func (o *BillingEstimateResponseAllOfLine) SetUnits(v float32) { +func (o *BillingEstimateLinesLineItems) SetUnits(v float32) { o.Units = &v } // GetPerUnitCost returns the PerUnitCost field value if set, zero value otherwise. -func (o *BillingEstimateResponseAllOfLine) GetPerUnitCost() float32 { +func (o *BillingEstimateLinesLineItems) GetPerUnitCost() float32 { if o == nil || o.PerUnitCost == nil { var ret float32 return ret @@ -157,7 +157,7 @@ func (o *BillingEstimateResponseAllOfLine) GetPerUnitCost() float32 { // GetPerUnitCostOk returns a tuple with the PerUnitCost field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingEstimateResponseAllOfLine) GetPerUnitCostOk() (*float32, bool) { +func (o *BillingEstimateLinesLineItems) GetPerUnitCostOk() (*float32, bool) { if o == nil || o.PerUnitCost == nil { return nil, false } @@ -165,7 +165,7 @@ func (o *BillingEstimateResponseAllOfLine) GetPerUnitCostOk() (*float32, bool) { } // HasPerUnitCost returns a boolean if a field has been set. -func (o *BillingEstimateResponseAllOfLine) HasPerUnitCost() bool { +func (o *BillingEstimateLinesLineItems) HasPerUnitCost() bool { if o != nil && o.PerUnitCost != nil { return true } @@ -174,12 +174,12 @@ func (o *BillingEstimateResponseAllOfLine) HasPerUnitCost() bool { } // SetPerUnitCost gets a reference to the given float32 and assigns it to the PerUnitCost field. -func (o *BillingEstimateResponseAllOfLine) SetPerUnitCost(v float32) { +func (o *BillingEstimateLinesLineItems) SetPerUnitCost(v float32) { o.PerUnitCost = &v } // GetServiceNo returns the ServiceNo field value if set, zero value otherwise. -func (o *BillingEstimateResponseAllOfLine) GetServiceNo() float32 { +func (o *BillingEstimateLinesLineItems) GetServiceNo() float32 { if o == nil || o.ServiceNo == nil { var ret float32 return ret @@ -189,7 +189,7 @@ func (o *BillingEstimateResponseAllOfLine) GetServiceNo() float32 { // GetServiceNoOk returns a tuple with the ServiceNo field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingEstimateResponseAllOfLine) GetServiceNoOk() (*float32, bool) { +func (o *BillingEstimateLinesLineItems) GetServiceNoOk() (*float32, bool) { if o == nil || o.ServiceNo == nil { return nil, false } @@ -197,7 +197,7 @@ func (o *BillingEstimateResponseAllOfLine) GetServiceNoOk() (*float32, bool) { } // HasServiceNo returns a boolean if a field has been set. -func (o *BillingEstimateResponseAllOfLine) HasServiceNo() bool { +func (o *BillingEstimateLinesLineItems) HasServiceNo() bool { if o != nil && o.ServiceNo != nil { return true } @@ -206,12 +206,12 @@ func (o *BillingEstimateResponseAllOfLine) HasServiceNo() bool { } // SetServiceNo gets a reference to the given float32 and assigns it to the ServiceNo field. -func (o *BillingEstimateResponseAllOfLine) SetServiceNo(v float32) { +func (o *BillingEstimateLinesLineItems) SetServiceNo(v float32) { o.ServiceNo = &v } // GetServiceType returns the ServiceType field value if set, zero value otherwise. -func (o *BillingEstimateResponseAllOfLine) GetServiceType() string { +func (o *BillingEstimateLinesLineItems) GetServiceType() string { if o == nil || o.ServiceType == nil { var ret string return ret @@ -221,7 +221,7 @@ func (o *BillingEstimateResponseAllOfLine) GetServiceType() string { // GetServiceTypeOk returns a tuple with the ServiceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingEstimateResponseAllOfLine) GetServiceTypeOk() (*string, bool) { +func (o *BillingEstimateLinesLineItems) GetServiceTypeOk() (*string, bool) { if o == nil || o.ServiceType == nil { return nil, false } @@ -229,7 +229,7 @@ func (o *BillingEstimateResponseAllOfLine) GetServiceTypeOk() (*string, bool) { } // HasServiceType returns a boolean if a field has been set. -func (o *BillingEstimateResponseAllOfLine) HasServiceType() bool { +func (o *BillingEstimateLinesLineItems) HasServiceType() bool { if o != nil && o.ServiceType != nil { return true } @@ -238,12 +238,12 @@ func (o *BillingEstimateResponseAllOfLine) HasServiceType() bool { } // SetServiceType gets a reference to the given string and assigns it to the ServiceType field. -func (o *BillingEstimateResponseAllOfLine) SetServiceType(v string) { +func (o *BillingEstimateLinesLineItems) SetServiceType(v string) { o.ServiceType = &v } // GetAmount returns the Amount field value if set, zero value otherwise. -func (o *BillingEstimateResponseAllOfLine) GetAmount() float32 { +func (o *BillingEstimateLinesLineItems) GetAmount() float32 { if o == nil || o.Amount == nil { var ret float32 return ret @@ -253,7 +253,7 @@ func (o *BillingEstimateResponseAllOfLine) GetAmount() float32 { // GetAmountOk returns a tuple with the Amount field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingEstimateResponseAllOfLine) GetAmountOk() (*float32, bool) { +func (o *BillingEstimateLinesLineItems) GetAmountOk() (*float32, bool) { if o == nil || o.Amount == nil { return nil, false } @@ -261,7 +261,7 @@ func (o *BillingEstimateResponseAllOfLine) GetAmountOk() (*float32, bool) { } // HasAmount returns a boolean if a field has been set. -func (o *BillingEstimateResponseAllOfLine) HasAmount() bool { +func (o *BillingEstimateLinesLineItems) HasAmount() bool { if o != nil && o.Amount != nil { return true } @@ -270,12 +270,12 @@ func (o *BillingEstimateResponseAllOfLine) HasAmount() bool { } // SetAmount gets a reference to the given float32 and assigns it to the Amount field. -func (o *BillingEstimateResponseAllOfLine) SetAmount(v float32) { +func (o *BillingEstimateLinesLineItems) SetAmount(v float32) { o.Amount = &v } // GetClientServiceID returns the ClientServiceID field value if set, zero value otherwise. -func (o *BillingEstimateResponseAllOfLine) GetClientServiceID() string { +func (o *BillingEstimateLinesLineItems) GetClientServiceID() string { if o == nil || o.ClientServiceID == nil { var ret string return ret @@ -285,7 +285,7 @@ func (o *BillingEstimateResponseAllOfLine) GetClientServiceID() string { // GetClientServiceIDOk returns a tuple with the ClientServiceID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingEstimateResponseAllOfLine) GetClientServiceIDOk() (*string, bool) { +func (o *BillingEstimateLinesLineItems) GetClientServiceIDOk() (*string, bool) { if o == nil || o.ClientServiceID == nil { return nil, false } @@ -293,7 +293,7 @@ func (o *BillingEstimateResponseAllOfLine) GetClientServiceIDOk() (*string, bool } // HasClientServiceID returns a boolean if a field has been set. -func (o *BillingEstimateResponseAllOfLine) HasClientServiceID() bool { +func (o *BillingEstimateLinesLineItems) HasClientServiceID() bool { if o != nil && o.ClientServiceID != nil { return true } @@ -302,12 +302,12 @@ func (o *BillingEstimateResponseAllOfLine) HasClientServiceID() bool { } // SetClientServiceID gets a reference to the given string and assigns it to the ClientServiceID field. -func (o *BillingEstimateResponseAllOfLine) SetClientServiceID(v string) { +func (o *BillingEstimateLinesLineItems) SetClientServiceID(v string) { o.ClientServiceID = &v } // GetClientPlanID returns the ClientPlanID field value if set, zero value otherwise. -func (o *BillingEstimateResponseAllOfLine) GetClientPlanID() string { +func (o *BillingEstimateLinesLineItems) GetClientPlanID() string { if o == nil || o.ClientPlanID == nil { var ret string return ret @@ -317,7 +317,7 @@ func (o *BillingEstimateResponseAllOfLine) GetClientPlanID() string { // GetClientPlanIDOk returns a tuple with the ClientPlanID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingEstimateResponseAllOfLine) GetClientPlanIDOk() (*string, bool) { +func (o *BillingEstimateLinesLineItems) GetClientPlanIDOk() (*string, bool) { if o == nil || o.ClientPlanID == nil { return nil, false } @@ -325,7 +325,7 @@ func (o *BillingEstimateResponseAllOfLine) GetClientPlanIDOk() (*string, bool) { } // HasClientPlanID returns a boolean if a field has been set. -func (o *BillingEstimateResponseAllOfLine) HasClientPlanID() bool { +func (o *BillingEstimateLinesLineItems) HasClientPlanID() bool { if o != nil && o.ClientPlanID != nil { return true } @@ -334,13 +334,13 @@ func (o *BillingEstimateResponseAllOfLine) HasClientPlanID() bool { } // SetClientPlanID gets a reference to the given string and assigns it to the ClientPlanID field. -func (o *BillingEstimateResponseAllOfLine) SetClientPlanID(v string) { +func (o *BillingEstimateLinesLineItems) SetClientPlanID(v string) { o.ClientPlanID = &v } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (o BillingEstimateResponseAllOfLine) MarshalJSON() ([]byte, error) { +func (o BillingEstimateLinesLineItems) MarshalJSON() ([]byte, error) { toSerialize := map[string]any{} if o.PlanNo != nil { toSerialize["plan_no"] = o.PlanNo @@ -379,11 +379,11 @@ func (o BillingEstimateResponseAllOfLine) MarshalJSON() ([]byte, error) { // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (o *BillingEstimateResponseAllOfLine) UnmarshalJSON(bytes []byte) (err error) { - varBillingEstimateResponseAllOfLine := _BillingEstimateResponseAllOfLine{} +func (o *BillingEstimateLinesLineItems) UnmarshalJSON(bytes []byte) (err error) { + varBillingEstimateLinesLineItems := _BillingEstimateLinesLineItems{} - if err = json.Unmarshal(bytes, &varBillingEstimateResponseAllOfLine); err == nil { - *o = BillingEstimateResponseAllOfLine(varBillingEstimateResponseAllOfLine) + if err = json.Unmarshal(bytes, &varBillingEstimateLinesLineItems); err == nil { + *o = BillingEstimateLinesLineItems(varBillingEstimateLinesLineItems) } additionalProperties := make(map[string]any) @@ -404,48 +404,48 @@ func (o *BillingEstimateResponseAllOfLine) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableBillingEstimateResponseAllOfLine is a helper abstraction for handling nullable billingestimateresponseallofline types. -type NullableBillingEstimateResponseAllOfLine struct { - value *BillingEstimateResponseAllOfLine +// NullableBillingEstimateLinesLineItems is a helper abstraction for handling nullable billingestimatelineslineitems types. +type NullableBillingEstimateLinesLineItems struct { + value *BillingEstimateLinesLineItems isSet bool } // Get returns the value. -func (v NullableBillingEstimateResponseAllOfLine) Get() *BillingEstimateResponseAllOfLine { +func (v NullableBillingEstimateLinesLineItems) Get() *BillingEstimateLinesLineItems { return v.value } // Set modifies the value. -func (v *NullableBillingEstimateResponseAllOfLine) Set(val *BillingEstimateResponseAllOfLine) { +func (v *NullableBillingEstimateLinesLineItems) Set(val *BillingEstimateLinesLineItems) { v.value = val v.isSet = true } // IsSet indicates if the value was set. -func (v NullableBillingEstimateResponseAllOfLine) IsSet() bool { +func (v NullableBillingEstimateLinesLineItems) IsSet() bool { return v.isSet } // Unset removes the value. -func (v *NullableBillingEstimateResponseAllOfLine) Unset() { +func (v *NullableBillingEstimateLinesLineItems) Unset() { v.value = nil v.isSet = false } -// NewNullableBillingEstimateResponseAllOfLine returns a pointer to a new instance of NullableBillingEstimateResponseAllOfLine. -func NewNullableBillingEstimateResponseAllOfLine(val *BillingEstimateResponseAllOfLine) *NullableBillingEstimateResponseAllOfLine { - return &NullableBillingEstimateResponseAllOfLine{value: val, isSet: true} +// NewNullableBillingEstimateLinesLineItems returns a pointer to a new instance of NullableBillingEstimateLinesLineItems. +func NewNullableBillingEstimateLinesLineItems(val *BillingEstimateLinesLineItems) *NullableBillingEstimateLinesLineItems { + return &NullableBillingEstimateLinesLineItems{value: val, isSet: true} } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (v NullableBillingEstimateResponseAllOfLine) MarshalJSON() ([]byte, error) { +func (v NullableBillingEstimateLinesLineItems) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (v *NullableBillingEstimateResponseAllOfLine) UnmarshalJSON(src []byte) error { +func (v *NullableBillingEstimateLinesLineItems) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/fastly/model_billing_estimate_response.go b/fastly/model_billing_estimate_response.go index b53a92f8..2cb0ec98 100644 --- a/fastly/model_billing_estimate_response.go +++ b/fastly/model_billing_estimate_response.go @@ -32,7 +32,7 @@ type BillingEstimateResponse struct { Total *BillingTotal `json:"total,omitempty"` // Breakdown of regional data for products that are region based. Regions *map[string]map[string]map[string]any `json:"regions,omitempty"` - Lines []BillingEstimateResponseAllOfLines `json:"lines,omitempty"` + LineItems []BillingEstimateLinesLineItems `json:"line_items,omitempty"` AdditionalProperties map[string]any } @@ -331,36 +331,36 @@ func (o *BillingEstimateResponse) SetRegions(v map[string]map[string]map[string] o.Regions = &v } -// GetLines returns the Lines field value if set, zero value otherwise. -func (o *BillingEstimateResponse) GetLines() []BillingEstimateResponseAllOfLines { - if o == nil || o.Lines == nil { - var ret []BillingEstimateResponseAllOfLines +// GetLineItems returns the LineItems field value if set, zero value otherwise. +func (o *BillingEstimateResponse) GetLineItems() []BillingEstimateLinesLineItems { + if o == nil || o.LineItems == nil { + var ret []BillingEstimateLinesLineItems return ret } - return o.Lines + return o.LineItems } -// GetLinesOk returns a tuple with the Lines field value if set, nil otherwise +// GetLineItemsOk returns a tuple with the LineItems field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingEstimateResponse) GetLinesOk() ([]BillingEstimateResponseAllOfLines, bool) { - if o == nil || o.Lines == nil { +func (o *BillingEstimateResponse) GetLineItemsOk() ([]BillingEstimateLinesLineItems, bool) { + if o == nil || o.LineItems == nil { return nil, false } - return o.Lines, true + return o.LineItems, true } -// HasLines returns a boolean if a field has been set. -func (o *BillingEstimateResponse) HasLines() bool { - if o != nil && o.Lines != nil { +// HasLineItems returns a boolean if a field has been set. +func (o *BillingEstimateResponse) HasLineItems() bool { + if o != nil && o.LineItems != nil { return true } return false } -// SetLines gets a reference to the given []BillingEstimateResponseAllOfLines and assigns it to the Lines field. -func (o *BillingEstimateResponse) SetLines(v []BillingEstimateResponseAllOfLines) { - o.Lines = v +// SetLineItems gets a reference to the given []BillingEstimateLinesLineItems and assigns it to the LineItems field. +func (o *BillingEstimateResponse) SetLineItems(v []BillingEstimateLinesLineItems) { + o.LineItems = v } // MarshalJSON implements the json.Marshaler interface. @@ -391,8 +391,8 @@ func (o BillingEstimateResponse) MarshalJSON() ([]byte, error) { if o.Regions != nil { toSerialize["regions"] = o.Regions } - if o.Lines != nil { - toSerialize["lines"] = o.Lines + if o.LineItems != nil { + toSerialize["line_items"] = o.LineItems } for key, value := range o.AdditionalProperties { @@ -422,7 +422,7 @@ func (o *BillingEstimateResponse) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "status") delete(additionalProperties, "total") delete(additionalProperties, "regions") - delete(additionalProperties, "lines") + delete(additionalProperties, "line_items") o.AdditionalProperties = additionalProperties } diff --git a/fastly/model_billing_estimate_response_all_of.go b/fastly/model_billing_estimate_response_all_of.go deleted file mode 100644 index 81316441..00000000 --- a/fastly/model_billing_estimate_response_all_of.go +++ /dev/null @@ -1,155 +0,0 @@ -// Package fastly is an API client library for interacting with most facets of the Fastly API. -package fastly - -/* -Fastly API - -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) - -API version: 1.0.0 -Contact: oss@fastly.com -*/ - -// This code is auto-generated; DO NOT EDIT. - - -import ( - "encoding/json" -) - -// BillingEstimateResponseAllOf struct for BillingEstimateResponseAllOf -type BillingEstimateResponseAllOf struct { - Lines []BillingEstimateResponseAllOfLines `json:"lines,omitempty"` - AdditionalProperties map[string]any -} - -type _BillingEstimateResponseAllOf BillingEstimateResponseAllOf - -// NewBillingEstimateResponseAllOf instantiates a new BillingEstimateResponseAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewBillingEstimateResponseAllOf() *BillingEstimateResponseAllOf { - this := BillingEstimateResponseAllOf{} - return &this -} - -// NewBillingEstimateResponseAllOfWithDefaults instantiates a new BillingEstimateResponseAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewBillingEstimateResponseAllOfWithDefaults() *BillingEstimateResponseAllOf { - this := BillingEstimateResponseAllOf{} - return &this -} - -// GetLines returns the Lines field value if set, zero value otherwise. -func (o *BillingEstimateResponseAllOf) GetLines() []BillingEstimateResponseAllOfLines { - if o == nil || o.Lines == nil { - var ret []BillingEstimateResponseAllOfLines - return ret - } - return o.Lines -} - -// GetLinesOk returns a tuple with the Lines field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BillingEstimateResponseAllOf) GetLinesOk() ([]BillingEstimateResponseAllOfLines, bool) { - if o == nil || o.Lines == nil { - return nil, false - } - return o.Lines, true -} - -// HasLines returns a boolean if a field has been set. -func (o *BillingEstimateResponseAllOf) HasLines() bool { - if o != nil && o.Lines != nil { - return true - } - - return false -} - -// SetLines gets a reference to the given []BillingEstimateResponseAllOfLines and assigns it to the Lines field. -func (o *BillingEstimateResponseAllOf) SetLines(v []BillingEstimateResponseAllOfLines) { - o.Lines = v -} - -// MarshalJSON implements the json.Marshaler interface. -// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (o BillingEstimateResponseAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]any{} - if o.Lines != nil { - toSerialize["lines"] = o.Lines - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -// UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (o *BillingEstimateResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { - varBillingEstimateResponseAllOf := _BillingEstimateResponseAllOf{} - - if err = json.Unmarshal(bytes, &varBillingEstimateResponseAllOf); err == nil { - *o = BillingEstimateResponseAllOf(varBillingEstimateResponseAllOf) - } - - additionalProperties := make(map[string]any) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "lines") - o.AdditionalProperties = additionalProperties - } - - return err -} - -// NullableBillingEstimateResponseAllOf is a helper abstraction for handling nullable billingestimateresponseallof types. -type NullableBillingEstimateResponseAllOf struct { - value *BillingEstimateResponseAllOf - isSet bool -} - -// Get returns the value. -func (v NullableBillingEstimateResponseAllOf) Get() *BillingEstimateResponseAllOf { - return v.value -} - -// Set modifies the value. -func (v *NullableBillingEstimateResponseAllOf) Set(val *BillingEstimateResponseAllOf) { - v.value = val - v.isSet = true -} - -// IsSet indicates if the value was set. -func (v NullableBillingEstimateResponseAllOf) IsSet() bool { - return v.isSet -} - -// Unset removes the value. -func (v *NullableBillingEstimateResponseAllOf) Unset() { - v.value = nil - v.isSet = false -} - -// NewNullableBillingEstimateResponseAllOf returns a pointer to a new instance of NullableBillingEstimateResponseAllOf. -func NewNullableBillingEstimateResponseAllOf(val *BillingEstimateResponseAllOf) *NullableBillingEstimateResponseAllOf { - return &NullableBillingEstimateResponseAllOf{value: val, isSet: true} -} - -// MarshalJSON implements the json.Marshaler interface. -// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (v NullableBillingEstimateResponseAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (v *NullableBillingEstimateResponseAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/fastly/model_billing_estimate_response_all_of_lines.go b/fastly/model_billing_estimate_response_all_of_lines.go deleted file mode 100644 index 015359b1..00000000 --- a/fastly/model_billing_estimate_response_all_of_lines.go +++ /dev/null @@ -1,155 +0,0 @@ -// Package fastly is an API client library for interacting with most facets of the Fastly API. -package fastly - -/* -Fastly API - -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) - -API version: 1.0.0 -Contact: oss@fastly.com -*/ - -// This code is auto-generated; DO NOT EDIT. - - -import ( - "encoding/json" -) - -// BillingEstimateResponseAllOfLines struct for BillingEstimateResponseAllOfLines -type BillingEstimateResponseAllOfLines struct { - Line *BillingEstimateResponseAllOfLine `json:"line,omitempty"` - AdditionalProperties map[string]any -} - -type _BillingEstimateResponseAllOfLines BillingEstimateResponseAllOfLines - -// NewBillingEstimateResponseAllOfLines instantiates a new BillingEstimateResponseAllOfLines object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewBillingEstimateResponseAllOfLines() *BillingEstimateResponseAllOfLines { - this := BillingEstimateResponseAllOfLines{} - return &this -} - -// NewBillingEstimateResponseAllOfLinesWithDefaults instantiates a new BillingEstimateResponseAllOfLines object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewBillingEstimateResponseAllOfLinesWithDefaults() *BillingEstimateResponseAllOfLines { - this := BillingEstimateResponseAllOfLines{} - return &this -} - -// GetLine returns the Line field value if set, zero value otherwise. -func (o *BillingEstimateResponseAllOfLines) GetLine() BillingEstimateResponseAllOfLine { - if o == nil || o.Line == nil { - var ret BillingEstimateResponseAllOfLine - return ret - } - return *o.Line -} - -// GetLineOk returns a tuple with the Line field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BillingEstimateResponseAllOfLines) GetLineOk() (*BillingEstimateResponseAllOfLine, bool) { - if o == nil || o.Line == nil { - return nil, false - } - return o.Line, true -} - -// HasLine returns a boolean if a field has been set. -func (o *BillingEstimateResponseAllOfLines) HasLine() bool { - if o != nil && o.Line != nil { - return true - } - - return false -} - -// SetLine gets a reference to the given BillingEstimateResponseAllOfLine and assigns it to the Line field. -func (o *BillingEstimateResponseAllOfLines) SetLine(v BillingEstimateResponseAllOfLine) { - o.Line = &v -} - -// MarshalJSON implements the json.Marshaler interface. -// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (o BillingEstimateResponseAllOfLines) MarshalJSON() ([]byte, error) { - toSerialize := map[string]any{} - if o.Line != nil { - toSerialize["line"] = o.Line - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -// UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (o *BillingEstimateResponseAllOfLines) UnmarshalJSON(bytes []byte) (err error) { - varBillingEstimateResponseAllOfLines := _BillingEstimateResponseAllOfLines{} - - if err = json.Unmarshal(bytes, &varBillingEstimateResponseAllOfLines); err == nil { - *o = BillingEstimateResponseAllOfLines(varBillingEstimateResponseAllOfLines) - } - - additionalProperties := make(map[string]any) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "line") - o.AdditionalProperties = additionalProperties - } - - return err -} - -// NullableBillingEstimateResponseAllOfLines is a helper abstraction for handling nullable billingestimateresponsealloflines types. -type NullableBillingEstimateResponseAllOfLines struct { - value *BillingEstimateResponseAllOfLines - isSet bool -} - -// Get returns the value. -func (v NullableBillingEstimateResponseAllOfLines) Get() *BillingEstimateResponseAllOfLines { - return v.value -} - -// Set modifies the value. -func (v *NullableBillingEstimateResponseAllOfLines) Set(val *BillingEstimateResponseAllOfLines) { - v.value = val - v.isSet = true -} - -// IsSet indicates if the value was set. -func (v NullableBillingEstimateResponseAllOfLines) IsSet() bool { - return v.isSet -} - -// Unset removes the value. -func (v *NullableBillingEstimateResponseAllOfLines) Unset() { - v.value = nil - v.isSet = false -} - -// NewNullableBillingEstimateResponseAllOfLines returns a pointer to a new instance of NullableBillingEstimateResponseAllOfLines. -func NewNullableBillingEstimateResponseAllOfLines(val *BillingEstimateResponseAllOfLines) *NullableBillingEstimateResponseAllOfLines { - return &NullableBillingEstimateResponseAllOfLines{value: val, isSet: true} -} - -// MarshalJSON implements the json.Marshaler interface. -// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (v NullableBillingEstimateResponseAllOfLines) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (v *NullableBillingEstimateResponseAllOfLines) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/fastly/model_billing_response_item_items_data.go b/fastly/model_billing_response_item_items_data.go new file mode 100644 index 00000000..2744717f --- /dev/null +++ b/fastly/model_billing_response_item_items_data.go @@ -0,0 +1,155 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// BillingResponseItemItemsData struct for BillingResponseItemItemsData +type BillingResponseItemItemsData struct { + LineItems []BillingResponseLineItem `json:"line_items,omitempty"` + AdditionalProperties map[string]any +} + +type _BillingResponseItemItemsData BillingResponseItemItemsData + +// NewBillingResponseItemItemsData instantiates a new BillingResponseItemItemsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBillingResponseItemItemsData() *BillingResponseItemItemsData { + this := BillingResponseItemItemsData{} + return &this +} + +// NewBillingResponseItemItemsDataWithDefaults instantiates a new BillingResponseItemItemsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBillingResponseItemItemsDataWithDefaults() *BillingResponseItemItemsData { + this := BillingResponseItemItemsData{} + return &this +} + +// GetLineItems returns the LineItems field value if set, zero value otherwise. +func (o *BillingResponseItemItemsData) GetLineItems() []BillingResponseLineItem { + if o == nil || o.LineItems == nil { + var ret []BillingResponseLineItem + return ret + } + return o.LineItems +} + +// GetLineItemsOk returns a tuple with the LineItems field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BillingResponseItemItemsData) GetLineItemsOk() ([]BillingResponseLineItem, bool) { + if o == nil || o.LineItems == nil { + return nil, false + } + return o.LineItems, true +} + +// HasLineItems returns a boolean if a field has been set. +func (o *BillingResponseItemItemsData) HasLineItems() bool { + if o != nil && o.LineItems != nil { + return true + } + + return false +} + +// SetLineItems gets a reference to the given []BillingResponseLineItem and assigns it to the LineItems field. +func (o *BillingResponseItemItemsData) SetLineItems(v []BillingResponseLineItem) { + o.LineItems = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o BillingResponseItemItemsData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.LineItems != nil { + toSerialize["line_items"] = o.LineItems + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *BillingResponseItemItemsData) UnmarshalJSON(bytes []byte) (err error) { + varBillingResponseItemItemsData := _BillingResponseItemItemsData{} + + if err = json.Unmarshal(bytes, &varBillingResponseItemItemsData); err == nil { + *o = BillingResponseItemItemsData(varBillingResponseItemItemsData) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "line_items") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableBillingResponseItemItemsData is a helper abstraction for handling nullable billingresponseitemitemsdata types. +type NullableBillingResponseItemItemsData struct { + value *BillingResponseItemItemsData + isSet bool +} + +// Get returns the value. +func (v NullableBillingResponseItemItemsData) Get() *BillingResponseItemItemsData { + return v.value +} + +// Set modifies the value. +func (v *NullableBillingResponseItemItemsData) Set(val *BillingResponseItemItemsData) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableBillingResponseItemItemsData) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableBillingResponseItemItemsData) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableBillingResponseItemItemsData returns a pointer to a new instance of NullableBillingResponseItemItemsData. +func NewNullableBillingResponseItemItemsData(val *BillingResponseItemItemsData) *NullableBillingResponseItemItemsData { + return &NullableBillingResponseItemItemsData{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableBillingResponseItemItemsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableBillingResponseItemItemsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_billing_response_line_item.go b/fastly/model_billing_response_line_item.go index cf0ee38b..746fb622 100644 --- a/fastly/model_billing_response_line_item.go +++ b/fastly/model_billing_response_line_item.go @@ -27,7 +27,7 @@ type BillingResponseLineItem struct { // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` Amount *float32 `json:"amount,omitempty"` - AriaInvoiceID *string `json:"aria_invoice_id,omitempty"` + AriaInvoiceID *LineItemDataReadOnlyInvoiceID `json:"aria_invoice_id,omitempty"` ClientServiceID *string `json:"client_service_id,omitempty"` CreditCouponCode NullableString `json:"credit_coupon_code,omitempty"` Description *string `json:"description,omitempty"` @@ -224,9 +224,9 @@ func (o *BillingResponseLineItem) SetAmount(v float32) { } // GetAriaInvoiceID returns the AriaInvoiceID field value if set, zero value otherwise. -func (o *BillingResponseLineItem) GetAriaInvoiceID() string { +func (o *BillingResponseLineItem) GetAriaInvoiceID() LineItemDataReadOnlyInvoiceID { if o == nil || o.AriaInvoiceID == nil { - var ret string + var ret LineItemDataReadOnlyInvoiceID return ret } return *o.AriaInvoiceID @@ -234,7 +234,7 @@ func (o *BillingResponseLineItem) GetAriaInvoiceID() string { // GetAriaInvoiceIDOk returns a tuple with the AriaInvoiceID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItem) GetAriaInvoiceIDOk() (*string, bool) { +func (o *BillingResponseLineItem) GetAriaInvoiceIDOk() (*LineItemDataReadOnlyInvoiceID, bool) { if o == nil || o.AriaInvoiceID == nil { return nil, false } @@ -250,8 +250,8 @@ func (o *BillingResponseLineItem) HasAriaInvoiceID() bool { return false } -// SetAriaInvoiceID gets a reference to the given string and assigns it to the AriaInvoiceID field. -func (o *BillingResponseLineItem) SetAriaInvoiceID(v string) { +// SetAriaInvoiceID gets a reference to the given LineItemDataReadOnlyInvoiceID and assigns it to the AriaInvoiceID field. +func (o *BillingResponseLineItem) SetAriaInvoiceID(v LineItemDataReadOnlyInvoiceID) { o.AriaInvoiceID = &v } diff --git a/fastly/model_billing_status.go b/fastly/model_billing_status.go index 2820ff5f..503e5975 100644 --- a/fastly/model_billing_status.go +++ b/fastly/model_billing_status.go @@ -22,8 +22,9 @@ import ( type BillingStatus struct { // What the current status of this invoice can be. Status *string `json:"status,omitempty"` + // Date and time in ISO 8601 format. // Deprecated - SentAt *time.Time `json:"sent_at,omitempty"` + SentAt NullableTime `json:"sent_at,omitempty"` AdditionalProperties map[string]any } @@ -78,39 +79,49 @@ func (o *BillingStatus) SetStatus(v string) { o.Status = &v } -// GetSentAt returns the SentAt field value if set, zero value otherwise. +// GetSentAt returns the SentAt field value if set, zero value otherwise (both if not set or set to explicit null). // Deprecated func (o *BillingStatus) GetSentAt() time.Time { - if o == nil || o.SentAt == nil { + if o == nil || o.SentAt.Get() == nil { var ret time.Time return ret } - return *o.SentAt + return *o.SentAt.Get() } // GetSentAtOk returns a tuple with the SentAt field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned // Deprecated func (o *BillingStatus) GetSentAtOk() (*time.Time, bool) { - if o == nil || o.SentAt == nil { + if o == nil { return nil, false } - return o.SentAt, true + return o.SentAt.Get(), o.SentAt.IsSet() } // HasSentAt returns a boolean if a field has been set. func (o *BillingStatus) HasSentAt() bool { - if o != nil && o.SentAt != nil { + if o != nil && o.SentAt.IsSet() { return true } return false } -// SetSentAt gets a reference to the given time.Time and assigns it to the SentAt field. +// SetSentAt gets a reference to the given NullableTime and assigns it to the SentAt field. // Deprecated func (o *BillingStatus) SetSentAt(v time.Time) { - o.SentAt = &v + o.SentAt.Set(&v) +} +// SetSentAtNil sets the value for SentAt to be an explicit nil +func (o *BillingStatus) SetSentAtNil() { + o.SentAt.Set(nil) +} + +// UnsetSentAt ensures that no value is present for SentAt, not even an explicit nil +func (o *BillingStatus) UnsetSentAt() { + o.SentAt.Unset() } // MarshalJSON implements the json.Marshaler interface. @@ -120,8 +131,8 @@ func (o BillingStatus) MarshalJSON() ([]byte, error) { if o.Status != nil { toSerialize["status"] = o.Status } - if o.SentAt != nil { - toSerialize["sent_at"] = o.SentAt + if o.SentAt.IsSet() { + toSerialize["sent_at"] = o.SentAt.Get() } for key, value := range o.AdditionalProperties { diff --git a/fastly/model_billing_response_line_item_all_of.go b/fastly/model_line_item_data.go similarity index 71% rename from fastly/model_billing_response_line_item_all_of.go rename to fastly/model_line_item_data.go index 9d249b49..df379a6d 100644 --- a/fastly/model_billing_response_line_item_all_of.go +++ b/fastly/model_line_item_data.go @@ -17,10 +17,10 @@ import ( "encoding/json" ) -// BillingResponseLineItemAllOf struct for BillingResponseLineItemAllOf -type BillingResponseLineItemAllOf struct { +// LineItemData struct for LineItemData +type LineItemData struct { Amount *float32 `json:"amount,omitempty"` - AriaInvoiceID *string `json:"aria_invoice_id,omitempty"` + AriaInvoiceID *LineItemDataReadOnlyInvoiceID `json:"aria_invoice_id,omitempty"` ClientServiceID *string `json:"client_service_id,omitempty"` CreditCouponCode NullableString `json:"credit_coupon_code,omitempty"` Description *string `json:"description,omitempty"` @@ -39,27 +39,27 @@ type BillingResponseLineItemAllOf struct { AdditionalProperties map[string]any } -type _BillingResponseLineItemAllOf BillingResponseLineItemAllOf +type _LineItemData LineItemData -// NewBillingResponseLineItemAllOf instantiates a new BillingResponseLineItemAllOf object +// NewLineItemData instantiates a new LineItemData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewBillingResponseLineItemAllOf() *BillingResponseLineItemAllOf { - this := BillingResponseLineItemAllOf{} +func NewLineItemData() *LineItemData { + this := LineItemData{} return &this } -// NewBillingResponseLineItemAllOfWithDefaults instantiates a new BillingResponseLineItemAllOf object +// NewLineItemDataWithDefaults instantiates a new LineItemData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewBillingResponseLineItemAllOfWithDefaults() *BillingResponseLineItemAllOf { - this := BillingResponseLineItemAllOf{} +func NewLineItemDataWithDefaults() *LineItemData { + this := LineItemData{} return &this } // GetAmount returns the Amount field value if set, zero value otherwise. -func (o *BillingResponseLineItemAllOf) GetAmount() float32 { +func (o *LineItemData) GetAmount() float32 { if o == nil || o.Amount == nil { var ret float32 return ret @@ -69,7 +69,7 @@ func (o *BillingResponseLineItemAllOf) GetAmount() float32 { // GetAmountOk returns a tuple with the Amount field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItemAllOf) GetAmountOk() (*float32, bool) { +func (o *LineItemData) GetAmountOk() (*float32, bool) { if o == nil || o.Amount == nil { return nil, false } @@ -77,7 +77,7 @@ func (o *BillingResponseLineItemAllOf) GetAmountOk() (*float32, bool) { } // HasAmount returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasAmount() bool { +func (o *LineItemData) HasAmount() bool { if o != nil && o.Amount != nil { return true } @@ -86,14 +86,14 @@ func (o *BillingResponseLineItemAllOf) HasAmount() bool { } // SetAmount gets a reference to the given float32 and assigns it to the Amount field. -func (o *BillingResponseLineItemAllOf) SetAmount(v float32) { +func (o *LineItemData) SetAmount(v float32) { o.Amount = &v } // GetAriaInvoiceID returns the AriaInvoiceID field value if set, zero value otherwise. -func (o *BillingResponseLineItemAllOf) GetAriaInvoiceID() string { +func (o *LineItemData) GetAriaInvoiceID() LineItemDataReadOnlyInvoiceID { if o == nil || o.AriaInvoiceID == nil { - var ret string + var ret LineItemDataReadOnlyInvoiceID return ret } return *o.AriaInvoiceID @@ -101,7 +101,7 @@ func (o *BillingResponseLineItemAllOf) GetAriaInvoiceID() string { // GetAriaInvoiceIDOk returns a tuple with the AriaInvoiceID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItemAllOf) GetAriaInvoiceIDOk() (*string, bool) { +func (o *LineItemData) GetAriaInvoiceIDOk() (*LineItemDataReadOnlyInvoiceID, bool) { if o == nil || o.AriaInvoiceID == nil { return nil, false } @@ -109,7 +109,7 @@ func (o *BillingResponseLineItemAllOf) GetAriaInvoiceIDOk() (*string, bool) { } // HasAriaInvoiceID returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasAriaInvoiceID() bool { +func (o *LineItemData) HasAriaInvoiceID() bool { if o != nil && o.AriaInvoiceID != nil { return true } @@ -117,13 +117,13 @@ func (o *BillingResponseLineItemAllOf) HasAriaInvoiceID() bool { return false } -// SetAriaInvoiceID gets a reference to the given string and assigns it to the AriaInvoiceID field. -func (o *BillingResponseLineItemAllOf) SetAriaInvoiceID(v string) { +// SetAriaInvoiceID gets a reference to the given LineItemDataReadOnlyInvoiceID and assigns it to the AriaInvoiceID field. +func (o *LineItemData) SetAriaInvoiceID(v LineItemDataReadOnlyInvoiceID) { o.AriaInvoiceID = &v } // GetClientServiceID returns the ClientServiceID field value if set, zero value otherwise. -func (o *BillingResponseLineItemAllOf) GetClientServiceID() string { +func (o *LineItemData) GetClientServiceID() string { if o == nil || o.ClientServiceID == nil { var ret string return ret @@ -133,7 +133,7 @@ func (o *BillingResponseLineItemAllOf) GetClientServiceID() string { // GetClientServiceIDOk returns a tuple with the ClientServiceID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItemAllOf) GetClientServiceIDOk() (*string, bool) { +func (o *LineItemData) GetClientServiceIDOk() (*string, bool) { if o == nil || o.ClientServiceID == nil { return nil, false } @@ -141,7 +141,7 @@ func (o *BillingResponseLineItemAllOf) GetClientServiceIDOk() (*string, bool) { } // HasClientServiceID returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasClientServiceID() bool { +func (o *LineItemData) HasClientServiceID() bool { if o != nil && o.ClientServiceID != nil { return true } @@ -150,12 +150,12 @@ func (o *BillingResponseLineItemAllOf) HasClientServiceID() bool { } // SetClientServiceID gets a reference to the given string and assigns it to the ClientServiceID field. -func (o *BillingResponseLineItemAllOf) SetClientServiceID(v string) { +func (o *LineItemData) SetClientServiceID(v string) { o.ClientServiceID = &v } // GetCreditCouponCode returns the CreditCouponCode field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *BillingResponseLineItemAllOf) GetCreditCouponCode() string { +func (o *LineItemData) GetCreditCouponCode() string { if o == nil || o.CreditCouponCode.Get() == nil { var ret string return ret @@ -166,7 +166,7 @@ func (o *BillingResponseLineItemAllOf) GetCreditCouponCode() string { // GetCreditCouponCodeOk returns a tuple with the CreditCouponCode field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *BillingResponseLineItemAllOf) GetCreditCouponCodeOk() (*string, bool) { +func (o *LineItemData) GetCreditCouponCodeOk() (*string, bool) { if o == nil { return nil, false } @@ -174,7 +174,7 @@ func (o *BillingResponseLineItemAllOf) GetCreditCouponCodeOk() (*string, bool) { } // HasCreditCouponCode returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasCreditCouponCode() bool { +func (o *LineItemData) HasCreditCouponCode() bool { if o != nil && o.CreditCouponCode.IsSet() { return true } @@ -183,21 +183,21 @@ func (o *BillingResponseLineItemAllOf) HasCreditCouponCode() bool { } // SetCreditCouponCode gets a reference to the given NullableString and assigns it to the CreditCouponCode field. -func (o *BillingResponseLineItemAllOf) SetCreditCouponCode(v string) { +func (o *LineItemData) SetCreditCouponCode(v string) { o.CreditCouponCode.Set(&v) } // SetCreditCouponCodeNil sets the value for CreditCouponCode to be an explicit nil -func (o *BillingResponseLineItemAllOf) SetCreditCouponCodeNil() { +func (o *LineItemData) SetCreditCouponCodeNil() { o.CreditCouponCode.Set(nil) } // UnsetCreditCouponCode ensures that no value is present for CreditCouponCode, not even an explicit nil -func (o *BillingResponseLineItemAllOf) UnsetCreditCouponCode() { +func (o *LineItemData) UnsetCreditCouponCode() { o.CreditCouponCode.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. -func (o *BillingResponseLineItemAllOf) GetDescription() string { +func (o *LineItemData) GetDescription() string { if o == nil || o.Description == nil { var ret string return ret @@ -207,7 +207,7 @@ func (o *BillingResponseLineItemAllOf) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItemAllOf) GetDescriptionOk() (*string, bool) { +func (o *LineItemData) GetDescriptionOk() (*string, bool) { if o == nil || o.Description == nil { return nil, false } @@ -215,7 +215,7 @@ func (o *BillingResponseLineItemAllOf) GetDescriptionOk() (*string, bool) { } // HasDescription returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasDescription() bool { +func (o *LineItemData) HasDescription() bool { if o != nil && o.Description != nil { return true } @@ -224,12 +224,12 @@ func (o *BillingResponseLineItemAllOf) HasDescription() bool { } // SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *BillingResponseLineItemAllOf) SetDescription(v string) { +func (o *LineItemData) SetDescription(v string) { o.Description = &v } // GetID returns the ID field value if set, zero value otherwise. -func (o *BillingResponseLineItemAllOf) GetID() string { +func (o *LineItemData) GetID() string { if o == nil || o.ID == nil { var ret string return ret @@ -239,7 +239,7 @@ func (o *BillingResponseLineItemAllOf) GetID() string { // GetIDOk returns a tuple with the ID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItemAllOf) GetIDOk() (*string, bool) { +func (o *LineItemData) GetIDOk() (*string, bool) { if o == nil || o.ID == nil { return nil, false } @@ -247,7 +247,7 @@ func (o *BillingResponseLineItemAllOf) GetIDOk() (*string, bool) { } // HasID returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasID() bool { +func (o *LineItemData) HasID() bool { if o != nil && o.ID != nil { return true } @@ -256,12 +256,12 @@ func (o *BillingResponseLineItemAllOf) HasID() bool { } // SetID gets a reference to the given string and assigns it to the ID field. -func (o *BillingResponseLineItemAllOf) SetID(v string) { +func (o *LineItemData) SetID(v string) { o.ID = &v } // GetLineNumber returns the LineNumber field value if set, zero value otherwise. -func (o *BillingResponseLineItemAllOf) GetLineNumber() int32 { +func (o *LineItemData) GetLineNumber() int32 { if o == nil || o.LineNumber == nil { var ret int32 return ret @@ -271,7 +271,7 @@ func (o *BillingResponseLineItemAllOf) GetLineNumber() int32 { // GetLineNumberOk returns a tuple with the LineNumber field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItemAllOf) GetLineNumberOk() (*int32, bool) { +func (o *LineItemData) GetLineNumberOk() (*int32, bool) { if o == nil || o.LineNumber == nil { return nil, false } @@ -279,7 +279,7 @@ func (o *BillingResponseLineItemAllOf) GetLineNumberOk() (*int32, bool) { } // HasLineNumber returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasLineNumber() bool { +func (o *LineItemData) HasLineNumber() bool { if o != nil && o.LineNumber != nil { return true } @@ -288,12 +288,12 @@ func (o *BillingResponseLineItemAllOf) HasLineNumber() bool { } // SetLineNumber gets a reference to the given int32 and assigns it to the LineNumber field. -func (o *BillingResponseLineItemAllOf) SetLineNumber(v int32) { +func (o *LineItemData) SetLineNumber(v int32) { o.LineNumber = &v } // GetPlanName returns the PlanName field value if set, zero value otherwise. -func (o *BillingResponseLineItemAllOf) GetPlanName() string { +func (o *LineItemData) GetPlanName() string { if o == nil || o.PlanName == nil { var ret string return ret @@ -303,7 +303,7 @@ func (o *BillingResponseLineItemAllOf) GetPlanName() string { // GetPlanNameOk returns a tuple with the PlanName field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItemAllOf) GetPlanNameOk() (*string, bool) { +func (o *LineItemData) GetPlanNameOk() (*string, bool) { if o == nil || o.PlanName == nil { return nil, false } @@ -311,7 +311,7 @@ func (o *BillingResponseLineItemAllOf) GetPlanNameOk() (*string, bool) { } // HasPlanName returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasPlanName() bool { +func (o *LineItemData) HasPlanName() bool { if o != nil && o.PlanName != nil { return true } @@ -320,12 +320,12 @@ func (o *BillingResponseLineItemAllOf) HasPlanName() bool { } // SetPlanName gets a reference to the given string and assigns it to the PlanName field. -func (o *BillingResponseLineItemAllOf) SetPlanName(v string) { +func (o *LineItemData) SetPlanName(v string) { o.PlanName = &v } // GetPlanNo returns the PlanNo field value if set, zero value otherwise. -func (o *BillingResponseLineItemAllOf) GetPlanNo() float32 { +func (o *LineItemData) GetPlanNo() float32 { if o == nil || o.PlanNo == nil { var ret float32 return ret @@ -335,7 +335,7 @@ func (o *BillingResponseLineItemAllOf) GetPlanNo() float32 { // GetPlanNoOk returns a tuple with the PlanNo field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItemAllOf) GetPlanNoOk() (*float32, bool) { +func (o *LineItemData) GetPlanNoOk() (*float32, bool) { if o == nil || o.PlanNo == nil { return nil, false } @@ -343,7 +343,7 @@ func (o *BillingResponseLineItemAllOf) GetPlanNoOk() (*float32, bool) { } // HasPlanNo returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasPlanNo() bool { +func (o *LineItemData) HasPlanNo() bool { if o != nil && o.PlanNo != nil { return true } @@ -352,12 +352,12 @@ func (o *BillingResponseLineItemAllOf) HasPlanNo() bool { } // SetPlanNo gets a reference to the given float32 and assigns it to the PlanNo field. -func (o *BillingResponseLineItemAllOf) SetPlanNo(v float32) { +func (o *LineItemData) SetPlanNo(v float32) { o.PlanNo = &v } // GetRatePerUnit returns the RatePerUnit field value if set, zero value otherwise. -func (o *BillingResponseLineItemAllOf) GetRatePerUnit() float32 { +func (o *LineItemData) GetRatePerUnit() float32 { if o == nil || o.RatePerUnit == nil { var ret float32 return ret @@ -367,7 +367,7 @@ func (o *BillingResponseLineItemAllOf) GetRatePerUnit() float32 { // GetRatePerUnitOk returns a tuple with the RatePerUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItemAllOf) GetRatePerUnitOk() (*float32, bool) { +func (o *LineItemData) GetRatePerUnitOk() (*float32, bool) { if o == nil || o.RatePerUnit == nil { return nil, false } @@ -375,7 +375,7 @@ func (o *BillingResponseLineItemAllOf) GetRatePerUnitOk() (*float32, bool) { } // HasRatePerUnit returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasRatePerUnit() bool { +func (o *LineItemData) HasRatePerUnit() bool { if o != nil && o.RatePerUnit != nil { return true } @@ -384,12 +384,12 @@ func (o *BillingResponseLineItemAllOf) HasRatePerUnit() bool { } // SetRatePerUnit gets a reference to the given float32 and assigns it to the RatePerUnit field. -func (o *BillingResponseLineItemAllOf) SetRatePerUnit(v float32) { +func (o *LineItemData) SetRatePerUnit(v float32) { o.RatePerUnit = &v } // GetRateScheduleNo returns the RateScheduleNo field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *BillingResponseLineItemAllOf) GetRateScheduleNo() float32 { +func (o *LineItemData) GetRateScheduleNo() float32 { if o == nil || o.RateScheduleNo.Get() == nil { var ret float32 return ret @@ -400,7 +400,7 @@ func (o *BillingResponseLineItemAllOf) GetRateScheduleNo() float32 { // GetRateScheduleNoOk returns a tuple with the RateScheduleNo field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *BillingResponseLineItemAllOf) GetRateScheduleNoOk() (*float32, bool) { +func (o *LineItemData) GetRateScheduleNoOk() (*float32, bool) { if o == nil { return nil, false } @@ -408,7 +408,7 @@ func (o *BillingResponseLineItemAllOf) GetRateScheduleNoOk() (*float32, bool) { } // HasRateScheduleNo returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasRateScheduleNo() bool { +func (o *LineItemData) HasRateScheduleNo() bool { if o != nil && o.RateScheduleNo.IsSet() { return true } @@ -417,21 +417,21 @@ func (o *BillingResponseLineItemAllOf) HasRateScheduleNo() bool { } // SetRateScheduleNo gets a reference to the given NullableFloat32 and assigns it to the RateScheduleNo field. -func (o *BillingResponseLineItemAllOf) SetRateScheduleNo(v float32) { +func (o *LineItemData) SetRateScheduleNo(v float32) { o.RateScheduleNo.Set(&v) } // SetRateScheduleNoNil sets the value for RateScheduleNo to be an explicit nil -func (o *BillingResponseLineItemAllOf) SetRateScheduleNoNil() { +func (o *LineItemData) SetRateScheduleNoNil() { o.RateScheduleNo.Set(nil) } // UnsetRateScheduleNo ensures that no value is present for RateScheduleNo, not even an explicit nil -func (o *BillingResponseLineItemAllOf) UnsetRateScheduleNo() { +func (o *LineItemData) UnsetRateScheduleNo() { o.RateScheduleNo.Unset() } // GetRateScheduleTierNo returns the RateScheduleTierNo field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *BillingResponseLineItemAllOf) GetRateScheduleTierNo() float32 { +func (o *LineItemData) GetRateScheduleTierNo() float32 { if o == nil || o.RateScheduleTierNo.Get() == nil { var ret float32 return ret @@ -442,7 +442,7 @@ func (o *BillingResponseLineItemAllOf) GetRateScheduleTierNo() float32 { // GetRateScheduleTierNoOk returns a tuple with the RateScheduleTierNo field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *BillingResponseLineItemAllOf) GetRateScheduleTierNoOk() (*float32, bool) { +func (o *LineItemData) GetRateScheduleTierNoOk() (*float32, bool) { if o == nil { return nil, false } @@ -450,7 +450,7 @@ func (o *BillingResponseLineItemAllOf) GetRateScheduleTierNoOk() (*float32, bool } // HasRateScheduleTierNo returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasRateScheduleTierNo() bool { +func (o *LineItemData) HasRateScheduleTierNo() bool { if o != nil && o.RateScheduleTierNo.IsSet() { return true } @@ -459,21 +459,21 @@ func (o *BillingResponseLineItemAllOf) HasRateScheduleTierNo() bool { } // SetRateScheduleTierNo gets a reference to the given NullableFloat32 and assigns it to the RateScheduleTierNo field. -func (o *BillingResponseLineItemAllOf) SetRateScheduleTierNo(v float32) { +func (o *LineItemData) SetRateScheduleTierNo(v float32) { o.RateScheduleTierNo.Set(&v) } // SetRateScheduleTierNoNil sets the value for RateScheduleTierNo to be an explicit nil -func (o *BillingResponseLineItemAllOf) SetRateScheduleTierNoNil() { +func (o *LineItemData) SetRateScheduleTierNoNil() { o.RateScheduleTierNo.Set(nil) } // UnsetRateScheduleTierNo ensures that no value is present for RateScheduleTierNo, not even an explicit nil -func (o *BillingResponseLineItemAllOf) UnsetRateScheduleTierNo() { +func (o *LineItemData) UnsetRateScheduleTierNo() { o.RateScheduleTierNo.Unset() } // GetServiceName returns the ServiceName field value if set, zero value otherwise. -func (o *BillingResponseLineItemAllOf) GetServiceName() string { +func (o *LineItemData) GetServiceName() string { if o == nil || o.ServiceName == nil { var ret string return ret @@ -483,7 +483,7 @@ func (o *BillingResponseLineItemAllOf) GetServiceName() string { // GetServiceNameOk returns a tuple with the ServiceName field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItemAllOf) GetServiceNameOk() (*string, bool) { +func (o *LineItemData) GetServiceNameOk() (*string, bool) { if o == nil || o.ServiceName == nil { return nil, false } @@ -491,7 +491,7 @@ func (o *BillingResponseLineItemAllOf) GetServiceNameOk() (*string, bool) { } // HasServiceName returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasServiceName() bool { +func (o *LineItemData) HasServiceName() bool { if o != nil && o.ServiceName != nil { return true } @@ -500,12 +500,12 @@ func (o *BillingResponseLineItemAllOf) HasServiceName() bool { } // SetServiceName gets a reference to the given string and assigns it to the ServiceName field. -func (o *BillingResponseLineItemAllOf) SetServiceName(v string) { +func (o *LineItemData) SetServiceName(v string) { o.ServiceName = &v } // GetServiceNo returns the ServiceNo field value if set, zero value otherwise. -func (o *BillingResponseLineItemAllOf) GetServiceNo() float32 { +func (o *LineItemData) GetServiceNo() float32 { if o == nil || o.ServiceNo == nil { var ret float32 return ret @@ -515,7 +515,7 @@ func (o *BillingResponseLineItemAllOf) GetServiceNo() float32 { // GetServiceNoOk returns a tuple with the ServiceNo field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItemAllOf) GetServiceNoOk() (*float32, bool) { +func (o *LineItemData) GetServiceNoOk() (*float32, bool) { if o == nil || o.ServiceNo == nil { return nil, false } @@ -523,7 +523,7 @@ func (o *BillingResponseLineItemAllOf) GetServiceNoOk() (*float32, bool) { } // HasServiceNo returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasServiceNo() bool { +func (o *LineItemData) HasServiceNo() bool { if o != nil && o.ServiceNo != nil { return true } @@ -532,12 +532,12 @@ func (o *BillingResponseLineItemAllOf) HasServiceNo() bool { } // SetServiceNo gets a reference to the given float32 and assigns it to the ServiceNo field. -func (o *BillingResponseLineItemAllOf) SetServiceNo(v float32) { +func (o *LineItemData) SetServiceNo(v float32) { o.ServiceNo = &v } // GetUnits returns the Units field value if set, zero value otherwise. -func (o *BillingResponseLineItemAllOf) GetUnits() float32 { +func (o *LineItemData) GetUnits() float32 { if o == nil || o.Units == nil { var ret float32 return ret @@ -547,7 +547,7 @@ func (o *BillingResponseLineItemAllOf) GetUnits() float32 { // GetUnitsOk returns a tuple with the Units field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingResponseLineItemAllOf) GetUnitsOk() (*float32, bool) { +func (o *LineItemData) GetUnitsOk() (*float32, bool) { if o == nil || o.Units == nil { return nil, false } @@ -555,7 +555,7 @@ func (o *BillingResponseLineItemAllOf) GetUnitsOk() (*float32, bool) { } // HasUnits returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasUnits() bool { +func (o *LineItemData) HasUnits() bool { if o != nil && o.Units != nil { return true } @@ -564,12 +564,12 @@ func (o *BillingResponseLineItemAllOf) HasUnits() bool { } // SetUnits gets a reference to the given float32 and assigns it to the Units field. -func (o *BillingResponseLineItemAllOf) SetUnits(v float32) { +func (o *LineItemData) SetUnits(v float32) { o.Units = &v } // GetUsageTypeCd returns the UsageTypeCd field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *BillingResponseLineItemAllOf) GetUsageTypeCd() string { +func (o *LineItemData) GetUsageTypeCd() string { if o == nil || o.UsageTypeCd.Get() == nil { var ret string return ret @@ -580,7 +580,7 @@ func (o *BillingResponseLineItemAllOf) GetUsageTypeCd() string { // GetUsageTypeCdOk returns a tuple with the UsageTypeCd field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *BillingResponseLineItemAllOf) GetUsageTypeCdOk() (*string, bool) { +func (o *LineItemData) GetUsageTypeCdOk() (*string, bool) { if o == nil { return nil, false } @@ -588,7 +588,7 @@ func (o *BillingResponseLineItemAllOf) GetUsageTypeCdOk() (*string, bool) { } // HasUsageTypeCd returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasUsageTypeCd() bool { +func (o *LineItemData) HasUsageTypeCd() bool { if o != nil && o.UsageTypeCd.IsSet() { return true } @@ -597,21 +597,21 @@ func (o *BillingResponseLineItemAllOf) HasUsageTypeCd() bool { } // SetUsageTypeCd gets a reference to the given NullableString and assigns it to the UsageTypeCd field. -func (o *BillingResponseLineItemAllOf) SetUsageTypeCd(v string) { +func (o *LineItemData) SetUsageTypeCd(v string) { o.UsageTypeCd.Set(&v) } // SetUsageTypeCdNil sets the value for UsageTypeCd to be an explicit nil -func (o *BillingResponseLineItemAllOf) SetUsageTypeCdNil() { +func (o *LineItemData) SetUsageTypeCdNil() { o.UsageTypeCd.Set(nil) } // UnsetUsageTypeCd ensures that no value is present for UsageTypeCd, not even an explicit nil -func (o *BillingResponseLineItemAllOf) UnsetUsageTypeCd() { +func (o *LineItemData) UnsetUsageTypeCd() { o.UsageTypeCd.Unset() } // GetUsageTypeNo returns the UsageTypeNo field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *BillingResponseLineItemAllOf) GetUsageTypeNo() float32 { +func (o *LineItemData) GetUsageTypeNo() float32 { if o == nil || o.UsageTypeNo.Get() == nil { var ret float32 return ret @@ -622,7 +622,7 @@ func (o *BillingResponseLineItemAllOf) GetUsageTypeNo() float32 { // GetUsageTypeNoOk returns a tuple with the UsageTypeNo field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *BillingResponseLineItemAllOf) GetUsageTypeNoOk() (*float32, bool) { +func (o *LineItemData) GetUsageTypeNoOk() (*float32, bool) { if o == nil { return nil, false } @@ -630,7 +630,7 @@ func (o *BillingResponseLineItemAllOf) GetUsageTypeNoOk() (*float32, bool) { } // HasUsageTypeNo returns a boolean if a field has been set. -func (o *BillingResponseLineItemAllOf) HasUsageTypeNo() bool { +func (o *LineItemData) HasUsageTypeNo() bool { if o != nil && o.UsageTypeNo.IsSet() { return true } @@ -639,22 +639,22 @@ func (o *BillingResponseLineItemAllOf) HasUsageTypeNo() bool { } // SetUsageTypeNo gets a reference to the given NullableFloat32 and assigns it to the UsageTypeNo field. -func (o *BillingResponseLineItemAllOf) SetUsageTypeNo(v float32) { +func (o *LineItemData) SetUsageTypeNo(v float32) { o.UsageTypeNo.Set(&v) } // SetUsageTypeNoNil sets the value for UsageTypeNo to be an explicit nil -func (o *BillingResponseLineItemAllOf) SetUsageTypeNoNil() { +func (o *LineItemData) SetUsageTypeNoNil() { o.UsageTypeNo.Set(nil) } // UnsetUsageTypeNo ensures that no value is present for UsageTypeNo, not even an explicit nil -func (o *BillingResponseLineItemAllOf) UnsetUsageTypeNo() { +func (o *LineItemData) UnsetUsageTypeNo() { o.UsageTypeNo.Unset() } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (o BillingResponseLineItemAllOf) MarshalJSON() ([]byte, error) { +func (o LineItemData) MarshalJSON() ([]byte, error) { toSerialize := map[string]any{} if o.Amount != nil { toSerialize["amount"] = o.Amount @@ -717,11 +717,11 @@ func (o BillingResponseLineItemAllOf) MarshalJSON() ([]byte, error) { // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (o *BillingResponseLineItemAllOf) UnmarshalJSON(bytes []byte) (err error) { - varBillingResponseLineItemAllOf := _BillingResponseLineItemAllOf{} +func (o *LineItemData) UnmarshalJSON(bytes []byte) (err error) { + varLineItemData := _LineItemData{} - if err = json.Unmarshal(bytes, &varBillingResponseLineItemAllOf); err == nil { - *o = BillingResponseLineItemAllOf(varBillingResponseLineItemAllOf) + if err = json.Unmarshal(bytes, &varLineItemData); err == nil { + *o = LineItemData(varLineItemData) } additionalProperties := make(map[string]any) @@ -750,48 +750,48 @@ func (o *BillingResponseLineItemAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingResponseLineItemAllOf is a helper abstraction for handling nullable billingresponselineitemallof types. -type NullableBillingResponseLineItemAllOf struct { - value *BillingResponseLineItemAllOf +// NullableLineItemData is a helper abstraction for handling nullable lineitemdata types. +type NullableLineItemData struct { + value *LineItemData isSet bool } // Get returns the value. -func (v NullableBillingResponseLineItemAllOf) Get() *BillingResponseLineItemAllOf { +func (v NullableLineItemData) Get() *LineItemData { return v.value } // Set modifies the value. -func (v *NullableBillingResponseLineItemAllOf) Set(val *BillingResponseLineItemAllOf) { +func (v *NullableLineItemData) Set(val *LineItemData) { v.value = val v.isSet = true } // IsSet indicates if the value was set. -func (v NullableBillingResponseLineItemAllOf) IsSet() bool { +func (v NullableLineItemData) IsSet() bool { return v.isSet } // Unset removes the value. -func (v *NullableBillingResponseLineItemAllOf) Unset() { +func (v *NullableLineItemData) Unset() { v.value = nil v.isSet = false } -// NewNullableBillingResponseLineItemAllOf returns a pointer to a new instance of NullableBillingResponseLineItemAllOf. -func NewNullableBillingResponseLineItemAllOf(val *BillingResponseLineItemAllOf) *NullableBillingResponseLineItemAllOf { - return &NullableBillingResponseLineItemAllOf{value: val, isSet: true} +// NewNullableLineItemData returns a pointer to a new instance of NullableLineItemData. +func NewNullableLineItemData(val *LineItemData) *NullableLineItemData { + return &NullableLineItemData{value: val, isSet: true} } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (v NullableBillingResponseLineItemAllOf) MarshalJSON() ([]byte, error) { +func (v NullableLineItemData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (v *NullableBillingResponseLineItemAllOf) UnmarshalJSON(src []byte) error { +func (v *NullableLineItemData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/fastly/model_line_item_data_read_only_invoice_id.go b/fastly/model_line_item_data_read_only_invoice_id.go new file mode 100644 index 00000000..987c80f9 --- /dev/null +++ b/fastly/model_line_item_data_read_only_invoice_id.go @@ -0,0 +1,92 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// LineItemDataReadOnlyInvoiceID struct for LineItemDataReadOnlyInvoiceID +type LineItemDataReadOnlyInvoiceID struct { +} + +// NewLineItemDataReadOnlyInvoiceID instantiates a new LineItemDataReadOnlyInvoiceID object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLineItemDataReadOnlyInvoiceID() *LineItemDataReadOnlyInvoiceID { + this := LineItemDataReadOnlyInvoiceID{} + return &this +} + +// NewLineItemDataReadOnlyInvoiceIDWithDefaults instantiates a new LineItemDataReadOnlyInvoiceID object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLineItemDataReadOnlyInvoiceIDWithDefaults() *LineItemDataReadOnlyInvoiceID { + this := LineItemDataReadOnlyInvoiceID{} + return &this +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o LineItemDataReadOnlyInvoiceID) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + return json.Marshal(toSerialize) +} + +// NullableLineItemDataReadOnlyInvoiceID is a helper abstraction for handling nullable lineitemdatareadonlyinvoiceid types. +type NullableLineItemDataReadOnlyInvoiceID struct { + value *LineItemDataReadOnlyInvoiceID + isSet bool +} + +// Get returns the value. +func (v NullableLineItemDataReadOnlyInvoiceID) Get() *LineItemDataReadOnlyInvoiceID { + return v.value +} + +// Set modifies the value. +func (v *NullableLineItemDataReadOnlyInvoiceID) Set(val *LineItemDataReadOnlyInvoiceID) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableLineItemDataReadOnlyInvoiceID) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableLineItemDataReadOnlyInvoiceID) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableLineItemDataReadOnlyInvoiceID returns a pointer to a new instance of NullableLineItemDataReadOnlyInvoiceID. +func NewNullableLineItemDataReadOnlyInvoiceID(val *LineItemDataReadOnlyInvoiceID) *NullableLineItemDataReadOnlyInvoiceID { + return &NullableLineItemDataReadOnlyInvoiceID{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableLineItemDataReadOnlyInvoiceID) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableLineItemDataReadOnlyInvoiceID) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_schemas_user_response.go b/fastly/model_schemas_user_response.go index d78f7640..26764669 100644 --- a/fastly/model_schemas_user_response.go +++ b/fastly/model_schemas_user_response.go @@ -26,12 +26,12 @@ type SchemasUserResponse struct { // Indicates that the user has limited access to the customer's services. LimitServices *bool `json:"limit_services,omitempty"` // Indicates whether the is account is locked for editing or not. - Locked *bool `json:"locked,omitempty"` + Locked NullableBool `json:"locked,omitempty"` // Indicates if a new password is required at next login. - RequireNewPassword *bool `json:"require_new_password,omitempty"` + RequireNewPassword NullableBool `json:"require_new_password,omitempty"` Role *RoleUser `json:"role,omitempty"` // Indicates if 2FA is enabled on the user. - TwoFactorAuthEnabled *bool `json:"two_factor_auth_enabled,omitempty"` + TwoFactorAuthEnabled NullableBool `json:"two_factor_auth_enabled,omitempty"` // Indicates if 2FA is required by the user's customer account. TwoFactorSetupRequired *bool `json:"two_factor_setup_required,omitempty"` // Date and time in ISO 8601 format. @@ -162,68 +162,88 @@ func (o *SchemasUserResponse) SetLimitServices(v bool) { o.LimitServices = &v } -// GetLocked returns the Locked field value if set, zero value otherwise. +// GetLocked returns the Locked field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SchemasUserResponse) GetLocked() bool { - if o == nil || o.Locked == nil { + if o == nil || o.Locked.Get() == nil { var ret bool return ret } - return *o.Locked + return *o.Locked.Get() } // GetLockedOk returns a tuple with the Locked field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasUserResponse) GetLockedOk() (*bool, bool) { - if o == nil || o.Locked == nil { + if o == nil { return nil, false } - return o.Locked, true + return o.Locked.Get(), o.Locked.IsSet() } // HasLocked returns a boolean if a field has been set. func (o *SchemasUserResponse) HasLocked() bool { - if o != nil && o.Locked != nil { + if o != nil && o.Locked.IsSet() { return true } return false } -// SetLocked gets a reference to the given bool and assigns it to the Locked field. +// SetLocked gets a reference to the given NullableBool and assigns it to the Locked field. func (o *SchemasUserResponse) SetLocked(v bool) { - o.Locked = &v + o.Locked.Set(&v) +} +// SetLockedNil sets the value for Locked to be an explicit nil +func (o *SchemasUserResponse) SetLockedNil() { + o.Locked.Set(nil) +} + +// UnsetLocked ensures that no value is present for Locked, not even an explicit nil +func (o *SchemasUserResponse) UnsetLocked() { + o.Locked.Unset() } -// GetRequireNewPassword returns the RequireNewPassword field value if set, zero value otherwise. +// GetRequireNewPassword returns the RequireNewPassword field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SchemasUserResponse) GetRequireNewPassword() bool { - if o == nil || o.RequireNewPassword == nil { + if o == nil || o.RequireNewPassword.Get() == nil { var ret bool return ret } - return *o.RequireNewPassword + return *o.RequireNewPassword.Get() } // GetRequireNewPasswordOk returns a tuple with the RequireNewPassword field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasUserResponse) GetRequireNewPasswordOk() (*bool, bool) { - if o == nil || o.RequireNewPassword == nil { + if o == nil { return nil, false } - return o.RequireNewPassword, true + return o.RequireNewPassword.Get(), o.RequireNewPassword.IsSet() } // HasRequireNewPassword returns a boolean if a field has been set. func (o *SchemasUserResponse) HasRequireNewPassword() bool { - if o != nil && o.RequireNewPassword != nil { + if o != nil && o.RequireNewPassword.IsSet() { return true } return false } -// SetRequireNewPassword gets a reference to the given bool and assigns it to the RequireNewPassword field. +// SetRequireNewPassword gets a reference to the given NullableBool and assigns it to the RequireNewPassword field. func (o *SchemasUserResponse) SetRequireNewPassword(v bool) { - o.RequireNewPassword = &v + o.RequireNewPassword.Set(&v) +} +// SetRequireNewPasswordNil sets the value for RequireNewPassword to be an explicit nil +func (o *SchemasUserResponse) SetRequireNewPasswordNil() { + o.RequireNewPassword.Set(nil) +} + +// UnsetRequireNewPassword ensures that no value is present for RequireNewPassword, not even an explicit nil +func (o *SchemasUserResponse) UnsetRequireNewPassword() { + o.RequireNewPassword.Unset() } // GetRole returns the Role field value if set, zero value otherwise. @@ -258,36 +278,46 @@ func (o *SchemasUserResponse) SetRole(v RoleUser) { o.Role = &v } -// GetTwoFactorAuthEnabled returns the TwoFactorAuthEnabled field value if set, zero value otherwise. +// GetTwoFactorAuthEnabled returns the TwoFactorAuthEnabled field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SchemasUserResponse) GetTwoFactorAuthEnabled() bool { - if o == nil || o.TwoFactorAuthEnabled == nil { + if o == nil || o.TwoFactorAuthEnabled.Get() == nil { var ret bool return ret } - return *o.TwoFactorAuthEnabled + return *o.TwoFactorAuthEnabled.Get() } // GetTwoFactorAuthEnabledOk returns a tuple with the TwoFactorAuthEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasUserResponse) GetTwoFactorAuthEnabledOk() (*bool, bool) { - if o == nil || o.TwoFactorAuthEnabled == nil { + if o == nil { return nil, false } - return o.TwoFactorAuthEnabled, true + return o.TwoFactorAuthEnabled.Get(), o.TwoFactorAuthEnabled.IsSet() } // HasTwoFactorAuthEnabled returns a boolean if a field has been set. func (o *SchemasUserResponse) HasTwoFactorAuthEnabled() bool { - if o != nil && o.TwoFactorAuthEnabled != nil { + if o != nil && o.TwoFactorAuthEnabled.IsSet() { return true } return false } -// SetTwoFactorAuthEnabled gets a reference to the given bool and assigns it to the TwoFactorAuthEnabled field. +// SetTwoFactorAuthEnabled gets a reference to the given NullableBool and assigns it to the TwoFactorAuthEnabled field. func (o *SchemasUserResponse) SetTwoFactorAuthEnabled(v bool) { - o.TwoFactorAuthEnabled = &v + o.TwoFactorAuthEnabled.Set(&v) +} +// SetTwoFactorAuthEnabledNil sets the value for TwoFactorAuthEnabled to be an explicit nil +func (o *SchemasUserResponse) SetTwoFactorAuthEnabledNil() { + o.TwoFactorAuthEnabled.Set(nil) +} + +// UnsetTwoFactorAuthEnabled ensures that no value is present for TwoFactorAuthEnabled, not even an explicit nil +func (o *SchemasUserResponse) UnsetTwoFactorAuthEnabled() { + o.TwoFactorAuthEnabled.Unset() } // GetTwoFactorSetupRequired returns the TwoFactorSetupRequired field value if set, zero value otherwise. @@ -557,17 +587,17 @@ func (o SchemasUserResponse) MarshalJSON() ([]byte, error) { if o.LimitServices != nil { toSerialize["limit_services"] = o.LimitServices } - if o.Locked != nil { - toSerialize["locked"] = o.Locked + if o.Locked.IsSet() { + toSerialize["locked"] = o.Locked.Get() } - if o.RequireNewPassword != nil { - toSerialize["require_new_password"] = o.RequireNewPassword + if o.RequireNewPassword.IsSet() { + toSerialize["require_new_password"] = o.RequireNewPassword.Get() } if o.Role != nil { toSerialize["role"] = o.Role } - if o.TwoFactorAuthEnabled != nil { - toSerialize["two_factor_auth_enabled"] = o.TwoFactorAuthEnabled + if o.TwoFactorAuthEnabled.IsSet() { + toSerialize["two_factor_auth_enabled"] = o.TwoFactorAuthEnabled.Get() } if o.TwoFactorSetupRequired != nil { toSerialize["two_factor_setup_required"] = o.TwoFactorSetupRequired diff --git a/fastly/model_schemas_user_response_read_only.go b/fastly/model_schemas_user_response_read_only.go new file mode 100644 index 00000000..da41eb2c --- /dev/null +++ b/fastly/model_schemas_user_response_read_only.go @@ -0,0 +1,230 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// SchemasUserResponseReadOnly struct for SchemasUserResponseReadOnly +type SchemasUserResponseReadOnly struct { + ID *string `json:"id,omitempty"` + // The alphanumeric string identifying a email login. + EmailHash *string `json:"email_hash,omitempty"` + CustomerID *string `json:"customer_id,omitempty"` + AdditionalProperties map[string]any +} + +type _SchemasUserResponseReadOnly SchemasUserResponseReadOnly + +// NewSchemasUserResponseReadOnly instantiates a new SchemasUserResponseReadOnly object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemasUserResponseReadOnly() *SchemasUserResponseReadOnly { + this := SchemasUserResponseReadOnly{} + return &this +} + +// NewSchemasUserResponseReadOnlyWithDefaults instantiates a new SchemasUserResponseReadOnly object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemasUserResponseReadOnlyWithDefaults() *SchemasUserResponseReadOnly { + this := SchemasUserResponseReadOnly{} + return &this +} + +// GetID returns the ID field value if set, zero value otherwise. +func (o *SchemasUserResponseReadOnly) GetID() string { + if o == nil || o.ID == nil { + var ret string + return ret + } + return *o.ID +} + +// GetIDOk returns a tuple with the ID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemasUserResponseReadOnly) GetIDOk() (*string, bool) { + if o == nil || o.ID == nil { + return nil, false + } + return o.ID, true +} + +// HasID returns a boolean if a field has been set. +func (o *SchemasUserResponseReadOnly) HasID() bool { + if o != nil && o.ID != nil { + return true + } + + return false +} + +// SetID gets a reference to the given string and assigns it to the ID field. +func (o *SchemasUserResponseReadOnly) SetID(v string) { + o.ID = &v +} + +// GetEmailHash returns the EmailHash field value if set, zero value otherwise. +func (o *SchemasUserResponseReadOnly) GetEmailHash() string { + if o == nil || o.EmailHash == nil { + var ret string + return ret + } + return *o.EmailHash +} + +// GetEmailHashOk returns a tuple with the EmailHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemasUserResponseReadOnly) GetEmailHashOk() (*string, bool) { + if o == nil || o.EmailHash == nil { + return nil, false + } + return o.EmailHash, true +} + +// HasEmailHash returns a boolean if a field has been set. +func (o *SchemasUserResponseReadOnly) HasEmailHash() bool { + if o != nil && o.EmailHash != nil { + return true + } + + return false +} + +// SetEmailHash gets a reference to the given string and assigns it to the EmailHash field. +func (o *SchemasUserResponseReadOnly) SetEmailHash(v string) { + o.EmailHash = &v +} + +// GetCustomerID returns the CustomerID field value if set, zero value otherwise. +func (o *SchemasUserResponseReadOnly) GetCustomerID() string { + if o == nil || o.CustomerID == nil { + var ret string + return ret + } + return *o.CustomerID +} + +// GetCustomerIDOk returns a tuple with the CustomerID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemasUserResponseReadOnly) GetCustomerIDOk() (*string, bool) { + if o == nil || o.CustomerID == nil { + return nil, false + } + return o.CustomerID, true +} + +// HasCustomerID returns a boolean if a field has been set. +func (o *SchemasUserResponseReadOnly) HasCustomerID() bool { + if o != nil && o.CustomerID != nil { + return true + } + + return false +} + +// SetCustomerID gets a reference to the given string and assigns it to the CustomerID field. +func (o *SchemasUserResponseReadOnly) SetCustomerID(v string) { + o.CustomerID = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o SchemasUserResponseReadOnly) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.ID != nil { + toSerialize["id"] = o.ID + } + if o.EmailHash != nil { + toSerialize["email_hash"] = o.EmailHash + } + if o.CustomerID != nil { + toSerialize["customer_id"] = o.CustomerID + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *SchemasUserResponseReadOnly) UnmarshalJSON(bytes []byte) (err error) { + varSchemasUserResponseReadOnly := _SchemasUserResponseReadOnly{} + + if err = json.Unmarshal(bytes, &varSchemasUserResponseReadOnly); err == nil { + *o = SchemasUserResponseReadOnly(varSchemasUserResponseReadOnly) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "email_hash") + delete(additionalProperties, "customer_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableSchemasUserResponseReadOnly is a helper abstraction for handling nullable schemasuserresponsereadonly types. +type NullableSchemasUserResponseReadOnly struct { + value *SchemasUserResponseReadOnly + isSet bool +} + +// Get returns the value. +func (v NullableSchemasUserResponseReadOnly) Get() *SchemasUserResponseReadOnly { + return v.value +} + +// Set modifies the value. +func (v *NullableSchemasUserResponseReadOnly) Set(val *SchemasUserResponseReadOnly) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableSchemasUserResponseReadOnly) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableSchemasUserResponseReadOnly) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableSchemasUserResponseReadOnly returns a pointer to a new instance of NullableSchemasUserResponseReadOnly. +func NewNullableSchemasUserResponseReadOnly(val *SchemasUserResponseReadOnly) *NullableSchemasUserResponseReadOnly { + return &NullableSchemasUserResponseReadOnly{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableSchemasUserResponseReadOnly) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableSchemasUserResponseReadOnly) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_user.go b/fastly/model_user.go index 0133f539..7c2f4501 100644 --- a/fastly/model_user.go +++ b/fastly/model_user.go @@ -25,12 +25,12 @@ type User struct { // Indicates that the user has limited access to the customer's services. LimitServices *bool `json:"limit_services,omitempty"` // Indicates whether the is account is locked for editing or not. - Locked *bool `json:"locked,omitempty"` + Locked NullableBool `json:"locked,omitempty"` // Indicates if a new password is required at next login. - RequireNewPassword *bool `json:"require_new_password,omitempty"` + RequireNewPassword NullableBool `json:"require_new_password,omitempty"` Role *RoleUser `json:"role,omitempty"` // Indicates if 2FA is enabled on the user. - TwoFactorAuthEnabled *bool `json:"two_factor_auth_enabled,omitempty"` + TwoFactorAuthEnabled NullableBool `json:"two_factor_auth_enabled,omitempty"` // Indicates if 2FA is required by the user's customer account. TwoFactorSetupRequired *bool `json:"two_factor_setup_required,omitempty"` AdditionalProperties map[string]any @@ -151,68 +151,88 @@ func (o *User) SetLimitServices(v bool) { o.LimitServices = &v } -// GetLocked returns the Locked field value if set, zero value otherwise. +// GetLocked returns the Locked field value if set, zero value otherwise (both if not set or set to explicit null). func (o *User) GetLocked() bool { - if o == nil || o.Locked == nil { + if o == nil || o.Locked.Get() == nil { var ret bool return ret } - return *o.Locked + return *o.Locked.Get() } // GetLockedOk returns a tuple with the Locked field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *User) GetLockedOk() (*bool, bool) { - if o == nil || o.Locked == nil { + if o == nil { return nil, false } - return o.Locked, true + return o.Locked.Get(), o.Locked.IsSet() } // HasLocked returns a boolean if a field has been set. func (o *User) HasLocked() bool { - if o != nil && o.Locked != nil { + if o != nil && o.Locked.IsSet() { return true } return false } -// SetLocked gets a reference to the given bool and assigns it to the Locked field. +// SetLocked gets a reference to the given NullableBool and assigns it to the Locked field. func (o *User) SetLocked(v bool) { - o.Locked = &v + o.Locked.Set(&v) +} +// SetLockedNil sets the value for Locked to be an explicit nil +func (o *User) SetLockedNil() { + o.Locked.Set(nil) +} + +// UnsetLocked ensures that no value is present for Locked, not even an explicit nil +func (o *User) UnsetLocked() { + o.Locked.Unset() } -// GetRequireNewPassword returns the RequireNewPassword field value if set, zero value otherwise. +// GetRequireNewPassword returns the RequireNewPassword field value if set, zero value otherwise (both if not set or set to explicit null). func (o *User) GetRequireNewPassword() bool { - if o == nil || o.RequireNewPassword == nil { + if o == nil || o.RequireNewPassword.Get() == nil { var ret bool return ret } - return *o.RequireNewPassword + return *o.RequireNewPassword.Get() } // GetRequireNewPasswordOk returns a tuple with the RequireNewPassword field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *User) GetRequireNewPasswordOk() (*bool, bool) { - if o == nil || o.RequireNewPassword == nil { + if o == nil { return nil, false } - return o.RequireNewPassword, true + return o.RequireNewPassword.Get(), o.RequireNewPassword.IsSet() } // HasRequireNewPassword returns a boolean if a field has been set. func (o *User) HasRequireNewPassword() bool { - if o != nil && o.RequireNewPassword != nil { + if o != nil && o.RequireNewPassword.IsSet() { return true } return false } -// SetRequireNewPassword gets a reference to the given bool and assigns it to the RequireNewPassword field. +// SetRequireNewPassword gets a reference to the given NullableBool and assigns it to the RequireNewPassword field. func (o *User) SetRequireNewPassword(v bool) { - o.RequireNewPassword = &v + o.RequireNewPassword.Set(&v) +} +// SetRequireNewPasswordNil sets the value for RequireNewPassword to be an explicit nil +func (o *User) SetRequireNewPasswordNil() { + o.RequireNewPassword.Set(nil) +} + +// UnsetRequireNewPassword ensures that no value is present for RequireNewPassword, not even an explicit nil +func (o *User) UnsetRequireNewPassword() { + o.RequireNewPassword.Unset() } // GetRole returns the Role field value if set, zero value otherwise. @@ -247,36 +267,46 @@ func (o *User) SetRole(v RoleUser) { o.Role = &v } -// GetTwoFactorAuthEnabled returns the TwoFactorAuthEnabled field value if set, zero value otherwise. +// GetTwoFactorAuthEnabled returns the TwoFactorAuthEnabled field value if set, zero value otherwise (both if not set or set to explicit null). func (o *User) GetTwoFactorAuthEnabled() bool { - if o == nil || o.TwoFactorAuthEnabled == nil { + if o == nil || o.TwoFactorAuthEnabled.Get() == nil { var ret bool return ret } - return *o.TwoFactorAuthEnabled + return *o.TwoFactorAuthEnabled.Get() } // GetTwoFactorAuthEnabledOk returns a tuple with the TwoFactorAuthEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *User) GetTwoFactorAuthEnabledOk() (*bool, bool) { - if o == nil || o.TwoFactorAuthEnabled == nil { + if o == nil { return nil, false } - return o.TwoFactorAuthEnabled, true + return o.TwoFactorAuthEnabled.Get(), o.TwoFactorAuthEnabled.IsSet() } // HasTwoFactorAuthEnabled returns a boolean if a field has been set. func (o *User) HasTwoFactorAuthEnabled() bool { - if o != nil && o.TwoFactorAuthEnabled != nil { + if o != nil && o.TwoFactorAuthEnabled.IsSet() { return true } return false } -// SetTwoFactorAuthEnabled gets a reference to the given bool and assigns it to the TwoFactorAuthEnabled field. +// SetTwoFactorAuthEnabled gets a reference to the given NullableBool and assigns it to the TwoFactorAuthEnabled field. func (o *User) SetTwoFactorAuthEnabled(v bool) { - o.TwoFactorAuthEnabled = &v + o.TwoFactorAuthEnabled.Set(&v) +} +// SetTwoFactorAuthEnabledNil sets the value for TwoFactorAuthEnabled to be an explicit nil +func (o *User) SetTwoFactorAuthEnabledNil() { + o.TwoFactorAuthEnabled.Set(nil) +} + +// UnsetTwoFactorAuthEnabled ensures that no value is present for TwoFactorAuthEnabled, not even an explicit nil +func (o *User) UnsetTwoFactorAuthEnabled() { + o.TwoFactorAuthEnabled.Unset() } // GetTwoFactorSetupRequired returns the TwoFactorSetupRequired field value if set, zero value otherwise. @@ -324,17 +354,17 @@ func (o User) MarshalJSON() ([]byte, error) { if o.LimitServices != nil { toSerialize["limit_services"] = o.LimitServices } - if o.Locked != nil { - toSerialize["locked"] = o.Locked + if o.Locked.IsSet() { + toSerialize["locked"] = o.Locked.Get() } - if o.RequireNewPassword != nil { - toSerialize["require_new_password"] = o.RequireNewPassword + if o.RequireNewPassword.IsSet() { + toSerialize["require_new_password"] = o.RequireNewPassword.Get() } if o.Role != nil { toSerialize["role"] = o.Role } - if o.TwoFactorAuthEnabled != nil { - toSerialize["two_factor_auth_enabled"] = o.TwoFactorAuthEnabled + if o.TwoFactorAuthEnabled.IsSet() { + toSerialize["two_factor_auth_enabled"] = o.TwoFactorAuthEnabled.Get() } if o.TwoFactorSetupRequired != nil { toSerialize["two_factor_setup_required"] = o.TwoFactorSetupRequired diff --git a/fastly/model_user_response.go b/fastly/model_user_response.go index cc01793a..1409a87b 100644 --- a/fastly/model_user_response.go +++ b/fastly/model_user_response.go @@ -26,12 +26,12 @@ type UserResponse struct { // Indicates that the user has limited access to the customer's services. LimitServices *bool `json:"limit_services,omitempty"` // Indicates whether the is account is locked for editing or not. - Locked *bool `json:"locked,omitempty"` + Locked NullableBool `json:"locked,omitempty"` // Indicates if a new password is required at next login. - RequireNewPassword *bool `json:"require_new_password,omitempty"` + RequireNewPassword NullableBool `json:"require_new_password,omitempty"` Role *RoleUser `json:"role,omitempty"` // Indicates if 2FA is enabled on the user. - TwoFactorAuthEnabled *bool `json:"two_factor_auth_enabled,omitempty"` + TwoFactorAuthEnabled NullableBool `json:"two_factor_auth_enabled,omitempty"` // Indicates if 2FA is required by the user's customer account. TwoFactorSetupRequired *bool `json:"two_factor_setup_required,omitempty"` // Date and time in ISO 8601 format. @@ -162,68 +162,88 @@ func (o *UserResponse) SetLimitServices(v bool) { o.LimitServices = &v } -// GetLocked returns the Locked field value if set, zero value otherwise. +// GetLocked returns the Locked field value if set, zero value otherwise (both if not set or set to explicit null). func (o *UserResponse) GetLocked() bool { - if o == nil || o.Locked == nil { + if o == nil || o.Locked.Get() == nil { var ret bool return ret } - return *o.Locked + return *o.Locked.Get() } // GetLockedOk returns a tuple with the Locked field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *UserResponse) GetLockedOk() (*bool, bool) { - if o == nil || o.Locked == nil { + if o == nil { return nil, false } - return o.Locked, true + return o.Locked.Get(), o.Locked.IsSet() } // HasLocked returns a boolean if a field has been set. func (o *UserResponse) HasLocked() bool { - if o != nil && o.Locked != nil { + if o != nil && o.Locked.IsSet() { return true } return false } -// SetLocked gets a reference to the given bool and assigns it to the Locked field. +// SetLocked gets a reference to the given NullableBool and assigns it to the Locked field. func (o *UserResponse) SetLocked(v bool) { - o.Locked = &v + o.Locked.Set(&v) +} +// SetLockedNil sets the value for Locked to be an explicit nil +func (o *UserResponse) SetLockedNil() { + o.Locked.Set(nil) +} + +// UnsetLocked ensures that no value is present for Locked, not even an explicit nil +func (o *UserResponse) UnsetLocked() { + o.Locked.Unset() } -// GetRequireNewPassword returns the RequireNewPassword field value if set, zero value otherwise. +// GetRequireNewPassword returns the RequireNewPassword field value if set, zero value otherwise (both if not set or set to explicit null). func (o *UserResponse) GetRequireNewPassword() bool { - if o == nil || o.RequireNewPassword == nil { + if o == nil || o.RequireNewPassword.Get() == nil { var ret bool return ret } - return *o.RequireNewPassword + return *o.RequireNewPassword.Get() } // GetRequireNewPasswordOk returns a tuple with the RequireNewPassword field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *UserResponse) GetRequireNewPasswordOk() (*bool, bool) { - if o == nil || o.RequireNewPassword == nil { + if o == nil { return nil, false } - return o.RequireNewPassword, true + return o.RequireNewPassword.Get(), o.RequireNewPassword.IsSet() } // HasRequireNewPassword returns a boolean if a field has been set. func (o *UserResponse) HasRequireNewPassword() bool { - if o != nil && o.RequireNewPassword != nil { + if o != nil && o.RequireNewPassword.IsSet() { return true } return false } -// SetRequireNewPassword gets a reference to the given bool and assigns it to the RequireNewPassword field. +// SetRequireNewPassword gets a reference to the given NullableBool and assigns it to the RequireNewPassword field. func (o *UserResponse) SetRequireNewPassword(v bool) { - o.RequireNewPassword = &v + o.RequireNewPassword.Set(&v) +} +// SetRequireNewPasswordNil sets the value for RequireNewPassword to be an explicit nil +func (o *UserResponse) SetRequireNewPasswordNil() { + o.RequireNewPassword.Set(nil) +} + +// UnsetRequireNewPassword ensures that no value is present for RequireNewPassword, not even an explicit nil +func (o *UserResponse) UnsetRequireNewPassword() { + o.RequireNewPassword.Unset() } // GetRole returns the Role field value if set, zero value otherwise. @@ -258,36 +278,46 @@ func (o *UserResponse) SetRole(v RoleUser) { o.Role = &v } -// GetTwoFactorAuthEnabled returns the TwoFactorAuthEnabled field value if set, zero value otherwise. +// GetTwoFactorAuthEnabled returns the TwoFactorAuthEnabled field value if set, zero value otherwise (both if not set or set to explicit null). func (o *UserResponse) GetTwoFactorAuthEnabled() bool { - if o == nil || o.TwoFactorAuthEnabled == nil { + if o == nil || o.TwoFactorAuthEnabled.Get() == nil { var ret bool return ret } - return *o.TwoFactorAuthEnabled + return *o.TwoFactorAuthEnabled.Get() } // GetTwoFactorAuthEnabledOk returns a tuple with the TwoFactorAuthEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *UserResponse) GetTwoFactorAuthEnabledOk() (*bool, bool) { - if o == nil || o.TwoFactorAuthEnabled == nil { + if o == nil { return nil, false } - return o.TwoFactorAuthEnabled, true + return o.TwoFactorAuthEnabled.Get(), o.TwoFactorAuthEnabled.IsSet() } // HasTwoFactorAuthEnabled returns a boolean if a field has been set. func (o *UserResponse) HasTwoFactorAuthEnabled() bool { - if o != nil && o.TwoFactorAuthEnabled != nil { + if o != nil && o.TwoFactorAuthEnabled.IsSet() { return true } return false } -// SetTwoFactorAuthEnabled gets a reference to the given bool and assigns it to the TwoFactorAuthEnabled field. +// SetTwoFactorAuthEnabled gets a reference to the given NullableBool and assigns it to the TwoFactorAuthEnabled field. func (o *UserResponse) SetTwoFactorAuthEnabled(v bool) { - o.TwoFactorAuthEnabled = &v + o.TwoFactorAuthEnabled.Set(&v) +} +// SetTwoFactorAuthEnabledNil sets the value for TwoFactorAuthEnabled to be an explicit nil +func (o *UserResponse) SetTwoFactorAuthEnabledNil() { + o.TwoFactorAuthEnabled.Set(nil) +} + +// UnsetTwoFactorAuthEnabled ensures that no value is present for TwoFactorAuthEnabled, not even an explicit nil +func (o *UserResponse) UnsetTwoFactorAuthEnabled() { + o.TwoFactorAuthEnabled.Unset() } // GetTwoFactorSetupRequired returns the TwoFactorSetupRequired field value if set, zero value otherwise. @@ -557,17 +587,17 @@ func (o UserResponse) MarshalJSON() ([]byte, error) { if o.LimitServices != nil { toSerialize["limit_services"] = o.LimitServices } - if o.Locked != nil { - toSerialize["locked"] = o.Locked + if o.Locked.IsSet() { + toSerialize["locked"] = o.Locked.Get() } - if o.RequireNewPassword != nil { - toSerialize["require_new_password"] = o.RequireNewPassword + if o.RequireNewPassword.IsSet() { + toSerialize["require_new_password"] = o.RequireNewPassword.Get() } if o.Role != nil { toSerialize["role"] = o.Role } - if o.TwoFactorAuthEnabled != nil { - toSerialize["two_factor_auth_enabled"] = o.TwoFactorAuthEnabled + if o.TwoFactorAuthEnabled.IsSet() { + toSerialize["two_factor_auth_enabled"] = o.TwoFactorAuthEnabled.Get() } if o.TwoFactorSetupRequired != nil { toSerialize["two_factor_setup_required"] = o.TwoFactorSetupRequired diff --git a/fastly/model_user_response_all_of.go b/fastly/model_user_response_read_only.go similarity index 68% rename from fastly/model_user_response_all_of.go rename to fastly/model_user_response_read_only.go index 13bd6f1c..cd24f488 100644 --- a/fastly/model_user_response_all_of.go +++ b/fastly/model_user_response_read_only.go @@ -17,8 +17,8 @@ import ( "encoding/json" ) -// UserResponseAllOf struct for UserResponseAllOf -type UserResponseAllOf struct { +// UserResponseReadOnly struct for UserResponseReadOnly +type UserResponseReadOnly struct { ID *string `json:"id,omitempty"` // The alphanumeric string identifying a email login. EmailHash *string `json:"email_hash,omitempty"` @@ -26,27 +26,27 @@ type UserResponseAllOf struct { AdditionalProperties map[string]any } -type _UserResponseAllOf UserResponseAllOf +type _UserResponseReadOnly UserResponseReadOnly -// NewUserResponseAllOf instantiates a new UserResponseAllOf object +// NewUserResponseReadOnly instantiates a new UserResponseReadOnly object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUserResponseAllOf() *UserResponseAllOf { - this := UserResponseAllOf{} +func NewUserResponseReadOnly() *UserResponseReadOnly { + this := UserResponseReadOnly{} return &this } -// NewUserResponseAllOfWithDefaults instantiates a new UserResponseAllOf object +// NewUserResponseReadOnlyWithDefaults instantiates a new UserResponseReadOnly object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewUserResponseAllOfWithDefaults() *UserResponseAllOf { - this := UserResponseAllOf{} +func NewUserResponseReadOnlyWithDefaults() *UserResponseReadOnly { + this := UserResponseReadOnly{} return &this } // GetID returns the ID field value if set, zero value otherwise. -func (o *UserResponseAllOf) GetID() string { +func (o *UserResponseReadOnly) GetID() string { if o == nil || o.ID == nil { var ret string return ret @@ -56,7 +56,7 @@ func (o *UserResponseAllOf) GetID() string { // GetIDOk returns a tuple with the ID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserResponseAllOf) GetIDOk() (*string, bool) { +func (o *UserResponseReadOnly) GetIDOk() (*string, bool) { if o == nil || o.ID == nil { return nil, false } @@ -64,7 +64,7 @@ func (o *UserResponseAllOf) GetIDOk() (*string, bool) { } // HasID returns a boolean if a field has been set. -func (o *UserResponseAllOf) HasID() bool { +func (o *UserResponseReadOnly) HasID() bool { if o != nil && o.ID != nil { return true } @@ -73,12 +73,12 @@ func (o *UserResponseAllOf) HasID() bool { } // SetID gets a reference to the given string and assigns it to the ID field. -func (o *UserResponseAllOf) SetID(v string) { +func (o *UserResponseReadOnly) SetID(v string) { o.ID = &v } // GetEmailHash returns the EmailHash field value if set, zero value otherwise. -func (o *UserResponseAllOf) GetEmailHash() string { +func (o *UserResponseReadOnly) GetEmailHash() string { if o == nil || o.EmailHash == nil { var ret string return ret @@ -88,7 +88,7 @@ func (o *UserResponseAllOf) GetEmailHash() string { // GetEmailHashOk returns a tuple with the EmailHash field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserResponseAllOf) GetEmailHashOk() (*string, bool) { +func (o *UserResponseReadOnly) GetEmailHashOk() (*string, bool) { if o == nil || o.EmailHash == nil { return nil, false } @@ -96,7 +96,7 @@ func (o *UserResponseAllOf) GetEmailHashOk() (*string, bool) { } // HasEmailHash returns a boolean if a field has been set. -func (o *UserResponseAllOf) HasEmailHash() bool { +func (o *UserResponseReadOnly) HasEmailHash() bool { if o != nil && o.EmailHash != nil { return true } @@ -105,12 +105,12 @@ func (o *UserResponseAllOf) HasEmailHash() bool { } // SetEmailHash gets a reference to the given string and assigns it to the EmailHash field. -func (o *UserResponseAllOf) SetEmailHash(v string) { +func (o *UserResponseReadOnly) SetEmailHash(v string) { o.EmailHash = &v } // GetCustomerID returns the CustomerID field value if set, zero value otherwise. -func (o *UserResponseAllOf) GetCustomerID() string { +func (o *UserResponseReadOnly) GetCustomerID() string { if o == nil || o.CustomerID == nil { var ret string return ret @@ -120,7 +120,7 @@ func (o *UserResponseAllOf) GetCustomerID() string { // GetCustomerIDOk returns a tuple with the CustomerID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserResponseAllOf) GetCustomerIDOk() (*string, bool) { +func (o *UserResponseReadOnly) GetCustomerIDOk() (*string, bool) { if o == nil || o.CustomerID == nil { return nil, false } @@ -128,7 +128,7 @@ func (o *UserResponseAllOf) GetCustomerIDOk() (*string, bool) { } // HasCustomerID returns a boolean if a field has been set. -func (o *UserResponseAllOf) HasCustomerID() bool { +func (o *UserResponseReadOnly) HasCustomerID() bool { if o != nil && o.CustomerID != nil { return true } @@ -137,13 +137,13 @@ func (o *UserResponseAllOf) HasCustomerID() bool { } // SetCustomerID gets a reference to the given string and assigns it to the CustomerID field. -func (o *UserResponseAllOf) SetCustomerID(v string) { +func (o *UserResponseReadOnly) SetCustomerID(v string) { o.CustomerID = &v } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (o UserResponseAllOf) MarshalJSON() ([]byte, error) { +func (o UserResponseReadOnly) MarshalJSON() ([]byte, error) { toSerialize := map[string]any{} if o.ID != nil { toSerialize["id"] = o.ID @@ -164,11 +164,11 @@ func (o UserResponseAllOf) MarshalJSON() ([]byte, error) { // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (o *UserResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { - varUserResponseAllOf := _UserResponseAllOf{} +func (o *UserResponseReadOnly) UnmarshalJSON(bytes []byte) (err error) { + varUserResponseReadOnly := _UserResponseReadOnly{} - if err = json.Unmarshal(bytes, &varUserResponseAllOf); err == nil { - *o = UserResponseAllOf(varUserResponseAllOf) + if err = json.Unmarshal(bytes, &varUserResponseReadOnly); err == nil { + *o = UserResponseReadOnly(varUserResponseReadOnly) } additionalProperties := make(map[string]any) @@ -183,48 +183,48 @@ func (o *UserResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableUserResponseAllOf is a helper abstraction for handling nullable userresponseallof types. -type NullableUserResponseAllOf struct { - value *UserResponseAllOf +// NullableUserResponseReadOnly is a helper abstraction for handling nullable userresponsereadonly types. +type NullableUserResponseReadOnly struct { + value *UserResponseReadOnly isSet bool } // Get returns the value. -func (v NullableUserResponseAllOf) Get() *UserResponseAllOf { +func (v NullableUserResponseReadOnly) Get() *UserResponseReadOnly { return v.value } // Set modifies the value. -func (v *NullableUserResponseAllOf) Set(val *UserResponseAllOf) { +func (v *NullableUserResponseReadOnly) Set(val *UserResponseReadOnly) { v.value = val v.isSet = true } // IsSet indicates if the value was set. -func (v NullableUserResponseAllOf) IsSet() bool { +func (v NullableUserResponseReadOnly) IsSet() bool { return v.isSet } // Unset removes the value. -func (v *NullableUserResponseAllOf) Unset() { +func (v *NullableUserResponseReadOnly) Unset() { v.value = nil v.isSet = false } -// NewNullableUserResponseAllOf returns a pointer to a new instance of NullableUserResponseAllOf. -func NewNullableUserResponseAllOf(val *UserResponseAllOf) *NullableUserResponseAllOf { - return &NullableUserResponseAllOf{value: val, isSet: true} +// NewNullableUserResponseReadOnly returns a pointer to a new instance of NullableUserResponseReadOnly. +func NewNullableUserResponseReadOnly(val *UserResponseReadOnly) *NullableUserResponseReadOnly { + return &NullableUserResponseReadOnly{value: val, isSet: true} } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (v NullableUserResponseAllOf) MarshalJSON() ([]byte, error) { +func (v NullableUserResponseReadOnly) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (v *NullableUserResponseAllOf) UnmarshalJSON(src []byte) error { +func (v *NullableUserResponseReadOnly) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/sig.json b/sig.json index 3f615f1e..7c8b4b8d 100644 --- a/sig.json +++ b/sig.json @@ -1 +1 @@ -{"G": "4b5c526d", "D": "37a4f474"} +{"G": "fd9c0491", "D": "f16293ec"}