github.com/Axway/agent-sdk@v1.1.101/pkg/apic/definitions/definitions.go (about) 1 package definitions 2 3 // PlatformUserInfo - Represents user resource from platform 4 type PlatformUserInfo struct { 5 Success bool `json:"success"` 6 Result struct { 7 ID string `json:"_id"` 8 GUID string `json:"guid"` 9 UserID int64 `json:"user_id"` 10 Firstname string `json:"firstname"` 11 Lastname string `json:"lastname"` 12 Active bool `json:"active"` 13 Email string `json:"email"` 14 } `json:"result"` 15 } 16 17 // PlatformTeam - represents team from Central Client registry 18 type PlatformTeam struct { 19 ID string `json:"guid"` 20 Name string `json:"name"` 21 Default bool `json:"default"` 22 } 23 24 // Constants for attributes 25 const ( 26 XAgentDetails = "x-agent-details" 27 AttrPreviousAPIServiceRevisionID = "prevAPIServiceRevisionID" 28 AttrPreviousAPIServiceInstanceID = "prevAPIServiceInstanceID" 29 AttrExternalAPIID = "externalAPIID" 30 AttrExternalAPIPrimaryKey = "externalAPIPrimaryKey" 31 AttrExternalAPIName = "externalAPIName" 32 AttrExternalAPIStage = "externalAPIStage" 33 AttrExternalAPIVersion = "externalAPIVersion" 34 AttrCreatedBy = "createdBy" 35 AttrSpecHash = "specHash" 36 Spec = "spec" 37 MarketplaceSubResource = "marketplace" 38 ReferencesSubResource = "references" 39 Subscription = "Subscription" 40 MarketplaceMigration = "marketplace-migration" 41 InstanceMigration = "instance-migration" 42 ) 43 44 // market place provisioning migration 45 const ( 46 MigrationCompleted = "completed" 47 )