1// Copyright 2016-2020 The Libsacloud Authors 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package sacloud 16 17import "time" 18 19// propCreatedAt 作成日時内包型 20type propCreatedAt struct { 21 CreatedAt *time.Time `json:",omitempty"` // 作成日時 22} 23 24// GetCreatedAt 作成日時 取得 25func (p *propCreatedAt) GetCreatedAt() *time.Time { 26 return p.CreatedAt 27} 28 29// propModifiedAt 変更日時内包型 30type propModifiedAt struct { 31 // ModifiedAt 変更日時 32 ModifiedAt *time.Time `json:",omitempty"` 33} 34 35// GetModifiedAt 変更日時 取得 36func (p *propModifiedAt) GetModifiedAt() *time.Time { 37 return p.ModifiedAt 38} 39 40// propUpdatedAt 変更日時内包型 41type propUpdatedAt struct { 42 // UpdatedAt 変更日時 43 UpdatedAt *time.Time `json:",omitempty"` 44} 45 46// GetModifiedAt 変更日時 取得 47func (p *propUpdatedAt) GetModifiedAt() *time.Time { 48 return p.UpdatedAt 49} 50