diff --git a/services/resourcemanager/model_create_project_payload.go b/services/resourcemanager/model_create_project_payload.go index 8dbd9c3be..28d859ea0 100644 --- a/services/resourcemanager/model_create_project_payload.go +++ b/services/resourcemanager/model_create_project_payload.go @@ -56,7 +56,7 @@ func NewCreateProjectPayloadWithDefaults() *CreateProjectPayload { // GetContainerParentId returns the ContainerParentId field value func (o *CreateProjectPayload) GetContainerParentId() *string { - if o == nil { + if o == nil || IsNil(o.ContainerParentId) { var ret *string return ret } @@ -112,7 +112,7 @@ func (o *CreateProjectPayload) SetLabels(v *map[string]string) { // GetMembers returns the Members field value func (o *CreateProjectPayload) GetMembers() *[]Member { - if o == nil { + if o == nil || IsNil(o.Members) { var ret *[]Member return ret } @@ -136,7 +136,7 @@ func (o *CreateProjectPayload) SetMembers(v *[]Member) { // GetName returns the Name field value func (o *CreateProjectPayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } diff --git a/services/resourcemanager/model_error_response.go b/services/resourcemanager/model_error_response.go index 854415f06..a1f75abb3 100644 --- a/services/resourcemanager/model_error_response.go +++ b/services/resourcemanager/model_error_response.go @@ -63,7 +63,7 @@ func NewErrorResponseWithDefaults() *ErrorResponse { // GetError returns the Error field value func (o *ErrorResponse) GetError() *string { - if o == nil { + if o == nil || IsNil(o.Error) { var ret *string return ret } @@ -87,7 +87,7 @@ func (o *ErrorResponse) SetError(v *string) { // GetMessage returns the Message field value func (o *ErrorResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } @@ -111,7 +111,7 @@ func (o *ErrorResponse) SetMessage(v *string) { // GetPath returns the Path field value func (o *ErrorResponse) GetPath() *string { - if o == nil { + if o == nil || IsNil(o.Path) { var ret *string return ret } @@ -135,7 +135,7 @@ func (o *ErrorResponse) SetPath(v *string) { // GetStatus returns the Status field value func (o *ErrorResponse) GetStatus() *float64 { - if o == nil { + if o == nil || IsNil(o.Status) { var ret *float64 return ret } @@ -159,7 +159,7 @@ func (o *ErrorResponse) SetStatus(v *float64) { // GetTimeStamp returns the TimeStamp field value func (o *ErrorResponse) GetTimeStamp() *time.Time { - if o == nil { + if o == nil || IsNil(o.TimeStamp) { var ret *time.Time return ret } diff --git a/services/resourcemanager/model_folder_response.go b/services/resourcemanager/model_folder_response.go index a71092c8a..dff1bbdec 100644 --- a/services/resourcemanager/model_folder_response.go +++ b/services/resourcemanager/model_folder_response.go @@ -68,7 +68,7 @@ func NewFolderResponseWithDefaults() *FolderResponse { // GetContainerId returns the ContainerId field value func (o *FolderResponse) GetContainerId() *string { - if o == nil { + if o == nil || IsNil(o.ContainerId) { var ret *string return ret } @@ -92,7 +92,7 @@ func (o *FolderResponse) SetContainerId(v *string) { // GetCreationTime returns the CreationTime field value func (o *FolderResponse) GetCreationTime() *time.Time { - if o == nil { + if o == nil || IsNil(o.CreationTime) { var ret *time.Time return ret } @@ -116,7 +116,7 @@ func (o *FolderResponse) SetCreationTime(v *time.Time) { // GetFolderId returns the FolderId field value func (o *FolderResponse) GetFolderId() *string { - if o == nil { + if o == nil || IsNil(o.FolderId) { var ret *string return ret } @@ -172,7 +172,7 @@ func (o *FolderResponse) SetLabels(v *map[string]string) { // GetName returns the Name field value func (o *FolderResponse) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -196,7 +196,7 @@ func (o *FolderResponse) SetName(v *string) { // GetParent returns the Parent field value func (o *FolderResponse) GetParent() *Parent { - if o == nil { + if o == nil || IsNil(o.Parent) { var ret *Parent return ret } @@ -220,7 +220,7 @@ func (o *FolderResponse) SetParent(v *Parent) { // GetUpdateTime returns the UpdateTime field value func (o *FolderResponse) GetUpdateTime() *time.Time { - if o == nil { + if o == nil || IsNil(o.UpdateTime) { var ret *time.Time return ret } diff --git a/services/resourcemanager/model_get_project_response.go b/services/resourcemanager/model_get_project_response.go index 5094966cb..319f555b1 100644 --- a/services/resourcemanager/model_get_project_response.go +++ b/services/resourcemanager/model_get_project_response.go @@ -72,7 +72,7 @@ func NewGetProjectResponseWithDefaults() *GetProjectResponse { // GetContainerId returns the ContainerId field value func (o *GetProjectResponse) GetContainerId() *string { - if o == nil { + if o == nil || IsNil(o.ContainerId) { var ret *string return ret } @@ -96,7 +96,7 @@ func (o *GetProjectResponse) SetContainerId(v *string) { // GetCreationTime returns the CreationTime field value func (o *GetProjectResponse) GetCreationTime() *time.Time { - if o == nil { + if o == nil || IsNil(o.CreationTime) { var ret *time.Time return ret } @@ -152,7 +152,7 @@ func (o *GetProjectResponse) SetLabels(v *map[string]string) { // GetLifecycleState returns the LifecycleState field value func (o *GetProjectResponse) GetLifecycleState() *LifecycleState { - if o == nil { + if o == nil || IsNil(o.LifecycleState) { var ret *LifecycleState return ret } @@ -176,7 +176,7 @@ func (o *GetProjectResponse) SetLifecycleState(v *LifecycleState) { // GetName returns the Name field value func (o *GetProjectResponse) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -200,7 +200,7 @@ func (o *GetProjectResponse) SetName(v *string) { // GetParent returns the Parent field value func (o *GetProjectResponse) GetParent() *Parent { - if o == nil { + if o == nil || IsNil(o.Parent) { var ret *Parent return ret } @@ -256,7 +256,7 @@ func (o *GetProjectResponse) SetParents(v *[]ParentListInner) { // GetProjectId returns the ProjectId field value func (o *GetProjectResponse) GetProjectId() *string { - if o == nil { + if o == nil || IsNil(o.ProjectId) { var ret *string return ret } @@ -280,7 +280,7 @@ func (o *GetProjectResponse) SetProjectId(v *string) { // GetUpdateTime returns the UpdateTime field value func (o *GetProjectResponse) GetUpdateTime() *time.Time { - if o == nil { + if o == nil || IsNil(o.UpdateTime) { var ret *time.Time return ret } diff --git a/services/resourcemanager/model_list_organization_containers_response.go b/services/resourcemanager/model_list_organization_containers_response.go index f2623b9ee..26a97a475 100644 --- a/services/resourcemanager/model_list_organization_containers_response.go +++ b/services/resourcemanager/model_list_organization_containers_response.go @@ -55,7 +55,7 @@ func NewListOrganizationContainersResponseWithDefaults() *ListOrganizationContai // GetCursor returns the Cursor field value func (o *ListOrganizationContainersResponse) GetCursor() *string { - if o == nil { + if o == nil || IsNil(o.Cursor) { var ret *string return ret } @@ -79,7 +79,7 @@ func (o *ListOrganizationContainersResponse) SetCursor(v *string) { // GetItems returns the Items field value func (o *ListOrganizationContainersResponse) GetItems() *[]ListOrganizationContainersResponseItemsInner { - if o == nil { + if o == nil || IsNil(o.Items) { var ret *[]ListOrganizationContainersResponseItemsInner return ret } @@ -103,7 +103,7 @@ func (o *ListOrganizationContainersResponse) SetItems(v *[]ListOrganizationConta // GetLimit returns the Limit field value func (o *ListOrganizationContainersResponse) GetLimit() *float64 { - if o == nil { + if o == nil || IsNil(o.Limit) { var ret *float64 return ret } diff --git a/services/resourcemanager/model_list_organization_containers_response_items_inner_any_of.go b/services/resourcemanager/model_list_organization_containers_response_items_inner_any_of.go index dcb1bcac1..41dab3a83 100644 --- a/services/resourcemanager/model_list_organization_containers_response_items_inner_any_of.go +++ b/services/resourcemanager/model_list_organization_containers_response_items_inner_any_of.go @@ -49,7 +49,7 @@ func NewListOrganizationContainersResponseItemsInnerAnyOfWithDefaults() *ListOrg // GetItem returns the Item field value func (o *ListOrganizationContainersResponseItemsInnerAnyOf) GetItem() *FolderResponse { - if o == nil { + if o == nil || IsNil(o.Item) { var ret *FolderResponse return ret } @@ -73,7 +73,7 @@ func (o *ListOrganizationContainersResponseItemsInnerAnyOf) SetItem(v *FolderRes // GetType returns the Type field value func (o *ListOrganizationContainersResponseItemsInnerAnyOf) GetType() *string { - if o == nil { + if o == nil || IsNil(o.Type) { var ret *string return ret } diff --git a/services/resourcemanager/model_list_organization_containers_response_items_inner_any_of_1.go b/services/resourcemanager/model_list_organization_containers_response_items_inner_any_of_1.go index 45b378e0d..864e0f690 100644 --- a/services/resourcemanager/model_list_organization_containers_response_items_inner_any_of_1.go +++ b/services/resourcemanager/model_list_organization_containers_response_items_inner_any_of_1.go @@ -49,7 +49,7 @@ func NewListOrganizationContainersResponseItemsInnerAnyOf1WithDefaults() *ListOr // GetItem returns the Item field value func (o *ListOrganizationContainersResponseItemsInnerAnyOf1) GetItem() *Project { - if o == nil { + if o == nil || IsNil(o.Item) { var ret *Project return ret } @@ -73,7 +73,7 @@ func (o *ListOrganizationContainersResponseItemsInnerAnyOf1) SetItem(v *Project) // GetType returns the Type field value func (o *ListOrganizationContainersResponseItemsInnerAnyOf1) GetType() *string { - if o == nil { + if o == nil || IsNil(o.Type) { var ret *string return ret } diff --git a/services/resourcemanager/model_list_organizations_response.go b/services/resourcemanager/model_list_organizations_response.go index 68f4f73a9..0d61b430c 100644 --- a/services/resourcemanager/model_list_organizations_response.go +++ b/services/resourcemanager/model_list_organizations_response.go @@ -57,7 +57,7 @@ func NewListOrganizationsResponseWithDefaults() *ListOrganizationsResponse { // GetItems returns the Items field value func (o *ListOrganizationsResponse) GetItems() *[]ListOrganizationsResponseItemsInner { - if o == nil { + if o == nil || IsNil(o.Items) { var ret *[]ListOrganizationsResponseItemsInner return ret } @@ -81,7 +81,7 @@ func (o *ListOrganizationsResponse) SetItems(v *[]ListOrganizationsResponseItems // GetLimit returns the Limit field value func (o *ListOrganizationsResponse) GetLimit() *float64 { - if o == nil { + if o == nil || IsNil(o.Limit) { var ret *float64 return ret } @@ -105,7 +105,7 @@ func (o *ListOrganizationsResponse) SetLimit(v *float64) { // GetOffset returns the Offset field value func (o *ListOrganizationsResponse) GetOffset() *float64 { - if o == nil { + if o == nil || IsNil(o.Offset) { var ret *float64 return ret } diff --git a/services/resourcemanager/model_list_organizations_response_items_inner.go b/services/resourcemanager/model_list_organizations_response_items_inner.go index ab600d5ed..aa6bfa179 100644 --- a/services/resourcemanager/model_list_organizations_response_items_inner.go +++ b/services/resourcemanager/model_list_organizations_response_items_inner.go @@ -68,7 +68,7 @@ func NewListOrganizationsResponseItemsInnerWithDefaults() *ListOrganizationsResp // GetContainerId returns the ContainerId field value func (o *ListOrganizationsResponseItemsInner) GetContainerId() *string { - if o == nil { + if o == nil || IsNil(o.ContainerId) { var ret *string return ret } @@ -92,7 +92,7 @@ func (o *ListOrganizationsResponseItemsInner) SetContainerId(v *string) { // GetCreationTime returns the CreationTime field value func (o *ListOrganizationsResponseItemsInner) GetCreationTime() *time.Time { - if o == nil { + if o == nil || IsNil(o.CreationTime) { var ret *time.Time return ret } @@ -148,7 +148,7 @@ func (o *ListOrganizationsResponseItemsInner) SetLabels(v *map[string]string) { // GetLifecycleState returns the LifecycleState field value func (o *ListOrganizationsResponseItemsInner) GetLifecycleState() *LifecycleState { - if o == nil { + if o == nil || IsNil(o.LifecycleState) { var ret *LifecycleState return ret } @@ -172,7 +172,7 @@ func (o *ListOrganizationsResponseItemsInner) SetLifecycleState(v *LifecycleStat // GetName returns the Name field value func (o *ListOrganizationsResponseItemsInner) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -196,7 +196,7 @@ func (o *ListOrganizationsResponseItemsInner) SetName(v *string) { // GetOrganizationId returns the OrganizationId field value func (o *ListOrganizationsResponseItemsInner) GetOrganizationId() *string { - if o == nil { + if o == nil || IsNil(o.OrganizationId) { var ret *string return ret } @@ -220,7 +220,7 @@ func (o *ListOrganizationsResponseItemsInner) SetOrganizationId(v *string) { // GetUpdateTime returns the UpdateTime field value func (o *ListOrganizationsResponseItemsInner) GetUpdateTime() *time.Time { - if o == nil { + if o == nil || IsNil(o.UpdateTime) { var ret *time.Time return ret } diff --git a/services/resourcemanager/model_list_projects_response.go b/services/resourcemanager/model_list_projects_response.go index 6a6e5c355..caa62e57b 100644 --- a/services/resourcemanager/model_list_projects_response.go +++ b/services/resourcemanager/model_list_projects_response.go @@ -57,7 +57,7 @@ func NewListProjectsResponseWithDefaults() *ListProjectsResponse { // GetItems returns the Items field value func (o *ListProjectsResponse) GetItems() *[]Project { - if o == nil { + if o == nil || IsNil(o.Items) { var ret *[]Project return ret } @@ -81,7 +81,7 @@ func (o *ListProjectsResponse) SetItems(v *[]Project) { // GetLimit returns the Limit field value func (o *ListProjectsResponse) GetLimit() *float64 { - if o == nil { + if o == nil || IsNil(o.Limit) { var ret *float64 return ret } @@ -105,7 +105,7 @@ func (o *ListProjectsResponse) SetLimit(v *float64) { // GetOffset returns the Offset field value func (o *ListProjectsResponse) GetOffset() *float64 { - if o == nil { + if o == nil || IsNil(o.Offset) { var ret *float64 return ret } diff --git a/services/resourcemanager/model_member.go b/services/resourcemanager/model_member.go index 363da48ed..286544d20 100644 --- a/services/resourcemanager/model_member.go +++ b/services/resourcemanager/model_member.go @@ -50,7 +50,7 @@ func NewMemberWithDefaults() *Member { // GetRole returns the Role field value func (o *Member) GetRole() *string { - if o == nil { + if o == nil || IsNil(o.Role) { var ret *string return ret } @@ -74,7 +74,7 @@ func (o *Member) SetRole(v *string) { // GetSubject returns the Subject field value func (o *Member) GetSubject() *string { - if o == nil { + if o == nil || IsNil(o.Subject) { var ret *string return ret } diff --git a/services/resourcemanager/model_organization_response.go b/services/resourcemanager/model_organization_response.go index ef0946f8f..f2734f00e 100644 --- a/services/resourcemanager/model_organization_response.go +++ b/services/resourcemanager/model_organization_response.go @@ -68,7 +68,7 @@ func NewOrganizationResponseWithDefaults() *OrganizationResponse { // GetContainerId returns the ContainerId field value func (o *OrganizationResponse) GetContainerId() *string { - if o == nil { + if o == nil || IsNil(o.ContainerId) { var ret *string return ret } @@ -92,7 +92,7 @@ func (o *OrganizationResponse) SetContainerId(v *string) { // GetCreationTime returns the CreationTime field value func (o *OrganizationResponse) GetCreationTime() *time.Time { - if o == nil { + if o == nil || IsNil(o.CreationTime) { var ret *time.Time return ret } @@ -148,7 +148,7 @@ func (o *OrganizationResponse) SetLabels(v *map[string]string) { // GetLifecycleState returns the LifecycleState field value func (o *OrganizationResponse) GetLifecycleState() *LifecycleState { - if o == nil { + if o == nil || IsNil(o.LifecycleState) { var ret *LifecycleState return ret } @@ -172,7 +172,7 @@ func (o *OrganizationResponse) SetLifecycleState(v *LifecycleState) { // GetName returns the Name field value func (o *OrganizationResponse) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -196,7 +196,7 @@ func (o *OrganizationResponse) SetName(v *string) { // GetOrganizationId returns the OrganizationId field value func (o *OrganizationResponse) GetOrganizationId() *string { - if o == nil { + if o == nil || IsNil(o.OrganizationId) { var ret *string return ret } @@ -220,7 +220,7 @@ func (o *OrganizationResponse) SetOrganizationId(v *string) { // GetUpdateTime returns the UpdateTime field value func (o *OrganizationResponse) GetUpdateTime() *time.Time { - if o == nil { + if o == nil || IsNil(o.UpdateTime) { var ret *time.Time return ret } diff --git a/services/resourcemanager/model_parent.go b/services/resourcemanager/model_parent.go index 6f93c2216..36dfb0deb 100644 --- a/services/resourcemanager/model_parent.go +++ b/services/resourcemanager/model_parent.go @@ -54,7 +54,7 @@ func NewParentWithDefaults() *Parent { // GetContainerId returns the ContainerId field value func (o *Parent) GetContainerId() *string { - if o == nil { + if o == nil || IsNil(o.ContainerId) { var ret *string return ret } @@ -78,7 +78,7 @@ func (o *Parent) SetContainerId(v *string) { // GetId returns the Id field value func (o *Parent) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -102,7 +102,7 @@ func (o *Parent) SetId(v *string) { // GetType returns the Type field value func (o *Parent) GetType() *string { - if o == nil { + if o == nil || IsNil(o.Type) { var ret *string return ret } diff --git a/services/resourcemanager/model_parent_list_inner.go b/services/resourcemanager/model_parent_list_inner.go index f741bfc7c..cd7cef21c 100644 --- a/services/resourcemanager/model_parent_list_inner.go +++ b/services/resourcemanager/model_parent_list_inner.go @@ -66,7 +66,7 @@ func NewParentListInnerWithDefaults() *ParentListInner { // GetContainerId returns the ContainerId field value func (o *ParentListInner) GetContainerId() *string { - if o == nil { + if o == nil || IsNil(o.ContainerId) { var ret *string return ret } @@ -90,7 +90,7 @@ func (o *ParentListInner) SetContainerId(v *string) { // GetContainerParentId returns the ContainerParentId field value func (o *ParentListInner) GetContainerParentId() *string { - if o == nil { + if o == nil || IsNil(o.ContainerParentId) { var ret *string return ret } @@ -114,7 +114,7 @@ func (o *ParentListInner) SetContainerParentId(v *string) { // GetId returns the Id field value func (o *ParentListInner) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -138,7 +138,7 @@ func (o *ParentListInner) SetId(v *string) { // GetName returns the Name field value func (o *ParentListInner) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -162,7 +162,7 @@ func (o *ParentListInner) SetName(v *string) { // GetParentId returns the ParentId field value func (o *ParentListInner) GetParentId() *string { - if o == nil { + if o == nil || IsNil(o.ParentId) { var ret *string return ret } @@ -186,7 +186,7 @@ func (o *ParentListInner) SetParentId(v *string) { // GetType returns the Type field value func (o *ParentListInner) GetType() *string { - if o == nil { + if o == nil || IsNil(o.Type) { var ret *string return ret } diff --git a/services/resourcemanager/model_project.go b/services/resourcemanager/model_project.go index ca164525c..5bc64349e 100644 --- a/services/resourcemanager/model_project.go +++ b/services/resourcemanager/model_project.go @@ -71,7 +71,7 @@ func NewProjectWithDefaults() *Project { // GetContainerId returns the ContainerId field value func (o *Project) GetContainerId() *string { - if o == nil { + if o == nil || IsNil(o.ContainerId) { var ret *string return ret } @@ -95,7 +95,7 @@ func (o *Project) SetContainerId(v *string) { // GetCreationTime returns the CreationTime field value func (o *Project) GetCreationTime() *time.Time { - if o == nil { + if o == nil || IsNil(o.CreationTime) { var ret *time.Time return ret } @@ -151,7 +151,7 @@ func (o *Project) SetLabels(v *map[string]string) { // GetLifecycleState returns the LifecycleState field value func (o *Project) GetLifecycleState() *LifecycleState { - if o == nil { + if o == nil || IsNil(o.LifecycleState) { var ret *LifecycleState return ret } @@ -175,7 +175,7 @@ func (o *Project) SetLifecycleState(v *LifecycleState) { // GetName returns the Name field value func (o *Project) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -199,7 +199,7 @@ func (o *Project) SetName(v *string) { // GetParent returns the Parent field value func (o *Project) GetParent() *Parent { - if o == nil { + if o == nil || IsNil(o.Parent) { var ret *Parent return ret } @@ -223,7 +223,7 @@ func (o *Project) SetParent(v *Parent) { // GetProjectId returns the ProjectId field value func (o *Project) GetProjectId() *string { - if o == nil { + if o == nil || IsNil(o.ProjectId) { var ret *string return ret } @@ -247,7 +247,7 @@ func (o *Project) SetProjectId(v *string) { // GetUpdateTime returns the UpdateTime field value func (o *Project) GetUpdateTime() *time.Time { - if o == nil { + if o == nil || IsNil(o.UpdateTime) { var ret *time.Time return ret }