id int32 0 167k | repo stringlengths 5 54 | path stringlengths 4 155 | func_name stringlengths 1 118 | original_string stringlengths 52 85.5k | language stringclasses 1
value | code stringlengths 52 85.5k | code_tokens list | docstring stringlengths 6 2.61k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 85 252 |
|---|---|---|---|---|---|---|---|---|---|---|---|
138,000 | dropbox/dropbox-sdk-go-unofficial | dropbox/sdk.go | LogInfo | func (c *Config) LogInfo(format string, v ...interface{}) {
c.doLog(LogInfo, format, v...)
} | go | func (c *Config) LogInfo(format string, v ...interface{}) {
c.doLog(LogInfo, format, v...)
} | [
"func",
"(",
"c",
"*",
"Config",
")",
"LogInfo",
"(",
"format",
"string",
",",
"v",
"...",
"interface",
"{",
"}",
")",
"{",
"c",
".",
"doLog",
"(",
"LogInfo",
",",
"format",
",",
"v",
"...",
")",
"\n",
"}"
] | // LogInfo emits an info level SDK log if config's log level is at least LogInfo | [
"LogInfo",
"emits",
"an",
"info",
"level",
"SDK",
"log",
"if",
"config",
"s",
"log",
"level",
"is",
"at",
"least",
"LogInfo"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/sdk.go#L104-L106 |
138,001 | dropbox/dropbox-sdk-go-unofficial | dropbox/sdk.go | NewContext | func NewContext(c Config) Context {
domain := c.Domain
if domain == "" {
domain = defaultDomain
}
client := c.Client
if client == nil {
var conf = &oauth2.Config{Endpoint: OAuthEndpoint(domain)}
tok := &oauth2.Token{AccessToken: c.Token}
client = conf.Client(context.Background(), tok)
}
headerGenerator... | go | func NewContext(c Config) Context {
domain := c.Domain
if domain == "" {
domain = defaultDomain
}
client := c.Client
if client == nil {
var conf = &oauth2.Config{Endpoint: OAuthEndpoint(domain)}
tok := &oauth2.Token{AccessToken: c.Token}
client = conf.Client(context.Background(), tok)
}
headerGenerator... | [
"func",
"NewContext",
"(",
"c",
"Config",
")",
"Context",
"{",
"domain",
":=",
"c",
".",
"Domain",
"\n",
"if",
"domain",
"==",
"\"",
"\"",
"{",
"domain",
"=",
"defaultDomain",
"\n",
"}",
"\n\n",
"client",
":=",
"c",
".",
"Client",
"\n",
"if",
"client... | // NewContext returns a new Context with the given Config. | [
"NewContext",
"returns",
"a",
"new",
"Context",
"with",
"the",
"given",
"Config",
"."
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/sdk.go#L147-L181 |
138,002 | dropbox/dropbox-sdk-go-unofficial | dropbox/sdk.go | OAuthEndpoint | func OAuthEndpoint(domain string) oauth2.Endpoint {
if domain == "" {
domain = defaultDomain
}
authURL := fmt.Sprintf("https://meta%s/1/oauth2/authorize", domain)
tokenURL := fmt.Sprintf("https://api%s/1/oauth2/token", domain)
if domain == defaultDomain {
authURL = "https://www.dropbox.com/1/oauth2/authorize"
... | go | func OAuthEndpoint(domain string) oauth2.Endpoint {
if domain == "" {
domain = defaultDomain
}
authURL := fmt.Sprintf("https://meta%s/1/oauth2/authorize", domain)
tokenURL := fmt.Sprintf("https://api%s/1/oauth2/token", domain)
if domain == defaultDomain {
authURL = "https://www.dropbox.com/1/oauth2/authorize"
... | [
"func",
"OAuthEndpoint",
"(",
"domain",
"string",
")",
"oauth2",
".",
"Endpoint",
"{",
"if",
"domain",
"==",
"\"",
"\"",
"{",
"domain",
"=",
"defaultDomain",
"\n",
"}",
"\n",
"authURL",
":=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"domain",
")",
... | // OAuthEndpoint constructs an `oauth2.Endpoint` for the given domain | [
"OAuthEndpoint",
"constructs",
"an",
"oauth2",
".",
"Endpoint",
"for",
"the",
"given",
"domain"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/sdk.go#L184-L194 |
138,003 | dropbox/dropbox-sdk-go-unofficial | dropbox/sdk.go | HandleCommonAPIErrors | func HandleCommonAPIErrors(c Config, resp *http.Response, body []byte) error {
var apiError APIError
if resp.StatusCode == http.StatusBadRequest || resp.StatusCode == http.StatusInternalServerError {
apiError.ErrorSummary = string(body)
return apiError
}
e := json.Unmarshal(body, &apiError)
if e != nil {
c.L... | go | func HandleCommonAPIErrors(c Config, resp *http.Response, body []byte) error {
var apiError APIError
if resp.StatusCode == http.StatusBadRequest || resp.StatusCode == http.StatusInternalServerError {
apiError.ErrorSummary = string(body)
return apiError
}
e := json.Unmarshal(body, &apiError)
if e != nil {
c.L... | [
"func",
"HandleCommonAPIErrors",
"(",
"c",
"Config",
",",
"resp",
"*",
"http",
".",
"Response",
",",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"var",
"apiError",
"APIError",
"\n",
"if",
"resp",
".",
"StatusCode",
"==",
"http",
".",
"StatusBadRequest",
... | // HandleCommonAPIErrors handles common API errors | [
"HandleCommonAPIErrors",
"handles",
"common",
"API",
"errors"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/sdk.go#L211-L223 |
138,004 | dropbox/dropbox-sdk-go-unofficial | dropbox/team_common/types.go | NewGroupSummary | func NewGroupSummary(GroupName string, GroupId string, GroupManagementType *GroupManagementType) *GroupSummary {
s := new(GroupSummary)
s.GroupName = GroupName
s.GroupId = GroupId
s.GroupManagementType = GroupManagementType
return s
} | go | func NewGroupSummary(GroupName string, GroupId string, GroupManagementType *GroupManagementType) *GroupSummary {
s := new(GroupSummary)
s.GroupName = GroupName
s.GroupId = GroupId
s.GroupManagementType = GroupManagementType
return s
} | [
"func",
"NewGroupSummary",
"(",
"GroupName",
"string",
",",
"GroupId",
"string",
",",
"GroupManagementType",
"*",
"GroupManagementType",
")",
"*",
"GroupSummary",
"{",
"s",
":=",
"new",
"(",
"GroupSummary",
")",
"\n",
"s",
".",
"GroupName",
"=",
"GroupName",
"... | // NewGroupSummary returns a new GroupSummary instance | [
"NewGroupSummary",
"returns",
"a",
"new",
"GroupSummary",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/team_common/types.go#L59-L65 |
138,005 | dropbox/dropbox-sdk-go-unofficial | dropbox/sharing/client.go | New | func New(c dropbox.Config) Client {
ctx := apiImpl(dropbox.NewContext(c))
return &ctx
} | go | func New(c dropbox.Config) Client {
ctx := apiImpl(dropbox.NewContext(c))
return &ctx
} | [
"func",
"New",
"(",
"c",
"dropbox",
".",
"Config",
")",
"Client",
"{",
"ctx",
":=",
"apiImpl",
"(",
"dropbox",
".",
"NewContext",
"(",
"c",
")",
")",
"\n",
"return",
"&",
"ctx",
"\n",
"}"
] | // New returns a Client implementation for this namespace | [
"New",
"returns",
"a",
"Client",
"implementation",
"for",
"this",
"namespace"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/sharing/client.go#L3072-L3075 |
138,006 | dropbox/dropbox-sdk-go-unofficial | dropbox/async/types.go | UnmarshalJSON | func (u *LaunchResultBase) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
}
var w wrap
var err error
if err = json.Unmarshal(body, &w); err != nil {
return err
}
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
err = json.Unmarshal(body, &u.AsyncJobId)
if err != nil {
return ... | go | func (u *LaunchResultBase) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
}
var w wrap
var err error
if err = json.Unmarshal(body, &w); err != nil {
return err
}
u.Tag = w.Tag
switch u.Tag {
case "async_job_id":
err = json.Unmarshal(body, &u.AsyncJobId)
if err != nil {
return ... | [
"func",
"(",
"u",
"*",
"LaunchResultBase",
")",
"UnmarshalJSON",
"(",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"dropbox",
".",
"Tagged",
"\n",
"}",
"\n",
"var",
"w",
"wrap",
"\n",
"var",
"err",
"error",
"\n",
"if",
... | // UnmarshalJSON deserializes into a LaunchResultBase instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"LaunchResultBase",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/async/types.go#L49-L68 |
138,007 | dropbox/dropbox-sdk-go-unofficial | dropbox/async/types.go | NewPollArg | func NewPollArg(AsyncJobId string) *PollArg {
s := new(PollArg)
s.AsyncJobId = AsyncJobId
return s
} | go | func NewPollArg(AsyncJobId string) *PollArg {
s := new(PollArg)
s.AsyncJobId = AsyncJobId
return s
} | [
"func",
"NewPollArg",
"(",
"AsyncJobId",
"string",
")",
"*",
"PollArg",
"{",
"s",
":=",
"new",
"(",
"PollArg",
")",
"\n",
"s",
".",
"AsyncJobId",
"=",
"AsyncJobId",
"\n",
"return",
"s",
"\n",
"}"
] | // NewPollArg returns a new PollArg instance | [
"NewPollArg",
"returns",
"a",
"new",
"PollArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/async/types.go#L117-L121 |
138,008 | dropbox/dropbox-sdk-go-unofficial | dropbox/team_policies/types.go | NewTeamMemberPolicies | func NewTeamMemberPolicies(Sharing *TeamSharingPolicies, EmmState *EmmState, OfficeAddin *OfficeAddInPolicy) *TeamMemberPolicies {
s := new(TeamMemberPolicies)
s.Sharing = Sharing
s.EmmState = EmmState
s.OfficeAddin = OfficeAddin
return s
} | go | func NewTeamMemberPolicies(Sharing *TeamSharingPolicies, EmmState *EmmState, OfficeAddin *OfficeAddInPolicy) *TeamMemberPolicies {
s := new(TeamMemberPolicies)
s.Sharing = Sharing
s.EmmState = EmmState
s.OfficeAddin = OfficeAddin
return s
} | [
"func",
"NewTeamMemberPolicies",
"(",
"Sharing",
"*",
"TeamSharingPolicies",
",",
"EmmState",
"*",
"EmmState",
",",
"OfficeAddin",
"*",
"OfficeAddInPolicy",
")",
"*",
"TeamMemberPolicies",
"{",
"s",
":=",
"new",
"(",
"TeamMemberPolicies",
")",
"\n",
"s",
".",
"S... | // NewTeamMemberPolicies returns a new TeamMemberPolicies instance | [
"NewTeamMemberPolicies",
"returns",
"a",
"new",
"TeamMemberPolicies",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/team_policies/types.go#L242-L248 |
138,009 | dropbox/dropbox-sdk-go-unofficial | dropbox/team_policies/types.go | NewTeamSharingPolicies | func NewTeamSharingPolicies(SharedFolderMemberPolicy *SharedFolderMemberPolicy, SharedFolderJoinPolicy *SharedFolderJoinPolicy, SharedLinkCreatePolicy *SharedLinkCreatePolicy) *TeamSharingPolicies {
s := new(TeamSharingPolicies)
s.SharedFolderMemberPolicy = SharedFolderMemberPolicy
s.SharedFolderJoinPolicy = SharedF... | go | func NewTeamSharingPolicies(SharedFolderMemberPolicy *SharedFolderMemberPolicy, SharedFolderJoinPolicy *SharedFolderJoinPolicy, SharedLinkCreatePolicy *SharedLinkCreatePolicy) *TeamSharingPolicies {
s := new(TeamSharingPolicies)
s.SharedFolderMemberPolicy = SharedFolderMemberPolicy
s.SharedFolderJoinPolicy = SharedF... | [
"func",
"NewTeamSharingPolicies",
"(",
"SharedFolderMemberPolicy",
"*",
"SharedFolderMemberPolicy",
",",
"SharedFolderJoinPolicy",
"*",
"SharedFolderJoinPolicy",
",",
"SharedLinkCreatePolicy",
"*",
"SharedLinkCreatePolicy",
")",
"*",
"TeamSharingPolicies",
"{",
"s",
":=",
"ne... | // NewTeamSharingPolicies returns a new TeamSharingPolicies instance | [
"NewTeamSharingPolicies",
"returns",
"a",
"new",
"TeamSharingPolicies",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/team_policies/types.go#L262-L268 |
138,010 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewGetMetadataArg | func NewGetMetadataArg(Path string) *GetMetadataArg {
s := new(GetMetadataArg)
s.Path = Path
s.IncludeMediaInfo = false
s.IncludeDeleted = false
s.IncludeHasExplicitSharedMembers = false
return s
} | go | func NewGetMetadataArg(Path string) *GetMetadataArg {
s := new(GetMetadataArg)
s.Path = Path
s.IncludeMediaInfo = false
s.IncludeDeleted = false
s.IncludeHasExplicitSharedMembers = false
return s
} | [
"func",
"NewGetMetadataArg",
"(",
"Path",
"string",
")",
"*",
"GetMetadataArg",
"{",
"s",
":=",
"new",
"(",
"GetMetadataArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"s",
".",
"IncludeMediaInfo",
"=",
"false",
"\n",
"s",
".",
"IncludeDeleted",
"=... | // NewGetMetadataArg returns a new GetMetadataArg instance | [
"NewGetMetadataArg",
"returns",
"a",
"new",
"GetMetadataArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L54-L61 |
138,011 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewAlphaGetMetadataArg | func NewAlphaGetMetadataArg(Path string) *AlphaGetMetadataArg {
s := new(AlphaGetMetadataArg)
s.Path = Path
s.IncludeMediaInfo = false
s.IncludeDeleted = false
s.IncludeHasExplicitSharedMembers = false
return s
} | go | func NewAlphaGetMetadataArg(Path string) *AlphaGetMetadataArg {
s := new(AlphaGetMetadataArg)
s.Path = Path
s.IncludeMediaInfo = false
s.IncludeDeleted = false
s.IncludeHasExplicitSharedMembers = false
return s
} | [
"func",
"NewAlphaGetMetadataArg",
"(",
"Path",
"string",
")",
"*",
"AlphaGetMetadataArg",
"{",
"s",
":=",
"new",
"(",
"AlphaGetMetadataArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"s",
".",
"IncludeMediaInfo",
"=",
"false",
"\n",
"s",
".",
"Includ... | // NewAlphaGetMetadataArg returns a new AlphaGetMetadataArg instance | [
"NewAlphaGetMetadataArg",
"returns",
"a",
"new",
"AlphaGetMetadataArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L72-L79 |
138,012 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewCommitInfo | func NewCommitInfo(Path string) *CommitInfo {
s := new(CommitInfo)
s.Path = Path
s.Mode = &WriteMode{Tagged: dropbox.Tagged{"add"}}
s.Autorename = false
s.Mute = false
s.StrictConflict = false
return s
} | go | func NewCommitInfo(Path string) *CommitInfo {
s := new(CommitInfo)
s.Path = Path
s.Mode = &WriteMode{Tagged: dropbox.Tagged{"add"}}
s.Autorename = false
s.Mute = false
s.StrictConflict = false
return s
} | [
"func",
"NewCommitInfo",
"(",
"Path",
"string",
")",
"*",
"CommitInfo",
"{",
"s",
":=",
"new",
"(",
"CommitInfo",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"s",
".",
"Mode",
"=",
"&",
"WriteMode",
"{",
"Tagged",
":",
"dropbox",
".",
"Tagged",
... | // NewCommitInfo returns a new CommitInfo instance | [
"NewCommitInfo",
"returns",
"a",
"new",
"CommitInfo",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L194-L202 |
138,013 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewCommitInfoWithProperties | func NewCommitInfoWithProperties(Path string) *CommitInfoWithProperties {
s := new(CommitInfoWithProperties)
s.Path = Path
s.Mode = &WriteMode{Tagged: dropbox.Tagged{"add"}}
s.Autorename = false
s.Mute = false
s.StrictConflict = false
return s
} | go | func NewCommitInfoWithProperties(Path string) *CommitInfoWithProperties {
s := new(CommitInfoWithProperties)
s.Path = Path
s.Mode = &WriteMode{Tagged: dropbox.Tagged{"add"}}
s.Autorename = false
s.Mute = false
s.StrictConflict = false
return s
} | [
"func",
"NewCommitInfoWithProperties",
"(",
"Path",
"string",
")",
"*",
"CommitInfoWithProperties",
"{",
"s",
":=",
"new",
"(",
"CommitInfoWithProperties",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"s",
".",
"Mode",
"=",
"&",
"WriteMode",
"{",
"Tagged"... | // NewCommitInfoWithProperties returns a new CommitInfoWithProperties instance | [
"NewCommitInfoWithProperties",
"returns",
"a",
"new",
"CommitInfoWithProperties",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L210-L218 |
138,014 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewContentSyncSetting | func NewContentSyncSetting(Id string, SyncSetting *SyncSetting) *ContentSyncSetting {
s := new(ContentSyncSetting)
s.Id = Id
s.SyncSetting = SyncSetting
return s
} | go | func NewContentSyncSetting(Id string, SyncSetting *SyncSetting) *ContentSyncSetting {
s := new(ContentSyncSetting)
s.Id = Id
s.SyncSetting = SyncSetting
return s
} | [
"func",
"NewContentSyncSetting",
"(",
"Id",
"string",
",",
"SyncSetting",
"*",
"SyncSetting",
")",
"*",
"ContentSyncSetting",
"{",
"s",
":=",
"new",
"(",
"ContentSyncSetting",
")",
"\n",
"s",
".",
"Id",
"=",
"Id",
"\n",
"s",
".",
"SyncSetting",
"=",
"SyncS... | // NewContentSyncSetting returns a new ContentSyncSetting instance | [
"NewContentSyncSetting",
"returns",
"a",
"new",
"ContentSyncSetting",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L229-L234 |
138,015 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewContentSyncSettingArg | func NewContentSyncSettingArg(Id string, SyncSetting *SyncSettingArg) *ContentSyncSettingArg {
s := new(ContentSyncSettingArg)
s.Id = Id
s.SyncSetting = SyncSetting
return s
} | go | func NewContentSyncSettingArg(Id string, SyncSetting *SyncSettingArg) *ContentSyncSettingArg {
s := new(ContentSyncSettingArg)
s.Id = Id
s.SyncSetting = SyncSetting
return s
} | [
"func",
"NewContentSyncSettingArg",
"(",
"Id",
"string",
",",
"SyncSetting",
"*",
"SyncSettingArg",
")",
"*",
"ContentSyncSettingArg",
"{",
"s",
":=",
"new",
"(",
"ContentSyncSettingArg",
")",
"\n",
"s",
".",
"Id",
"=",
"Id",
"\n",
"s",
".",
"SyncSetting",
"... | // NewContentSyncSettingArg returns a new ContentSyncSettingArg instance | [
"NewContentSyncSettingArg",
"returns",
"a",
"new",
"ContentSyncSettingArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L245-L250 |
138,016 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewCreateFolderArg | func NewCreateFolderArg(Path string) *CreateFolderArg {
s := new(CreateFolderArg)
s.Path = Path
s.Autorename = false
return s
} | go | func NewCreateFolderArg(Path string) *CreateFolderArg {
s := new(CreateFolderArg)
s.Path = Path
s.Autorename = false
return s
} | [
"func",
"NewCreateFolderArg",
"(",
"Path",
"string",
")",
"*",
"CreateFolderArg",
"{",
"s",
":=",
"new",
"(",
"CreateFolderArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"s",
".",
"Autorename",
"=",
"false",
"\n",
"return",
"s",
"\n",
"}"
] | // NewCreateFolderArg returns a new CreateFolderArg instance | [
"NewCreateFolderArg",
"returns",
"a",
"new",
"CreateFolderArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L262-L267 |
138,017 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewCreateFolderBatchArg | func NewCreateFolderBatchArg(Paths []string) *CreateFolderBatchArg {
s := new(CreateFolderBatchArg)
s.Paths = Paths
s.Autorename = false
s.ForceAsync = false
return s
} | go | func NewCreateFolderBatchArg(Paths []string) *CreateFolderBatchArg {
s := new(CreateFolderBatchArg)
s.Paths = Paths
s.Autorename = false
s.ForceAsync = false
return s
} | [
"func",
"NewCreateFolderBatchArg",
"(",
"Paths",
"[",
"]",
"string",
")",
"*",
"CreateFolderBatchArg",
"{",
"s",
":=",
"new",
"(",
"CreateFolderBatchArg",
")",
"\n",
"s",
".",
"Paths",
"=",
"Paths",
"\n",
"s",
".",
"Autorename",
"=",
"false",
"\n",
"s",
... | // NewCreateFolderBatchArg returns a new CreateFolderBatchArg instance | [
"NewCreateFolderBatchArg",
"returns",
"a",
"new",
"CreateFolderBatchArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L282-L288 |
138,018 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewCreateFolderBatchResult | func NewCreateFolderBatchResult(Entries []*CreateFolderBatchResultEntry) *CreateFolderBatchResult {
s := new(CreateFolderBatchResult)
s.Entries = Entries
return s
} | go | func NewCreateFolderBatchResult(Entries []*CreateFolderBatchResultEntry) *CreateFolderBatchResult {
s := new(CreateFolderBatchResult)
s.Entries = Entries
return s
} | [
"func",
"NewCreateFolderBatchResult",
"(",
"Entries",
"[",
"]",
"*",
"CreateFolderBatchResultEntry",
")",
"*",
"CreateFolderBatchResult",
"{",
"s",
":=",
"new",
"(",
"CreateFolderBatchResult",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
"\n",
"return",
"s",
... | // NewCreateFolderBatchResult returns a new CreateFolderBatchResult instance | [
"NewCreateFolderBatchResult",
"returns",
"a",
"new",
"CreateFolderBatchResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L418-L422 |
138,019 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewCreateFolderEntryResult | func NewCreateFolderEntryResult(Metadata *FolderMetadata) *CreateFolderEntryResult {
s := new(CreateFolderEntryResult)
s.Metadata = Metadata
return s
} | go | func NewCreateFolderEntryResult(Metadata *FolderMetadata) *CreateFolderEntryResult {
s := new(CreateFolderEntryResult)
s.Metadata = Metadata
return s
} | [
"func",
"NewCreateFolderEntryResult",
"(",
"Metadata",
"*",
"FolderMetadata",
")",
"*",
"CreateFolderEntryResult",
"{",
"s",
":=",
"new",
"(",
"CreateFolderEntryResult",
")",
"\n",
"s",
".",
"Metadata",
"=",
"Metadata",
"\n",
"return",
"s",
"\n",
"}"
] | // NewCreateFolderEntryResult returns a new CreateFolderEntryResult instance | [
"NewCreateFolderEntryResult",
"returns",
"a",
"new",
"CreateFolderEntryResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L515-L519 |
138,020 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewCreateFolderResult | func NewCreateFolderResult(Metadata *FolderMetadata) *CreateFolderResult {
s := new(CreateFolderResult)
s.Metadata = Metadata
return s
} | go | func NewCreateFolderResult(Metadata *FolderMetadata) *CreateFolderResult {
s := new(CreateFolderResult)
s.Metadata = Metadata
return s
} | [
"func",
"NewCreateFolderResult",
"(",
"Metadata",
"*",
"FolderMetadata",
")",
"*",
"CreateFolderResult",
"{",
"s",
":=",
"new",
"(",
"CreateFolderResult",
")",
"\n",
"s",
".",
"Metadata",
"=",
"Metadata",
"\n",
"return",
"s",
"\n",
"}"
] | // NewCreateFolderResult returns a new CreateFolderResult instance | [
"NewCreateFolderResult",
"returns",
"a",
"new",
"CreateFolderResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L565-L569 |
138,021 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewDeleteArg | func NewDeleteArg(Path string) *DeleteArg {
s := new(DeleteArg)
s.Path = Path
return s
} | go | func NewDeleteArg(Path string) *DeleteArg {
s := new(DeleteArg)
s.Path = Path
return s
} | [
"func",
"NewDeleteArg",
"(",
"Path",
"string",
")",
"*",
"DeleteArg",
"{",
"s",
":=",
"new",
"(",
"DeleteArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"return",
"s",
"\n",
"}"
] | // NewDeleteArg returns a new DeleteArg instance | [
"NewDeleteArg",
"returns",
"a",
"new",
"DeleteArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L581-L585 |
138,022 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewDeleteBatchArg | func NewDeleteBatchArg(Entries []*DeleteArg) *DeleteBatchArg {
s := new(DeleteBatchArg)
s.Entries = Entries
return s
} | go | func NewDeleteBatchArg(Entries []*DeleteArg) *DeleteBatchArg {
s := new(DeleteBatchArg)
s.Entries = Entries
return s
} | [
"func",
"NewDeleteBatchArg",
"(",
"Entries",
"[",
"]",
"*",
"DeleteArg",
")",
"*",
"DeleteBatchArg",
"{",
"s",
":=",
"new",
"(",
"DeleteBatchArg",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
"\n",
"return",
"s",
"\n",
"}"
] | // NewDeleteBatchArg returns a new DeleteBatchArg instance | [
"NewDeleteBatchArg",
"returns",
"a",
"new",
"DeleteBatchArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L594-L598 |
138,023 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewDeleteBatchResult | func NewDeleteBatchResult(Entries []*DeleteBatchResultEntry) *DeleteBatchResult {
s := new(DeleteBatchResult)
s.Entries = Entries
return s
} | go | func NewDeleteBatchResult(Entries []*DeleteBatchResultEntry) *DeleteBatchResult {
s := new(DeleteBatchResult)
s.Entries = Entries
return s
} | [
"func",
"NewDeleteBatchResult",
"(",
"Entries",
"[",
"]",
"*",
"DeleteBatchResultEntry",
")",
"*",
"DeleteBatchResult",
"{",
"s",
":=",
"new",
"(",
"DeleteBatchResult",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
"\n",
"return",
"s",
"\n",
"}"
] | // NewDeleteBatchResult returns a new DeleteBatchResult instance | [
"NewDeleteBatchResult",
"returns",
"a",
"new",
"DeleteBatchResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L718-L722 |
138,024 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewDeleteBatchResultData | func NewDeleteBatchResultData(Metadata IsMetadata) *DeleteBatchResultData {
s := new(DeleteBatchResultData)
s.Metadata = Metadata
return s
} | go | func NewDeleteBatchResultData(Metadata IsMetadata) *DeleteBatchResultData {
s := new(DeleteBatchResultData)
s.Metadata = Metadata
return s
} | [
"func",
"NewDeleteBatchResultData",
"(",
"Metadata",
"IsMetadata",
")",
"*",
"DeleteBatchResultData",
"{",
"s",
":=",
"new",
"(",
"DeleteBatchResultData",
")",
"\n",
"s",
".",
"Metadata",
"=",
"Metadata",
"\n",
"return",
"s",
"\n",
"}"
] | // NewDeleteBatchResultData returns a new DeleteBatchResultData instance | [
"NewDeleteBatchResultData",
"returns",
"a",
"new",
"DeleteBatchResultData",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L731-L735 |
138,025 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewDeleteResult | func NewDeleteResult(Metadata IsMetadata) *DeleteResult {
s := new(DeleteResult)
s.Metadata = Metadata
return s
} | go | func NewDeleteResult(Metadata IsMetadata) *DeleteResult {
s := new(DeleteResult)
s.Metadata = Metadata
return s
} | [
"func",
"NewDeleteResult",
"(",
"Metadata",
"IsMetadata",
")",
"*",
"DeleteResult",
"{",
"s",
":=",
"new",
"(",
"DeleteResult",
")",
"\n",
"s",
".",
"Metadata",
"=",
"Metadata",
"\n",
"return",
"s",
"\n",
"}"
] | // NewDeleteResult returns a new DeleteResult instance | [
"NewDeleteResult",
"returns",
"a",
"new",
"DeleteResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L860-L864 |
138,026 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *DeleteResult) UnmarshalJSON(b []byte) error {
type wrap struct {
// Metadata : Metadata of the deleted object.
Metadata json.RawMessage `json:"metadata"`
}
var w wrap
if err := json.Unmarshal(b, &w); err != nil {
return err
}
Metadata, err := IsMetadataFromJSON(w.Metadata)
if err != nil {
return... | go | func (u *DeleteResult) UnmarshalJSON(b []byte) error {
type wrap struct {
// Metadata : Metadata of the deleted object.
Metadata json.RawMessage `json:"metadata"`
}
var w wrap
if err := json.Unmarshal(b, &w); err != nil {
return err
}
Metadata, err := IsMetadataFromJSON(w.Metadata)
if err != nil {
return... | [
"func",
"(",
"u",
"*",
"DeleteResult",
")",
"UnmarshalJSON",
"(",
"b",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"// Metadata : Metadata of the deleted object.",
"Metadata",
"json",
".",
"RawMessage",
"`json:\"metadata\"`",
"\n",
"}",
"... | // UnmarshalJSON deserializes into a DeleteResult instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"DeleteResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L867-L882 |
138,027 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewMetadata | func NewMetadata(Name string) *Metadata {
s := new(Metadata)
s.Name = Name
return s
} | go | func NewMetadata(Name string) *Metadata {
s := new(Metadata)
s.Name = Name
return s
} | [
"func",
"NewMetadata",
"(",
"Name",
"string",
")",
"*",
"Metadata",
"{",
"s",
":=",
"new",
"(",
"Metadata",
")",
"\n",
"s",
".",
"Name",
"=",
"Name",
"\n",
"return",
"s",
"\n",
"}"
] | // NewMetadata returns a new Metadata instance | [
"NewMetadata",
"returns",
"a",
"new",
"Metadata",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L907-L911 |
138,028 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | IsMetadataFromJSON | func IsMetadataFromJSON(data []byte) (IsMetadata, error) {
var t metadataUnion
if err := json.Unmarshal(data, &t); err != nil {
return nil, err
}
switch t.Tag {
case "file":
return t.File, nil
case "folder":
return t.Folder, nil
case "deleted":
return t.Deleted, nil
}
return nil, nil
} | go | func IsMetadataFromJSON(data []byte) (IsMetadata, error) {
var t metadataUnion
if err := json.Unmarshal(data, &t); err != nil {
return nil, err
}
switch t.Tag {
case "file":
return t.File, nil
case "folder":
return t.Folder, nil
case "deleted":
return t.Deleted, nil
}
return nil, nil
} | [
"func",
"IsMetadataFromJSON",
"(",
"data",
"[",
"]",
"byte",
")",
"(",
"IsMetadata",
",",
"error",
")",
"{",
"var",
"t",
"metadataUnion",
"\n",
"if",
"err",
":=",
"json",
".",
"Unmarshal",
"(",
"data",
",",
"&",
"t",
")",
";",
"err",
"!=",
"nil",
"... | // IsMetadataFromJSON converts JSON to a concrete IsMetadata instance | [
"IsMetadataFromJSON",
"converts",
"JSON",
"to",
"a",
"concrete",
"IsMetadata",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L979-L996 |
138,029 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewDeletedMetadata | func NewDeletedMetadata(Name string) *DeletedMetadata {
s := new(DeletedMetadata)
s.Name = Name
return s
} | go | func NewDeletedMetadata(Name string) *DeletedMetadata {
s := new(DeletedMetadata)
s.Name = Name
return s
} | [
"func",
"NewDeletedMetadata",
"(",
"Name",
"string",
")",
"*",
"DeletedMetadata",
"{",
"s",
":=",
"new",
"(",
"DeletedMetadata",
")",
"\n",
"s",
".",
"Name",
"=",
"Name",
"\n",
"return",
"s",
"\n",
"}"
] | // NewDeletedMetadata returns a new DeletedMetadata instance | [
"NewDeletedMetadata",
"returns",
"a",
"new",
"DeletedMetadata",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1005-L1009 |
138,030 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewDimensions | func NewDimensions(Height uint64, Width uint64) *Dimensions {
s := new(Dimensions)
s.Height = Height
s.Width = Width
return s
} | go | func NewDimensions(Height uint64, Width uint64) *Dimensions {
s := new(Dimensions)
s.Height = Height
s.Width = Width
return s
} | [
"func",
"NewDimensions",
"(",
"Height",
"uint64",
",",
"Width",
"uint64",
")",
"*",
"Dimensions",
"{",
"s",
":=",
"new",
"(",
"Dimensions",
")",
"\n",
"s",
".",
"Height",
"=",
"Height",
"\n",
"s",
".",
"Width",
"=",
"Width",
"\n",
"return",
"s",
"\n"... | // NewDimensions returns a new Dimensions instance | [
"NewDimensions",
"returns",
"a",
"new",
"Dimensions",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1020-L1025 |
138,031 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewDownloadArg | func NewDownloadArg(Path string) *DownloadArg {
s := new(DownloadArg)
s.Path = Path
return s
} | go | func NewDownloadArg(Path string) *DownloadArg {
s := new(DownloadArg)
s.Path = Path
return s
} | [
"func",
"NewDownloadArg",
"(",
"Path",
"string",
")",
"*",
"DownloadArg",
"{",
"s",
":=",
"new",
"(",
"DownloadArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"return",
"s",
"\n",
"}"
] | // NewDownloadArg returns a new DownloadArg instance | [
"NewDownloadArg",
"returns",
"a",
"new",
"DownloadArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1038-L1042 |
138,032 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewDownloadZipArg | func NewDownloadZipArg(Path string) *DownloadZipArg {
s := new(DownloadZipArg)
s.Path = Path
return s
} | go | func NewDownloadZipArg(Path string) *DownloadZipArg {
s := new(DownloadZipArg)
s.Path = Path
return s
} | [
"func",
"NewDownloadZipArg",
"(",
"Path",
"string",
")",
"*",
"DownloadZipArg",
"{",
"s",
":=",
"new",
"(",
"DownloadZipArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"return",
"s",
"\n",
"}"
] | // NewDownloadZipArg returns a new DownloadZipArg instance | [
"NewDownloadZipArg",
"returns",
"a",
"new",
"DownloadZipArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1088-L1092 |
138,033 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewDownloadZipResult | func NewDownloadZipResult(Metadata *FolderMetadata) *DownloadZipResult {
s := new(DownloadZipResult)
s.Metadata = Metadata
return s
} | go | func NewDownloadZipResult(Metadata *FolderMetadata) *DownloadZipResult {
s := new(DownloadZipResult)
s.Metadata = Metadata
return s
} | [
"func",
"NewDownloadZipResult",
"(",
"Metadata",
"*",
"FolderMetadata",
")",
"*",
"DownloadZipResult",
"{",
"s",
":=",
"new",
"(",
"DownloadZipResult",
")",
"\n",
"s",
".",
"Metadata",
"=",
"Metadata",
"\n",
"return",
"s",
"\n",
"}"
] | // NewDownloadZipResult returns a new DownloadZipResult instance | [
"NewDownloadZipResult",
"returns",
"a",
"new",
"DownloadZipResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1140-L1144 |
138,034 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewFileMetadata | func NewFileMetadata(Name string, Id string, ClientModified time.Time, ServerModified time.Time, Rev string, Size uint64) *FileMetadata {
s := new(FileMetadata)
s.Name = Name
s.Id = Id
s.ClientModified = ClientModified
s.ServerModified = ServerModified
s.Rev = Rev
s.Size = Size
return s
} | go | func NewFileMetadata(Name string, Id string, ClientModified time.Time, ServerModified time.Time, Rev string, Size uint64) *FileMetadata {
s := new(FileMetadata)
s.Name = Name
s.Id = Id
s.ClientModified = ClientModified
s.ServerModified = ServerModified
s.Rev = Rev
s.Size = Size
return s
} | [
"func",
"NewFileMetadata",
"(",
"Name",
"string",
",",
"Id",
"string",
",",
"ClientModified",
"time",
".",
"Time",
",",
"ServerModified",
"time",
".",
"Time",
",",
"Rev",
"string",
",",
"Size",
"uint64",
")",
"*",
"FileMetadata",
"{",
"s",
":=",
"new",
"... | // NewFileMetadata returns a new FileMetadata instance | [
"NewFileMetadata",
"returns",
"a",
"new",
"FileMetadata",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1188-L1197 |
138,035 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewSharingInfo | func NewSharingInfo(ReadOnly bool) *SharingInfo {
s := new(SharingInfo)
s.ReadOnly = ReadOnly
return s
} | go | func NewSharingInfo(ReadOnly bool) *SharingInfo {
s := new(SharingInfo)
s.ReadOnly = ReadOnly
return s
} | [
"func",
"NewSharingInfo",
"(",
"ReadOnly",
"bool",
")",
"*",
"SharingInfo",
"{",
"s",
":=",
"new",
"(",
"SharingInfo",
")",
"\n",
"s",
".",
"ReadOnly",
"=",
"ReadOnly",
"\n",
"return",
"s",
"\n",
"}"
] | // NewSharingInfo returns a new SharingInfo instance | [
"NewSharingInfo",
"returns",
"a",
"new",
"SharingInfo",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1207-L1211 |
138,036 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewFileSharingInfo | func NewFileSharingInfo(ReadOnly bool, ParentSharedFolderId string) *FileSharingInfo {
s := new(FileSharingInfo)
s.ReadOnly = ReadOnly
s.ParentSharedFolderId = ParentSharedFolderId
return s
} | go | func NewFileSharingInfo(ReadOnly bool, ParentSharedFolderId string) *FileSharingInfo {
s := new(FileSharingInfo)
s.ReadOnly = ReadOnly
s.ParentSharedFolderId = ParentSharedFolderId
return s
} | [
"func",
"NewFileSharingInfo",
"(",
"ReadOnly",
"bool",
",",
"ParentSharedFolderId",
"string",
")",
"*",
"FileSharingInfo",
"{",
"s",
":=",
"new",
"(",
"FileSharingInfo",
")",
"\n",
"s",
".",
"ReadOnly",
"=",
"ReadOnly",
"\n",
"s",
".",
"ParentSharedFolderId",
... | // NewFileSharingInfo returns a new FileSharingInfo instance | [
"NewFileSharingInfo",
"returns",
"a",
"new",
"FileSharingInfo",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1225-L1230 |
138,037 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewFolderMetadata | func NewFolderMetadata(Name string, Id string) *FolderMetadata {
s := new(FolderMetadata)
s.Name = Name
s.Id = Id
return s
} | go | func NewFolderMetadata(Name string, Id string) *FolderMetadata {
s := new(FolderMetadata)
s.Name = Name
s.Id = Id
return s
} | [
"func",
"NewFolderMetadata",
"(",
"Name",
"string",
",",
"Id",
"string",
")",
"*",
"FolderMetadata",
"{",
"s",
":=",
"new",
"(",
"FolderMetadata",
")",
"\n",
"s",
".",
"Name",
"=",
"Name",
"\n",
"s",
".",
"Id",
"=",
"Id",
"\n",
"return",
"s",
"\n",
... | // NewFolderMetadata returns a new FolderMetadata instance | [
"NewFolderMetadata",
"returns",
"a",
"new",
"FolderMetadata",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1250-L1255 |
138,038 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewFolderSharingInfo | func NewFolderSharingInfo(ReadOnly bool) *FolderSharingInfo {
s := new(FolderSharingInfo)
s.ReadOnly = ReadOnly
s.TraverseOnly = false
s.NoAccess = false
return s
} | go | func NewFolderSharingInfo(ReadOnly bool) *FolderSharingInfo {
s := new(FolderSharingInfo)
s.ReadOnly = ReadOnly
s.TraverseOnly = false
s.NoAccess = false
return s
} | [
"func",
"NewFolderSharingInfo",
"(",
"ReadOnly",
"bool",
")",
"*",
"FolderSharingInfo",
"{",
"s",
":=",
"new",
"(",
"FolderSharingInfo",
")",
"\n",
"s",
".",
"ReadOnly",
"=",
"ReadOnly",
"\n",
"s",
".",
"TraverseOnly",
"=",
"false",
"\n",
"s",
".",
"NoAcce... | // NewFolderSharingInfo returns a new FolderSharingInfo instance | [
"NewFolderSharingInfo",
"returns",
"a",
"new",
"FolderSharingInfo",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1276-L1282 |
138,039 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewGetCopyReferenceArg | func NewGetCopyReferenceArg(Path string) *GetCopyReferenceArg {
s := new(GetCopyReferenceArg)
s.Path = Path
return s
} | go | func NewGetCopyReferenceArg(Path string) *GetCopyReferenceArg {
s := new(GetCopyReferenceArg)
s.Path = Path
return s
} | [
"func",
"NewGetCopyReferenceArg",
"(",
"Path",
"string",
")",
"*",
"GetCopyReferenceArg",
"{",
"s",
":=",
"new",
"(",
"GetCopyReferenceArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"return",
"s",
"\n",
"}"
] | // NewGetCopyReferenceArg returns a new GetCopyReferenceArg instance | [
"NewGetCopyReferenceArg",
"returns",
"a",
"new",
"GetCopyReferenceArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1292-L1296 |
138,040 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewGetCopyReferenceResult | func NewGetCopyReferenceResult(Metadata IsMetadata, CopyReference string, Expires time.Time) *GetCopyReferenceResult {
s := new(GetCopyReferenceResult)
s.Metadata = Metadata
s.CopyReference = CopyReference
s.Expires = Expires
return s
} | go | func NewGetCopyReferenceResult(Metadata IsMetadata, CopyReference string, Expires time.Time) *GetCopyReferenceResult {
s := new(GetCopyReferenceResult)
s.Metadata = Metadata
s.CopyReference = CopyReference
s.Expires = Expires
return s
} | [
"func",
"NewGetCopyReferenceResult",
"(",
"Metadata",
"IsMetadata",
",",
"CopyReference",
"string",
",",
"Expires",
"time",
".",
"Time",
")",
"*",
"GetCopyReferenceResult",
"{",
"s",
":=",
"new",
"(",
"GetCopyReferenceResult",
")",
"\n",
"s",
".",
"Metadata",
"=... | // NewGetCopyReferenceResult returns a new GetCopyReferenceResult instance | [
"NewGetCopyReferenceResult",
"returns",
"a",
"new",
"GetCopyReferenceResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1348-L1354 |
138,041 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *GetCopyReferenceResult) UnmarshalJSON(b []byte) error {
type wrap struct {
// Metadata : Metadata of the file or folder.
Metadata json.RawMessage `json:"metadata"`
// CopyReference : A copy reference to the file or folder.
CopyReference string `json:"copy_reference"`
// Expires : The expiration date... | go | func (u *GetCopyReferenceResult) UnmarshalJSON(b []byte) error {
type wrap struct {
// Metadata : Metadata of the file or folder.
Metadata json.RawMessage `json:"metadata"`
// CopyReference : A copy reference to the file or folder.
CopyReference string `json:"copy_reference"`
// Expires : The expiration date... | [
"func",
"(",
"u",
"*",
"GetCopyReferenceResult",
")",
"UnmarshalJSON",
"(",
"b",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"// Metadata : Metadata of the file or folder.",
"Metadata",
"json",
".",
"RawMessage",
"`json:\"metadata\"`",
"\n",
... | // UnmarshalJSON deserializes into a GetCopyReferenceResult instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"GetCopyReferenceResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1357-L1380 |
138,042 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewGetTemporaryLinkArg | func NewGetTemporaryLinkArg(Path string) *GetTemporaryLinkArg {
s := new(GetTemporaryLinkArg)
s.Path = Path
return s
} | go | func NewGetTemporaryLinkArg(Path string) *GetTemporaryLinkArg {
s := new(GetTemporaryLinkArg)
s.Path = Path
return s
} | [
"func",
"NewGetTemporaryLinkArg",
"(",
"Path",
"string",
")",
"*",
"GetTemporaryLinkArg",
"{",
"s",
":=",
"new",
"(",
"GetTemporaryLinkArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"return",
"s",
"\n",
"}"
] | // NewGetTemporaryLinkArg returns a new GetTemporaryLinkArg instance | [
"NewGetTemporaryLinkArg",
"returns",
"a",
"new",
"GetTemporaryLinkArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1389-L1393 |
138,043 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewGetTemporaryLinkResult | func NewGetTemporaryLinkResult(Metadata *FileMetadata, Link string) *GetTemporaryLinkResult {
s := new(GetTemporaryLinkResult)
s.Metadata = Metadata
s.Link = Link
return s
} | go | func NewGetTemporaryLinkResult(Metadata *FileMetadata, Link string) *GetTemporaryLinkResult {
s := new(GetTemporaryLinkResult)
s.Metadata = Metadata
s.Link = Link
return s
} | [
"func",
"NewGetTemporaryLinkResult",
"(",
"Metadata",
"*",
"FileMetadata",
",",
"Link",
"string",
")",
"*",
"GetTemporaryLinkResult",
"{",
"s",
":=",
"new",
"(",
"GetTemporaryLinkResult",
")",
"\n",
"s",
".",
"Metadata",
"=",
"Metadata",
"\n",
"s",
".",
"Link"... | // NewGetTemporaryLinkResult returns a new GetTemporaryLinkResult instance | [
"NewGetTemporaryLinkResult",
"returns",
"a",
"new",
"GetTemporaryLinkResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1441-L1446 |
138,044 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewGetTemporaryUploadLinkArg | func NewGetTemporaryUploadLinkArg(CommitInfo *CommitInfo) *GetTemporaryUploadLinkArg {
s := new(GetTemporaryUploadLinkArg)
s.CommitInfo = CommitInfo
s.Duration = 14400.0
return s
} | go | func NewGetTemporaryUploadLinkArg(CommitInfo *CommitInfo) *GetTemporaryUploadLinkArg {
s := new(GetTemporaryUploadLinkArg)
s.CommitInfo = CommitInfo
s.Duration = 14400.0
return s
} | [
"func",
"NewGetTemporaryUploadLinkArg",
"(",
"CommitInfo",
"*",
"CommitInfo",
")",
"*",
"GetTemporaryUploadLinkArg",
"{",
"s",
":=",
"new",
"(",
"GetTemporaryUploadLinkArg",
")",
"\n",
"s",
".",
"CommitInfo",
"=",
"CommitInfo",
"\n",
"s",
".",
"Duration",
"=",
"... | // NewGetTemporaryUploadLinkArg returns a new GetTemporaryUploadLinkArg instance | [
"NewGetTemporaryUploadLinkArg",
"returns",
"a",
"new",
"GetTemporaryUploadLinkArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1460-L1465 |
138,045 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewGetTemporaryUploadLinkResult | func NewGetTemporaryUploadLinkResult(Link string) *GetTemporaryUploadLinkResult {
s := new(GetTemporaryUploadLinkResult)
s.Link = Link
return s
} | go | func NewGetTemporaryUploadLinkResult(Link string) *GetTemporaryUploadLinkResult {
s := new(GetTemporaryUploadLinkResult)
s.Link = Link
return s
} | [
"func",
"NewGetTemporaryUploadLinkResult",
"(",
"Link",
"string",
")",
"*",
"GetTemporaryUploadLinkResult",
"{",
"s",
":=",
"new",
"(",
"GetTemporaryUploadLinkResult",
")",
"\n",
"s",
".",
"Link",
"=",
"Link",
"\n",
"return",
"s",
"\n",
"}"
] | // NewGetTemporaryUploadLinkResult returns a new GetTemporaryUploadLinkResult instance | [
"NewGetTemporaryUploadLinkResult",
"returns",
"a",
"new",
"GetTemporaryUploadLinkResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1475-L1479 |
138,046 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewGetThumbnailBatchArg | func NewGetThumbnailBatchArg(Entries []*ThumbnailArg) *GetThumbnailBatchArg {
s := new(GetThumbnailBatchArg)
s.Entries = Entries
return s
} | go | func NewGetThumbnailBatchArg(Entries []*ThumbnailArg) *GetThumbnailBatchArg {
s := new(GetThumbnailBatchArg)
s.Entries = Entries
return s
} | [
"func",
"NewGetThumbnailBatchArg",
"(",
"Entries",
"[",
"]",
"*",
"ThumbnailArg",
")",
"*",
"GetThumbnailBatchArg",
"{",
"s",
":=",
"new",
"(",
"GetThumbnailBatchArg",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
"\n",
"return",
"s",
"\n",
"}"
] | // NewGetThumbnailBatchArg returns a new GetThumbnailBatchArg instance | [
"NewGetThumbnailBatchArg",
"returns",
"a",
"new",
"GetThumbnailBatchArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1488-L1492 |
138,047 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewGetThumbnailBatchResult | func NewGetThumbnailBatchResult(Entries []*GetThumbnailBatchResultEntry) *GetThumbnailBatchResult {
s := new(GetThumbnailBatchResult)
s.Entries = Entries
return s
} | go | func NewGetThumbnailBatchResult(Entries []*GetThumbnailBatchResultEntry) *GetThumbnailBatchResult {
s := new(GetThumbnailBatchResult)
s.Entries = Entries
return s
} | [
"func",
"NewGetThumbnailBatchResult",
"(",
"Entries",
"[",
"]",
"*",
"GetThumbnailBatchResultEntry",
")",
"*",
"GetThumbnailBatchResult",
"{",
"s",
":=",
"new",
"(",
"GetThumbnailBatchResult",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
"\n",
"return",
"s",
... | // NewGetThumbnailBatchResult returns a new GetThumbnailBatchResult instance | [
"NewGetThumbnailBatchResult",
"returns",
"a",
"new",
"GetThumbnailBatchResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1512-L1516 |
138,048 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewGetThumbnailBatchResultData | func NewGetThumbnailBatchResultData(Metadata *FileMetadata, Thumbnail string) *GetThumbnailBatchResultData {
s := new(GetThumbnailBatchResultData)
s.Metadata = Metadata
s.Thumbnail = Thumbnail
return s
} | go | func NewGetThumbnailBatchResultData(Metadata *FileMetadata, Thumbnail string) *GetThumbnailBatchResultData {
s := new(GetThumbnailBatchResultData)
s.Metadata = Metadata
s.Thumbnail = Thumbnail
return s
} | [
"func",
"NewGetThumbnailBatchResultData",
"(",
"Metadata",
"*",
"FileMetadata",
",",
"Thumbnail",
"string",
")",
"*",
"GetThumbnailBatchResultData",
"{",
"s",
":=",
"new",
"(",
"GetThumbnailBatchResultData",
")",
"\n",
"s",
".",
"Metadata",
"=",
"Metadata",
"\n",
... | // NewGetThumbnailBatchResultData returns a new GetThumbnailBatchResultData instance | [
"NewGetThumbnailBatchResultData",
"returns",
"a",
"new",
"GetThumbnailBatchResultData",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1528-L1533 |
138,049 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewGpsCoordinates | func NewGpsCoordinates(Latitude float64, Longitude float64) *GpsCoordinates {
s := new(GpsCoordinates)
s.Latitude = Latitude
s.Longitude = Longitude
return s
} | go | func NewGpsCoordinates(Latitude float64, Longitude float64) *GpsCoordinates {
s := new(GpsCoordinates)
s.Latitude = Latitude
s.Longitude = Longitude
return s
} | [
"func",
"NewGpsCoordinates",
"(",
"Latitude",
"float64",
",",
"Longitude",
"float64",
")",
"*",
"GpsCoordinates",
"{",
"s",
":=",
"new",
"(",
"GpsCoordinates",
")",
"\n",
"s",
".",
"Latitude",
"=",
"Latitude",
"\n",
"s",
".",
"Longitude",
"=",
"Longitude",
... | // NewGpsCoordinates returns a new GpsCoordinates instance | [
"NewGpsCoordinates",
"returns",
"a",
"new",
"GpsCoordinates",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1592-L1597 |
138,050 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewListFolderArg | func NewListFolderArg(Path string) *ListFolderArg {
s := new(ListFolderArg)
s.Path = Path
s.Recursive = false
s.IncludeMediaInfo = false
s.IncludeDeleted = false
s.IncludeHasExplicitSharedMembers = false
s.IncludeMountedFolders = true
return s
} | go | func NewListFolderArg(Path string) *ListFolderArg {
s := new(ListFolderArg)
s.Path = Path
s.Recursive = false
s.IncludeMediaInfo = false
s.IncludeDeleted = false
s.IncludeHasExplicitSharedMembers = false
s.IncludeMountedFolders = true
return s
} | [
"func",
"NewListFolderArg",
"(",
"Path",
"string",
")",
"*",
"ListFolderArg",
"{",
"s",
":=",
"new",
"(",
"ListFolderArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"s",
".",
"Recursive",
"=",
"false",
"\n",
"s",
".",
"IncludeMediaInfo",
"=",
"fa... | // NewListFolderArg returns a new ListFolderArg instance | [
"NewListFolderArg",
"returns",
"a",
"new",
"ListFolderArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1636-L1645 |
138,051 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewListFolderContinueArg | func NewListFolderContinueArg(Cursor string) *ListFolderContinueArg {
s := new(ListFolderContinueArg)
s.Cursor = Cursor
return s
} | go | func NewListFolderContinueArg(Cursor string) *ListFolderContinueArg {
s := new(ListFolderContinueArg)
s.Cursor = Cursor
return s
} | [
"func",
"NewListFolderContinueArg",
"(",
"Cursor",
"string",
")",
"*",
"ListFolderContinueArg",
"{",
"s",
":=",
"new",
"(",
"ListFolderContinueArg",
")",
"\n",
"s",
".",
"Cursor",
"=",
"Cursor",
"\n",
"return",
"s",
"\n",
"}"
] | // NewListFolderContinueArg returns a new ListFolderContinueArg instance | [
"NewListFolderContinueArg",
"returns",
"a",
"new",
"ListFolderContinueArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1655-L1659 |
138,052 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewListFolderLongpollArg | func NewListFolderLongpollArg(Cursor string) *ListFolderLongpollArg {
s := new(ListFolderLongpollArg)
s.Cursor = Cursor
s.Timeout = 30
return s
} | go | func NewListFolderLongpollArg(Cursor string) *ListFolderLongpollArg {
s := new(ListFolderLongpollArg)
s.Cursor = Cursor
s.Timeout = 30
return s
} | [
"func",
"NewListFolderLongpollArg",
"(",
"Cursor",
"string",
")",
"*",
"ListFolderLongpollArg",
"{",
"s",
":=",
"new",
"(",
"ListFolderLongpollArg",
")",
"\n",
"s",
".",
"Cursor",
"=",
"Cursor",
"\n",
"s",
".",
"Timeout",
"=",
"30",
"\n",
"return",
"s",
"\... | // NewListFolderLongpollArg returns a new ListFolderLongpollArg instance | [
"NewListFolderLongpollArg",
"returns",
"a",
"new",
"ListFolderLongpollArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1764-L1769 |
138,053 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewListFolderLongpollResult | func NewListFolderLongpollResult(Changes bool) *ListFolderLongpollResult {
s := new(ListFolderLongpollResult)
s.Changes = Changes
return s
} | go | func NewListFolderLongpollResult(Changes bool) *ListFolderLongpollResult {
s := new(ListFolderLongpollResult)
s.Changes = Changes
return s
} | [
"func",
"NewListFolderLongpollResult",
"(",
"Changes",
"bool",
")",
"*",
"ListFolderLongpollResult",
"{",
"s",
":=",
"new",
"(",
"ListFolderLongpollResult",
")",
"\n",
"s",
".",
"Changes",
"=",
"Changes",
"\n",
"return",
"s",
"\n",
"}"
] | // NewListFolderLongpollResult returns a new ListFolderLongpollResult instance | [
"NewListFolderLongpollResult",
"returns",
"a",
"new",
"ListFolderLongpollResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1793-L1797 |
138,054 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewListFolderResult | func NewListFolderResult(Entries []IsMetadata, Cursor string, HasMore bool) *ListFolderResult {
s := new(ListFolderResult)
s.Entries = Entries
s.Cursor = Cursor
s.HasMore = HasMore
return s
} | go | func NewListFolderResult(Entries []IsMetadata, Cursor string, HasMore bool) *ListFolderResult {
s := new(ListFolderResult)
s.Entries = Entries
s.Cursor = Cursor
s.HasMore = HasMore
return s
} | [
"func",
"NewListFolderResult",
"(",
"Entries",
"[",
"]",
"IsMetadata",
",",
"Cursor",
"string",
",",
"HasMore",
"bool",
")",
"*",
"ListFolderResult",
"{",
"s",
":=",
"new",
"(",
"ListFolderResult",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
"\n",
"s",... | // NewListFolderResult returns a new ListFolderResult instance | [
"NewListFolderResult",
"returns",
"a",
"new",
"ListFolderResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1812-L1818 |
138,055 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *ListFolderResult) UnmarshalJSON(b []byte) error {
type wrap struct {
// Entries : The files and (direct) subfolders in the folder.
Entries []json.RawMessage `json:"entries"`
// Cursor : Pass the cursor into `listFolderContinue` to see what's
// changed in the folder since your previous query.
Cursor... | go | func (u *ListFolderResult) UnmarshalJSON(b []byte) error {
type wrap struct {
// Entries : The files and (direct) subfolders in the folder.
Entries []json.RawMessage `json:"entries"`
// Cursor : Pass the cursor into `listFolderContinue` to see what's
// changed in the folder since your previous query.
Cursor... | [
"func",
"(",
"u",
"*",
"ListFolderResult",
")",
"UnmarshalJSON",
"(",
"b",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"// Entries : The files and (direct) subfolders in the folder.",
"Entries",
"[",
"]",
"json",
".",
"RawMessage",
"`json:\... | // UnmarshalJSON deserializes into a ListFolderResult instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"ListFolderResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1821-L1847 |
138,056 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewListRevisionsArg | func NewListRevisionsArg(Path string) *ListRevisionsArg {
s := new(ListRevisionsArg)
s.Path = Path
s.Mode = &ListRevisionsMode{Tagged: dropbox.Tagged{"path"}}
s.Limit = 10
return s
} | go | func NewListRevisionsArg(Path string) *ListRevisionsArg {
s := new(ListRevisionsArg)
s.Path = Path
s.Mode = &ListRevisionsMode{Tagged: dropbox.Tagged{"path"}}
s.Limit = 10
return s
} | [
"func",
"NewListRevisionsArg",
"(",
"Path",
"string",
")",
"*",
"ListRevisionsArg",
"{",
"s",
":=",
"new",
"(",
"ListRevisionsArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"s",
".",
"Mode",
"=",
"&",
"ListRevisionsMode",
"{",
"Tagged",
":",
"drop... | // NewListRevisionsArg returns a new ListRevisionsArg instance | [
"NewListRevisionsArg",
"returns",
"a",
"new",
"ListRevisionsArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1861-L1867 |
138,057 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewListRevisionsResult | func NewListRevisionsResult(IsDeleted bool, Entries []*FileMetadata) *ListRevisionsResult {
s := new(ListRevisionsResult)
s.IsDeleted = IsDeleted
s.Entries = Entries
return s
} | go | func NewListRevisionsResult(IsDeleted bool, Entries []*FileMetadata) *ListRevisionsResult {
s := new(ListRevisionsResult)
s.IsDeleted = IsDeleted
s.Entries = Entries
return s
} | [
"func",
"NewListRevisionsResult",
"(",
"IsDeleted",
"bool",
",",
"Entries",
"[",
"]",
"*",
"FileMetadata",
")",
"*",
"ListRevisionsResult",
"{",
"s",
":=",
"new",
"(",
"ListRevisionsResult",
")",
"\n",
"s",
".",
"IsDeleted",
"=",
"IsDeleted",
"\n",
"s",
".",... | // NewListRevisionsResult returns a new ListRevisionsResult instance | [
"NewListRevisionsResult",
"returns",
"a",
"new",
"ListRevisionsResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1931-L1936 |
138,058 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *MediaInfo) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Metadata : The metadata for the photo/video.
Metadata json.RawMessage `json:"metadata,omitempty"`
}
var w wrap
var err error
if err = json.Unmarshal(body, &w); err != nil {
return err
}
u.Tag = w.Tag
switch u.Tag... | go | func (u *MediaInfo) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Metadata : The metadata for the photo/video.
Metadata json.RawMessage `json:"metadata,omitempty"`
}
var w wrap
var err error
if err = json.Unmarshal(body, &w); err != nil {
return err
}
u.Tag = w.Tag
switch u.Tag... | [
"func",
"(",
"u",
"*",
"MediaInfo",
")",
"UnmarshalJSON",
"(",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"dropbox",
".",
"Tagged",
"\n",
"// Metadata : The metadata for the photo/video.",
"Metadata",
"json",
".",
"RawMessage",
... | // UnmarshalJSON deserializes into a MediaInfo instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"MediaInfo",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L1999-L2020 |
138,059 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *mediaMetadataUnion) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Photo : has no documentation (yet)
Photo json.RawMessage `json:"photo,omitempty"`
// Video : has no documentation (yet)
Video json.RawMessage `json:"video,omitempty"`
}
var w wrap
var err error
if err = j... | go | func (u *mediaMetadataUnion) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Photo : has no documentation (yet)
Photo json.RawMessage `json:"photo,omitempty"`
// Video : has no documentation (yet)
Video json.RawMessage `json:"video,omitempty"`
}
var w wrap
var err error
if err = j... | [
"func",
"(",
"u",
"*",
"mediaMetadataUnion",
")",
"UnmarshalJSON",
"(",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"dropbox",
".",
"Tagged",
"\n",
"// Photo : has no documentation (yet)",
"Photo",
"json",
".",
"RawMessage",
"`j... | // UnmarshalJSON deserializes into a mediaMetadataUnion instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"mediaMetadataUnion",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2061-L2090 |
138,060 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | IsMediaMetadataFromJSON | func IsMediaMetadataFromJSON(data []byte) (IsMediaMetadata, error) {
var t mediaMetadataUnion
if err := json.Unmarshal(data, &t); err != nil {
return nil, err
}
switch t.Tag {
case "photo":
return t.Photo, nil
case "video":
return t.Video, nil
}
return nil, nil
} | go | func IsMediaMetadataFromJSON(data []byte) (IsMediaMetadata, error) {
var t mediaMetadataUnion
if err := json.Unmarshal(data, &t); err != nil {
return nil, err
}
switch t.Tag {
case "photo":
return t.Photo, nil
case "video":
return t.Video, nil
}
return nil, nil
} | [
"func",
"IsMediaMetadataFromJSON",
"(",
"data",
"[",
"]",
"byte",
")",
"(",
"IsMediaMetadata",
",",
"error",
")",
"{",
"var",
"t",
"mediaMetadataUnion",
"\n",
"if",
"err",
":=",
"json",
".",
"Unmarshal",
"(",
"data",
",",
"&",
"t",
")",
";",
"err",
"!=... | // IsMediaMetadataFromJSON converts JSON to a concrete IsMediaMetadata instance | [
"IsMediaMetadataFromJSON",
"converts",
"JSON",
"to",
"a",
"concrete",
"IsMediaMetadata",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2093-L2107 |
138,061 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewRelocationBatchArgBase | func NewRelocationBatchArgBase(Entries []*RelocationPath) *RelocationBatchArgBase {
s := new(RelocationBatchArgBase)
s.Entries = Entries
s.Autorename = false
return s
} | go | func NewRelocationBatchArgBase(Entries []*RelocationPath) *RelocationBatchArgBase {
s := new(RelocationBatchArgBase)
s.Entries = Entries
s.Autorename = false
return s
} | [
"func",
"NewRelocationBatchArgBase",
"(",
"Entries",
"[",
"]",
"*",
"RelocationPath",
")",
"*",
"RelocationBatchArgBase",
"{",
"s",
":=",
"new",
"(",
"RelocationBatchArgBase",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
"\n",
"s",
".",
"Autorename",
"=",
... | // NewRelocationBatchArgBase returns a new RelocationBatchArgBase instance | [
"NewRelocationBatchArgBase",
"returns",
"a",
"new",
"RelocationBatchArgBase",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2120-L2125 |
138,062 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewMoveBatchArg | func NewMoveBatchArg(Entries []*RelocationPath) *MoveBatchArg {
s := new(MoveBatchArg)
s.Entries = Entries
s.Autorename = false
s.AllowOwnershipTransfer = false
return s
} | go | func NewMoveBatchArg(Entries []*RelocationPath) *MoveBatchArg {
s := new(MoveBatchArg)
s.Entries = Entries
s.Autorename = false
s.AllowOwnershipTransfer = false
return s
} | [
"func",
"NewMoveBatchArg",
"(",
"Entries",
"[",
"]",
"*",
"RelocationPath",
")",
"*",
"MoveBatchArg",
"{",
"s",
":=",
"new",
"(",
"MoveBatchArg",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
"\n",
"s",
".",
"Autorename",
"=",
"false",
"\n",
"s",
"."... | // NewMoveBatchArg returns a new MoveBatchArg instance | [
"NewMoveBatchArg",
"returns",
"a",
"new",
"MoveBatchArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2137-L2143 |
138,063 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewPreviewArg | func NewPreviewArg(Path string) *PreviewArg {
s := new(PreviewArg)
s.Path = Path
return s
} | go | func NewPreviewArg(Path string) *PreviewArg {
s := new(PreviewArg)
s.Path = Path
return s
} | [
"func",
"NewPreviewArg",
"(",
"Path",
"string",
")",
"*",
"PreviewArg",
"{",
"s",
":=",
"new",
"(",
"PreviewArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"return",
"s",
"\n",
"}"
] | // NewPreviewArg returns a new PreviewArg instance | [
"NewPreviewArg",
"returns",
"a",
"new",
"PreviewArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2165-L2169 |
138,064 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewRelocationPath | func NewRelocationPath(FromPath string, ToPath string) *RelocationPath {
s := new(RelocationPath)
s.FromPath = FromPath
s.ToPath = ToPath
return s
} | go | func NewRelocationPath(FromPath string, ToPath string) *RelocationPath {
s := new(RelocationPath)
s.FromPath = FromPath
s.ToPath = ToPath
return s
} | [
"func",
"NewRelocationPath",
"(",
"FromPath",
"string",
",",
"ToPath",
"string",
")",
"*",
"RelocationPath",
"{",
"s",
":=",
"new",
"(",
"RelocationPath",
")",
"\n",
"s",
".",
"FromPath",
"=",
"FromPath",
"\n",
"s",
".",
"ToPath",
"=",
"ToPath",
"\n",
"r... | // NewRelocationPath returns a new RelocationPath instance | [
"NewRelocationPath",
"returns",
"a",
"new",
"RelocationPath",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2219-L2224 |
138,065 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewRelocationArg | func NewRelocationArg(FromPath string, ToPath string) *RelocationArg {
s := new(RelocationArg)
s.FromPath = FromPath
s.ToPath = ToPath
s.AllowSharedFolder = false
s.Autorename = false
s.AllowOwnershipTransfer = false
return s
} | go | func NewRelocationArg(FromPath string, ToPath string) *RelocationArg {
s := new(RelocationArg)
s.FromPath = FromPath
s.ToPath = ToPath
s.AllowSharedFolder = false
s.Autorename = false
s.AllowOwnershipTransfer = false
return s
} | [
"func",
"NewRelocationArg",
"(",
"FromPath",
"string",
",",
"ToPath",
"string",
")",
"*",
"RelocationArg",
"{",
"s",
":=",
"new",
"(",
"RelocationArg",
")",
"\n",
"s",
".",
"FromPath",
"=",
"FromPath",
"\n",
"s",
".",
"ToPath",
"=",
"ToPath",
"\n",
"s",
... | // NewRelocationArg returns a new RelocationArg instance | [
"NewRelocationArg",
"returns",
"a",
"new",
"RelocationArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2243-L2251 |
138,066 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewRelocationBatchArg | func NewRelocationBatchArg(Entries []*RelocationPath) *RelocationBatchArg {
s := new(RelocationBatchArg)
s.Entries = Entries
s.Autorename = false
s.AllowSharedFolder = false
s.AllowOwnershipTransfer = false
return s
} | go | func NewRelocationBatchArg(Entries []*RelocationPath) *RelocationBatchArg {
s := new(RelocationBatchArg)
s.Entries = Entries
s.Autorename = false
s.AllowSharedFolder = false
s.AllowOwnershipTransfer = false
return s
} | [
"func",
"NewRelocationBatchArg",
"(",
"Entries",
"[",
"]",
"*",
"RelocationPath",
")",
"*",
"RelocationBatchArg",
"{",
"s",
":=",
"new",
"(",
"RelocationBatchArg",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
"\n",
"s",
".",
"Autorename",
"=",
"false",
... | // NewRelocationBatchArg returns a new RelocationBatchArg instance | [
"NewRelocationBatchArg",
"returns",
"a",
"new",
"RelocationBatchArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2268-L2275 |
138,067 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *RelocationError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// FromLookup : has no documentation (yet)
FromLookup json.RawMessage `json:"from_lookup,omitempty"`
// FromWrite : has no documentation (yet)
FromWrite json.RawMessage `json:"from_write,omitempty"`
// To : has n... | go | func (u *RelocationError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// FromLookup : has no documentation (yet)
FromLookup json.RawMessage `json:"from_lookup,omitempty"`
// FromWrite : has no documentation (yet)
FromWrite json.RawMessage `json:"from_write,omitempty"`
// To : has n... | [
"func",
"(",
"u",
"*",
"RelocationError",
")",
"UnmarshalJSON",
"(",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"dropbox",
".",
"Tagged",
"\n",
"// FromLookup : has no documentation (yet)",
"FromLookup",
"json",
".",
"RawMessage"... | // UnmarshalJSON deserializes into a RelocationError instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"RelocationError",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2305-L2342 |
138,068 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *RelocationBatchErrorEntry) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// RelocationError : User errors that retry won't help.
RelocationError json.RawMessage `json:"relocation_error,omitempty"`
}
var w wrap
var err error
if err = json.Unmarshal(body, &w); err != nil {
ret... | go | func (u *RelocationBatchErrorEntry) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// RelocationError : User errors that retry won't help.
RelocationError json.RawMessage `json:"relocation_error,omitempty"`
}
var w wrap
var err error
if err = json.Unmarshal(body, &w); err != nil {
ret... | [
"func",
"(",
"u",
"*",
"RelocationBatchErrorEntry",
")",
"UnmarshalJSON",
"(",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"dropbox",
".",
"Tagged",
"\n",
"// RelocationError : User errors that retry won't help.",
"RelocationError",
"... | // UnmarshalJSON deserializes into a RelocationBatchErrorEntry instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"RelocationBatchErrorEntry",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2428-L2449 |
138,069 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewRelocationBatchResult | func NewRelocationBatchResult(Entries []*RelocationBatchResultData) *RelocationBatchResult {
s := new(RelocationBatchResult)
s.Entries = Entries
return s
} | go | func NewRelocationBatchResult(Entries []*RelocationBatchResultData) *RelocationBatchResult {
s := new(RelocationBatchResult)
s.Entries = Entries
return s
} | [
"func",
"NewRelocationBatchResult",
"(",
"Entries",
"[",
"]",
"*",
"RelocationBatchResultData",
")",
"*",
"RelocationBatchResult",
"{",
"s",
":=",
"new",
"(",
"RelocationBatchResult",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
"\n",
"return",
"s",
"\n",
"... | // NewRelocationBatchResult returns a new RelocationBatchResult instance | [
"NewRelocationBatchResult",
"returns",
"a",
"new",
"RelocationBatchResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2556-L2560 |
138,070 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewRelocationBatchResultData | func NewRelocationBatchResultData(Metadata IsMetadata) *RelocationBatchResultData {
s := new(RelocationBatchResultData)
s.Metadata = Metadata
return s
} | go | func NewRelocationBatchResultData(Metadata IsMetadata) *RelocationBatchResultData {
s := new(RelocationBatchResultData)
s.Metadata = Metadata
return s
} | [
"func",
"NewRelocationBatchResultData",
"(",
"Metadata",
"IsMetadata",
")",
"*",
"RelocationBatchResultData",
"{",
"s",
":=",
"new",
"(",
"RelocationBatchResultData",
")",
"\n",
"s",
".",
"Metadata",
"=",
"Metadata",
"\n",
"return",
"s",
"\n",
"}"
] | // NewRelocationBatchResultData returns a new RelocationBatchResultData instance | [
"NewRelocationBatchResultData",
"returns",
"a",
"new",
"RelocationBatchResultData",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2569-L2573 |
138,071 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *RelocationBatchResultEntry) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Success : has no documentation (yet)
Success json.RawMessage `json:"success,omitempty"`
// Failure : has no documentation (yet)
Failure json.RawMessage `json:"failure,omitempty"`
}
var w wrap
var e... | go | func (u *RelocationBatchResultEntry) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Success : has no documentation (yet)
Success json.RawMessage `json:"success,omitempty"`
// Failure : has no documentation (yet)
Failure json.RawMessage `json:"failure,omitempty"`
}
var w wrap
var e... | [
"func",
"(",
"u",
"*",
"RelocationBatchResultEntry",
")",
"UnmarshalJSON",
"(",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"dropbox",
".",
"Tagged",
"\n",
"// Success : has no documentation (yet)",
"Success",
"json",
".",
"RawMes... | // UnmarshalJSON deserializes into a RelocationBatchResultEntry instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"RelocationBatchResultEntry",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2610-L2639 |
138,072 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *RelocationBatchV2JobStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Complete : The copy or move batch job has finished.
Complete json.RawMessage `json:"complete,omitempty"`
}
var w wrap
var err error
if err = json.Unmarshal(body, &w); err != nil {
return err
}
u.T... | go | func (u *RelocationBatchV2JobStatus) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// Complete : The copy or move batch job has finished.
Complete json.RawMessage `json:"complete,omitempty"`
}
var w wrap
var err error
if err = json.Unmarshal(body, &w); err != nil {
return err
}
u.T... | [
"func",
"(",
"u",
"*",
"RelocationBatchV2JobStatus",
")",
"UnmarshalJSON",
"(",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"dropbox",
".",
"Tagged",
"\n",
"// Complete : The copy or move batch job has finished.",
"Complete",
"json",
... | // UnmarshalJSON deserializes into a RelocationBatchV2JobStatus instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"RelocationBatchV2JobStatus",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2656-L2677 |
138,073 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewRelocationBatchV2Result | func NewRelocationBatchV2Result(Entries []*RelocationBatchResultEntry) *RelocationBatchV2Result {
s := new(RelocationBatchV2Result)
s.Entries = Entries
return s
} | go | func NewRelocationBatchV2Result(Entries []*RelocationBatchResultEntry) *RelocationBatchV2Result {
s := new(RelocationBatchV2Result)
s.Entries = Entries
return s
} | [
"func",
"NewRelocationBatchV2Result",
"(",
"Entries",
"[",
"]",
"*",
"RelocationBatchResultEntry",
")",
"*",
"RelocationBatchV2Result",
"{",
"s",
":=",
"new",
"(",
"RelocationBatchV2Result",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
"\n",
"return",
"s",
"\... | // NewRelocationBatchV2Result returns a new RelocationBatchV2Result instance | [
"NewRelocationBatchV2Result",
"returns",
"a",
"new",
"RelocationBatchV2Result",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2737-L2741 |
138,074 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewRelocationResult | func NewRelocationResult(Metadata IsMetadata) *RelocationResult {
s := new(RelocationResult)
s.Metadata = Metadata
return s
} | go | func NewRelocationResult(Metadata IsMetadata) *RelocationResult {
s := new(RelocationResult)
s.Metadata = Metadata
return s
} | [
"func",
"NewRelocationResult",
"(",
"Metadata",
"IsMetadata",
")",
"*",
"RelocationResult",
"{",
"s",
":=",
"new",
"(",
"RelocationResult",
")",
"\n",
"s",
".",
"Metadata",
"=",
"Metadata",
"\n",
"return",
"s",
"\n",
"}"
] | // NewRelocationResult returns a new RelocationResult instance | [
"NewRelocationResult",
"returns",
"a",
"new",
"RelocationResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2751-L2755 |
138,075 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewRestoreArg | func NewRestoreArg(Path string, Rev string) *RestoreArg {
s := new(RestoreArg)
s.Path = Path
s.Rev = Rev
return s
} | go | func NewRestoreArg(Path string, Rev string) *RestoreArg {
s := new(RestoreArg)
s.Path = Path
s.Rev = Rev
return s
} | [
"func",
"NewRestoreArg",
"(",
"Path",
"string",
",",
"Rev",
"string",
")",
"*",
"RestoreArg",
"{",
"s",
":=",
"new",
"(",
"RestoreArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"s",
".",
"Rev",
"=",
"Rev",
"\n",
"return",
"s",
"\n",
"}"
] | // NewRestoreArg returns a new RestoreArg instance | [
"NewRestoreArg",
"returns",
"a",
"new",
"RestoreArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2784-L2789 |
138,076 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *RestoreError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// PathLookup : An error occurs when downloading metadata for the file.
PathLookup json.RawMessage `json:"path_lookup,omitempty"`
// PathWrite : An error occurs when trying to restore the file to that
// path.
PathW... | go | func (u *RestoreError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// PathLookup : An error occurs when downloading metadata for the file.
PathLookup json.RawMessage `json:"path_lookup,omitempty"`
// PathWrite : An error occurs when trying to restore the file to that
// path.
PathW... | [
"func",
"(",
"u",
"*",
"RestoreError",
")",
"UnmarshalJSON",
"(",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"dropbox",
".",
"Tagged",
"\n",
"// PathLookup : An error occurs when downloading metadata for the file.",
"PathLookup",
"js... | // UnmarshalJSON deserializes into a RestoreError instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"RestoreError",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2809-L2839 |
138,077 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewSaveCopyReferenceArg | func NewSaveCopyReferenceArg(CopyReference string, Path string) *SaveCopyReferenceArg {
s := new(SaveCopyReferenceArg)
s.CopyReference = CopyReference
s.Path = Path
return s
} | go | func NewSaveCopyReferenceArg(CopyReference string, Path string) *SaveCopyReferenceArg {
s := new(SaveCopyReferenceArg)
s.CopyReference = CopyReference
s.Path = Path
return s
} | [
"func",
"NewSaveCopyReferenceArg",
"(",
"CopyReference",
"string",
",",
"Path",
"string",
")",
"*",
"SaveCopyReferenceArg",
"{",
"s",
":=",
"new",
"(",
"SaveCopyReferenceArg",
")",
"\n",
"s",
".",
"CopyReference",
"=",
"CopyReference",
"\n",
"s",
".",
"Path",
... | // NewSaveCopyReferenceArg returns a new SaveCopyReferenceArg instance | [
"NewSaveCopyReferenceArg",
"returns",
"a",
"new",
"SaveCopyReferenceArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2850-L2855 |
138,078 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewSaveCopyReferenceResult | func NewSaveCopyReferenceResult(Metadata IsMetadata) *SaveCopyReferenceResult {
s := new(SaveCopyReferenceResult)
s.Metadata = Metadata
return s
} | go | func NewSaveCopyReferenceResult(Metadata IsMetadata) *SaveCopyReferenceResult {
s := new(SaveCopyReferenceResult)
s.Metadata = Metadata
return s
} | [
"func",
"NewSaveCopyReferenceResult",
"(",
"Metadata",
"IsMetadata",
")",
"*",
"SaveCopyReferenceResult",
"{",
"s",
":=",
"new",
"(",
"SaveCopyReferenceResult",
")",
"\n",
"s",
".",
"Metadata",
"=",
"Metadata",
"\n",
"return",
"s",
"\n",
"}"
] | // NewSaveCopyReferenceResult returns a new SaveCopyReferenceResult instance | [
"NewSaveCopyReferenceResult",
"returns",
"a",
"new",
"SaveCopyReferenceResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2906-L2910 |
138,079 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewSaveUrlArg | func NewSaveUrlArg(Path string, Url string) *SaveUrlArg {
s := new(SaveUrlArg)
s.Path = Path
s.Url = Url
return s
} | go | func NewSaveUrlArg(Path string, Url string) *SaveUrlArg {
s := new(SaveUrlArg)
s.Path = Path
s.Url = Url
return s
} | [
"func",
"NewSaveUrlArg",
"(",
"Path",
"string",
",",
"Url",
"string",
")",
"*",
"SaveUrlArg",
"{",
"s",
":=",
"new",
"(",
"SaveUrlArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"s",
".",
"Url",
"=",
"Url",
"\n",
"return",
"s",
"\n",
"}"
] | // NewSaveUrlArg returns a new SaveUrlArg instance | [
"NewSaveUrlArg",
"returns",
"a",
"new",
"SaveUrlArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L2940-L2945 |
138,080 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewSearchArg | func NewSearchArg(Path string, Query string) *SearchArg {
s := new(SearchArg)
s.Path = Path
s.Query = Query
s.Start = 0
s.MaxResults = 100
s.Mode = &SearchMode{Tagged: dropbox.Tagged{"filename"}}
return s
} | go | func NewSearchArg(Path string, Query string) *SearchArg {
s := new(SearchArg)
s.Path = Path
s.Query = Query
s.Start = 0
s.MaxResults = 100
s.Mode = &SearchMode{Tagged: dropbox.Tagged{"filename"}}
return s
} | [
"func",
"NewSearchArg",
"(",
"Path",
"string",
",",
"Query",
"string",
")",
"*",
"SearchArg",
"{",
"s",
":=",
"new",
"(",
"SearchArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"s",
".",
"Query",
"=",
"Query",
"\n",
"s",
".",
"Start",
"=",
... | // NewSearchArg returns a new SearchArg instance | [
"NewSearchArg",
"returns",
"a",
"new",
"SearchArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3102-L3110 |
138,081 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewSearchMatch | func NewSearchMatch(MatchType *SearchMatchType, Metadata IsMetadata) *SearchMatch {
s := new(SearchMatch)
s.MatchType = MatchType
s.Metadata = Metadata
return s
} | go | func NewSearchMatch(MatchType *SearchMatchType, Metadata IsMetadata) *SearchMatch {
s := new(SearchMatch)
s.MatchType = MatchType
s.Metadata = Metadata
return s
} | [
"func",
"NewSearchMatch",
"(",
"MatchType",
"*",
"SearchMatchType",
",",
"Metadata",
"IsMetadata",
")",
"*",
"SearchMatch",
"{",
"s",
":=",
"new",
"(",
"SearchMatch",
")",
"\n",
"s",
".",
"MatchType",
"=",
"MatchType",
"\n",
"s",
".",
"Metadata",
"=",
"Met... | // NewSearchMatch returns a new SearchMatch instance | [
"NewSearchMatch",
"returns",
"a",
"new",
"SearchMatch",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3158-L3163 |
138,082 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *SearchMatch) UnmarshalJSON(b []byte) error {
type wrap struct {
// MatchType : The type of the match.
MatchType *SearchMatchType `json:"match_type"`
// Metadata : The metadata for the matched file or folder.
Metadata json.RawMessage `json:"metadata"`
}
var w wrap
if err := json.Unmarshal(b, &w); er... | go | func (u *SearchMatch) UnmarshalJSON(b []byte) error {
type wrap struct {
// MatchType : The type of the match.
MatchType *SearchMatchType `json:"match_type"`
// Metadata : The metadata for the matched file or folder.
Metadata json.RawMessage `json:"metadata"`
}
var w wrap
if err := json.Unmarshal(b, &w); er... | [
"func",
"(",
"u",
"*",
"SearchMatch",
")",
"UnmarshalJSON",
"(",
"b",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"// MatchType : The type of the match.",
"MatchType",
"*",
"SearchMatchType",
"`json:\"match_type\"`",
"\n",
"// Metadata : The ... | // UnmarshalJSON deserializes into a SearchMatch instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"SearchMatch",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3166-L3184 |
138,083 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewSearchResult | func NewSearchResult(Matches []*SearchMatch, More bool, Start uint64) *SearchResult {
s := new(SearchResult)
s.Matches = Matches
s.More = More
s.Start = Start
return s
} | go | func NewSearchResult(Matches []*SearchMatch, More bool, Start uint64) *SearchResult {
s := new(SearchResult)
s.Matches = Matches
s.More = More
s.Start = Start
return s
} | [
"func",
"NewSearchResult",
"(",
"Matches",
"[",
"]",
"*",
"SearchMatch",
",",
"More",
"bool",
",",
"Start",
"uint64",
")",
"*",
"SearchResult",
"{",
"s",
":=",
"new",
"(",
"SearchResult",
")",
"\n",
"s",
".",
"Matches",
"=",
"Matches",
"\n",
"s",
".",
... | // NewSearchResult returns a new SearchResult instance | [
"NewSearchResult",
"returns",
"a",
"new",
"SearchResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3223-L3229 |
138,084 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewSharedLink | func NewSharedLink(Url string) *SharedLink {
s := new(SharedLink)
s.Url = Url
return s
} | go | func NewSharedLink(Url string) *SharedLink {
s := new(SharedLink)
s.Url = Url
return s
} | [
"func",
"NewSharedLink",
"(",
"Url",
"string",
")",
"*",
"SharedLink",
"{",
"s",
":=",
"new",
"(",
"SharedLink",
")",
"\n",
"s",
".",
"Url",
"=",
"Url",
"\n",
"return",
"s",
"\n",
"}"
] | // NewSharedLink returns a new SharedLink instance | [
"NewSharedLink",
"returns",
"a",
"new",
"SharedLink",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3240-L3244 |
138,085 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewSymlinkInfo | func NewSymlinkInfo(Target string) *SymlinkInfo {
s := new(SymlinkInfo)
s.Target = Target
return s
} | go | func NewSymlinkInfo(Target string) *SymlinkInfo {
s := new(SymlinkInfo)
s.Target = Target
return s
} | [
"func",
"NewSymlinkInfo",
"(",
"Target",
"string",
")",
"*",
"SymlinkInfo",
"{",
"s",
":=",
"new",
"(",
"SymlinkInfo",
")",
"\n",
"s",
".",
"Target",
"=",
"Target",
"\n",
"return",
"s",
"\n",
"}"
] | // NewSymlinkInfo returns a new SymlinkInfo instance | [
"NewSymlinkInfo",
"returns",
"a",
"new",
"SymlinkInfo",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3253-L3257 |
138,086 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewThumbnailArg | func NewThumbnailArg(Path string) *ThumbnailArg {
s := new(ThumbnailArg)
s.Path = Path
s.Format = &ThumbnailFormat{Tagged: dropbox.Tagged{"jpeg"}}
s.Size = &ThumbnailSize{Tagged: dropbox.Tagged{"w64h64"}}
s.Mode = &ThumbnailMode{Tagged: dropbox.Tagged{"strict"}}
return s
} | go | func NewThumbnailArg(Path string) *ThumbnailArg {
s := new(ThumbnailArg)
s.Path = Path
s.Format = &ThumbnailFormat{Tagged: dropbox.Tagged{"jpeg"}}
s.Size = &ThumbnailSize{Tagged: dropbox.Tagged{"w64h64"}}
s.Mode = &ThumbnailMode{Tagged: dropbox.Tagged{"strict"}}
return s
} | [
"func",
"NewThumbnailArg",
"(",
"Path",
"string",
")",
"*",
"ThumbnailArg",
"{",
"s",
":=",
"new",
"(",
"ThumbnailArg",
")",
"\n",
"s",
".",
"Path",
"=",
"Path",
"\n",
"s",
".",
"Format",
"=",
"&",
"ThumbnailFormat",
"{",
"Tagged",
":",
"dropbox",
".",... | // NewThumbnailArg returns a new ThumbnailArg instance | [
"NewThumbnailArg",
"returns",
"a",
"new",
"ThumbnailArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3338-L3345 |
138,087 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewUploadSessionAppendArg | func NewUploadSessionAppendArg(Cursor *UploadSessionCursor) *UploadSessionAppendArg {
s := new(UploadSessionAppendArg)
s.Cursor = Cursor
s.Close = false
return s
} | go | func NewUploadSessionAppendArg(Cursor *UploadSessionCursor) *UploadSessionAppendArg {
s := new(UploadSessionAppendArg)
s.Cursor = Cursor
s.Close = false
return s
} | [
"func",
"NewUploadSessionAppendArg",
"(",
"Cursor",
"*",
"UploadSessionCursor",
")",
"*",
"UploadSessionAppendArg",
"{",
"s",
":=",
"new",
"(",
"UploadSessionAppendArg",
")",
"\n",
"s",
".",
"Cursor",
"=",
"Cursor",
"\n",
"s",
".",
"Close",
"=",
"false",
"\n",... | // NewUploadSessionAppendArg returns a new UploadSessionAppendArg instance | [
"NewUploadSessionAppendArg",
"returns",
"a",
"new",
"UploadSessionAppendArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3538-L3543 |
138,088 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewUploadSessionCursor | func NewUploadSessionCursor(SessionId string, Offset uint64) *UploadSessionCursor {
s := new(UploadSessionCursor)
s.SessionId = SessionId
s.Offset = Offset
return s
} | go | func NewUploadSessionCursor(SessionId string, Offset uint64) *UploadSessionCursor {
s := new(UploadSessionCursor)
s.SessionId = SessionId
s.Offset = Offset
return s
} | [
"func",
"NewUploadSessionCursor",
"(",
"SessionId",
"string",
",",
"Offset",
"uint64",
")",
"*",
"UploadSessionCursor",
"{",
"s",
":=",
"new",
"(",
"UploadSessionCursor",
")",
"\n",
"s",
".",
"SessionId",
"=",
"SessionId",
"\n",
"s",
".",
"Offset",
"=",
"Off... | // NewUploadSessionCursor returns a new UploadSessionCursor instance | [
"NewUploadSessionCursor",
"returns",
"a",
"new",
"UploadSessionCursor",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3556-L3561 |
138,089 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewUploadSessionFinishArg | func NewUploadSessionFinishArg(Cursor *UploadSessionCursor, Commit *CommitInfo) *UploadSessionFinishArg {
s := new(UploadSessionFinishArg)
s.Cursor = Cursor
s.Commit = Commit
return s
} | go | func NewUploadSessionFinishArg(Cursor *UploadSessionCursor, Commit *CommitInfo) *UploadSessionFinishArg {
s := new(UploadSessionFinishArg)
s.Cursor = Cursor
s.Commit = Commit
return s
} | [
"func",
"NewUploadSessionFinishArg",
"(",
"Cursor",
"*",
"UploadSessionCursor",
",",
"Commit",
"*",
"CommitInfo",
")",
"*",
"UploadSessionFinishArg",
"{",
"s",
":=",
"new",
"(",
"UploadSessionFinishArg",
")",
"\n",
"s",
".",
"Cursor",
"=",
"Cursor",
"\n",
"s",
... | // NewUploadSessionFinishArg returns a new UploadSessionFinishArg instance | [
"NewUploadSessionFinishArg",
"returns",
"a",
"new",
"UploadSessionFinishArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3572-L3577 |
138,090 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewUploadSessionFinishBatchArg | func NewUploadSessionFinishBatchArg(Entries []*UploadSessionFinishArg) *UploadSessionFinishBatchArg {
s := new(UploadSessionFinishBatchArg)
s.Entries = Entries
return s
} | go | func NewUploadSessionFinishBatchArg(Entries []*UploadSessionFinishArg) *UploadSessionFinishBatchArg {
s := new(UploadSessionFinishBatchArg)
s.Entries = Entries
return s
} | [
"func",
"NewUploadSessionFinishBatchArg",
"(",
"Entries",
"[",
"]",
"*",
"UploadSessionFinishArg",
")",
"*",
"UploadSessionFinishBatchArg",
"{",
"s",
":=",
"new",
"(",
"UploadSessionFinishBatchArg",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
"\n",
"return",
"... | // NewUploadSessionFinishBatchArg returns a new UploadSessionFinishBatchArg instance | [
"NewUploadSessionFinishBatchArg",
"returns",
"a",
"new",
"UploadSessionFinishBatchArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3586-L3590 |
138,091 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewUploadSessionFinishBatchResult | func NewUploadSessionFinishBatchResult(Entries []*UploadSessionFinishBatchResultEntry) *UploadSessionFinishBatchResult {
s := new(UploadSessionFinishBatchResult)
s.Entries = Entries
return s
} | go | func NewUploadSessionFinishBatchResult(Entries []*UploadSessionFinishBatchResultEntry) *UploadSessionFinishBatchResult {
s := new(UploadSessionFinishBatchResult)
s.Entries = Entries
return s
} | [
"func",
"NewUploadSessionFinishBatchResult",
"(",
"Entries",
"[",
"]",
"*",
"UploadSessionFinishBatchResultEntry",
")",
"*",
"UploadSessionFinishBatchResult",
"{",
"s",
":=",
"new",
"(",
"UploadSessionFinishBatchResult",
")",
"\n",
"s",
".",
"Entries",
"=",
"Entries",
... | // NewUploadSessionFinishBatchResult returns a new UploadSessionFinishBatchResult instance | [
"NewUploadSessionFinishBatchResult",
"returns",
"a",
"new",
"UploadSessionFinishBatchResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3687-L3691 |
138,092 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *UploadSessionLookupError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// IncorrectOffset : The specified offset was incorrect. See the value
// for the correct offset. This error may occur when a previous request
// was received and processed successfully but the client did no... | go | func (u *UploadSessionLookupError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// IncorrectOffset : The specified offset was incorrect. See the value
// for the correct offset. This error may occur when a previous request
// was received and processed successfully but the client did no... | [
"func",
"(",
"u",
"*",
"UploadSessionLookupError",
")",
"UnmarshalJSON",
"(",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"dropbox",
".",
"Tagged",
"\n",
"// IncorrectOffset : The specified offset was incorrect. See the value",
"// for ... | // UnmarshalJSON deserializes into a UploadSessionLookupError instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"UploadSessionLookupError",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3830-L3854 |
138,093 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewUploadSessionOffsetError | func NewUploadSessionOffsetError(CorrectOffset uint64) *UploadSessionOffsetError {
s := new(UploadSessionOffsetError)
s.CorrectOffset = CorrectOffset
return s
} | go | func NewUploadSessionOffsetError(CorrectOffset uint64) *UploadSessionOffsetError {
s := new(UploadSessionOffsetError)
s.CorrectOffset = CorrectOffset
return s
} | [
"func",
"NewUploadSessionOffsetError",
"(",
"CorrectOffset",
"uint64",
")",
"*",
"UploadSessionOffsetError",
"{",
"s",
":=",
"new",
"(",
"UploadSessionOffsetError",
")",
"\n",
"s",
".",
"CorrectOffset",
"=",
"CorrectOffset",
"\n",
"return",
"s",
"\n",
"}"
] | // NewUploadSessionOffsetError returns a new UploadSessionOffsetError instance | [
"NewUploadSessionOffsetError",
"returns",
"a",
"new",
"UploadSessionOffsetError",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3863-L3867 |
138,094 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewUploadSessionStartResult | func NewUploadSessionStartResult(SessionId string) *UploadSessionStartResult {
s := new(UploadSessionStartResult)
s.SessionId = SessionId
return s
} | go | func NewUploadSessionStartResult(SessionId string) *UploadSessionStartResult {
s := new(UploadSessionStartResult)
s.SessionId = SessionId
return s
} | [
"func",
"NewUploadSessionStartResult",
"(",
"SessionId",
"string",
")",
"*",
"UploadSessionStartResult",
"{",
"s",
":=",
"new",
"(",
"UploadSessionStartResult",
")",
"\n",
"s",
".",
"SessionId",
"=",
"SessionId",
"\n",
"return",
"s",
"\n",
"}"
] | // NewUploadSessionStartResult returns a new UploadSessionStartResult instance | [
"NewUploadSessionStartResult",
"returns",
"a",
"new",
"UploadSessionStartResult",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3892-L3896 |
138,095 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | NewUploadWriteFailed | func NewUploadWriteFailed(Reason *WriteError, UploadSessionId string) *UploadWriteFailed {
s := new(UploadWriteFailed)
s.Reason = Reason
s.UploadSessionId = UploadSessionId
return s
} | go | func NewUploadWriteFailed(Reason *WriteError, UploadSessionId string) *UploadWriteFailed {
s := new(UploadWriteFailed)
s.Reason = Reason
s.UploadSessionId = UploadSessionId
return s
} | [
"func",
"NewUploadWriteFailed",
"(",
"Reason",
"*",
"WriteError",
",",
"UploadSessionId",
"string",
")",
"*",
"UploadWriteFailed",
"{",
"s",
":=",
"new",
"(",
"UploadWriteFailed",
")",
"\n",
"s",
".",
"Reason",
"=",
"Reason",
"\n",
"s",
".",
"UploadSessionId",... | // NewUploadWriteFailed returns a new UploadWriteFailed instance | [
"NewUploadWriteFailed",
"returns",
"a",
"new",
"UploadWriteFailed",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L3909-L3914 |
138,096 | dropbox/dropbox-sdk-go-unofficial | dropbox/files/types.go | UnmarshalJSON | func (u *WriteMode) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
}
var w wrap
var err error
if err = json.Unmarshal(body, &w); err != nil {
return err
}
u.Tag = w.Tag
switch u.Tag {
case "update":
err = json.Unmarshal(body, &u.Update)
if err != nil {
return err
}
}
retur... | go | func (u *WriteMode) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
}
var w wrap
var err error
if err = json.Unmarshal(body, &w); err != nil {
return err
}
u.Tag = w.Tag
switch u.Tag {
case "update":
err = json.Unmarshal(body, &u.Update)
if err != nil {
return err
}
}
retur... | [
"func",
"(",
"u",
"*",
"WriteMode",
")",
"UnmarshalJSON",
"(",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"dropbox",
".",
"Tagged",
"\n",
"}",
"\n",
"var",
"w",
"wrap",
"\n",
"var",
"err",
"error",
"\n",
"if",
"err"... | // UnmarshalJSON deserializes into a WriteMode instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"WriteMode",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/files/types.go#L4029-L4048 |
138,097 | dropbox/dropbox-sdk-go-unofficial | dropbox/contacts/types.go | NewDeleteManualContactsArg | func NewDeleteManualContactsArg(EmailAddresses []string) *DeleteManualContactsArg {
s := new(DeleteManualContactsArg)
s.EmailAddresses = EmailAddresses
return s
} | go | func NewDeleteManualContactsArg(EmailAddresses []string) *DeleteManualContactsArg {
s := new(DeleteManualContactsArg)
s.EmailAddresses = EmailAddresses
return s
} | [
"func",
"NewDeleteManualContactsArg",
"(",
"EmailAddresses",
"[",
"]",
"string",
")",
"*",
"DeleteManualContactsArg",
"{",
"s",
":=",
"new",
"(",
"DeleteManualContactsArg",
")",
"\n",
"s",
".",
"EmailAddresses",
"=",
"EmailAddresses",
"\n",
"return",
"s",
"\n",
... | // NewDeleteManualContactsArg returns a new DeleteManualContactsArg instance | [
"NewDeleteManualContactsArg",
"returns",
"a",
"new",
"DeleteManualContactsArg",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/contacts/types.go#L37-L41 |
138,098 | dropbox/dropbox-sdk-go-unofficial | dropbox/contacts/types.go | UnmarshalJSON | func (u *DeleteManualContactsError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// ContactsNotFound : Can't delete contacts from this list. Make sure
// the list only has manually added contacts. The deletion was
// cancelled.
ContactsNotFound json.RawMessage `json:"contacts_not_foun... | go | func (u *DeleteManualContactsError) UnmarshalJSON(body []byte) error {
type wrap struct {
dropbox.Tagged
// ContactsNotFound : Can't delete contacts from this list. Make sure
// the list only has manually added contacts. The deletion was
// cancelled.
ContactsNotFound json.RawMessage `json:"contacts_not_foun... | [
"func",
"(",
"u",
"*",
"DeleteManualContactsError",
")",
"UnmarshalJSON",
"(",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"wrap",
"struct",
"{",
"dropbox",
".",
"Tagged",
"\n",
"// ContactsNotFound : Can't delete contacts from this list. Make sure",
"// the ... | // UnmarshalJSON deserializes into a DeleteManualContactsError instance | [
"UnmarshalJSON",
"deserializes",
"into",
"a",
"DeleteManualContactsError",
"instance"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/contacts/types.go#L58-L81 |
138,099 | dropbox/dropbox-sdk-go-unofficial | dropbox/auth/sdk.go | HandleCommonAuthErrors | func HandleCommonAuthErrors(c dropbox.Config, resp *http.Response, body []byte) error {
switch resp.StatusCode {
case http.StatusUnauthorized:
var apiError AuthAPIError
if err := json.Unmarshal(body, &apiError); err != nil {
c.LogDebug("Error unmarshaling '%s' into JSON", body)
return err
}
return apiEr... | go | func HandleCommonAuthErrors(c dropbox.Config, resp *http.Response, body []byte) error {
switch resp.StatusCode {
case http.StatusUnauthorized:
var apiError AuthAPIError
if err := json.Unmarshal(body, &apiError); err != nil {
c.LogDebug("Error unmarshaling '%s' into JSON", body)
return err
}
return apiEr... | [
"func",
"HandleCommonAuthErrors",
"(",
"c",
"dropbox",
".",
"Config",
",",
"resp",
"*",
"http",
".",
"Response",
",",
"body",
"[",
"]",
"byte",
")",
"error",
"{",
"switch",
"resp",
".",
"StatusCode",
"{",
"case",
"http",
".",
"StatusUnauthorized",
":",
"... | // HandleCommonAuthErrors handles common authentication errors | [
"HandleCommonAuthErrors",
"handles",
"common",
"authentication",
"errors"
] | af4558f5e44cef90c2d963e50e76e7dfa46d0c48 | https://github.com/dropbox/dropbox-sdk-go-unofficial/blob/af4558f5e44cef90c2d963e50e76e7dfa46d0c48/dropbox/auth/sdk.go#L31-L67 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.