MCPcopy Create free account
hub / github.com/dropbox/dbxcli / sampleShareLinkJSONMetadata

Function sampleShareLinkJSONMetadata

cmd/json_contract_test.go:971–1001  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

969}
970
971func sampleShareLinkJSONMetadata() shareLinkJSONMetadata {
972 return shareLinkJSONMetadata{
973 Type: "file",
974 URL: "https://www.dropbox.com/s/example/old.pdf",
975 Name: "old.pdf",
976 PathLower: "/reports/old.pdf",
977 ID: "id:shared-file",
978 Expires: jsonContractStringPtr("2026-07-01T00:00:00Z"),
979 Rev: "015f",
980 Size: uint64Ptr(123),
981 ServerModified: jsonContractStringPtr("2026-06-25T12:00:00Z"),
982 ClientModified: jsonContractStringPtr("2026-06-25T11:00:00Z"),
983 Permissions: &shareLinkJSONPermissions{
984 ResolvedVisibility: "public",
985 RequestedVisibility: "public",
986 EffectiveAudience: "public",
987 AccessLevel: "viewer",
988 CanRevoke: true,
989 AllowDownload: true,
990 CanSetExpiry: true,
991 CanRemoveExpiry: true,
992 CanAllowDownload: true,
993 CanDisallowDownload: true,
994 AllowComments: false,
995 CanSetPassword: true,
996 CanRemovePassword: true,
997 RequirePassword: true,
998 CanUseExtendedSharingControls: true,
999 },
1000 }
1001}
1002
1003func sampleTeamMemberJSON() teamMemberJSON {
1004 return teamMemberJSON{

Callers 1

Calls 2

jsonContractStringPtrFunction · 0.85
uint64PtrFunction · 0.85

Tested by

no test coverage detected