代码拉取完成,页面将自动刷新
/*
3gpp-data-reporting-provisioning
API for 3GPP Data Reporting and Provisioning. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_DataReportingProvisioning
import (
"encoding/json"
)
// checks if the DataReportingConfigurationPatch type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DataReportingConfigurationPatch{}
// DataReportingConfigurationPatch A JSON patch for a Data Reporting Configuration.
type DataReportingConfigurationPatch struct {
// Uniform Resource Locator, conforming with the \"URI-reference\" production specified in IETF RFC 3986, section 4.1.
AuthorizationURL *string `json:"authorizationURL,omitempty"`
DataSamplingRules []DataSamplingRule `json:"dataSamplingRules,omitempty"`
DataReportingRules []DataReportingRule `json:"dataReportingRules,omitempty"`
DataAccessProfiles []DataAccessProfile `json:"dataAccessProfiles,omitempty"`
}
// NewDataReportingConfigurationPatch instantiates a new DataReportingConfigurationPatch 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 NewDataReportingConfigurationPatch() *DataReportingConfigurationPatch {
this := DataReportingConfigurationPatch{}
return &this
}
// NewDataReportingConfigurationPatchWithDefaults instantiates a new DataReportingConfigurationPatch 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 NewDataReportingConfigurationPatchWithDefaults() *DataReportingConfigurationPatch {
this := DataReportingConfigurationPatch{}
return &this
}
// GetAuthorizationURL returns the AuthorizationURL field value if set, zero value otherwise.
func (o *DataReportingConfigurationPatch) GetAuthorizationURL() string {
if o == nil || IsNil(o.AuthorizationURL) {
var ret string
return ret
}
return *o.AuthorizationURL
}
// GetAuthorizationURLOk returns a tuple with the AuthorizationURL field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataReportingConfigurationPatch) GetAuthorizationURLOk() (*string, bool) {
if o == nil || IsNil(o.AuthorizationURL) {
return nil, false
}
return o.AuthorizationURL, true
}
// HasAuthorizationURL returns a boolean if a field has been set.
func (o *DataReportingConfigurationPatch) HasAuthorizationURL() bool {
if o != nil && !IsNil(o.AuthorizationURL) {
return true
}
return false
}
// SetAuthorizationURL gets a reference to the given string and assigns it to the AuthorizationURL field.
func (o *DataReportingConfigurationPatch) SetAuthorizationURL(v string) {
o.AuthorizationURL = &v
}
// GetDataSamplingRules returns the DataSamplingRules field value if set, zero value otherwise.
func (o *DataReportingConfigurationPatch) GetDataSamplingRules() []DataSamplingRule {
if o == nil || IsNil(o.DataSamplingRules) {
var ret []DataSamplingRule
return ret
}
return o.DataSamplingRules
}
// GetDataSamplingRulesOk returns a tuple with the DataSamplingRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataReportingConfigurationPatch) GetDataSamplingRulesOk() ([]DataSamplingRule, bool) {
if o == nil || IsNil(o.DataSamplingRules) {
return nil, false
}
return o.DataSamplingRules, true
}
// HasDataSamplingRules returns a boolean if a field has been set.
func (o *DataReportingConfigurationPatch) HasDataSamplingRules() bool {
if o != nil && !IsNil(o.DataSamplingRules) {
return true
}
return false
}
// SetDataSamplingRules gets a reference to the given []DataSamplingRule and assigns it to the DataSamplingRules field.
func (o *DataReportingConfigurationPatch) SetDataSamplingRules(v []DataSamplingRule) {
o.DataSamplingRules = v
}
// GetDataReportingRules returns the DataReportingRules field value if set, zero value otherwise.
func (o *DataReportingConfigurationPatch) GetDataReportingRules() []DataReportingRule {
if o == nil || IsNil(o.DataReportingRules) {
var ret []DataReportingRule
return ret
}
return o.DataReportingRules
}
// GetDataReportingRulesOk returns a tuple with the DataReportingRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataReportingConfigurationPatch) GetDataReportingRulesOk() ([]DataReportingRule, bool) {
if o == nil || IsNil(o.DataReportingRules) {
return nil, false
}
return o.DataReportingRules, true
}
// HasDataReportingRules returns a boolean if a field has been set.
func (o *DataReportingConfigurationPatch) HasDataReportingRules() bool {
if o != nil && !IsNil(o.DataReportingRules) {
return true
}
return false
}
// SetDataReportingRules gets a reference to the given []DataReportingRule and assigns it to the DataReportingRules field.
func (o *DataReportingConfigurationPatch) SetDataReportingRules(v []DataReportingRule) {
o.DataReportingRules = v
}
// GetDataAccessProfiles returns the DataAccessProfiles field value if set, zero value otherwise.
func (o *DataReportingConfigurationPatch) GetDataAccessProfiles() []DataAccessProfile {
if o == nil || IsNil(o.DataAccessProfiles) {
var ret []DataAccessProfile
return ret
}
return o.DataAccessProfiles
}
// GetDataAccessProfilesOk returns a tuple with the DataAccessProfiles field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataReportingConfigurationPatch) GetDataAccessProfilesOk() ([]DataAccessProfile, bool) {
if o == nil || IsNil(o.DataAccessProfiles) {
return nil, false
}
return o.DataAccessProfiles, true
}
// HasDataAccessProfiles returns a boolean if a field has been set.
func (o *DataReportingConfigurationPatch) HasDataAccessProfiles() bool {
if o != nil && !IsNil(o.DataAccessProfiles) {
return true
}
return false
}
// SetDataAccessProfiles gets a reference to the given []DataAccessProfile and assigns it to the DataAccessProfiles field.
func (o *DataReportingConfigurationPatch) SetDataAccessProfiles(v []DataAccessProfile) {
o.DataAccessProfiles = v
}
func (o DataReportingConfigurationPatch) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DataReportingConfigurationPatch) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AuthorizationURL) {
toSerialize["authorizationURL"] = o.AuthorizationURL
}
if !IsNil(o.DataSamplingRules) {
toSerialize["dataSamplingRules"] = o.DataSamplingRules
}
if !IsNil(o.DataReportingRules) {
toSerialize["dataReportingRules"] = o.DataReportingRules
}
if !IsNil(o.DataAccessProfiles) {
toSerialize["dataAccessProfiles"] = o.DataAccessProfiles
}
return toSerialize, nil
}
type NullableDataReportingConfigurationPatch struct {
value *DataReportingConfigurationPatch
isSet bool
}
func (v NullableDataReportingConfigurationPatch) Get() *DataReportingConfigurationPatch {
return v.value
}
func (v *NullableDataReportingConfigurationPatch) Set(val *DataReportingConfigurationPatch) {
v.value = val
v.isSet = true
}
func (v NullableDataReportingConfigurationPatch) IsSet() bool {
return v.isSet
}
func (v *NullableDataReportingConfigurationPatch) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDataReportingConfigurationPatch(val *DataReportingConfigurationPatch) *NullableDataReportingConfigurationPatch {
return &NullableDataReportingConfigurationPatch{value: val, isSet: true}
}
func (v NullableDataReportingConfigurationPatch) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDataReportingConfigurationPatch) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。