{"modulePath":"code.cloudfoundry.org/cli-sapi","version":"v6.51.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package resources\n\n## Constants\n\n```go\nconst UnlimitedAppInstances int = -1\n```\n\n```go\nconst UnlimitedReservedRoutePorts string = \"-1\"\n```\n\n```go\nconst UnlimitedRoutes string = \"-1\"\n```\n\n## Types\n\n```go\ntype AppFileResource struct {\n\tSha1 string `json:\"sha1\"`\n\tSize int64  `json:\"size\"`\n\tPath string `json:\"fn\"`\n\tMode string `json:\"mode\"`\n}\n```\n\n```go\nfunc (resource AppFileResource) ToIntegrityFields() IntegrityFields\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\tDetectedStartCommand    *string                 `json:\"detected_start_command,omitempty\"`\n\tState                   *string                 `json:\"state,omitempty\"`\n\tSpaceGUID               *string                 `json:\"space_guid,omitempty\"`\n\tInstances               *int                    `json:\"instances,omitempty\"`\n\tMemory                  *int64                  `json:\"memory,omitempty\"`\n\tDiskQuota               *int64                  `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\tDetectedBuildpack       *string                 `json:\"detected_buildpack,omitempty\"`\n\tEnvironmentJSON         *map[string]interface{} `json:\"environment_json,omitempty\"`\n\tHealthCheckType         *string                 `json:\"health_check_type,omitempty\"`\n\tHealthCheckHTTPEndpoint *string                 `json:\"health_check_http_endpoint,omitempty\"`\n\tHealthCheckTimeout      *int                    `json:\"health_check_timeout,omitempty\"`\n\tPackageState            *string                 `json:\"package_state,omitempty\"`\n\tStagingFailedReason     *string                 `json:\"staging_failed_reason,omitempty\"`\n\tDockerImage             *string                 `json:\"docker_image,omitempty\"`\n\tDockerCredentials       *DockerCredentials      `json:\"docker_credentials,omitempty\"`\n\tEnableSSH               *bool                   `json:\"enable_ssh,omitempty\"`\n\tPackageUpdatedAt        *time.Time              `json:\"package_updated_at,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\tStack    string `json:\"stack,omitempty\"`\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 DockerCredentials struct {\n\tUsername string `json:\"username\"`\n\tPassword string `json:\"password\"`\n}\n```\n\n```go\ntype DomainEntity struct {\n\tName                   string `json:\"name\"`\n\tOwningOrganizationGUID string `json:\"owning_organization_guid,omitempty\"`\n\tSharedOrganizationsURL string `json:\"shared_organizations_url,omitempty\"`\n\tRouterGroupGUID        string `json:\"router_group_guid,omitempty\"`\n\tRouterGroupType        string `json:\"router_group_type,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\tActor     string `json:\"actor\"`\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 FeatureFlagResource struct {\n\tEntity models.FeatureFlag\n}\n```\n\n```go\nfunc (resource FeatureFlagResource) ToFields() (flag models.FeatureFlag)\n```\n\n```go\ntype IntegrityFields struct {\n\tSha1 string `json:\"sha1\"`\n\tSize int64  `json:\"size\"`\n}\n```\n\n```go\ntype LastOperation struct {\n\tType        string `json:\"type\"`\n\tState       string `json:\"state\"`\n\tDescription string `json:\"description\"`\n\tCreatedAt   string `json:\"created_at\"`\n\tUpdatedAt   string `json:\"updated_at\"`\n}\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        `json:\"name\"`\n\tQuotaDefinition QuotaResource `json:\"quota_definition\"`\n\tSpaces          []SpaceResource\n\tDomains         []DomainResource\n\tSpaceQuotas     []SpaceQuotaResource `json:\"space_quota_definitions\"`\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 PaginatedSecurityGroupResources struct {\n\tResources []SecurityGroupResource\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 PaginatedSpaceQuotaResources struct {\n\tResources []SpaceQuotaResource\n}\n```\n\n```go\ntype PaginatedStackResources struct {\n\tResources []StackResource\n}\n```\n\n```go\ntype QuotaResource struct {\n\tResource\n\tEntity models.QuotaResponse\n}\n```\n\n```go\nfunc (resource QuotaResource) ToFields() models.QuotaFields\n```\n\n```go\ntype Resource struct {\n\tMetadata Metadata\n}\n```\n\n```go\ntype RouteEntity struct {\n\tHost            string                  `json:\"host\"`\n\tDomain          DomainResource          `json:\"domain\"`\n\tPath            string                  `json:\"path\"`\n\tPort            int                     `json:\"port\"`\n\tSpace           SpaceResource           `json:\"space\"`\n\tApps            []ApplicationResource   `json:\"apps\"`\n\tServiceInstance ServiceInstanceResource `json:\"service_instance\"`\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 SecurityGroup struct {\n\tmodels.SecurityGroupFields\n\tSpaces []SpaceResource\n}\n```\n\n```go\ntype SecurityGroupResource struct {\n\tResource\n\tEntity SecurityGroup\n}\n```\n\n```go\nfunc (resource SecurityGroupResource) ToFields() (fields models.SecurityGroupFields)\n```\n\n```go\nfunc (resource SecurityGroupResource) ToModel() (asg models.SecurityGroup)\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() 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                   `json:\"name\"`\n\tDashboardURL    string                   `json:\"dashboard_url\"`\n\tType            string                   `json:\"type\"`\n\tTags            []string                 `json:\"tags\"`\n\tServiceBindings []ServiceBindingResource `json:\"service_bindings\"`\n\tServiceKeys     []ServiceKeyResource     `json:\"service_keys\"`\n\tServicePlan     ServicePlanResource      `json:\"service_plan\"`\n\tLastOperation   LastOperation            `json:\"last_operation\"`\n}\n```\n\n```go\ntype ServiceInstanceResource struct {\n\tResource\n\tEntity ServiceInstanceEntity\n}\n```\n\n```go\nfunc (resource ServiceInstanceResource) ToFields() models.ServiceInstanceFields\n```\n\n```go\nfunc (resource ServiceInstanceResource) ToModel() (instance models.ServiceInstance)\n```\n\n```go\ntype ServiceKeyEntity struct {\n\tName                string                 `json:\"name\"`\n\tServiceInstanceGUID string                 `json:\"service_instance_guid\"`\n\tServiceInstanceURL  string                 `json:\"service_instance_url\"`\n\tCredentials         map[string]interface{} `json:\"credentials\"`\n}\n```\n\n```go\ntype ServiceKeyResource struct {\n\tResource\n\tEntity ServiceKeyEntity\n}\n```\n\n```go\nfunc (resource ServiceKeyResource) ToFields() models.ServiceKeyFields\n```\n\n```go\nfunc (resource ServiceKeyResource) ToModel() models.ServiceKey\n```\n\n```go\ntype ServiceMigrateV1ToV2Response struct {\n\tChangedCount int `json:\"changed_count\"`\n}\n```\n\n```go\ntype ServiceOfferingEntity struct {\n\tLabel        string                `json:\"label\"`\n\tVersion      string                `json:\"version\"`\n\tDescription  string                `json:\"description\"`\n\tProvider     string                `json:\"provider\"`\n\tBrokerGUID   string                `json:\"service_broker_guid\"`\n\tRequires     []string              `json:\"requires\"`\n\tServicePlans []ServicePlanResource `json:\"service_plans\"`\n\tExtra        ServiceOfferingExtra\n}\n```\n\n```go\ntype ServiceOfferingExtra struct {\n\tDocumentationURL string `json:\"documentationURL\"`\n}\n```\n\n```go\nfunc (resource *ServiceOfferingExtra) UnmarshalJSON(rawData []byte) error\n```\n\n```go\ntype ServiceOfferingResource struct {\n\tResource\n\tEntity ServiceOfferingEntity\n}\n```\n\n```go\nfunc (resource ServiceOfferingResource) ToFields() models.ServiceOfferingFields\n```\n\n```go\nfunc (resource ServiceOfferingResource) ToModel() 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\tFree                bool\n\tPublic              bool\n\tActive              bool\n\tDescription         string                  `json:\"description\"`\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 ServicePlanVisibilityResource struct {\n\tResource\n\tEntity models.ServicePlanVisibilityFields\n}\n```\n\n```go\nfunc (resource ServicePlanVisibilityResource) ToFields() (fields models.ServicePlanVisibilityFields)\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\tSecurityGroups   []SecurityGroupResource   `json:\"security_groups\"`\n\tSpaceQuotaGUID   string                    `json:\"space_quota_definition_guid\"`\n\tAllowSSH         bool                      `json:\"allow_ssh\"`\n}\n```\n\n```go\ntype SpaceQuotaResource struct {\n\tResource\n\tEntity models.SpaceQuotaResponse\n}\n```\n\n```go\nfunc (resource SpaceQuotaResource) ToModel() models.SpaceQuota\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 `json:\"username,omitempty\"`\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-sapi/cf/api/resources","name":"resources","synopsis":"","isRedistributable":true}
