// Code generated by ogen, DO NOT EDIT.
package api
// Ref: #/components/schemas/About
type About struct {
User OptNilAboutUser `json:"user"`
StorageQuota OptNilAboutStorageQuota `json:"storageQuota"`
}
// GetUser returns the value of User.
func (s *About) GetUser() OptNilAboutUser {
return s.User
}
// GetStorageQuota returns the value of StorageQuota.
func (s *About) GetStorageQuota() OptNilAboutStorageQuota {
return s.StorageQuota
}
// SetUser sets the value of User.
func (s *About) SetUser(val OptNilAboutUser) {
s.User = val
}
// SetStorageQuota sets the value of StorageQuota.
func (s *About) SetStorageQuota(val OptNilAboutStorageQuota) {
s.StorageQuota = val
}
type AboutStorageQuota struct {
Limit OptNilString `json:"limit"`
Usage OptNilString `json:"usage"`
UsageInDrive OptNilString `json:"usageInDrive"`
UsageInDriveTrash OptNilString `json:"usageInDriveTrash"`
}
// GetLimit returns the value of Limit.
func (s *AboutStorageQuota) GetLimit() OptNilString {
return s.Limit
}
// GetUsage returns the value of Usage.
func (s *AboutStorageQuota) GetUsage() OptNilString {
return s.Usage
}
// GetUsageInDrive returns the value of UsageInDrive.
func (s *AboutStorageQuota) GetUsageInDrive() OptNilString {
return s.UsageInDrive
}
// GetUsageInDriveTrash returns the value of UsageInDriveTrash.
func (s *AboutStorageQuota) GetUsageInDriveTrash() OptNilString {
return s.UsageInDriveTrash
}
// SetLimit sets the value of Limit.
func (s *AboutStorageQuota) SetLimit(val OptNilString) {
s.Limit = val
}
// SetUsage sets the value of Usage.
func (s *AboutStorageQuota) SetUsage(val OptNilString) {
s.Usage = val
}
// SetUsageInDrive sets the value of UsageInDrive.
func (s *AboutStorageQuota) SetUsageInDrive(val OptNilString) {
s.UsageInDrive = val
}
// SetUsageInDriveTrash sets the value of UsageInDriveTrash.
func (s *AboutStorageQuota) SetUsageInDriveTrash(val OptNilString) {
s.UsageInDriveTrash = val
}
type AboutUser struct {
DisplayName OptNilString `json:"displayName"`
EmailAddress OptNilString `json:"emailAddress"`
PhotoLink OptNilString `json:"photoLink"`
}
// GetDisplayName returns the value of DisplayName.
func (s *AboutUser) GetDisplayName() OptNilString {
return s.DisplayName
}
// GetEmailAddress returns the value of EmailAddress.
func (s *AboutUser) GetEmailAddress() OptNilString {
return s.EmailAddress
}
// GetPhotoLink returns the value of PhotoLink.
func (s *AboutUser) GetPhotoLink() OptNilString {
return s.PhotoLink
}
// SetDisplayName sets the value of DisplayName.
func (s *AboutUser) SetDisplayName(val OptNilString) {
s.DisplayName = val
}
// SetEmailAddress sets the value of EmailAddress.
func (s *AboutUser) SetEmailAddress(val OptNilString) {
s.EmailAddress = val
}
// SetPhotoLink sets the value of PhotoLink.
func (s *AboutUser) SetPhotoLink(val OptNilString) {
s.PhotoLink = val
}
type BearerAuth struct {
Token string
Roles []string
}
// GetToken returns the value of Token.
func (s *BearerAuth) GetToken() string {
return s.Token
}
// GetRoles returns the value of Roles.
func (s *BearerAuth) GetRoles() []string {
return s.Roles
}
// SetToken sets the value of Token.
func (s *BearerAuth) SetToken(val string) {
s.Token = val
}
// SetRoles sets the value of Roles.
func (s *BearerAuth) SetRoles(val []string) {
s.Roles = val
}
// Ref: #/components/schemas/Comment
type Comment struct {
ID OptString `json:"id"`
Content OptNilString `json:"content"`
Author OptCommentAuthor `json:"author"`
CreatedTime OptNilString `json:"createdTime"`
ModifiedTime OptNilString `json:"modifiedTime"`
Resolved OptNilBool `json:"resolved"`
Replies OptNilReplyArray `json:"replies"`
}
// GetID returns the value of ID.
func (s *Comment) GetID() OptString {
return s.ID
}
// GetContent returns the value of Content.
func (s *Comment) GetContent() OptNilString {
return s.Content
}
// GetAuthor returns the value of Author.
func (s *Comment) GetAuthor() OptCommentAuthor {
return s.Author
}
// GetCreatedTime returns the value of CreatedTime.
func (s *Comment) GetCreatedTime() OptNilString {
return s.CreatedTime
}
// GetModifiedTime returns the value of ModifiedTime.
func (s *Comment) GetModifiedTime() OptNilString {
return s.ModifiedTime
}
// GetResolved returns the value of Resolved.
func (s *Comment) GetResolved() OptNilBool {
return s.Resolved
}
// GetReplies returns the value of Replies.
func (s *Comment) GetReplies() OptNilReplyArray {
return s.Replies
}
// SetID sets the value of ID.
func (s *Comment) SetID(val OptString) {
s.ID = val
}
// SetContent sets the value of Content.
func (s *Comment) SetContent(val OptNilString) {
s.Content = val
}
// SetAuthor sets the value of Author.
func (s *Comment) SetAuthor(val OptCommentAuthor) {
s.Author = val
}
// SetCreatedTime sets the value of CreatedTime.
func (s *Comment) SetCreatedTime(val OptNilString) {
s.CreatedTime = val
}
// SetModifiedTime sets the value of ModifiedTime.
func (s *Comment) SetModifiedTime(val OptNilString) {
s.ModifiedTime = val
}
// SetResolved sets the value of Resolved.
func (s *Comment) SetResolved(val OptNilBool) {
s.Resolved = val
}
// SetReplies sets the value of Replies.
func (s *Comment) SetReplies(val OptNilReplyArray) {
s.Replies = val
}
// Ref: #/components/schemas/CommentAuthor
type CommentAuthor struct {
DisplayName OptNilString `json:"displayName"`
EmailAddress OptNilString `json:"emailAddress"`
PhotoLink OptNilString `json:"photoLink"`
}
// GetDisplayName returns the value of DisplayName.
func (s *CommentAuthor) GetDisplayName() OptNilString {
return s.DisplayName
}
// GetEmailAddress returns the value of EmailAddress.
func (s *CommentAuthor) GetEmailAddress() OptNilString {
return s.EmailAddress
}
// GetPhotoLink returns the value of PhotoLink.
func (s *CommentAuthor) GetPhotoLink() OptNilString {
return s.PhotoLink
}
// SetDisplayName sets the value of DisplayName.
func (s *CommentAuthor) SetDisplayName(val OptNilString) {
s.DisplayName = val
}
// SetEmailAddress sets the value of EmailAddress.
func (s *CommentAuthor) SetEmailAddress(val OptNilString) {
s.EmailAddress = val
}
// SetPhotoLink sets the value of PhotoLink.
func (s *CommentAuthor) SetPhotoLink(val OptNilString) {
s.PhotoLink = val
}
// Ref: #/components/schemas/CommentList
type CommentList struct {
Comments []Comment `json:"comments"`
NextPageToken OptNilString `json:"nextPageToken"`
}
// GetComments returns the value of Comments.
func (s *CommentList) GetComments() []Comment {
return s.Comments
}
// GetNextPageToken returns the value of NextPageToken.
func (s *CommentList) GetNextPageToken() OptNilString {
return s.NextPageToken
}
// SetComments sets the value of Comments.
func (s *CommentList) SetComments(val []Comment) {
s.Comments = val
}
// SetNextPageToken sets the value of NextPageToken.
func (s *CommentList) SetNextPageToken(val OptNilString) {
s.NextPageToken = val
}
// Ref: #/components/schemas/CommentRequest
type CommentRequest struct {
Content OptString `json:"content"`
QuotedFileContent OptCommentRequestQuotedFileContent `json:"quotedFileContent"`
}
// GetContent returns the value of Content.
func (s *CommentRequest) GetContent() OptString {
return s.Content
}
// GetQuotedFileContent returns the value of QuotedFileContent.
func (s *CommentRequest) GetQuotedFileContent() OptCommentRequestQuotedFileContent {
return s.QuotedFileContent
}
// SetContent sets the value of Content.
func (s *CommentRequest) SetContent(val OptString) {
s.Content = val
}
// SetQuotedFileContent sets the value of QuotedFileContent.
func (s *CommentRequest) SetQuotedFileContent(val OptCommentRequestQuotedFileContent) {
s.QuotedFileContent = val
}
type CommentRequestQuotedFileContent struct {
Value OptString `json:"value"`
}
// GetValue returns the value of Value.
func (s *CommentRequestQuotedFileContent) GetValue() OptString {
return s.Value
}
// SetValue sets the value of Value.
func (s *CommentRequestQuotedFileContent) SetValue(val OptString) {
s.Value = val
}
// Ref: #/components/schemas/CopyRequest
type CopyRequest struct {
Name OptNilString `json:"name"`
Parents OptNilStringArray `json:"parents"`
}
// GetName returns the value of Name.
func (s *CopyRequest) GetName() OptNilString {
return s.Name
}
// GetParents returns the value of Parents.
func (s *CopyRequest) GetParents() OptNilStringArray {
return s.Parents
}
// SetName sets the value of Name.
func (s *CopyRequest) SetName(val OptNilString) {
s.Name = val
}
// SetParents sets the value of Parents.
func (s *CopyRequest) SetParents(val OptNilStringArray) {
s.Parents = val
}
// DeleteCommentNoContent is response for DeleteComment operation.
type DeleteCommentNoContent struct{}
// DeletePermissionNoContent is response for DeletePermission operation.
type DeletePermissionNoContent struct{}
// Ref: #/components/schemas/File
type File struct {
ID OptString `json:"id"`
Name OptNilString `json:"name"`
MimeType OptNilString `json:"mimeType"`
Size OptNilString `json:"size"`
CreatedTime OptNilString `json:"createdTime"`
ModifiedTime OptNilString `json:"modifiedTime"`
Parents OptNilStringArray `json:"parents"`
WebViewLink OptNilString `json:"webViewLink"`
IconLink OptNilString `json:"iconLink"`
Trashed OptNilBool `json:"trashed"`
}
// GetID returns the value of ID.
func (s *File) GetID() OptString {
return s.ID
}
// GetName returns the value of Name.
func (s *File) GetName() OptNilString {
return s.Name
}
// GetMimeType returns the value of MimeType.
func (s *File) GetMimeType() OptNilString {
return s.MimeType
}
// GetSize returns the value of Size.
func (s *File) GetSize() OptNilString {
return s.Size
}
// GetCreatedTime returns the value of CreatedTime.
func (s *File) GetCreatedTime() OptNilString {
return s.CreatedTime
}
// GetModifiedTime returns the value of ModifiedTime.
func (s *File) GetModifiedTime() OptNilString {
return s.ModifiedTime
}
// GetParents returns the value of Parents.
func (s *File) GetParents() OptNilStringArray {
return s.Parents
}
// GetWebViewLink returns the value of WebViewLink.
func (s *File) GetWebViewLink() OptNilString {
return s.WebViewLink
}
// GetIconLink returns the value of IconLink.
func (s *File) GetIconLink() OptNilString {
return s.IconLink
}
// GetTrashed returns the value of Trashed.
func (s *File) GetTrashed() OptNilBool {
return s.Trashed
}
// SetID sets the value of ID.
func (s *File) SetID(val OptString) {
s.ID = val
}
// SetName sets the value of Name.
func (s *File) SetName(val OptNilString) {
s.Name = val
}
// SetMimeType sets the value of MimeType.
func (s *File) SetMimeType(val OptNilString) {
s.MimeType = val
}
// SetSize sets the value of Size.
func (s *File) SetSize(val OptNilString) {
s.Size = val
}
// SetCreatedTime sets the value of CreatedTime.
func (s *File) SetCreatedTime(val OptNilString) {
s.CreatedTime = val
}
// SetModifiedTime sets the value of ModifiedTime.
func (s *File) SetModifiedTime(val OptNilString) {
s.ModifiedTime = val
}
// SetParents sets the value of Parents.
func (s *File) SetParents(val OptNilStringArray) {
s.Parents = val
}
// SetWebViewLink sets the value of WebViewLink.
func (s *File) SetWebViewLink(val OptNilString) {
s.WebViewLink = val
}
// SetIconLink sets the value of IconLink.
func (s *File) SetIconLink(val OptNilString) {
s.IconLink = val
}
// SetTrashed sets the value of Trashed.
func (s *File) SetTrashed(val OptNilBool) {
s.Trashed = val
}
// Ref: #/components/schemas/FileList
type FileList struct {
Files []File `json:"files"`
NextPageToken OptNilString `json:"nextPageToken"`
}
// GetFiles returns the value of Files.
func (s *FileList) GetFiles() []File {
return s.Files
}
// GetNextPageToken returns the value of NextPageToken.
func (s *FileList) GetNextPageToken() OptNilString {
return s.NextPageToken
}
// SetFiles sets the value of Files.
func (s *FileList) SetFiles(val []File) {
s.Files = val
}
// SetNextPageToken sets the value of NextPageToken.
func (s *FileList) SetNextPageToken(val OptNilString) {
s.NextPageToken = val
}
// Ref: #/components/schemas/FileMetadata
type FileMetadata struct {
Name OptNilString `json:"name"`
MimeType OptNilString `json:"mimeType"`
Parents OptNilStringArray `json:"parents"`
Trashed OptNilBool `json:"trashed"`
}
// GetName returns the value of Name.
func (s *FileMetadata) GetName() OptNilString {
return s.Name
}
// GetMimeType returns the value of MimeType.
func (s *FileMetadata) GetMimeType() OptNilString {
return s.MimeType
}
// GetParents returns the value of Parents.
func (s *FileMetadata) GetParents() OptNilStringArray {
return s.Parents
}
// GetTrashed returns the value of Trashed.
func (s *FileMetadata) GetTrashed() OptNilBool {
return s.Trashed
}
// SetName sets the value of Name.
func (s *FileMetadata) SetName(val OptNilString) {
s.Name = val
}
// SetMimeType sets the value of MimeType.
func (s *FileMetadata) SetMimeType(val OptNilString) {
s.MimeType = val
}
// SetParents sets the value of Parents.
func (s *FileMetadata) SetParents(val OptNilStringArray) {
s.Parents = val
}
// SetTrashed sets the value of Trashed.
func (s *FileMetadata) SetTrashed(val OptNilBool) {
s.Trashed = val
}
// NewOptBool returns new OptBool with value set to v.
func NewOptBool(v bool) OptBool {
return OptBool{
Value: v,
Set: true,
}
}
// OptBool is optional bool.
type OptBool struct {
Value bool
Set bool
}
// IsSet returns true if OptBool was set.
func (o OptBool) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptBool) Reset() {
var v bool
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptBool) SetTo(v bool) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptBool) Get() (v bool, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptBool) Or(d bool) bool {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptCommentAuthor returns new OptCommentAuthor with value set to v.
func NewOptCommentAuthor(v CommentAuthor) OptCommentAuthor {
return OptCommentAuthor{
Value: v,
Set: true,
}
}
// OptCommentAuthor is optional CommentAuthor.
type OptCommentAuthor struct {
Value CommentAuthor
Set bool
}
// IsSet returns true if OptCommentAuthor was set.
func (o OptCommentAuthor) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptCommentAuthor) Reset() {
var v CommentAuthor
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptCommentAuthor) SetTo(v CommentAuthor) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptCommentAuthor) Get() (v CommentAuthor, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptCommentAuthor) Or(d CommentAuthor) CommentAuthor {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptCommentRequestQuotedFileContent returns new OptCommentRequestQuotedFileContent with value set to v.
func NewOptCommentRequestQuotedFileContent(v CommentRequestQuotedFileContent) OptCommentRequestQuotedFileContent {
return OptCommentRequestQuotedFileContent{
Value: v,
Set: true,
}
}
// OptCommentRequestQuotedFileContent is optional CommentRequestQuotedFileContent.
type OptCommentRequestQuotedFileContent struct {
Value CommentRequestQuotedFileContent
Set bool
}
// IsSet returns true if OptCommentRequestQuotedFileContent was set.
func (o OptCommentRequestQuotedFileContent) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptCommentRequestQuotedFileContent) Reset() {
var v CommentRequestQuotedFileContent
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptCommentRequestQuotedFileContent) SetTo(v CommentRequestQuotedFileContent) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptCommentRequestQuotedFileContent) Get() (v CommentRequestQuotedFileContent, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptCommentRequestQuotedFileContent) Or(d CommentRequestQuotedFileContent) CommentRequestQuotedFileContent {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptInt returns new OptInt with value set to v.
func NewOptInt(v int) OptInt {
return OptInt{
Value: v,
Set: true,
}
}
// OptInt is optional int.
type OptInt struct {
Value int
Set bool
}
// IsSet returns true if OptInt was set.
func (o OptInt) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptInt) Reset() {
var v int
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptInt) SetTo(v int) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptInt) Get() (v int, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptInt) Or(d int) int {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilAboutStorageQuota returns new OptNilAboutStorageQuota with value set to v.
func NewOptNilAboutStorageQuota(v AboutStorageQuota) OptNilAboutStorageQuota {
return OptNilAboutStorageQuota{
Value: v,
Set: true,
}
}
// OptNilAboutStorageQuota is optional nullable AboutStorageQuota.
type OptNilAboutStorageQuota struct {
Value AboutStorageQuota
Set bool
Null bool
}
// IsSet returns true if OptNilAboutStorageQuota was set.
func (o OptNilAboutStorageQuota) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilAboutStorageQuota) Reset() {
var v AboutStorageQuota
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilAboutStorageQuota) SetTo(v AboutStorageQuota) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilAboutStorageQuota) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilAboutStorageQuota) SetToNull() {
o.Set = true
o.Null = true
var v AboutStorageQuota
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilAboutStorageQuota) Get() (v AboutStorageQuota, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilAboutStorageQuota) Or(d AboutStorageQuota) AboutStorageQuota {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilAboutUser returns new OptNilAboutUser with value set to v.
func NewOptNilAboutUser(v AboutUser) OptNilAboutUser {
return OptNilAboutUser{
Value: v,
Set: true,
}
}
// OptNilAboutUser is optional nullable AboutUser.
type OptNilAboutUser struct {
Value AboutUser
Set bool
Null bool
}
// IsSet returns true if OptNilAboutUser was set.
func (o OptNilAboutUser) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilAboutUser) Reset() {
var v AboutUser
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilAboutUser) SetTo(v AboutUser) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilAboutUser) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilAboutUser) SetToNull() {
o.Set = true
o.Null = true
var v AboutUser
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilAboutUser) Get() (v AboutUser, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilAboutUser) Or(d AboutUser) AboutUser {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilBool returns new OptNilBool with value set to v.
func NewOptNilBool(v bool) OptNilBool {
return OptNilBool{
Value: v,
Set: true,
}
}
// OptNilBool is optional nullable bool.
type OptNilBool struct {
Value bool
Set bool
Null bool
}
// IsSet returns true if OptNilBool was set.
func (o OptNilBool) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilBool) Reset() {
var v bool
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilBool) SetTo(v bool) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilBool) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilBool) SetToNull() {
o.Set = true
o.Null = true
var v bool
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilBool) Get() (v bool, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilBool) Or(d bool) bool {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilReplyArray returns new OptNilReplyArray with value set to v.
func NewOptNilReplyArray(v []Reply) OptNilReplyArray {
return OptNilReplyArray{
Value: v,
Set: true,
}
}
// OptNilReplyArray is optional nullable []Reply.
type OptNilReplyArray struct {
Value []Reply
Set bool
Null bool
}
// IsSet returns true if OptNilReplyArray was set.
func (o OptNilReplyArray) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilReplyArray) Reset() {
var v []Reply
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilReplyArray) SetTo(v []Reply) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilReplyArray) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilReplyArray) SetToNull() {
o.Set = true
o.Null = true
var v []Reply
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilReplyArray) Get() (v []Reply, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilReplyArray) Or(d []Reply) []Reply {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilString returns new OptNilString with value set to v.
func NewOptNilString(v string) OptNilString {
return OptNilString{
Value: v,
Set: true,
}
}
// OptNilString is optional nullable string.
type OptNilString struct {
Value string
Set bool
Null bool
}
// IsSet returns true if OptNilString was set.
func (o OptNilString) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilString) Reset() {
var v string
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilString) SetTo(v string) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilString) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilString) SetToNull() {
o.Set = true
o.Null = true
var v string
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilString) Get() (v string, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilString) Or(d string) string {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptNilStringArray returns new OptNilStringArray with value set to v.
func NewOptNilStringArray(v []string) OptNilStringArray {
return OptNilStringArray{
Value: v,
Set: true,
}
}
// OptNilStringArray is optional nullable []string.
type OptNilStringArray struct {
Value []string
Set bool
Null bool
}
// IsSet returns true if OptNilStringArray was set.
func (o OptNilStringArray) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptNilStringArray) Reset() {
var v []string
o.Value = v
o.Set = false
o.Null = false
}
// SetTo sets value to v.
func (o *OptNilStringArray) SetTo(v []string) {
o.Set = true
o.Null = false
o.Value = v
}
// IsNull returns true if value is Null.
func (o OptNilStringArray) IsNull() bool { return o.Null }
// SetToNull sets value to null.
func (o *OptNilStringArray) SetToNull() {
o.Set = true
o.Null = true
var v []string
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptNilStringArray) Get() (v []string, ok bool) {
if o.Null {
return v, false
}
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptNilStringArray) Or(d []string) []string {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptString returns new OptString with value set to v.
func NewOptString(v string) OptString {
return OptString{
Value: v,
Set: true,
}
}
// OptString is optional string.
type OptString struct {
Value string
Set bool
}
// IsSet returns true if OptString was set.
func (o OptString) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptString) Reset() {
var v string
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptString) SetTo(v string) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptString) Get() (v string, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptString) Or(d string) string {
if v, ok := o.Get(); ok {
return v
}
return d
}
// Ref: #/components/schemas/Permission
type Permission struct {
ID OptString `json:"id"`
Type OptNilString `json:"type"`
Role OptNilString `json:"role"`
EmailAddress OptNilString `json:"emailAddress"`
Domain OptNilString `json:"domain"`
DisplayName OptNilString `json:"displayName"`
}
// GetID returns the value of ID.
func (s *Permission) GetID() OptString {
return s.ID
}
// GetType returns the value of Type.
func (s *Permission) GetType() OptNilString {
return s.Type
}
// GetRole returns the value of Role.
func (s *Permission) GetRole() OptNilString {
return s.Role
}
// GetEmailAddress returns the value of EmailAddress.
func (s *Permission) GetEmailAddress() OptNilString {
return s.EmailAddress
}
// GetDomain returns the value of Domain.
func (s *Permission) GetDomain() OptNilString {
return s.Domain
}
// GetDisplayName returns the value of DisplayName.
func (s *Permission) GetDisplayName() OptNilString {
return s.DisplayName
}
// SetID sets the value of ID.
func (s *Permission) SetID(val OptString) {
s.ID = val
}
// SetType sets the value of Type.
func (s *Permission) SetType(val OptNilString) {
s.Type = val
}
// SetRole sets the value of Role.
func (s *Permission) SetRole(val OptNilString) {
s.Role = val
}
// SetEmailAddress sets the value of EmailAddress.
func (s *Permission) SetEmailAddress(val OptNilString) {
s.EmailAddress = val
}
// SetDomain sets the value of Domain.
func (s *Permission) SetDomain(val OptNilString) {
s.Domain = val
}
// SetDisplayName sets the value of DisplayName.
func (s *Permission) SetDisplayName(val OptNilString) {
s.DisplayName = val
}
// Ref: #/components/schemas/PermissionList
type PermissionList struct {
Permissions []Permission `json:"permissions"`
}
// GetPermissions returns the value of Permissions.
func (s *PermissionList) GetPermissions() []Permission {
return s.Permissions
}
// SetPermissions sets the value of Permissions.
func (s *PermissionList) SetPermissions(val []Permission) {
s.Permissions = val
}
// Ref: #/components/schemas/PermissionRequest
type PermissionRequest struct {
Type OptString `json:"type"`
Role OptString `json:"role"`
EmailAddress OptNilString `json:"emailAddress"`
Domain OptNilString `json:"domain"`
}
// GetType returns the value of Type.
func (s *PermissionRequest) GetType() OptString {
return s.Type
}
// GetRole returns the value of Role.
func (s *PermissionRequest) GetRole() OptString {
return s.Role
}
// GetEmailAddress returns the value of EmailAddress.
func (s *PermissionRequest) GetEmailAddress() OptNilString {
return s.EmailAddress
}
// GetDomain returns the value of Domain.
func (s *PermissionRequest) GetDomain() OptNilString {
return s.Domain
}
// SetType sets the value of Type.
func (s *PermissionRequest) SetType(val OptString) {
s.Type = val
}
// SetRole sets the value of Role.
func (s *PermissionRequest) SetRole(val OptString) {
s.Role = val
}
// SetEmailAddress sets the value of EmailAddress.
func (s *PermissionRequest) SetEmailAddress(val OptNilString) {
s.EmailAddress = val
}
// SetDomain sets the value of Domain.
func (s *PermissionRequest) SetDomain(val OptNilString) {
s.Domain = val
}
// Ref: #/components/schemas/Reply
type Reply struct {
ID OptString `json:"id"`
Content OptNilString `json:"content"`
Author OptCommentAuthor `json:"author"`
CreatedTime OptNilString `json:"createdTime"`
// 'resolve' or 'reopen'.
Action OptNilString `json:"action"`
}
// GetID returns the value of ID.
func (s *Reply) GetID() OptString {
return s.ID
}
// GetContent returns the value of Content.
func (s *Reply) GetContent() OptNilString {
return s.Content
}
// GetAuthor returns the value of Author.
func (s *Reply) GetAuthor() OptCommentAuthor {
return s.Author
}
// GetCreatedTime returns the value of CreatedTime.
func (s *Reply) GetCreatedTime() OptNilString {
return s.CreatedTime
}
// GetAction returns the value of Action.
func (s *Reply) GetAction() OptNilString {
return s.Action
}
// SetID sets the value of ID.
func (s *Reply) SetID(val OptString) {
s.ID = val
}
// SetContent sets the value of Content.
func (s *Reply) SetContent(val OptNilString) {
s.Content = val
}
// SetAuthor sets the value of Author.
func (s *Reply) SetAuthor(val OptCommentAuthor) {
s.Author = val
}
// SetCreatedTime sets the value of CreatedTime.
func (s *Reply) SetCreatedTime(val OptNilString) {
s.CreatedTime = val
}
// SetAction sets the value of Action.
func (s *Reply) SetAction(val OptNilString) {
s.Action = val
}
// Ref: #/components/schemas/ReplyRequest
type ReplyRequest struct {
Content OptNilString `json:"content"`
// 'resolve' or 'reopen'.
Action OptNilString `json:"action"`
}
// GetContent returns the value of Content.
func (s *ReplyRequest) GetContent() OptNilString {
return s.Content
}
// GetAction returns the value of Action.
func (s *ReplyRequest) GetAction() OptNilString {
return s.Action
}
// SetContent sets the value of Content.
func (s *ReplyRequest) SetContent(val OptNilString) {
s.Content = val
}
// SetAction sets the value of Action.
func (s *ReplyRequest) SetAction(val OptNilString) {
s.Action = val
}
// Ref: #/components/schemas/Revision
type Revision struct {
ID OptString `json:"id"`
MimeType OptNilString `json:"mimeType"`
ModifiedTime OptNilString `json:"modifiedTime"`
KeepForever OptNilBool `json:"keepForever"`
Size OptNilString `json:"size"`
}
// GetID returns the value of ID.
func (s *Revision) GetID() OptString {
return s.ID
}
// GetMimeType returns the value of MimeType.
func (s *Revision) GetMimeType() OptNilString {
return s.MimeType
}
// GetModifiedTime returns the value of ModifiedTime.
func (s *Revision) GetModifiedTime() OptNilString {
return s.ModifiedTime
}
// GetKeepForever returns the value of KeepForever.
func (s *Revision) GetKeepForever() OptNilBool {
return s.KeepForever
}
// GetSize returns the value of Size.
func (s *Revision) GetSize() OptNilString {
return s.Size
}
// SetID sets the value of ID.
func (s *Revision) SetID(val OptString) {
s.ID = val
}
// SetMimeType sets the value of MimeType.
func (s *Revision) SetMimeType(val OptNilString) {
s.MimeType = val
}
// SetModifiedTime sets the value of ModifiedTime.
func (s *Revision) SetModifiedTime(val OptNilString) {
s.ModifiedTime = val
}
// SetKeepForever sets the value of KeepForever.
func (s *Revision) SetKeepForever(val OptNilBool) {
s.KeepForever = val
}
// SetSize sets the value of Size.
func (s *Revision) SetSize(val OptNilString) {
s.Size = val
}
// Ref: #/components/schemas/RevisionList
type RevisionList struct {
Revisions []Revision `json:"revisions"`
NextPageToken OptNilString `json:"nextPageToken"`
}
// GetRevisions returns the value of Revisions.
func (s *RevisionList) GetRevisions() []Revision {
return s.Revisions
}
// GetNextPageToken returns the value of NextPageToken.
func (s *RevisionList) GetNextPageToken() OptNilString {
return s.NextPageToken
}
// SetRevisions sets the value of Revisions.
func (s *RevisionList) SetRevisions(val []Revision) {
s.Revisions = val
}
// SetNextPageToken sets the value of NextPageToken.
func (s *RevisionList) SetNextPageToken(val OptNilString) {
s.NextPageToken = val
}
// Ref: #/components/schemas/SharedDrive
type SharedDrive struct {
ID OptString `json:"id"`
Name OptNilString `json:"name"`
}
// GetID returns the value of ID.
func (s *SharedDrive) GetID() OptString {
return s.ID
}
// GetName returns the value of Name.
func (s *SharedDrive) GetName() OptNilString {
return s.Name
}
// SetID sets the value of ID.
func (s *SharedDrive) SetID(val OptString) {
s.ID = val
}
// SetName sets the value of Name.
func (s *SharedDrive) SetName(val OptNilString) {
s.Name = val
}
// Ref: #/components/schemas/SharedDriveList
type SharedDriveList struct {
Drives []SharedDrive `json:"drives"`
NextPageToken OptNilString `json:"nextPageToken"`
}
// GetDrives returns the value of Drives.
func (s *SharedDriveList) GetDrives() []SharedDrive {
return s.Drives
}
// GetNextPageToken returns the value of NextPageToken.
func (s *SharedDriveList) GetNextPageToken() OptNilString {
return s.NextPageToken
}
// SetDrives sets the value of Drives.
func (s *SharedDriveList) SetDrives(val []SharedDrive) {
s.Drives = val
}
// SetNextPageToken sets the value of NextPageToken.
func (s *SharedDriveList) SetNextPageToken(val OptNilString) {
s.NextPageToken = val
}