{"modulePath":"code.cloudfoundry.org/cli","version":"v6.1.1+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package resources\n\n## Types\n\n```go\ntype AppFileResource struct {\n\tPath string `json:\"fn\"`\n\tSha1 string `json:\"sha1\"`\n\tSize int64  `json:\"size\"`\n}\n```\n\n```go\ntype AppRouteEntity struct {\n\tHost   string\n\tDomain struct {\n\t\tResource\n\t\tEntity struct {\n\t\t\tName string\n\t\t}\n\t}\n}\n```\n\n```go\ntype AppRouteResource struct {\n\tResource\n\tEntity AppRouteEntity\n}\n```\n\n```go\nfunc (resource AppRouteResource) ToFields() (route models.RouteSummary)\n```\n\n```go\nfunc (resource AppRouteResource) ToModel() (route models.RouteSummary)\n```\n\n```go\ntype ApplicationEntity struct {\n\tName               *string             `json:\"name,omitempty\"`\n\tCommand            *string             `json:\"command,omitempty\"`\n\tState              *string             `json:\"state,omitempty\"`\n\tSpaceGuid          *string             `json:\"space_guid,omitempty\"`\n\tInstances          *int                `json:\"instances,omitempty\"`\n\tMemory             *uint64             `json:\"memory,omitempty\"`\n\tDiskQuota          *uint64             `json:\"disk_quota,omitempty\"`\n\tStackGuid          *string             `json:\"stack_guid,omitempty\"`\n\tStack              *StackResource      `json:\"stack,omitempty\"`\n\tRoutes             *[]AppRouteResource `json:\"routes,omitempty\"`\n\tBuildpack          *string             `json:\"buildpack,omitempty\"`\n\tEnvironmentJson    *map[string]string  `json:\"environment_json,omitempty\"`\n\tHealthCheckTimeout *int                `json:\"health_check_timeout,omitempty\"`\n}\n```\n\n```go\nfunc NewApplicationEntityFromAppParams(app models.AppParams) ApplicationEntity\n```\n\n```go\ntype ApplicationResource struct {\n\tResource\n\tEntity ApplicationEntity\n}\n```\n\n```go\nfunc (resource ApplicationResource) ToFields() (app models.ApplicationFields)\n```\n\n```go\nfunc (resource ApplicationResource) ToModel() (app models.Application)\n```\n\n```go\ntype AuthTokenEntity struct {\n\tLabel    string\n\tProvider string\n}\n```\n\n```go\ntype AuthTokenResource struct {\n\tResource\n\tEntity AuthTokenEntity\n}\n```\n\n```go\nfunc (resource AuthTokenResource) ToFields() (authToken models.ServiceAuthTokenFields)\n```\n\n```go\ntype BuildpackEntity struct {\n\tName     string `json:\"name\"`\n\tPosition *int   `json:\"position,omitempty\"`\n\tEnabled  *bool  `json:\"enabled,omitempty\"`\n\tKey      string `json:\"key,omitempty\"`\n\tFilename string `json:\"filename,omitempty\"`\n\tLocked   *bool  `json:\"locked,omitempty\"`\n}\n```\n\n```go\ntype BuildpackResource struct {\n\tResource\n\tEntity BuildpackEntity\n}\n```\n\n```go\nfunc (resource BuildpackResource) ToFields() models.Buildpack\n```\n\n```go\ntype DomainEntity struct {\n\tName                   string `json:\"name\"`\n\tOwningOrganizationGuid string `json:\"owning_organization_guid,omitempty\"`\n\tWildcard               bool   `json:\"wildcard\"`\n}\n```\n\n```go\ntype DomainResource struct {\n\tResource\n\tEntity DomainEntity\n}\n```\n\n```go\nfunc (resource DomainResource) ToFields() models.DomainFields\n```\n\n```go\ntype EventResource interface {\n\tToFields() models.EventFields\n}\n```\n\n```go\ntype EventResourceNewV2 struct {\n\tResource\n\tEntity struct {\n\t\tTimestamp time.Time\n\t\tType      string\n\t\tActorName string `json:\"actor_name\"`\n\t\tMetadata  map[string]interface{}\n\t}\n}\n```\n\n```go\nfunc (resource EventResourceNewV2) ToFields() models.EventFields\n```\n\n```go\ntype EventResourceOldV2 struct {\n\tResource\n\tEntity struct {\n\t\tTimestamp       time.Time\n\t\tExitDescription string `json:\"exit_description\"`\n\t\tExitStatus      int    `json:\"exit_status\"`\n\t\tInstanceIndex   int    `json:\"instance_index\"`\n\t}\n}\n```\n\n```go\nfunc (resource EventResourceOldV2) ToFields() models.EventFields\n```\n\n```go\ntype Metadata struct {\n\tGuid string `json:\"guid\"`\n\tUrl  string `json:\"url,omitempty\"`\n}\n```\n\n```go\ntype OrganizationEntity struct {\n\tName            string\n\tQuotaDefinition QuotaResource `json:\"quota_definition\"`\n\tSpaces          []SpaceResource\n\tDomains         []DomainResource\n}\n```\n\n```go\ntype OrganizationResource struct {\n\tResource\n\tEntity OrganizationEntity\n}\n```\n\n```go\nfunc (resource OrganizationResource) ToFields() (fields models.OrganizationFields)\n```\n\n```go\nfunc (resource OrganizationResource) ToModel() (org models.Organization)\n```\n\n```go\ntype PaginatedApplicationResources struct {\n\tResources []ApplicationResource\n}\n```\n\n```go\ntype PaginatedAuthTokenResources struct {\n\tResources []AuthTokenResource\n}\n```\n\n```go\ntype PaginatedQuotaResources struct {\n\tResources []QuotaResource\n}\n```\n\n```go\ntype PaginatedServiceInstanceResources struct {\n\tTotalResults int `json:\"total_results\"`\n\tResources    []ServiceInstanceResource\n}\n```\n\n```go\ntype PaginatedServiceOfferingResources struct {\n\tResources []ServiceOfferingResource\n}\n```\n\n```go\ntype PaginatedStackResources struct {\n\tResources []StackResource\n}\n```\n\n```go\ntype QuotaResource struct {\n\tResource\n\tEntity models.QuotaFields\n}\n```\n\n```go\nfunc (resource QuotaResource) ToFields() (quota models.QuotaFields)\n```\n\n```go\ntype Resource struct {\n\tMetadata Metadata\n}\n```\n\n```go\ntype RouteEntity struct {\n\tHost   string\n\tDomain DomainResource\n\tSpace  SpaceResource\n\tApps   []ApplicationResource\n}\n```\n\n```go\ntype RouteResource struct {\n\tResource\n\tEntity RouteEntity\n}\n```\n\n```go\nfunc (resource RouteResource) ToFields() (fields models.Route)\n```\n\n```go\nfunc (resource RouteResource) ToModel() (route models.Route)\n```\n\n```go\ntype ServiceBindingEntity struct {\n\tAppGuid string `json:\"app_guid\"`\n}\n```\n\n```go\ntype ServiceBindingResource struct {\n\tResource\n\tEntity ServiceBindingEntity\n}\n```\n\n```go\nfunc (resource ServiceBindingResource) ToFields() (fields models.ServiceBindingFields)\n```\n\n```go\ntype ServiceBrokerEntity struct {\n\tGuid     string\n\tName     string\n\tPassword string `json:\"auth_password\"`\n\tUsername string `json:\"auth_username\"`\n\tUrl      string `json:\"broker_url\"`\n}\n```\n\n```go\ntype ServiceBrokerResource struct {\n\tResource\n\tEntity ServiceBrokerEntity\n}\n```\n\n```go\nfunc (resource ServiceBrokerResource) ToFields() (fields models.ServiceBroker)\n```\n\n```go\ntype ServiceInstanceEntity struct {\n\tName            string\n\tServiceBindings []ServiceBindingResource `json:\"service_bindings\"`\n\tServicePlan     ServicePlanResource      `json:\"service_plan\"`\n}\n```\n\n```go\ntype ServiceInstanceResource struct {\n\tResource\n\tEntity ServiceInstanceEntity\n}\n```\n\n```go\nfunc (resource ServiceInstanceResource) ToFields() (fields models.ServiceInstanceFields)\n```\n\n```go\nfunc (resource ServiceInstanceResource) ToModel() (instance models.ServiceInstance)\n```\n\n```go\ntype ServiceMigrateV1ToV2Response struct {\n\tChangedCount int `json:\"changed_count\"`\n}\n```\n\n```go\ntype ServiceOfferingEntity struct {\n\tLabel            string\n\tVersion          string\n\tDescription      string\n\tDocumentationUrl string `json:\"documentation_url\"`\n\tProvider         string\n\tServicePlans     []ServicePlanResource `json:\"service_plans\"`\n}\n```\n\n```go\ntype ServiceOfferingResource struct {\n\tResource\n\tEntity ServiceOfferingEntity\n}\n```\n\n```go\nfunc (resource ServiceOfferingResource) ToFields() (fields models.ServiceOfferingFields)\n```\n\n```go\nfunc (resource ServiceOfferingResource) ToModel() (offering models.ServiceOffering)\n```\n\n```go\ntype ServicePlanDescription struct {\n\tServiceLabel    string\n\tServicePlanName string\n\tServiceProvider string\n}\n```\n\n```go\nfunc (planDesc ServicePlanDescription) String() string\n```\n\n```go\ntype ServicePlanEntity struct {\n\tName                string\n\tServiceOfferingGuid string                  `json:\"service_guid\"`\n\tServiceOffering     ServiceOfferingResource `json:\"service\"`\n}\n```\n\n```go\ntype ServicePlanResource struct {\n\tResource\n\tEntity ServicePlanEntity\n}\n```\n\n```go\nfunc (resource ServicePlanResource) ToFields() (fields models.ServicePlanFields)\n```\n\n```go\ntype SpaceEntity struct {\n\tName             string\n\tOrganization     OrganizationResource\n\tApplications     []ApplicationResource `json:\"apps\"`\n\tDomains          []DomainResource\n\tServiceInstances []ServiceInstanceResource `json:\"service_instances\"`\n}\n```\n\n```go\ntype SpaceResource struct {\n\tResource\n\tEntity SpaceEntity\n}\n```\n\n```go\nfunc (resource SpaceResource) ToFields() (fields models.SpaceFields)\n```\n\n```go\nfunc (resource SpaceResource) ToModel() (space models.Space)\n```\n\n```go\ntype StackEntity struct {\n\tName        string\n\tDescription string\n}\n```\n\n```go\ntype StackResource struct {\n\tResource\n\tEntity StackEntity\n}\n```\n\n```go\nfunc (resource StackResource) ToFields() *models.Stack\n```\n\n```go\ntype UAAUserFields struct {\n\tId string\n}\n```\n\n```go\ntype UAAUserResource struct {\n\tUsername string                 `json:\"userName\"`\n\tEmails   []UAAUserResourceEmail `json:\"emails\"`\n\tPassword string                 `json:\"password\"`\n\tName     UAAUserResourceName    `json:\"name\"`\n}\n```\n\n```go\nfunc NewUAAUserResource(username, password string) UAAUserResource\n```\n\n```go\ntype UAAUserResourceEmail struct {\n\tValue string `json:\"value\"`\n}\n```\n\n```go\ntype UAAUserResourceName struct {\n\tGivenName  string `json:\"givenName\"`\n\tFamilyName string `json:\"familyName\"`\n}\n```\n\n```go\ntype UAAUserResources struct {\n\tResources []struct {\n\t\tId       string\n\t\tUsername string\n\t}\n}\n```\n\n```go\ntype UserEntity struct {\n\tName  string\n\tAdmin bool\n}\n```\n\n```go\ntype UserResource struct {\n\tResource\n\tEntity UserEntity\n}\n```\n\n```go\nfunc (resource UserResource) ToFields() models.UserFields\n```\n\n","path":"code.cloudfoundry.org/cli/src/cf/api/resources","name":"resources","synopsis":"","isRedistributable":true}
